sgml 4.8 KB

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