summaryrefslogtreecommitdiffstats
path: root/magic/Magdir/sgml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:00:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:00:10 +0000
commit1ebbd027274333758fc3517685d81847601db676 (patch)
tree5259d053d3e3066e0745150805fa4b20184eef98 /magic/Magdir/sgml
parentInitial commit. (diff)
downloadfile-1ebbd027274333758fc3517685d81847601db676.tar.xz
file-1ebbd027274333758fc3517685d81847601db676.zip
Adding upstream version 1:5.45.upstream/1%5.45upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--magic/Magdir/sgml161
1 files changed, 161 insertions, 0 deletions
diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml
new file mode 100644
index 0000000..fb698a5
--- /dev/null
+++ b/magic/Magdir/sgml
@@ -0,0 +1,161 @@
+
+#------------------------------------------------------------------------------
+# $File: sgml,v 1.48 2023/01/18 16:10:21 christos Exp $
+# Type: SVG Vectorial Graphics
+# From: Noel Torres <tecnico@ejerciciosresueltos.com>
+0 string \<?xml\ version=
+>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
+>>19 search/4096 \<svg SVG Scalable Vector Graphics image
+!:mime image/svg+xml
+!:ext svg
+>>19 search/4096 \<gnc-v2 GnuCash file
+!:mime application/x-gnucash
+0 string \<svg SVG Scalable Vector Graphics image
+!:mime image/svg+xml
+!:ext svg
+
+# Sitemap file
+0 string/t \<?xml\ version=
+>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
+>>19 search/4096 \<urlset XML Sitemap document text
+!:mime application/xml-sitemap
+
+# OpenStreetMap XML (.osm)
+# https://wiki.openstreetmap.org/wiki/OSM_XML
+# From: Markus Heidelberg <markus.heidelberg@web.de>
+0 string \<?xml\ version=
+>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
+>>19 search/4096 \<osm OpenStreetMap XML data
+
+# xhtml
+0 string/t \<?xml\ version="
+>19 search/4096/cWbt \<!doctype\ html XHTML document text
+>>15 string >\0 (version %.3s)
+!:mime text/html
+0 string/t \<?xml\ version='
+>19 search/4096/cWbt \<!doctype\ html XHTML document text
+>>15 string >\0 (version %.3s)
+!:mime text/html
+0 string/t \<?xml\ version="
+>19 search/4096/cWbt \<html broken XHTML document text
+>>15 string >\0 (version %.3s)
+!:mime text/html
+
+#------------------------------------------------------------------------------
+# sgml: file(1) magic for Standard Generalized Markup Language
+# HyperText Markup Language (HTML) is an SGML document type,
+# from Daniel Quinlan (quinlan@yggdrasil.com)
+# adapted to string extensions by Anthon van der Neut <anthon@mnt.org)
+0 search/4096/cWt \<!doctype\ html HTML document text
+!:mime text/html
+!:strength + 5
+
+# avoid misdetection as JavaScript
+0 string/cWt \<!doctype\ html HTML document text
+!:mime text/html
+0 string/ct \<html> HTML document text
+!:mime text/html
+0 string/ct \<!--
+>&0 search/4096/cWt \<!doctype\ html HTML document text
+!:mime text/html
+>&0 search/4096/ct \<html> HTML document text
+!:mime text/html
+
+# SVG document
+# https://www.w3.org/TR/SVG/single-page.html
+0 search/4096/cWbt \<!doctype\ svg SVG XML document
+!:mime image/svg+xml
+!:strength + 15
+
+0 search/4096/cwt \<head\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<head\ HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cwt \<title\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<title\ HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cwt \<html\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<html\ HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cwt \<script\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<script\ HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cwt \<style\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<style\ HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cwt \<table\> HTML document text
+!:mime text/html
+!:strength + 15
+0 search/4096/cWt \<table\ HTML document text
+!:mime text/html
+!:strength + 15
+
+0 search/4096/cwt \<a\ href= HTML document text
+!:mime text/html
+!:strength + 15
+
+# Extensible markup language (XML), a subset of SGML
+# from Marc Prud'hommeaux (marc@apocalypse.org)
+0 search/1/cwt \<?xml XML document text
+!:mime text/xml
+!:strength + 15
+0 string/t \<?xml\ version\ " XML
+!:mime text/xml
+!:strength + 15
+0 string/t \<?xml\ version=" XML
+!:mime text/xml
+!:strength + 15
+>15 string/t >\0 %.3s document text
+>>23 search/1 \<xsl:stylesheet (XSL stylesheet)
+>>24 search/1 \<xsl:stylesheet (XSL stylesheet)
+0 string/t \<?xml\ version=' XML
+!:mime text/xml
+!:strength + 15
+>15 string/t >\0 %.3s document text
+>>23 search/1 \<xsl:stylesheet (XSL stylesheet)
+>>24 search/1 \<xsl:stylesheet (XSL stylesheet)
+0 search/1/wt \<?XML broken XML document text
+!:mime text/xml
+!:strength - 10
+
+
+# SGML, mostly from rph@sq
+0 search/4096/cwt \<!doctype exported SGML document text
+0 search/4096/cwt \<!subdoc exported SGML subdocument text
+0 search/4096/cwt \<!-- exported SGML document text
+!:strength - 10
+
+# Web browser cookie files
+# (Mozilla, Galeon, Netscape 4, Konqueror..)
+# Ulf Harnhammar <ulfh@update.uu.se>
+0 search/1 #\ HTTP\ Cookie\ File Web browser cookie text
+0 search/1 #\ Netscape\ HTTP\ Cookie\ File Netscape cookie text
+0 search/1 #\ KDE\ Cookie\ File Konqueror cookie text
+
+# XML-based format representing braille pages in a digital format.
+#
+# Specification:
+# http://files.pef-format.org/specifications/pef-2008-1/pef-specification.html
+#
+# Simon Aittamaa <simon.aittamaa@gmail.com>
+0 string \<?xml\ version=
+>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
+>>19 search/4096 \<pef Portable Embosser Format
+!:mime application/x-pef+xml
+
+# https://www.qgis.org/en/site/
+0 string \<!DOCTYPE\040qgis QGIS XML document