From bcbb89d6bbc4cfbee665609bbaf4aee12fb3b370 Mon Sep 17 00:00:00 2001 From: "Sergey S. Betke" Date: Mon, 22 Mar 2021 22:47:36 +0300 Subject: [PATCH] WIP(build): Add xCard XSD and VSCode settings --- .editorconfig | 2 +- .gitattributes | 1 + .vscode/extensions.json | 1 + .vscode/settings.json | 10 + .vscode/xml-schemas.xml | 4 + DocTemplates.code-workspace | 3 + src/QRCodes/xCards/nov-department.xml | 106 +++ tools/xCard/xCard.xsd | 973 ++++++++++++++++++++++++++ 8 files changed, 1099 insertions(+), 1 deletion(-) create mode 100644 .vscode/xml-schemas.xml create mode 100644 src/QRCodes/xCards/nov-department.xml create mode 100644 tools/xCard/xCard.xsd diff --git a/.editorconfig b/.editorconfig index c9704bb3..6d3c46c3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -45,7 +45,7 @@ charset = utf-8 indent_style = tab indent_size = 2 -[*.{xml,xsl,xslt,xba,xdl,xlb,xlc}] +[*.{xml,xsl,xslt,xsd,xba,xdl,xlb,xlc}] indent_style = tab indent_size = 4 end_of_line = lf diff --git a/.gitattributes b/.gitattributes index 8c37437f..99cbf3e1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,7 @@ *.ttf binary *.xml text merge=text diff=text eol=lf +*.xsd text merge=text diff=text eol=lf *.xsl text merge=text diff=text eol=lf *.md text merge=text diff=text eol=crlf diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 2271b3b4..0bbdabfa 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -23,5 +23,6 @@ "kisstkondoros.vscode-gutter-preview", "deltaxml.xslt-xpath", "eg2.vscode-npm-script", + "cstrachan.vcard", ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 00452c28..813e50a7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,6 +14,16 @@ "files.trimTrailingWhitespace": false, "files.insertFinalNewline": false, }, + "xmlComplete.schemaMapping": [ + { + "xmlns": "urn:ietf:params:xml:ns:vcard-4.0", + "xsdUri": "tools/xCard/xCard.xsd", + "strict": true + } + ], + "xml.catalogs": [ + ".vscode/xml-schemas.xml" + ], "[xslt]": { "editor.defaultFormatter": "deltaxml.xslt-xpath", "editor.formatOnSave": false, diff --git a/.vscode/xml-schemas.xml b/.vscode/xml-schemas.xml new file mode 100644 index 00000000..f0daca17 --- /dev/null +++ b/.vscode/xml-schemas.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/DocTemplates.code-workspace b/DocTemplates.code-workspace index 3da4e50e..368c9bb1 100644 --- a/DocTemplates.code-workspace +++ b/DocTemplates.code-workspace @@ -60,6 +60,9 @@ "path": "tools/xslt/optimizer/OOOptimizer.xslt" }, ], + "xml.catalogs": [ + ".vscode/xml-schemas.xml" + ], }, "extensions": { // See http://go.microsoft.com/fwlink/?LinkId=827846 diff --git a/src/QRCodes/xCards/nov-department.xml b/src/QRCodes/xCards/nov-department.xml new file mode 100644 index 00000000..b9f6add5 --- /dev/null +++ b/src/QRCodes/xCards/nov-department.xml @@ -0,0 +1,106 @@ + + + + org + + Simon Perreault + + Perreault + Simon + ing. jr + M.Sc. + + --0203 + 20090808T1430-0500 + M + + + + work + + + + 2875 boul. Laurier, suite D2-630 + Quebec + QC + G1V 2M2 + Canada + + + + + work + voice + + + tel:+1-418-656-9254;ext=102 + + + + + work + text + voice + cell + video + + + tel:+1-418-262-6501 + + + + + work + + + simon.perreault@viagenie.ca + + + + 1 + + fr + + + + 2 + + en + + America/Montreal + + + + work + + + geo:46.766336,-71.28955 + + + + + work + + + Viagenie + + + + + home + + + http://nomis80.org + + + + + work + + + http://www.viagenie.ca/simon.perreault/simon.asc + + + \ No newline at end of file diff --git a/tools/xCard/xCard.xsd b/tools/xCard/xCard.xsd new file mode 100644 index 00000000..90f5095f --- /dev/null +++ b/tools/xCard/xCard.xsd @@ -0,0 +1,973 @@ + + + + + + xCard schema (http://tools.ietf.org/html/rfc6351). + + + xCard схема (см. http://tools.ietf.org/html/rfc6351, http://tools.ietf.org/html/rfc6350). + Пока требуется конкретный порядок элементов в vcard, что не обязательно. + И не предусмотрены расширения. + + + + + + + Identifier registered with IANA. + (https://tools.ietf.org/html/rfc6350#section-3.3) + + + + + + + + + + + Names that begin with "x-" or "X-" are reserved for experimental use, not intended for released + products, or for use in bilateral agreements. + (https://tools.ietf.org/html/rfc6350#section-3.3). + + + + + + + + + + + + + + + + + + + + + + + + + The "text" value type should be used to identify values that contain human-readable text. + As for the language, it is controlled by the LANGUAGE property parameter. + (https://tools.ietf.org/html/rfc6350#section-4.1). + + + + + + + + + + + + + + + The "text" values type should be used to identify values that contain human-readable text. + (https://tools.ietf.org/html/rfc6350#section-4.1). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file