xref: /openbsd/usr.bin/file/magdir/sgml (revision d9a51c35)
1#	$OpenBSD: sgml,v 1.6 2022/12/26 19:16:01 jmc Exp $
2
3#------------------------------------------------------------------------------
4# Type:	SVG Vectorial Graphics
5# From:	Noel Torres <tecnico@ejerciciosresueltos.com>
60	string		\<?xml\ version="
7>15	string		>\0
8>>23	search/400	\<svg			SVG Scalable Vector Graphics image
9!:mime	image/svg+xml
10>>23	search/400	\<gnc-v2		GnuCash file
11!:mime	application/x-gnucash
12
13#------------------------------------------------------------------------------
14# sgml:  file(1) magic for Standard Generalized Markup Language
15# HyperText Markup Language (HTML) is an SGML document type,
16# from Daniel Quinlan (quinlan@yggdrasil.com)
17# adapted to string extensions by Anthon van der Neut <anthon@mnt.org)
180	search/1/cB	\<!DOCTYPE\ html	HTML document text
19!:mime	text/html
200	search/1/cb	\<head			HTML document text
21!:mime	text/html
220	search/1/cb	\<title			HTML document text
23!:mime	text/html
240	search/1/cb	\<html			HTML document text
25!:mime	text/html
26
27# Extensible markup language (XML), a subset of SGML
28# from Marc Prud'hommeaux (marc@apocalypse.org)
290	search/1/cb	\<?xml			XML document text
300	string		\<?xml\ version\ "	XML
310	string		\<?xml\ version="	XML
320	string		\<?xml\ version='	XML
33>15	search/1	>\0			%.3s document text
34>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
35>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
360	search/1/b	\<?xml			XML document text
370	search/1/b	\<?XML			broken XML document text
38
39
40# SGML, mostly from rph@sq
410	search/1/cb	\<!doctype		exported SGML document text
420	search/1/cb	\<!subdoc		exported SGML subdocument text
430	search/1/cb	\<!--			exported SGML document text
44
45# Web browser cookie files
46# (Mozilla, Galeon, Netscape 4, Konqueror..)
47# Ulf Harnhammar <ulfh@update.uu.se>
480	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
490	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
500	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
51