sgml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. #------------------------------------------------------------------------------
  2. # $File: sgml,v 1.55 2025/04/06 20:34:30 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. >>19 search/4096 application/x-qtskin QuickTime5 skinned movie
  14. !:mime application/x-qtskin
  15. 0 string/bt \<svg SVG Scalable Vector Graphics image
  16. !:mime image/svg+xml
  17. !:ext svg
  18. 0 string/t \<?xml\ version=
  19. !:strength +40
  20. >14 regex ['"\ \t]*[0-9.]+['"\ \t]*
  21. # Sitemap file
  22. >>19 search/4096 \<urlset XML Sitemap document text
  23. !:mime application/xml-sitemap
  24. # XML-based format representing braille pages in a digital format.
  25. #
  26. # Specification:
  27. # http://files.pef-format.org/specifications/pef-2008-1/pef-specification.html
  28. #
  29. # Simon Aittamaa <simon.aittamaa@gmail.com>
  30. >>19 search/4096 \<pef Portable Embosser Format
  31. !:mime application/x-pef+xml
  32. # OpenStreetMap XML (.osm)
  33. # https://wiki.openstreetmap.org/wiki/OSM_XML
  34. # From: Markus Heidelberg <markus.heidelberg@web.de>
  35. >>19 search/4096 \<osm OpenStreetMap XML data
  36. # xhtml
  37. >19 search/4096/cWbt \<!doctype\ html XHTML document text
  38. >>15 string >\0 (version %.3s)
  39. !:mime application/xhtml+xml
  40. >19 search/4096/cWbt \<html\ xmlns= XHTML document text
  41. >>15 string >\0 (version %.3s)
  42. !:mime application/xhtml+xml
  43. #------------------------------------------------------------------------------
  44. # sgml: file(1) magic for Standard Generalized Markup Language
  45. # HyperText Markup Language (HTML) is an SGML document type,
  46. # from Daniel Quinlan (quinlan@yggdrasil.com)
  47. # adapted to string extensions by Anthon van der Neut <anthon@mnt.org)
  48. 0 search/4096/cWt \<!doctype\ html HTML document text
  49. !:mime text/html
  50. !:strength + 5
  51. # avoid misdetection as JavaScript
  52. 0 string/cWt \<!doctype\ html HTML document text
  53. !:mime text/html
  54. 0 string/ct \<html> HTML document text
  55. !:mime text/html
  56. 0 string/ct \<!--
  57. >&0 search/4096/cWt \<!doctype\ html HTML document text
  58. !:mime text/html
  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. 0 string/t \<?xml\ version=" XML
  120. !:mime text/xml
  121. !:strength + 30
  122. >15 string/t >\0 %.3s document text
  123. >>23 search/1 \<xsl:stylesheet (XSL stylesheet)
  124. >>24 search/1 \<xsl:stylesheet (XSL stylesheet)
  125. 0 string/t \<?xml\ version=' XML
  126. !:mime text/xml
  127. !:strength + 30
  128. >15 string/t >\0 %.3s document text
  129. >>23 search/1 \<xsl:stylesheet (XSL stylesheet)
  130. >>24 search/1 \<xsl:stylesheet (XSL stylesheet)
  131. 0 search/1/wt \<?XML broken XML document text
  132. !:mime text/xml
  133. !:strength - 10
  134. # SGML, mostly from rph@sq
  135. 0 search/4096/cwt \<!doctype exported SGML document text
  136. 0 search/4096/cwt \<!subdoc exported SGML subdocument text
  137. 0 search/4096/cwt \<!-- exported SGML document text
  138. !:strength - 10
  139. # Web browser cookie files
  140. # (Mozilla, Galeon, Netscape 4, Konqueror..)
  141. # Ulf Harnhammar <ulfh@update.uu.se>
  142. 0 search/1 #\ HTTP\ Cookie\ File Web browser cookie text
  143. 0 search/1 #\ Netscape\ HTTP\ Cookie\ File Netscape cookie text
  144. 0 search/1 #\ KDE\ Cookie\ File Konqueror cookie text
  145. # https://www.qgis.org/en/site/
  146. 0 string \<!DOCTYPE\040qgis QGIS XML document