From df3c9e5cc2bbbf5f8a63f406d87d12f8fcb55c60 Mon Sep 17 00:00:00 2001 From: Robert Tonsing Date: Wed, 25 Feb 2026 13:25:10 -0600 Subject: [PATCH 1/2] restore rounds check --- ppcomp/ppcomp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ppcomp/ppcomp.py b/ppcomp/ppcomp.py index 8121167..9f97774 100644 --- a/ppcomp/ppcomp.py +++ b/ppcomp/ppcomp.py @@ -211,6 +211,7 @@ def load(self, filename): if not filename.lower().endswith('.txt'): raise SyntaxError("Not a text file: " + filename) super().load(filename) + self.from_pgdp_rounds = self.basename.startswith('projectID') def strip_pg_boilerplate(self): """Remove the PG header and footer from the text if present.""" From 8a0cdb41ddb0c50ab9b734af9b6f33ae235d8559 Mon Sep 17 00:00:00 2001 From: Robert Tonsing Date: Wed, 25 Feb 2026 15:28:44 -0600 Subject: [PATCH 2/2] add alternate form of NoBreak character --- ppcomp/ppcomp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ppcomp/ppcomp.py b/ppcomp/ppcomp.py index 9f97774..81a4ed2 100644 --- a/ppcomp/ppcomp.py +++ b/ppcomp/ppcomp.py @@ -594,6 +594,7 @@ def remove_wordjoin(self): """Remove word join (NoBreak) (U+2060).""" if self.args.suppress_word_join: self.text = re.sub(r"\u2060", r"", self.text) + self.text = re.sub(r"⁠", r"", self.text) def remove_soft_hyphen(self): """Suppress shy (soft hyphen)"""