sgml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. #------------------------------------------------------------------------------
  2. # $File: sgml,v 1.53 2024/11/10 14:48:55 christos Exp $
  3. # Type: SVG Vectorial Graphics
  4. # From: Noel Torres <tecnico@ejerciciosresueltos.com>
  5. 0 string/bt \<?xml\ version=
  6. >14 regex ['"\ \t]*[0-9.]+['"\ \t]*
  7. >>19 search/4096 \<svg SVG Scalable Vector Graphics image
  8. !:strength +50
  9. !:mime image/svg+xml
  10. !:ext svg
  11. >>19 search/4096 \<gnc-v2 GnuCash file
  12. !:mime application/x-gnucash
  13. 0 string/bt \<svg SVG Scalable Vector Graphics image
  14. !:mime image/svg+xml
  15. !:ext svg
  16. >14 regex ['"\ \t]*[0-9.]+['"\ \t]*
  17. # Sitemap file
  18. >>19 search/4096 \<urlset XML Sitemap document text
  19. !:mime application/xml-sitemap
  20. # XML-based format representing braille pages in a digital format.
  21. #
  22. # Specification:
  23. # http://files.pef-format.org/specifications/pef-2008-1/pef-specification.html
  24. #
  25. # Simon Aittamaa <simon.aittamaa@gmail.com>
  26. >>19 search/4096 \<pef Portable Embosser Format
  27. !:mime application/x-pef+xml
  28. # OpenStreetMap XML (.osm)
  29. # https://wiki.openstreetmap.org/wiki/OSM_XML
  30. # From: Markus Heidelberg <markus.heidelberg@web.de>
  31. >>19 search/4096 \<osm OpenStreetMap XML data
  32. # xhtml
  33. >19 search/4096/cWbt \<!doctype\ html XHTML document text
  34. >>15 string >\0 (version %.3s)
  35. !:strength + 15
  36. !:mime application/xhtml+xml
  37. >19 search/4096/cWbt \<html\ xmlns= XHTML document text
  38. >>15 string >\0 (version %.3s)
  39. !:mime application/xhtml+xml
  40. #------------------------------------------------------------------------------
  41. # sgml: file(1) magic for Standard Generalized Markup Language
  42. # HyperText Markup Language (HTML) is an SGML document type,
  43. # from Daniel Quinlan (quinlan@yggdrasil.com)
  44. # adapted to string extensions by Anthon van der Neut <anthon@mnt.org)
  45. 0 search/4096/cWt \<!doctype\ html HTML document text
  46. !:mime text/html
  47. !:strength + 5
  48. # avoid misdetection as JavaScript
  49. 0 string/cWt \<!doctype\ html HTML document text
  50. !:mime text/html
  51. !:strength + 30
  52. 0 string/ct \<html> HTML document text
  53. !:mime text/html
  54. !:strength + 30
  55. 0 string/ct \<!--
  56. >&0 search/4096/cWt \<!doctype\ html HTML document text
  57. !:mime text/html
  58. !:strength + 30
  59. >&0 search/4096/ct \<html> HTML document text
  60. !:mime text/html
  61. # SVG document
  62. # https://www.w3.org/TR/SVG/single-page.html
  63. 0 search/4096/cWbt \<!doctype\ svg SVG XML document
  64. !:mime image/svg+xml
  65. !:strength + 30
  66. 0 search/4096/cwt \<head\> HTML document text
  67. !:mime text/html
  68. !:strength + 30
  69. 0 search/4096/cWt \<head\ HTML document text
  70. !:mime text/html
  71. !:strength + 30
  72. 0 search/4096/cwt \<title\> HTML document text
  73. !:mime text/html
  74. !:strength + 30
  75. 0 search/4096/cWt \<title\ HTML document text
  76. !:mime text/html
  77. !:strength + 30
  78. 0 search/4096/cwt \<html\> HTML document text
  79. !:mime text/html
  80. !:strength + 30
  81. 0 search/4096/cWt \<html\ HTML document text
  82. !:mime text/html
  83. !:strength + 30
  84. 0 search/4096/cwt \<script\> HTML document text
  85. !:mime text/html
  86. !:strength + 30
  87. 0 search/4096/cWt \<script\ HTML document text
  88. !:mime text/html
  89. !:strength + 30
  90. 0 search/4096/cwt \<style\> HTML document text
  91. !:mime text/html
  92. !:strength + 30
  93. 0 search/4096/cWt \<style\ HTML document text
  94. !:mime text/html
  95. !:strength + 30
  96. 0 search/4096/cwt \<table\> HTML document text
  97. !:mime text/html
  98. !:strength + 30
  99. 0 search/4096/cWt \<table\ HTML document text
  100. !:mime text/html
  101. !:strength + 30
  102. 0 search/4096/cwt \<a\ href= HTML document text
  103. !:mime text/html
  104. !:strength + 30
  105. # Microsoft HTML Application (HTA)
  106. # https://learn.microsoft.com/en-us/previous-versions//ms536496(v=vs.85)
  107. 0 search/4096/cWt \<hta:application\ Microsoft HTML Application (HTA)
  108. !:mime application/hta
  109. !:ext hta
  110. !:strength + 50
  111. # Extensible markup language (XML), a subset of SGML
  112. # from Marc Prud'hommeaux (marc@apocalypse.org)
  113. 0 search/1/cwt \<?xml XML document text
  114. !:mime text/xml
  115. !:strength + 30
  116. 0 string/t \<?xml\ version=" XML
  117. !:mime text/xml
  118. !:strength + 30
  119. >15 string/t >\0 %.3s document text
  120. >>23 search/1 \<xsl:stylesheet (XSL stylesheet)
  121. >>24 search/1 \<xsl:stylesheet (XSL stylesheet)
  122. 0 search/1/wt \<?XML broken XML document text
  123. !:mime text/xml
  124. !:strength - 10
  125. # SGML, mostly from rph@sq
  126. 0 search/4096/cwt \<!doctype exported SGML document text
  127. 0 search/4096/cwt \<!subdoc exported SGML subdocument text
  128. 0 search/4096/cwt \<!-- exported SGML document text
  129. !:strength - 10
  130. # Web browser cookie files
  131. # (Mozilla, Galeon, Netscape 4, Konqueror..)
  132. # Ulf Harnhammar <ulfh@update.uu.se>
  133. 0 search/1 #\ HTTP\ Cookie\ File Web browser cookie text
  134. 0 search/1 #\ Netscape\ HTTP\ Cookie\ File Netscape cookie text
  135. 0 search/1 #\ KDE\ Cookie\ File Konqueror cookie text
  136. # https://www.qgis.org/en/site/
  137. 0 string \<!DOCTYPE\040qgis QGIS XML document