cc501de
Pinchord · pinchord.git · Tickets · Changelog
Branches > serial-mods > cc501de > files / CONTRIBUTING.md
Carry capitalization in -e and -s
Commit: cc501de1e1fea301b5d5668b6ccea6e8166ee869
Parent: 0962f72
1 changed file:
plover_pinchord_31/extension.py 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