cc501de

Pinchord · pinchord.git · Tickets · Changelog

Branches > main > cc501de > files

Carry capitalization in -e and -s

Grahp, 2026-10-26

Commit: cc501de1e1fea301b5d5668b6ccea6e8166ee869 (latest)
Parent: 0962f72

1 changed file:

plover_pinchord_31/extension.py modified (view file)

@@ -9,15 +9,15 @@             ("#-", "+-"): "{^}{-|}"}  SUFFIXES = {(): "",-            ("-e",): "{^}e",-            ("-s",): "{^}s",-            ("-e", "-s"): "{^}es"}+            ("-e",): "{^~|^}e",+            ("-s",): "{^~|^}s",+            ("-e", "-s"): "{^~|^}es"}  # Macros don't work with translations like {} (only =undo works, not {}=undo) MACRO = r"=\w+(:.*)?|\{\*[!?+]?\}"  # Wraps the given translation in its affix translations-# e.g. with_affixes(Stroke("#"), "test", Stroke("-s")) -> "{}{-|}test{^}s"+# e.g. with_affixes(Stroke("#"), "test", Stroke("-s")) -> "{}{-|}test{^~|^}s" def with_affixes(prefixes, translation, suffixes):   if translation is None:     return None