Add more diacritics

This commit is contained in:
Idrees Hassan committed 2022-12-26 19:54:46 -05:00
1 parent 3a8b70e031
commit 245227a808
4 files changed
+28 -9

No files matched your search

BIN
View File
Binary file not shown.
+14 -6
View File
@@ -1837,7 +1837,7 @@
"name": "latin_capital_letter_a_with_ring_above",
"codepoint": 197,
"reference": 65,
"diacritic": "ring",
"diacritic": "ring_above",
"diacriticSpace": 0
},
{
@@ -2140,7 +2140,7 @@
"name": "latin_small_letter_a_with_ring_above",
"codepoint": 229,
"reference": 97,
"diacritic": "ring",
"diacritic": "ring_above",
"diacriticSpace": 1
},
{
@@ -2472,7 +2472,7 @@
"name": "latin_capital_letter_o_with_double_acute",
"codepoint": 336,
"reference": 79,
"diacritic": "doubleAcute",
"diacritic": "double_acute",
"diacriticSpace": 1
},
{
@@ -2480,7 +2480,7 @@
"name": "latin_small_letter_o_with_double_acute",
"codepoint": 337,
"reference": 111,
"diacritic": "doubleAcute",
"diacritic": "double_acute",
"diacriticSpace": 1
},
{
@@ -2499,12 +2499,20 @@
"diacritic": "circumflex",
"diacriticSpace": 1
},
{
"character": "Ů",
"name": "latin_capital_letter_u_with_ring_above",
"codepoint": 366,
"reference": 85,
"diacritic": "ring_above",
"diacriticSpace": 0
},
{
"character": "Ű",
"name": "latin_capital_letter_u_with_double_acute",
"codepoint": 368,
"reference": 85,
"diacritic": "doubleAcute",
"diacritic": "double_acute",
"diacriticSpace": 1
},
{
@@ -2512,7 +2520,7 @@
"name": "latin_small_letter_u_with_double_acute",
"codepoint": 369,
"reference": 117,
"diacritic": "doubleAcute",
"diacritic": "double_acute",
"diacriticSpace": 1
},
{
+13 -2
View File
@@ -30,14 +30,14 @@
[0, 1, 0, 1, 0]
]
},
"ring": {
"ring_above": {
"pixels": [
[0, 0, 1, 0, 0],
[0, 1, 0, 1, 0],
[0, 0, 1, 0, 0]
]
},
"doubleAcute": {
"double_acute": {
"pixels": [
[0, 1, 0, 0, 1],
[1, 0, 0, 1, 0]
@@ -48,5 +48,16 @@
[0, 1, 0, 0, 1],
[0, 0, 1, 1, 0]
]
},
"macron": {
"pixels": [
[0, 1, 1, 1, 0]
]
},
"caron": {
"pixels": [
[0, 1, 0, 1, 0],
[0, 0, 1, 0, 0]
]
}
}
+1 -1
View File
@@ -27,7 +27,7 @@ def generateDiacritics(characters, diacritics):
continue
# Get the diacritic name
splitOnWith = line.split("WITH")
diacritic = splitOnWith[1].split(';')[0].strip().lower()
diacritic = splitOnWith[1].split(';')[0].strip().lower().replace(" ", "_")
name = splitOnWith[0].split(';')[1].strip().lower().replace(" ", "_")
newName = name + "_with_" + diacritic
if not diacritic in diacriticsByCodepoint or not name in charactersByName or newName in charactersByName: