Braille tagrendering

This commit is contained in:
Robin van der Linde 2022-10-22 15:51:07 +02:00
parent 5e6892a1f5
commit 62a835b876
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
4 changed files with 34670 additions and 21105 deletions

View file

@ -9,7 +9,7 @@
"fr": "français",
"gl": "lingua galega",
"hu": "magyar",
"id": "Indonesia",
"id": "bahasa Indonesia",
"it": "italiano",
"ja": "日本語",
"nb_NO": "bokmål",

View file

@ -183,6 +183,8 @@
"es": "idioma filipino",
"fi": "filipino",
"fr": "Philippin",
"gl": "Lingua filipina",
"hu": "filippínó",
"id": "Bahasa Filipino",
"it": "filippino",
"ja": "フィリピン語",
@ -279,7 +281,7 @@
"fr": "indonésien",
"gl": "lingua indonesia",
"hu": "indonéz",
"id": "Indonesia",
"id": "bahasa Indonesia",
"it": "indonesiano",
"ja": "インドネシア語",
"nb_NO": "indonesisk",
@ -353,7 +355,7 @@
"fi": "kirjanorja",
"fr": "bokmål",
"gl": "bokmål",
"hu": "norvég (bokmål)",
"hu": "bokmål norvég",
"id": "Bokmål",
"it": "bokmål",
"ja": "ブークモール",
@ -372,7 +374,7 @@
"de": "Niederländisch",
"en": "Dutch",
"eo": "nederlanda lingvo",
"es": "Neerlandés",
"es": "neerlandés",
"fi": "hollanti",
"fr": "néerlandais",
"gl": "lingua neerlandesa",
@ -386,7 +388,7 @@
"pt": "neerlandês",
"pt_BR": "neerlandês",
"ru": "нидерландский язык",
"sl": "Nizozemščina",
"sl": "nizozemščina",
"sv": "nederländska",
"zh_Hans": "荷兰语",
"zh_Hant": "荷蘭語"
@ -402,7 +404,7 @@
"fr": "polonais",
"gl": "lingua polaca",
"hu": "lengyel",
"id": "Polandia",
"id": "bahasa Polski",
"it": "polacco",
"ja": "ポーランド語",
"nb_NO": "polsk",
@ -536,6 +538,7 @@
"ru": "шведский язык",
"sl": "švedščina",
"sv": "svenska",
"zh_Hans": "瑞典语",
"zh_Hant": "瑞典語"
},
"zh_Hant": {
@ -545,12 +548,15 @@
"en": "Simplified Chinese",
"eo": "simpligita ĉina skribsistemo",
"es": "chino simplificado",
"fi": "perinteinen kiina",
"fr": "chinois simplifié",
"gl": "chinés simplificado",
"hu": "egyszerűsített kínai",
"id": "aksara Han sederhana",
"it": "cinese semplificato",
"ja": "簡体字中国語",
"nb_NO": "forenklet kinesisk",
"nl": "vereenvoudigd Chinees",
"pl": "język chiński uproszczony",
"pt": "chinês simplificado",
"ru": "упрощённый китайский",

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,7 @@ function main() {
)
const mappings: MappingConfigJson[] = []
const schoolmappings: MappingConfigJson[] = []
const brailemappings: MappingConfigJson[] = []
const countryToLanguage: Record<string, string[]> = perCountry
const officialLanguagesPerCountry = Utils.TransposeMap(countryToLanguage)
@ -57,6 +58,16 @@ function main() {
"*": [code],
},
})
brailemappings.push(<MappingConfigJson>{
if: "tactile_writing:braille:" + code + "=yes",
ifnot: "tactile_writing:braille:" + code + "=",
searchTerms: {
"*": [code],
},
then,
priorityIf: prioritySearch,
})
})
const wikidataLayer = <LayerConfigJson>{
@ -94,6 +105,13 @@ function main() {
multiAnswer: true,
mappings: schoolmappings,
},
{
id: "tactile_writing-braille",
// @ts-ignore
description: "Enables to pick *multiple* 'tactile_writing:braille=<lng>' within the mappings",
multiAnswer: true,
mappings: brailemappings,
}
],
}
const dir = "./assets/layers/wikidata/"