Skip to content

Commit

Permalink
mvp-schemam-paginam (#14): schemam.formulam.structuram, rascunho
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Jun 14, 2021
1 parent 4dffb89 commit 03565fa
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 17 deletions.
54 changes: 49 additions & 5 deletions _data/expandendum/schemam.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"typum": "schemam",
"gid": "XZ",
"lid": "ISO-639-3",
"lid_l10n": "{% _🗣️ ISO_639-3_slug 🗣️_ %}",
"namen": "{% _🗣️ ISO_639-3_nomen 🗣️_ %}",
"summarius": "{% _🗣️ ISO_639-3_summarius 🗣️_ %}",
"situs_interretialis": {
Expand Down Expand Up @@ -41,17 +40,62 @@
}
}
},
{
"farmulam": {
"structuram": {
"xdefallo": "/mul-Zyyy/schemam/XZ/ISO-639-3",
"xdefallo_est": 0,
"linguam": "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}",
"typum": "schemam",
"gid": "XZ",
"lid": "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}",
"namen": "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_nomen 📝und-Zyyy📝 🗣️_ %}",
"summarius": "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_summarius 📝und-Zyyy📝 🗣️_ %}",
"situs_interretialis": {
"referens_officinale": [
"http://iso639-3.sil.org/"
],
"vicipaedia": [
"https://en.wikipedia.org/wiki/ISO_639-3"
]
},
"wikidatum": [
{
"codicem": "Q845956"
}
],
"archivum": {
"officinale": [
"https://iso639-3.sil.org/code_tables/download_tables",
"https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab"
],
"schemam": {
"graphql": [
"/schema/iso/iso639-3/eng/iso639-3.graphql"
],
"json": [
"/schema/iso/iso639-3/eng/iso639-3.json",
"/schema/iso/iso639-3/eng/iso639-3_macrolanguages.json"
],
"sql": [
"/schema/iso/iso639-3/eng/iso639-3.sql"
]
}
}
}
}
},
{
"xdefallo": "/mul-Zyyy/schemam/XZ/ISO-15924",
"xdefallo_est": 1,
"linguam": "mul-Zyyy",
"typum": "schemam",
"gid": "XZ",
"lid": "ISO-15924",
"lid_l10n": "{% _🗣️ ISO_15924_slug 🗣️_ %}",
"namen": "{% _🗣️ ISO_15924_nomen 🗣️_ %}",
"namen_l10n": "{% _🗣️ ISO_15924_nomen 🗣️_ %}",
"summarius": "{% _🗣️ ISO_15924_summarius 🗣️_ %}",
"lid_l10n": "{% _🗣️ 📝und-Zyyy📝 ISO_15924_slug 📝und-Zyyy📝 🗣️_ %}",
"namen": "{% _🗣️ 📝und-Zyyy📝 ISO_15924_nomen 📝und-Zyyy📝 🗣️_ %}",
"namen_l10n": "{% _🗣️ 📝und-Zyyy📝 ISO_15924_nomen 📝und-Zyyy📝 🗣️_ %}",
"summarius": "{% _🗣️ 📝und-Zyyy📝 ISO_15924_summarius 📝und-Zyyy📝 🗣️_ %}",
"summarius_l10n": "{% _🗣️ ISO_15924_summarius 🗣️_ %}",
"situs_interretialis": {
"referens_officinale": [
Expand Down
1 change: 1 addition & 0 deletions _data/l10n/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
# _data/mappam-situm.yml => _data/l10n/mappam-situm.l10n.json
# _data/referens.yml => _data/l10n/referens.l10n.json
# _data/schema.yml => _data/l10n/schema.l10n.json
# _data/schemam.yml => _data/expandendum/schemam.json => _data/l10n/schemam.l10n.json

*.l10n.json
21 changes: 15 additions & 6 deletions _data/referens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ schema_gid:
- "XZ"

schemam:
linguam:
- por-Latn
- eng-Latn
linguam_opus_in_progressu:
- arb-Arab
- spa-Latn
defallo:
linguam:
- por-Latn
- eng-Latn
linguam_opus_in_progressu:
- arb-Arab
- spa-Latn

# @see _plugins/hapi/drops/globum_drop.rb
gid:
Expand Down Expand Up @@ -165,6 +166,7 @@ linguam:
- "+i_spa+is_latn"
- "+i_spa"
- "+i_es"

## Noticia:
## _[por] Em geral, vamos usar Português (genérico) e evitar usar pt_BR
## ou pt_PT. Isso faz sentido em outras línguas onde a diferença é
Expand Down Expand Up @@ -198,6 +200,13 @@ linguam:
# - "+i_por"
# - "+i_pt"

# und-Zyyy undetermined linguam-> undetermined scriptum
und-Zyyy: &id_linguam_und-Zyyy
BCP47: ''
hxlattrs: []
hxl:
attributum: []


# _[por] Forma preconceituosa de assumir script do idioma. Note que vários
# idiomas podem ser escritos em mais de um alfabeto (e isso ocorre
Expand Down
45 changes: 40 additions & 5 deletions _data/schemam.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# _data/schemam.yml

# GitHub seems to restrict 10GB; Biggest Git Is windows, 270GB
# @see https://www.quora.com/What-is-the-practical-maximum-size-of-a-Git-repository-full-of-text-based-data
# @see https://vfsforgit.org/

- xdefallo: /mul-Zyyy/schemam/XZ/ISO-639-3
xdefallo_est: 1
linguam: mul-Zyyy
typum: schemam
gid: XZ
lid: ISO-639-3 # ISO_639-3_slug
lid_l10n: "{% _🗣️ ISO_639-3_slug 🗣️_ %}"
# lid_l10n: "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}"
namen: "{% _🗣️ ISO_639-3_nomen 🗣️_ %}"
summarius: "{% _🗣️ ISO_639-3_summarius 🗣️_ %}"
situs_interretialis:
Expand All @@ -33,16 +37,47 @@
# - linguam: eng-Latn
# - linguam: por-Latn

- farmulam: &id_mul-Zyyy_schemam_XZ_ISO-639-3
structuram:
xdefallo: /mul-Zyyy/schemam/XZ/ISO-639-3
xdefallo_est: 0
linguam: "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}" # Exemplum: por-Latn
typum: schemam
gid: XZ
lid: "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}" # # Exemplum: ISO-639-3
namen: "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_nomen 📝und-Zyyy📝 🗣️_ %}"
summarius: "{% _🗣️ 📝und-Zyyy📝 ISO_639-3_summarius 📝und-Zyyy📝 🗣️_ %}"
situs_interretialis:
referens_officinale:
- http://iso639-3.sil.org/
vicipaedia:
- https://en.wikipedia.org/wiki/ISO_639-3
wikidatum:
- codicem: Q845956
archivum:
officinale:
- https://iso639-3.sil.org/code_tables/download_tables
- https://iso639-3.sil.org/sites/iso639-3/files/downloads/iso-639-3.tab
# referens_alternativum_nomen
schemam:
graphql:
- /schema/iso/iso639-3/eng/iso639-3.graphql # TODO: localize
json:
- /schema/iso/iso639-3/eng/iso639-3.json # TODO: localize
- /schema/iso/iso639-3/eng/iso639-3_macrolanguages.json # TODO: localize
sql:
- /schema/iso/iso639-3/eng/iso639-3.sql # TODO: localize

- xdefallo: /mul-Zyyy/schemam/XZ/ISO-15924
xdefallo_est: 1
linguam: mul-Zyyy
typum: schemam
gid: XZ
lid: ISO-15924 # ISO_15924_slug
lid_l10n: "{% _🗣️ ISO_15924_slug 🗣️_ %}"
namen: "{% _🗣️ ISO_15924_nomen 🗣️_ %}"
namen_l10n: "{% _🗣️ ISO_15924_nomen 🗣️_ %}"
summarius: "{% _🗣️ ISO_15924_summarius 🗣️_ %}"
lid_l10n: "{% _🗣️ 📝und-Zyyy📝 ISO_15924_slug 📝und-Zyyy📝 🗣️_ %}"
namen: "{% _🗣️ 📝und-Zyyy📝 ISO_15924_nomen 📝und-Zyyy📝 🗣️_ %}"
namen_l10n: "{% _🗣️ 📝und-Zyyy📝 ISO_15924_nomen 📝und-Zyyy📝 🗣️_ %}"
summarius: "{% _🗣️ 📝und-Zyyy📝 ISO_15924_summarius 📝und-Zyyy📝 🗣️_ %}"
summarius_l10n: "{% _🗣️ ISO_15924_summarius 🗣️_ %}"
situs_interretialis:
referens_officinale:
Expand Down
12 changes: 12 additions & 0 deletions _plugins/jekyll_hapi_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@

#### /data/ __________________________________________________________________

# if File.file?(File.join(site.dest, '/data/api.l10n.json')) && \
# (!File.file?(File.join(site.source, '/_data/l10n/api.l10n.json')) || !FileUtils.compare_file(
# File.join(site.dest, '/data/api.l10n.json'),
# File.join(site.source, '/_data/l10n/api.l10n.json')
# ))
# puts 'jekyll_hapi_hooks: cp _site/data/api.l10n.json _data/api.l10n.json'
# FileUtils.cp(
# File.join(site.dest, '/data/api.l10n.json'),
# File.join(site.source, '/_data/l10n/api.l10n.json')
# )
# end

if File.file?(File.join(site.dest, '/data/api.l10n.json')) && \
(!File.file?(File.join(site.source, '/_data/l10n/api.l10n.json')) || !FileUtils.compare_file(
File.join(site.dest, '/data/api.l10n.json'),
Expand Down
2 changes: 1 addition & 1 deletion documentum/data/schemam.l10n.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ iso6391: pt
iso6393: por
iso15924: Latn
---
{{- site.data['schemam'] | bellum_json | liquify -}}
{{- site.data['expandendum']['schemam'] | bellum_json | liquify -}}

0 comments on commit 03565fa

Please sign in to comment.