From 2f6c19bc615ffdb343d36bcce53520ab9cd68d78 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 6 Sep 2024 17:15:40 +0100 Subject: [PATCH] Better error messages for RTL scripts... --- Lib/shaperglot/checks/no_orphaned_marks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/shaperglot/checks/no_orphaned_marks.py b/Lib/shaperglot/checks/no_orphaned_marks.py index 4bd05be..a54b321 100644 --- a/Lib/shaperglot/checks/no_orphaned_marks.py +++ b/Lib/shaperglot/checks/no_orphaned_marks.py @@ -80,6 +80,8 @@ def execute(self, checker) -> None: ) elif pos.x_offset == 0 and pos.y_offset == 0: # Suspicious passed = False + if previous is None: + previous = "the base glyph when " + self.input.describe() checker.results.fail( check_name="no-orphaned-marks", result_code="orphaned-mark",