Skip to content

Commit

Permalink
WIP(build): Add xCard XSD and VSCode settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-s-betke committed Mar 22, 2021
1 parent 7359e2c commit bcbb89d
Show file tree
Hide file tree
Showing 8 changed files with 1,099 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"kisstkondoros.vscode-gutter-preview",
"deltaxml.xslt-xpath",
"eg2.vscode-npm-script",
"cstrachan.vcard",
]
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions .vscode/xml-schemas.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="urn:ietf:params:xml:ns:vcard-4.0" uri="../tools/xCard/xCard.xsd" />
</catalog>
3 changes: 3 additions & 0 deletions DocTemplates.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
106 changes: 106 additions & 0 deletions src/QRCodes/xCards/nov-department.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<vcards xmlns="urn:ietf:params:xml:ns:vcard-4.0">
<vcard>
<kind><text>org</text></kind>

<fn><text>Simon Perreault</text></fn>
<n>
<surname>Perreault</surname>
<given>Simon</given>
<suffix>ing. jr</suffix>
<suffix>M.Sc.</suffix>
</n>
<bday><date>--0203</date></bday>
<anniversary><date-time>20090808T1430-0500</date-time></anniversary>
<gender><sex>M</sex></gender>
<adr>
<parameters>
<type>
<text>work</text>
</type>
<label>
<text>Simon Perreault 2875 boul. Laurier, suite D2-630 Quebec, QC, Canada G1V 2M2</text>
</label>
</parameters>
<street>2875 boul. Laurier, suite D2-630</street>
<locality>Quebec</locality>
<region>QC</region>
<code>G1V 2M2</code>
<country>Canada</country>
</adr>
<tel>
<parameters>
<type>
<text>work</text>
<text>voice</text>
</type>
</parameters>
<uri>tel:+1-418-656-9254;ext=102</uri>
</tel>
<tel>
<parameters>
<type>
<text>work</text>
<text>text</text>
<text>voice</text>
<text>cell</text>
<text>video</text>
</type>
</parameters>
<uri>tel:+1-418-262-6501</uri>
</tel>
<email>
<parameters>
<type>
<text>work</text>
</type>
</parameters>
<text>simon.perreault@viagenie.ca</text>
</email>
<lang>
<parameters>
<pref><integer>1</integer></pref>
</parameters>
<language-tag>fr</language-tag>
</lang>
<lang>
<parameters>
<pref><integer>2</integer></pref>
</parameters>
<language-tag>en</language-tag>
</lang>
<tz><text>America/Montreal</text></tz>
<geo>
<parameters>
<type>
<text>work</text>
</type>
</parameters>
<uri>geo:46.766336,-71.28955</uri>
</geo>
<org>
<parameters>
<type>
<text>work</text>
</type>
</parameters>
<text>Viagenie</text>
</org>
<url>
<parameters>
<type>
<text>home</text>
</type>
</parameters>
<uri>http://nomis80.org</uri>
</url>
<key>
<parameters>
<type>
<text>work</text>
</type>
</parameters>
<uri>http://www.viagenie.ca/simon.perreault/simon.asc</uri>
</key>
</vcard>
</vcards>
Loading

0 comments on commit bcbb89d

Please sign in to comment.