Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/guiguts/tools/ppcomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,10 @@ def replace(match: re.Match) -> str:
if not prefix and not suffix:
return match.group(0)

# If split between two parts is mid-word, e.g. "C⦕opyright⦖⦓OPYRIGHT⦔", leave unchanged
if re.search(r"\p{Letter}$", a_mid) and re.search(r"^\p{Letter}", b_mid):
return match.group(0)

parts = []
# Prefix stays unmarked
parts.append(prefix)
Expand Down