Drop the azerty conversion now that the installer no longer offers it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier HanssonandClaude Opus 5.5 committed 2026-10-11 07:16:53 +09:00
1 parent b673d9e942
commit f2bbf0d6c6
2 files changed
+5 -8

No files matched your search

+4 -7
View File
@@ -25,14 +25,11 @@ def keyboard_catalog():
mappings.setdefault(fields[0], layout + (":" + variant if variant != "-" else ""))
# The console names systemd's table lacks convert as keyboard_xkb_settings in
# omarchy-provision-owner does, so a choice types what it did at install.
installer = {"azerty": "fr", "bg-cp1251": "bg:phonetic", "colemak": "us:colemak", "cz": "cz:qwerty",
"kyrgyz": "kg", "de_CH-latin1": "ch", "no-latin1": "no"}
mappings.update(installer)
mappings.update({"bg-cp1251": "bg:phonetic", "colemak": "us:colemak", "cz": "cz:qwerty",
"kyrgyz": "kg", "de_CH-latin1": "ch", "no-latin1": "no"})
catalog = {}
rows = [choice.split("|") for choice in choices.splitlines()]
# azerty is French AZERTY, so a converted keymap never renames a layout
# another choice names directly.
for label, keymap, *input_settings in sorted(rows, key=lambda row: row[1] in installer):
for choice in choices.splitlines():
label, keymap, *input_settings = choice.split("|")
layout = input_settings[1] if len(input_settings) > 1 else mappings.get(keymap, keymap)
if label == "Lao":
layout = "la"
+1 -1
View File
@@ -30,7 +30,7 @@ class TypingSetupTest(unittest.TestCase):
self.assertEqual(catalog["us:colemak"], "English (US, Colemak)")
self.assertEqual(catalog["ch"], "German (Switzerland)")
self.assertEqual(catalog["la"], "Lao")
# Converted as the installer does, without renaming French.
# Converted as the installer does.
self.assertEqual(catalog["fr"], "French")
self.assertEqual(catalog["bg:phonetic"], "Bulgarian")
self.assertEqual(catalog["cz:qwerty"], "Czech")