Skip to content

Conversation

@ronenfe
Copy link

@ronenfe ronenfe commented Dec 10, 2025

• Implement simple RTL preprocessor in PdfSharp.Events.RenderEvents that detects Hebrew-script characters (U+0590..U+05FF and U+FB1D..U+FB4F) and reverses RTL runs before PrepareTextEvent handlers are invoked. • Keep heuristic limited to Hebrew-script languages (Hebrew, Yiddish, Judeo‑Ladino) to avoid complex shaping issues. • Add unit tests ReverseRtlTests to verify mixed LTR/RTL run reordering. • Remove broader RTL detection that included shaping‑required scripts. Files changed:
• src/foundation/src/PDFsharp/src/PdfSharp/Events/RenderEvents.cs • src/foundation/src/PDFsharp/tests/PdfSharp.Tests/Drawing/text/ReverseRtlTests.cs

• Implement simple RTL preprocessor in PdfSharp.Events.RenderEvents that detects Hebrew-script characters (U+0590..U+05FF and U+FB1D..U+FB4F) and reverses RTL runs before PrepareTextEvent handlers are invoked.
• Keep heuristic limited to Hebrew-script languages (Hebrew, Yiddish, Judeo‑Ladino) to avoid complex shaping issues.
• Add unit tests ReverseRtlTests to verify mixed LTR/RTL run reordering.
• Remove broader RTL detection that included shaping‑required scripts.
Files changed:
• src/foundation/src/PDFsharp/src/PdfSharp/Events/RenderEvents.cs
• src/foundation/src/PDFsharp/tests/PdfSharp.Tests/Drawing/text/ReverseRtlTests.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant