Skip to content

Commit

Permalink
compose/accent_*.json: improvements (more accents) (#770)
Browse files Browse the repository at this point in the history
compose/accent_*.json: improve/complete implementation
compose/shift.json: uppercase for superscript letters & characters without preapplied uppercase versions
  • Loading branch information
quantenzitrone authored Oct 5, 2024
1 parent 6e2494c commit 6fae23a
Show file tree
Hide file tree
Showing 19 changed files with 601 additions and 234 deletions.
37 changes: 36 additions & 1 deletion srcs/compose/accent_aigu.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,52 @@
{
// latin
"a": "á",
"c": "ć",
"e": "é",
"g": "ǵ",
"i": "í",
"k": "",
"l": "ĺ",
"ń": "ń",
"m": "ḿ",
"n": "ń",
"o": "ó",
"p": "",
"r": "ŕ",
"s": "ś",
"u": "ú",
"w": "",
"y": "ý",
"z": "ź",
// extended latin (multiple diacritics)
"â": "",
"ă": "",
"å": "ǻ",
"æ": "ǽ",
"ç": "",
"ê": "ế",
"ē": "",
"ï": "",
"ô": "",
"ơ": "",
"õ": "",
"ō": "",
"ø": "ǿ",
"ṡ": "",
"ü": "ǘ",
"ư": "",
"ũ": "",
// greek
"α": "ά",
"ε": "έ",
"η": "ή",
"ι": "ί",
"ο": "ό",
"υ": "ύ",
// cyrillic
"к": "ќ",
"г": "ѓ",
// combining character
"ą": "ą\u0301",
"j": "j\u0301",
"у": "у\u0301",
"е": "е\u0301",
Expand Down
14 changes: 13 additions & 1 deletion srcs/compose/accent_bar.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
// latin
"2": "ƻ",
"b": "ƀ",
"c": "",
"d": "đ",
"f": "",
"g": "ǥ",
"h": "ħ",
"i": "ɨ",
"j": "ɉ",
"k": "",
Expand All @@ -14,5 +18,13 @@
"t": "ŧ",
"u": "ʉ",
"y": "ɏ",
"z": "ƶ"
"z": "ƶ",
// extended latin
"ȷ": "ɟ",
// cyrillic
"о": "ө",
"ӧ": "ӫ",
"ү": "ұ",
"ь": "ҍ",
"х": "ӿ"
}
19 changes: 18 additions & 1 deletion srcs/compose/accent_caron.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
// latin
"a": "ǎ",
"c": "č",
"d": "ď",
"e": "ě",
"g": "ǧ",
"h": "ȟ",
"i": "ǐ",
"j": "ǰ", // no uppercase
"k": "ǩ",
"l": "ľ",
"n": "ň",
"o": "ǒ",
Expand All @@ -12,5 +17,17 @@
"t": "ť",
"u": "ǔ",
"z": "ž",
"ü": "ǚ"
// extended latin
"ṡ": "",
"ü": "ǚ",
"ʒ": "ǯ",
// combining character
"в": "в\u030C",
"г": "г\u030C",
"ғ": "ғ\u030C",
"д": "д\u030C",
"з": "з\u030C",
"р": "р\u030C",
"т": "т\u030C",
"х": "х\u030C"
}
6 changes: 5 additions & 1 deletion srcs/compose/accent_cedille.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
// latin
"c": "ç",
"d": "",
"e": "ȩ",
Expand All @@ -9,5 +10,8 @@
"n": "ņ",
"r": "ŗ",
"s": "ş",
"t": "ţ"
"t": "ţ",
// extended latin
"ć": "",
"ĕ": ""
}
23 changes: 23 additions & 0 deletions srcs/compose/accent_circonflexe.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"+": "",
"≈": "",
// latin
"a": "â",
"c": "ĉ",
"e": "ê",
Expand All @@ -9,7 +12,27 @@
"o": "ô",
"ŝ": "ŝ",
"u": "û",
"w": "ŵ",
"x": "",
"y": "ŷ",
"z": "",
// extended latin
"á": "",
"à": "",
"ã": "",
"ạ": "",
"ả": "",
"é": "ế",
"è": "",
"ẽ": "",
"ẹ": "",
"ẻ": "",
"ó": "",
"ò": "",
"ơ": "",
"õ": "",
"ọ": "",
// combining characters
"а": "а\u0302",
"е": "е\u0302",
"и": "и\u0302",
Expand Down
27 changes: 26 additions & 1 deletion srcs/compose/accent_dot_above.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,30 @@
"w": "",
"x": "",
"y": "",
"z": "ż"
"z": "ż",
// remove dot since i and j already have one
"i": "ı",
"j": "ȷ",
// extended latin
"ā": "ǡ",
"ō": "ȱ",
"ś": "",
"ṣ": "",
"š": "",
"ſ": "",
// combining character
"k": "k\u0307",
"l": "l\u0307",
"q": "q\u0307",
"u": "u\u0307",
"v": "v\u0307",
// math
"∈": "",
"⨯": "",
"∧": "",
"∨": "",
"≡": "",
"~": "",
"⊆": "",
"⊇": ""
}
30 changes: 25 additions & 5 deletions srcs/compose/accent_dot_below.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
{
// latin
"a": "",
"ă": "",
"â": "",
"b": "",
"d": "",
"e": "",
"ê": "",
"h": "",
"i": "",
"k": "",
"l": "",
"m": "",
"n": "",
"o": "",
"r": "",
"s": "",
"t": "",
"u": "",
"v": "ṿ",
"w": "",
"y": "",
"z": "",
// extended latin
"ă": "",
"â": "",
"ê": "",
"ô": "",
"ơ": "",
"u": "",
"": "",
"ư": "",
"y": ""
// math
"-": "",
"+": "",
"=": ""
}
6 changes: 5 additions & 1 deletion srcs/compose/accent_double_aigu.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
" ": "˝",
// latin
"o": "ő",
"u": "ű",
" ": "˝",
// cyrillic
"у": "ӳ",
// combining character
"a": "a\u030b",
"e": "e\u030b",
"i": "i\u030b",
Expand Down
32 changes: 31 additions & 1 deletion srcs/compose/accent_grave.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
{
// latin
"a": "à",
"e": "è",
"i": "ì",
"n": "ǹ",
"o": "ò",
"u": "ù",
"ü": "ǜ"
"w": "",
"y": "",
// extended latin
"â": "",
"ă": "",
"ê": "",
"ē": "",
"ơ": "",
"ô": "",
"ō": "",
"ü": "ǜ",
"ư": "",
// greek (technically not a grave, but a varia)
"α": "",
"ε": "",
"η": "",
"ι": "",
"ο": "",
"υ": "",
"ω": "",
// there is more like ἒ, ᾣ, etc
// cyrillic
"е": "ѐ",
"и": "ѝ",
// combining character
"ɔ": "ɔ\u0300",
"s": "s\u0300",
"ʌ": "ʌ\u0300",
"z": "z\u0300"
}
29 changes: 28 additions & 1 deletion srcs/compose/accent_macron.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,35 @@
{
// latin
"a": "ā",
"e": "ē",
"g": "",
"i": "ī",
"o": "ō",
"u": "ū",
"ü": "ǖ"
"y": "ȳ",
// extended latin
"æ": "ǣ",
"ä": "ǟ",
"ȧ": "ǡ",
"è": "",
"é": "",
"ḷ": "",
"ṛ": "",
"ö": "ȫ",
"ȯ": "ȱ",
"ǫ": "ǭ",
"õ": "ȭ",
"ò": "",
"ó": "",
"ü": "ǖ", // there is also ṻ
// cyrillic
"и": "ӣ",
"у": "ӯ",
// greek
"α": "",
"ι": "",
"υ": "",
// combining characters
"l": "l\u0304",
"r": "r\u0304"
}
8 changes: 4 additions & 4 deletions srcs/compose/accent_ogonek.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
// latin
"a": "ą",
"e": "ę",
"i": "į",
"k": "ķ",
"l": "ļ",
"n": "ņ",
"o": "ǫ",
"u": "ų"
"u": "ų",
// extended latin
"ō": "ǭ"
}
9 changes: 8 additions & 1 deletion srcs/compose/accent_ring.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
// latin
"a": "å",
"u": "ů"
"u": "ů",
"w": "", // no uppercase
"y": "", // no uppercase
// extended latin
"á": "ǻ",
// extra
"~": ""
}
6 changes: 5 additions & 1 deletion srcs/compose/accent_slash.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"l": "ł",
"n": "",
"o": "ø",
"ó": "ǿ",
"ɔ": "ꬿ",
"r": "",
"s": "",
"t": ""
"t": "",
"u": "",
"v": ""
}
Loading

0 comments on commit 6fae23a

Please sign in to comment.