Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/guiguts/content_providing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,8 @@ def repl_sub(m: re.Match[str]) -> str:
re_exc2 = re.compile(r"'!!")
re_h = re.compile(r"!!(?=\w)")
re_exc = re.compile(r"(?<=\w)!(?=\w)")
re_ti = re.compile(r"\bT(['’]ll|['’]m|['’]d|f|s|t)\b")
re_tiw = re.compile(r'(["“])T\b')
re_1i = re.compile(r"(?<![^'\" ])1\b(?!\.)")
re_0o = re.compile(r"(?<![^'\" ])0\b")
re_li = re.compile(r"(?<![^'\" ])l\b(?!')")
Expand Down Expand Up @@ -1311,6 +1313,10 @@ def add_to_changes(
add_to_changes(key, "Scanno non-word-end !! → H", cnt, linenum)
line, cnt = re_exc.subn("l", line) # ! to l if midword
add_to_changes(key, "Scanno mid-word ! → l", cnt, linenum)
line, cnt = re_ti.subn(r"I\1", line) # T to I for T'm, T'll, etc.
add_to_changes(key, "Scanno T' → I'", cnt, linenum)
line, cnt = re_tiw.subn(r"\1I", line) # "T\b to "I
add_to_changes(key, 'Scanno "T → "I', cnt, linenum)

# Standalone 1 preceded by space or quote, not followed by period --> I
key = PrefKey.CP_1_TO_I
Expand Down
2 changes: 0 additions & 2 deletions src/guiguts/data/cp_files/scannos.json
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,6 @@
"carth" : "earth",
"eartb" : "earth",
"eartli" : "earth",
"casc" : "ease",
"casily" : "easily",
"easilv" : "easily",
"eastem" : "eastern",
Expand Down Expand Up @@ -3088,7 +3087,6 @@
"mbber" : "rubber",
"mde" : "rude",
"mle" : "rule",
"mn" : "run",
"mral" : "rural",
"msh" : "rush",
"mst" : "rust"
Expand Down
Loading