Skip to content

Commit

Permalink
mvp-schemam-paginam (#14): template do ISO-15924 já com tags L10n (re…
Browse files Browse the repository at this point in the history
…quer preparar traduções na splanilhas, mesmo original em inglês)
  • Loading branch information
fititnt committed Jun 15, 2021
1 parent f2d7981 commit c508a59
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 65 deletions.
22 changes: 20 additions & 2 deletions _data/expandendum/schemam.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,13 @@
"/schema/iso/iso15924/eng/iso15924.json"
]
}
}
},
"__translationem": [
{
"fontem": "/schemam/XZ/ISO-15924/ISO-15924.🗣️.json",
"objectivum": "/{% _🗣️ 📝por-Latn📝 L10N_ego_codicem 📝por-Latn📝 🗣️_ %}/{% _🗣️ 📝por-Latn📝 Hapi_schemam_slug 📝por-Latn📝 🗣️_ %}/XZ/{% _🗣️ 📝por-Latn📝 ISO_15924_slug 📝por-Latn📝 🗣️_ %}/{% _🗣️ 📝por-Latn📝 ISO_15924_slug 📝por-Latn📝 🗣️_ %}.json"
}
]
},
{
"uid": "/{% _🗣️ 📝eng-Latn📝 L10N_ego_codicem 📝eng-Latn📝 🗣️_ %}/{% _🗣️ 📝eng-Latn📝 Hapi_schemam_slug 📝eng-Latn📝 🗣️_ %}/XZ/{% _🗣️ 📝eng-Latn📝 ISO_15924_slug 📝eng-Latn📝 🗣️_ %}",
Expand Down Expand Up @@ -386,7 +392,13 @@
"/schema/iso/iso15924/eng/iso15924.json"
]
}
}
},
"__translationem": [
{
"fontem": "/schemam/XZ/ISO-15924/ISO-15924.🗣️.json",
"objectivum": "/{% _🗣️ 📝eng-Latn📝 L10N_ego_codicem 📝eng-Latn📝 🗣️_ %}/{% _🗣️ 📝eng-Latn📝 Hapi_schemam_slug 📝eng-Latn📝 🗣️_ %}/XZ/{% _🗣️ 📝eng-Latn📝 ISO_15924_slug 📝eng-Latn📝 🗣️_ %}/{% _🗣️ 📝eng-Latn📝 ISO_15924_slug 📝eng-Latn📝 🗣️_ %}.json"
}
]
},
{
"uid": "/{% _🗣️ 📝spa-Latn📝 L10N_ego_codicem 📝spa-Latn📝 🗣️_ %}/{% _🗣️ 📝spa-Latn📝 Hapi_schemam_slug 📝spa-Latn📝 🗣️_ %}/XZ/{% _🗣️ 📝spa-Latn📝 ISO_15924_slug 📝spa-Latn📝 🗣️_ %}",
Expand Down Expand Up @@ -435,6 +447,12 @@
]
}
},
"__translationem": [
{
"fontem": "/schemam/XZ/ISO-15924/ISO-15924.🗣️.json",
"objectivum": "/{% _🗣️ 📝spa-Latn📝 L10N_ego_codicem 📝spa-Latn📝 🗣️_ %}/{% _🗣️ 📝spa-Latn📝 Hapi_schemam_slug 📝spa-Latn📝 🗣️_ %}/XZ/{% _🗣️ 📝spa-Latn📝 ISO_15924_slug 📝spa-Latn📝 🗣️_ %}/{% _🗣️ 📝spa-Latn📝 ISO_15924_slug 📝spa-Latn📝 🗣️_ %}.json"
}
],
"experimentum": 1
}
]
13 changes: 11 additions & 2 deletions _data/schemam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,16 @@
- /schema/iso/iso15924/eng/iso15924.json # TODO: localize

- farmulam:
commendandum: {}
commendandum:
translationem: &id_temp0012
# - fontem: "/schemam/XZ/ISO-639-3/ISO-639-3.🗣️.json"
# objectivum: "/{% _🗣️ 📝und-Zyyy📝 L10N_ego_codicem 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 Hapi_schemam_slug 📝und-Zyyy📝 🗣️_ %}/XZ/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}.json"
# - fontem: "/schemam/XZ/ISO-639-3/ISO-639-3_macrolanguages.🗣️.json"
# objectivum: "/{% _🗣️ 📝und-Zyyy📝 L10N_ego_codicem 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 Hapi_schemam_slug 📝und-Zyyy📝 🗣️_ %}/XZ/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}_macrolanguages.json"
# - fontem: "/schemam/XZ/ISO-639-3/ISO-639-3.🗣️.sql"
# objectivum: "/{% _🗣️ 📝und-Zyyy📝 L10N_ego_codicem 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 Hapi_schemam_slug 📝und-Zyyy📝 🗣️_ %}/XZ/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 ISO_639-3_slug 📝und-Zyyy📝 🗣️_ %}.sql"
- fontem: "/schemam/XZ/ISO-15924/ISO-15924.🗣️.json"
objectivum: "/{% _🗣️ 📝und-Zyyy📝 L10N_ego_codicem 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 Hapi_schemam_slug 📝und-Zyyy📝 🗣️_ %}/XZ/{% _🗣️ 📝und-Zyyy📝 ISO_15924_slug 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 ISO_15924_slug 📝und-Zyyy📝 🗣️_ %}.json"
structuram:
# TODO: localizar "schemam"
uid: "/{% _🗣️ 📝und-Zyyy📝 L10N_ego_codicem 📝und-Zyyy📝 🗣️_ %}/{% _🗣️ 📝und-Zyyy📝 Hapi_schemam_slug 📝und-Zyyy📝 🗣️_ %}/XZ/{% _🗣️ 📝und-Zyyy📝 ISO_15924_slug 📝und-Zyyy📝 🗣️_ %}"
Expand Down Expand Up @@ -144,7 +153,7 @@
schemam:
json:
- /schema/iso/iso15924/eng/iso15924.json # TODO: localize

__translationem: *id_temp0012

# TODO: _[por] Alterar este arquivo para conter tanto referencias à fonte
# que gera o JSON como as URls finais. Com isso poderíamos usar
Expand Down
50 changes: 25 additions & 25 deletions _data/tm/schemam.tm.hxl.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ ISO_639-3_optionem_Ref_Name_summarius,,1,,,ISO,639-3,optionem,Ref_Name,,summariu
ISO_639-3_optionem_Ref_Name_exemplum,,1,,,ISO,639-3,optionem,Ref_Name,,exemplum,,Latin,∅,Portuguese,∅,English,∅,Spanish,∅
ISO_639-3_optionem_Comment_summarius,,1,,,ISO,639-3,optionem,Comment,,summarius,,,∅,Comentário relacionado a uma ou mais colunas,∅,Comment relating to one or more of the columns,∅,,∅
ISO_639-3_optionem_Comment_exemplum,,1,,,ISO,639-3,optionem,Comment,,exemplum,,∅,∅,∅,∅,∅,∅,[(vacuum)],∅
ISO_15924_nomen,,1,,,ISO,15924,,,,nomen,,ISO 15924,∅,ISO 15924,∅,ISO 15924,∅,ISO 15924,∅
ISO_15924_slug,,1,,,ISO,15924,,,,slug,,ISO-15924,∅,ISO-15924,∅,ISO-15924,∅,ISO-15924,∅
ISO_15924_summarius,,1,,,ISO,15924,,,,summarius,,,∅,,∅,ISO 15924: Codes for the representation of names of scripts,∅,,∅
ISO_15924_optionem_Code_summarius,,0,,,ISO,15924,optionem,Code,,summarius,,,∅,,∅,Code,∅,,∅
ISO_15924_optionem_Code_exemplum,,0,,,ISO,15924,optionem,Code,,exemplum,,Latn,∅,Latn,∅,Latn,∅,Latn,∅
ISO_15924_optionem_numerum_summarius,,0,,,ISO,15924,optionem,numerum,,summarius,,,∅,,∅,Nº is ... (TODO),∅,,∅
ISO_15924_optionem_numerum_exemplum,,0,,,ISO,15924,optionem,numerum,,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_nomen_anglicum_summarius,,0,,,ISO,15924,optionem,nomen,anglicum,summarius,,,∅,,∅,English Name is ... (TODO),∅,,∅
ISO_15924_optionem_nomen_anglicum_exemplum,,0,,,ISO,15924,optionem,nomen,anglicum,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_nomen_francogallicum_summarius,,0,,,ISO,15924,optionem,nomen,francogallicum,summarius,,,∅,,∅,Nom français is ... (TODO),∅,,∅
ISO_15924_optionem_nomen_francogallicum_exemplum,,0,,,ISO,15924,optionem,nomen,francogallicum,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_PVA_summarius,,0,,,ISO,15924,optionem,PVA,,summarius,,,∅,,∅,PVA is ... (TODO),∅,,∅
ISO_15924_optionem_PVA_exemplum,,0,,,ISO,15924,optionem,PVA,,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_Unicode_versionem_summarius,,0,,,ISO,15924,optionem,Unicode,versionem,summarius,,,∅,,∅,Unicode Version is ... (TODO),∅,,∅
ISO_15924_optionem_Unicode_versionem_exemplum,,0,,,ISO,15924,optionem,Unicode,versionem,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_dactylum_summarius,,0,,,ISO,15924,optionem,dactylum,,summarius,,,∅,,∅,Date is ... (TODO),∅,,∅
ISO_15924_optionem_dactylum_exemplum,,0,,,ISO,15924,optionem,dactylum,,exemplum,,,∅,,∅,2004-05-01,∅,,∅
ISO_15924_nomen,Q16866,1,,,ISO,15924,,,,nomen,,ISO 15924,∅,ISO 15924,∅,ISO 15924,∅,ISO 15924,∅
ISO_15924_slug,Q16866,1,,,ISO,15924,,,,slug,,ISO-15924,∅,ISO-15924,∅,ISO-15924,∅,ISO-15924,∅
ISO_15924_summarius,Q16866,1,,,ISO,15924,,,,summarius,,,∅,ISO 15924: Códigos para a representação de nomes de sistemas de escrita,∅,ISO 15924: Codes for the representation of names of scripts,∅,,∅
ISO_15924_optionem_Code_summarius,,1,,,ISO,15924,optionem,Code,,summarius,,,∅,,∅,Code,∅,,∅
ISO_15924_optionem_Code_exemplum,,1,,,ISO,15924,optionem,Code,,exemplum,,Latn,∅,Latn,∅,Latn,∅,Latn,∅
ISO_15924_optionem_numerum_summarius,,1,,,ISO,15924,optionem,numerum,,summarius,,,∅,,∅,Nº is ... (TODO),∅,,∅
ISO_15924_optionem_numerum_exemplum,,1,,,ISO,15924,optionem,numerum,,exemplum,,,∅,160,∅,160,∅,,∅
ISO_15924_optionem_nomen_anglicum_summarius,,1,,,ISO,15924,optionem,nomen,anglicum,summarius,,,∅,,∅,English Name is ... (TODO),∅,,∅
ISO_15924_optionem_nomen_anglicum_exemplum,,1,,,ISO,15924,optionem,nomen,anglicum,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_nomen_francogallicum_summarius,,1,,,ISO,15924,optionem,nomen,francogallicum,summarius,,,∅,,∅,Nom français is ... (TODO),∅,,∅
ISO_15924_optionem_nomen_francogallicum_exemplum,,1,,,ISO,15924,optionem,nomen,francogallicum,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_PVA_summarius,,1,,,ISO,15924,optionem,PVA,,summarius,,,∅,,∅,PVA is ... (TODO),∅,,∅
ISO_15924_optionem_PVA_exemplum,,1,,,ISO,15924,optionem,PVA,,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_Unicode_versionem_summarius,,1,,,ISO,15924,optionem,Unicode,versionem,summarius,,,∅,,∅,Unicode Version is ... (TODO),∅,,∅
ISO_15924_optionem_Unicode_versionem_exemplum,,1,,,ISO,15924,optionem,Unicode,versionem,exemplum,,,∅,,∅,,∅,,∅
ISO_15924_optionem_dactylum_summarius,,1,,,ISO,15924,optionem,dactylum,,summarius,,,∅,,∅,Date is ... (TODO),∅,,∅
ISO_15924_optionem_dactylum_exemplum,,1,,,ISO,15924,optionem,dactylum,,exemplum,,,∅,,∅,2004-05-01,∅,,∅
json_schemam_nomen,,1,,,,,,json_schemam,,nomen,,JSON Schēmam,∅,Esquema de dados JSON,∅,JSON Schema,∅,,∅
graphql_schemam_nomen,,1,,,,,,graphql_schemam,,nomen,,GraphQL Schēmam,,Esquema de dados GraphQL,,GraphQL Schema,∅,,∅
SQL_abbreviationem_nomen,,1,,,,,,SQL,abbreviationem,nomen,,SQL,,SQL,,SQL,,SQL,
UN_P_nomen,,1,UN,,UN,P,,,,nomen,,UN P,,UN P,,UN P,,UN P,
UN_P_slug,,1,UN,,UN,P,,,,slug,,un-p,,un-p,,un-p,,un-p,
UN_P_summarius,,1,UN,,UN,P,,,,summarius,,,,,,,,,
UN_M49_nomen,,1,UN,,UN,M49,,,,nomen,,UN M49,,UN M49,,UN M49,,UN M49,
UN_M49_slug,,1,UN,,UN,M49,,,,slug,,un-m49,,un-m49,,un-m49,,un-m49,
UN_M49_summarius,,1,UN,,UN,M49,,,,summarius,,,,,,,,,
graphql_schemam_nomen,,1,,,,,,graphql_schemam,,nomen,,GraphQL Schēmam,,Esquema de dados GraphQL,,GraphQL Schema,∅,,∅
SQL_abbreviationem_nomen,,1,,,,,,SQL,abbreviationem,nomen,,SQL,,SQL,,SQL,,SQL,
UN_P_nomen,,1,UN,,UN,P,,,,nomen,,UN P,,UN P,,UN P,,UN P,
UN_P_slug,,1,UN,,UN,P,,,,slug,,un-p,,un-p,,un-p,,un-p,
UN_P_summarius,,1,UN,,UN,P,,,,summarius,,,∅,,∅,,∅,,∅
UN_M49_nomen,,1,UN,,UN,M49,,,,nomen,,UN M49,,UN M49,,UN M49,,UN M49,
UN_M49_slug,,1,UN,,UN,M49,,,,slug,,un-m49,,un-m49,,un-m49,,un-m49,
UN_M49_summarius,,1,UN,,UN,M49,,,,summarius,,,∅,,∅,,∅,,∅
1 change: 0 additions & 1 deletion _plugins/hapi/hic_sunt_dracones.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ def globum?(api_collectionem = nil, _schemam_collectionem = nil) # rubocop:disab

resultatum
end

end
end

Expand Down
12 changes: 0 additions & 12 deletions _plugins/jekyll_hapi_schemam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ def generate(site)
end

site.pages << SchemamPaginam.new(site, item)

# TODO: _[eng-Latn] ArchivumSimplex for schema pages that mention attachments [eng-Latn]_
end
end
end
Expand Down Expand Up @@ -147,17 +145,7 @@ def initialize(site, api_datum) # rubocop:disable Metrics/AbcSize,Metrics/Method
# super()
@site = site # the current site instance.
@base = site.source # path to the source directory.
# @dir = api_datum['dir'] # the directory the page will reside in.
# @name = api_datum['lid']
# @dir = api_datum['dir'] + '/' + api_datum['lid'] + '/'
# @dir = "#{api_datum['dir']}/#{api_datum['lid']}/"
@dir = "#{api_datum['uid']}/"
# @dir = @dir.gsub(/\/api\//, '/schemam/')
# @dir = @dir.sub '/api/' '/schemam/'
# @dir = @dir.sub('/api/', '/schemam/')
puts @dir
# raise 'error'
# @name = 'index.html'
@name = 'index.html'
# template = api_datum['jekyll-page']['template']
template = 'xschemam'
Expand Down
14 changes: 7 additions & 7 deletions _systema/programma/download-hxl-datum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
### Data pull configurations ---------------------------------------------------

# @see https://docs.google.com/spreadsheets/d/1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4/edit#gid=1181688279
Hapi_L10N="https://proxy.hxlstandard.org/data/download/L10n_hxl_csv.csv?dest=data_edit&strip-headers=on&force=on&url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4%2Fedit%23gid%3D1181688279"
# Hapi_L10N="https://proxy.hxlstandard.org/data/download/L10n_hxl_csv.csv?dest=data_edit&strip-headers=on&force=on&url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4%2Fedit%23gid%3D1181688279"
Hapi_miniman="https://proxy.hxlstandard.org/data/download/hapi-miniman_tm_hxl.csv?dest=data_edit&filter01=cut&filter-label01=Non+%23meta&cut-exclude-tags01=%23meta&cut-skip-untagged01=on&filter02=select&filter-label02=%23status%3E-1&select-query02-01=%23status%3E-1&strip-headers=on&force=on&url=https%3A%2F%2Fdocs.google.com%2Fspreadsheets%2Fd%2F1ih3ouvx_n8W5ntNcYBqoyZ2NRMdaA0LRg5F9mGriZm4%2Fedit%3Fpli%3D1%23gid%3D816634241"


Expand All @@ -56,12 +56,12 @@ ROOTDIR="$(pwd)"

# TODO: check error codes if download fails

if true ; then
echo "Hapi_L10N"
echo " Fontem: [$Hapi_L10N]"
echo " Filum: [${ROOTDIR}/_data/L10n.hxl.csv]"
wget -qO- "$Hapi_L10N" > "${ROOTDIR}/_data/L10n.hxl.csv"
fi
# if true ; then
# echo "Hapi_L10N"
# echo " Fontem: [$Hapi_L10N]"
# echo " Filum: [${ROOTDIR}/_data/L10n.hxl.csv]"
# wget -qO- "$Hapi_L10N" > "${ROOTDIR}/_data/L10n.hxl.csv"
# fi

if true ; then
echo "Hapi_miniman"
Expand Down
32 changes: 16 additions & 16 deletions schemam/XZ/ISO-15924/ISO-15924.🗣️.json
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hapi.etica.ai/schema/iso/iso15924/eng/iso15924.json",
"title": "ISO 15924",
"description": "ISO 15924: Codes for the representation of names of scripts",
"$id": "{{ site.url }}{{ page.url }}",
"title": "{% _🗣️ ISO_15924_nomen 🗣️_ %}",
"description": "{% _🗣️ ISO_15924_summarius 🗣️_ %}",
"$comment": "https://www.unicode.org/iso15924/codelists.html, https://www.unicode.org/iso15924/iso15924.txt",
"type": "object",
"properties": {
"Code": {
"description": "Code",
"description": "{% _🗣️ ISO_15924_optionem_Code_summarius 🗣️_ %}",
"type": "string",
"length": 4,
"example": "Arab"
"example": "{% _🗣️ ISO_15924_optionem_Code_exemplum 🗣️_ %}"
},
"Nº": {
"description": "",
"description": "{% _🗣️ ISO_15924_optionem_numerum_summarius 🗣️_ %}",
"type": "string",
"length": 3,
"example": "160"
},
"English Name": {
"description": "English Name",
"description": "{% _🗣️ ISO_15924_optionem_nomen_anglicum_summarius 🗣️_ %}",
"type": "string",
"example": "por",
"example": "{% _🗣️ ISO_15924_optionem_nomen_anglicum_exemplum 🗣️_ %}",
"$comment": "TODO: investigate maximum length"
},
"Nom français": {
"description": "Nom français",
"description": "{% _🗣️ ISO_15924_optionem_nomen_francogallicum_summarius 🗣️_ %}",
"type": "string",
"example": "arabe",
"example": "{% _🗣️ ISO_15924_optionem_nomen_francogallicum_exemplum 🗣️_ %}",
"$comment": "TODO: investigate maximum length"
},
"PVA": {
"description": "The Property Value Alias is defined as part of the Unicode Standard and is provided informatively in the tables here to show how entries in the ISO 15924 code table relate to script names defined in Unicode.",
"description": "{% _🗣️ ISO_15924_optionem_PVA_summarius 🗣️_ %}",
"type": "string",
"example": "Arabic",
"example": "{% _🗣️ ISO_15924_optionem_PVA_exemplum 🗣️_ %}",
"$comment": "TODO: investigate maximum length"
},
"Unicode Version": {
"description": "Unicode Version",
"example": "1.1",
"description": "{% _🗣️ ISO_15924_optionem_Unicode_versionem_summarius 🗣️_ %}",
"example": "{% _🗣️ ISO_15924_optionem_Unicode_versionem_exemplum 🗣️_ %}",
"type": "number"
},
"Date": {
"description": "Date",
"description": "{% _🗣️ ISO_15924_optionem_dactylum_summarius 🗣️_ %}",
"type": "string",
"format": "date",
"example": "2004-05-01"
"example": "{% _🗣️ ISO_15924_optionem_dactylum_exemplum 🗣️_ %}"
}
}
}

0 comments on commit c508a59

Please sign in to comment.