aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libmagic/magic/Magdir/dif
diff options
context:
space:
mode:
authorvitalyisaev <vitalyisaev@ydb.tech>2023-11-30 13:26:22 +0300
committervitalyisaev <vitalyisaev@ydb.tech>2023-11-30 15:44:45 +0300
commit0a98fece5a9b54f16afeb3a94b3eb3105e9c3962 (patch)
tree291d72dbd7e9865399f668c84d11ed86fb190bbf /contrib/libs/libmagic/magic/Magdir/dif
parentcb2c8d75065e5b3c47094067cb4aa407d4813298 (diff)
downloadydb-0a98fece5a9b54f16afeb3a94b3eb3105e9c3962.tar.gz
YQ Connector:Use docker-compose in integrational tests
Diffstat (limited to 'contrib/libs/libmagic/magic/Magdir/dif')
-rw-r--r--contrib/libs/libmagic/magic/Magdir/dif33
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/libs/libmagic/magic/Magdir/dif b/contrib/libs/libmagic/magic/Magdir/dif
new file mode 100644
index 0000000000..9d7e5fd25b
--- /dev/null
+++ b/contrib/libs/libmagic/magic/Magdir/dif
@@ -0,0 +1,33 @@
+
+#------------------------------------------------------------------------------
+# $File: dif,v 1.1 2020/04/09 19:14:01 christos Exp $
+# dif: file(1) magic for DIF text files
+
+#------------------------------------------------------------------------------
+# From: Joerg Jenderek
+# URL: http://en.wikipedia.org/wiki/Data_Interchange_Format
+# http://fileformats.archiveteam.org/wiki/Data_Interchange_Format
+# Note: called by TrID "Data Interchange Format",
+# by DROID x-fmt/368 "VisiCalc Database"
+0 string TABLE
+# skip text starting with TABLE by looking for numeric version on 2nd line
+>6 search/2 0,
+# skip DROID x-fmt-41-signature-id-380.dif by looking for key word TUPLES at the beginning
+>>27 search/128 TUPLES Data Interchange Format
+# https://www.pcmatic.com/company/libraries/fileextension/detail.asp?ext=dif.html
+#!:mime application/x-dif-spreadsheet Gnumeric
+# https://github.com/LibreOffice/online/blob/master/discovery.xml
+#!:mime application/x-dif-document LibreOffice
+# https://www.wikidata.org/wiki/Wikidata:WikiProject_Informatics/File_formats/Lists/File_formats
+!:mime application/x-dif
+# https://extension.nirsoft.net/dif
+#!:mime application/vnd.ms-excel
+#!:mime text/plain
+!:ext dif
+# look for double quote 0x22 on 3rd line
+>>>10 search/3 "
+# skip if next character also double quote
+>>>>&0 ubyte !0x22 \b, generator or table name
+# comment like EXCEL, pwm enclosed in double quotes
+>>>>>&-2 string x %s
+