Repository navigation
Add demo examples that cover the weak rules W1-W5 and W7 - #14
Merged
Merged
Conversation
Before this change, no built-in example made W1, W2, W3, W4, W5 or W7 change anything. Two new examples follow Example 3: Arabic text with a number (W2, W3, W4) and prices and percentages (W4, W5, W7). Example 2 now spells shalom with nikkud, so W1 turns the vowel points into R. Every weak rule now changes something in at least one example. The examples that were 4-7 are now 6-9. README.md and CLAUDE.md are updated to match. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before this change, no built-in demo example made W1, W2, W3, W4, W5 or W7 change anything, so
python bidi.py --allnever showed a table for those rules.سعر 1,000 ريال): W2 turns the digits into AN, W3 turns AL into R, and W4 makes the comma AN.Price: $100, 1.5%): W4 makes the dot in 1.5 EN, W5 makes$and%EN, and W7 turns every EN into L.שָׁלוֹם), so W1 turns the vowel points from NSM into R. Its "Watch for" note also points out that after L2 each vowel point comes before its letter, and that L3 leaves this to the renderer.Every weak rule now changes something in at least one example. The examples that were 4–7 are now 6–9, so
--example Npicks a different example for those numbers. README.md and CLAUDE.md are updated to match.The "Watch for" notes were checked against the verbose output.
🤖 Generated with Claude Code