diff options
author | Devnol <[email protected]> | 2021-11-20 19:10:59 +0200 |
---|---|---|
committer | Devnol <[email protected]> | 2021-11-20 19:10:59 +0200 |
commit | 9e6783c1d527fd972533664914cbc9dea7131e5b (patch) | |
tree | 973d35fc74b45eaa3340ba143520e90bb2b2017d /Translations/font_tables.py | |
parent | ac769c109a500a2076c7f7927b116e5ad31268f9 (diff) | |
download | IronOS-9e6783c1d527fd972533664914cbc9dea7131e5b.tar.gz IronOS-9e6783c1d527fd972533664914cbc9dea7131e5b.zip |
Make indentation consistent in font_tables.py
Signed-off-by: Devnol <[email protected]>
Diffstat (limited to 'Translations/font_tables.py')
-rwxr-xr-x | Translations/font_tables.py | 125 |
1 files changed, 64 insertions, 61 deletions
diff --git a/Translations/font_tables.py b/Translations/font_tables.py index 51e8ab19..94c3b210 100755 --- a/Translations/font_tables.py +++ b/Translations/font_tables.py @@ -325,6 +325,7 @@ def get_font_map_latin_extended() -> Dict[str, bytes]: } return font + def get_font_map_greek() -> Dict[str, bytes]: font = { # U+0370..U+03FF Greek and Coptic @@ -334,7 +335,7 @@ def get_font_map_greek() -> Dict[str, bytes]: "Γ": b"\x00\xFF\xFF\x03\x03\x03\x03\x03\x03\x03\x03\x00\x00\x3F\x3F\x00\x00\x00\x00\x00\x00\x00\x00\x00", "Δ": b"\x00\x00\x00\xE0\xFC\x1F\x1F\xFC\xE0\x00\x00\x00\x00\x38\x3F\x37\x30\x30\x30\x30\x37\x3F\x38\x00", "Ε": b"\x00\xFF\xFF\xC3\xC3\xC3\xC3\xC3\xC3\x03\x03\x00\x00\x3F\x3F\x30\x30\x30\x30\x30\x30\x30\x30\x00", - "Ζ": b"\x00\x03\x03\x03\x03\xC3\xE3\x33\x1F\x0F\x03\x00\x00\x30\x3C\x3E\x33\x31\x30\x30\x30\x30\x30\x00", + "Ζ": b"\x00\x03\x03\x03\x03\xC3\xE3\x33\x1F\x0F\x03\x00\x00\x30\x3C\x3E\x33\x31\x30\x30\x30\x30\x30\x00", "Η": b"\x00\xFF\xFF\xC0\xC0\xC0\xC0\xC0\xC0\xFF\xFF\x00\x00\x3F\x3F\x00\x00\x00\x00\x00\x00\x3F\x3F\x00", "Θ": b"\x00\xF0\xFC\x0E\xC7\xC3\xC3\xC7\x0E\xFC\xF0\x00\x00\x03\x0F\x1C\x38\x30\x30\x38\x1C\x0F\x03\x00", "Ι": b"\x00\x00\x00\x03\x03\xFF\xFF\x03\x03\x00\x00\x00\x00\x00\x00\x30\x30\x3F\x3F\x30\x30\x00\x00\x00", @@ -385,10 +386,10 @@ def get_font_map_greek() -> Dict[str, bytes]: "ό": b"\x00\x80\xC0\xE0\x60\x6C\x6E\x66\xE0\xC0\x80\x00\x00\x0F\x1F\x38\x30\x30\x30\x30\x38\x1F\x0F\x00", "ύ": b"\x00\xE0\xE0\x00\x00\x0C\x0E\x06\xE0\xE0\x00\x00\x00\x0F\x1F\x38\x30\x30\x30\x38\x1F\x0F\x00\x00", "ώ": b"\x00\xC0\xE0\x00\x00\x18\x1C\x0C\x00\xE0\xC0\x00\x00\x0F\x1F\x38\x38\x1E\x1E\x38\x38\x1F\x0F\x00", - } return font + def get_font_map_cyrillic() -> Dict[str, bytes]: font = { # U+0400..U+04FF Cyrillic @@ -494,7 +495,6 @@ def get_font_map_cyrillic() -> Dict[str, bytes]: return font - def get_small_font_map_ascii_basic() -> Dict[str, bytes]: font = { # U+0000..U+007F Basic Latin @@ -813,69 +813,71 @@ def get_small_font_map_latin_extended() -> Dict[str, bytes]: } return font + def get_small_font_map_greek() -> Dict[str, bytes]: font = { - # U+0370..U+03FF Greek and Coptic - "Έ": b"\x03\x7F\x49\x49\x49\x41", - "Α": b"\x7e\x09\x09\x09\x7e\x00", - "Β": b"\x7f\x49\x49\x49\x36\x00", - "Γ": b"\x7f\x01\x01\x01\x01\x00", - "Δ": b"\x70\x4C\x43\x4C\x70\x00", - "Ε": b"\x7f\x49\x49\x49\x41\x00", - "Ζ": b"\x61\x51\x49\x45\x43\x00", - "Η": b"\x7f\x08\x08\x08\x7f\x00", - "Θ": b"\x3E\x49\x49\x49\x3E\x00", - "Ι": b"\x00\x41\x7f\x41\x00\x00", - "Κ": b"\x7f\x08\x14\x22\x41\x00", - "Λ": b"\x70\x0C\x03\x0C\x70\x00", - "Μ": b"\x7f\x02\x0c\x02\x7f\x00", - "Ν": b"\x7f\x04\x08\x10\x7f\x00", - "Ξ": b"\x41\x49\x49\x49\x41\x00", - "Ο": b"\x3e\x41\x41\x41\x3e\x00", - "Π": b"\x7F\x01\x01\x01\x7F\x00", - "Ρ": b"\x7f\x09\x09\x09\x06\x00", - "Σ": b"\x63\x55\x49\x41\x41\x00", - "Τ": b"\x01\x01\x7f\x01\x01\x00", - "Υ": b"\x07\x08\x70\x08\x07\x00", - "Φ": b"\x0c\x12\x7f\x12\x0c\x00", - "Χ": b"\x63\x14\x08\x14\x63\x00", - "Ψ": b"\x07\x08\x7F\x08\x07\x00", - "Ω": b"\x5E\x61\x01\x61\x5E\x00", - "ά": b"\x38\x45\x45\x38\x7C\x40", - "έ": b"\x28\x55\x55\x44\x28\x00", - "ή": b"\x04\x79\x05\x04\xF8\x00", - "ί": b"\x04\x3D\x41\x40\x00\x00", - "α": b"\x38\x44\x44\x38\x7C\x40", - "β": b"\x7E\x21\x25\x25\x1A\x00", - "γ": b"\x0C\x10\x60\x10\x0C\x00", - "δ": b"\x30\x4B\x45\x49\x30\x00", - "ε": b"\x28\x54\x54\x44\x28\x00", - "ζ": b"\x00\x31\x49\x45\xC3\x00", - "η": b"\x04\x78\x04\x04\xF8\x00", - "θ": b"\x3E\x49\x49\x49\x3E\x00", - "ι": b"\x04\x3C\x40\x40\x00\x00", - "κ": b"\x00\x7C\x10\x28\x44\x00", - "λ": b"\x70\x0A\x04\x08\x70\x00", - "μ": b"\xFC\x10\x10\x3C\x20\x00", - "ν": b"\x1C\x20\x40\x20\x1C\x00", - "ξ": b"\x36\x49\x49\xC9\x00\x00", - "ο": b"\x38\x44\x44\x44\x38\x00", - "π": b"\x04\x7C\x04\x7C\x44\x00", - "ρ": b"\xF8\x24\x24\x24\x18\x00", - "ς": b"\x38\x44\x44\xC4\x04\x00", - "σ": b"\x38\x44\x44\x44\x3C\x04", - "τ": b"\x04\x3C\x44\x44\x00\x00", - "υ": b"\x3C\x40\x40\x40\x3C\x00", - "φ": b"\x18\x24\x7e\x24\x18\x00", - "χ": b"\x44\x24\x38\x48\x44\x00", - "ψ": b"\x1C\x20\x7C\x20\x1C\x00", - "ω": b"\x38\x44\x30\x44\x38\x00", - "ό": b"\x38\x45\x45\x44\x38\x00", - "ύ": b"\x3C\x41\x41\x40\x3C\x00", - "ώ": b"\x38\x45\x31\x44\x38\x00", + # U+0370..U+03FF Greek and Coptic + "Έ": b"\x03\x7F\x49\x49\x49\x41", + "Α": b"\x7e\x09\x09\x09\x7e\x00", + "Β": b"\x7f\x49\x49\x49\x36\x00", + "Γ": b"\x7f\x01\x01\x01\x01\x00", + "Δ": b"\x70\x4C\x43\x4C\x70\x00", + "Ε": b"\x7f\x49\x49\x49\x41\x00", + "Ζ": b"\x61\x51\x49\x45\x43\x00", + "Η": b"\x7f\x08\x08\x08\x7f\x00", + "Θ": b"\x3E\x49\x49\x49\x3E\x00", + "Ι": b"\x00\x41\x7f\x41\x00\x00", + "Κ": b"\x7f\x08\x14\x22\x41\x00", + "Λ": b"\x70\x0C\x03\x0C\x70\x00", + "Μ": b"\x7f\x02\x0c\x02\x7f\x00", + "Ν": b"\x7f\x04\x08\x10\x7f\x00", + "Ξ": b"\x41\x49\x49\x49\x41\x00", + "Ο": b"\x3e\x41\x41\x41\x3e\x00", + "Π": b"\x7F\x01\x01\x01\x7F\x00", + "Ρ": b"\x7f\x09\x09\x09\x06\x00", + "Σ": b"\x63\x55\x49\x41\x41\x00", + "Τ": b"\x01\x01\x7f\x01\x01\x00", + "Υ": b"\x07\x08\x70\x08\x07\x00", + "Φ": b"\x0c\x12\x7f\x12\x0c\x00", + "Χ": b"\x63\x14\x08\x14\x63\x00", + "Ψ": b"\x07\x08\x7F\x08\x07\x00", + "Ω": b"\x5E\x61\x01\x61\x5E\x00", + "ά": b"\x38\x45\x45\x38\x7C\x40", + "έ": b"\x28\x55\x55\x44\x28\x00", + "ή": b"\x04\x79\x05\x04\xF8\x00", + "ί": b"\x04\x3D\x41\x40\x00\x00", + "α": b"\x38\x44\x44\x38\x7C\x40", + "β": b"\x7E\x21\x25\x25\x1A\x00", + "γ": b"\x0C\x10\x60\x10\x0C\x00", + "δ": b"\x30\x4B\x45\x49\x30\x00", + "ε": b"\x28\x54\x54\x44\x28\x00", + "ζ": b"\x00\x31\x49\x45\xC3\x00", + "η": b"\x04\x78\x04\x04\xF8\x00", + "θ": b"\x3E\x49\x49\x49\x3E\x00", + "ι": b"\x04\x3C\x40\x40\x00\x00", + "κ": b"\x00\x7C\x10\x28\x44\x00", + "λ": b"\x70\x0A\x04\x08\x70\x00", + "μ": b"\xFC\x10\x10\x3C\x20\x00", + "ν": b"\x1C\x20\x40\x20\x1C\x00", + "ξ": b"\x36\x49\x49\xC9\x00\x00", + "ο": b"\x38\x44\x44\x44\x38\x00", + "π": b"\x04\x7C\x04\x7C\x44\x00", + "ρ": b"\xF8\x24\x24\x24\x18\x00", + "ς": b"\x38\x44\x44\xC4\x04\x00", + "σ": b"\x38\x44\x44\x44\x3C\x04", + "τ": b"\x04\x3C\x44\x44\x00\x00", + "υ": b"\x3C\x40\x40\x40\x3C\x00", + "φ": b"\x18\x24\x7e\x24\x18\x00", + "χ": b"\x44\x24\x38\x48\x44\x00", + "ψ": b"\x1C\x20\x7C\x20\x1C\x00", + "ω": b"\x38\x44\x30\x44\x38\x00", + "ό": b"\x38\x45\x45\x44\x38\x00", + "ύ": b"\x3C\x41\x41\x40\x3C\x00", + "ώ": b"\x38\x45\x31\x44\x38\x00", } return font + def get_small_font_map_cyrillic() -> Dict[str, bytes]: font = { # U+0400..U+04FF Cyrillic @@ -980,6 +982,7 @@ def get_small_font_map_cyrillic() -> Dict[str, bytes]: } return font + NAME_ASCII_BASIC: Final = "ascii_basic" NAME_LATIN_EXTENDED: Final = "latin_extended" NAME_CYRILLIC: Final = "cyrillic" |