Skip to content

Commit

Permalink
Additional Visual Norm rule to replaces ZWNJ with ZWJ for Bengali YA-…
Browse files Browse the repository at this point in the history
…phalaa only, as its usage with ZWNJ is common in the web.

PiperOrigin-RevId: 576506902
  • Loading branch information
cibu authored and copybara-github committed Oct 25, 2023
1 parent a37ec88 commit 4de73d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nisaba/scripts/brahmic/data/Beng/visual_rewrite.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ item {
uname: ["AU LENGTH MARK", "SIGN E"] raw: "ৗে"
to_uname: "SIGN AU" to_raw: ""
}

# Replaces ZWNJ with ZWJ for YA-phalaa.
item {
uname: ["RA", "ZERO WIDTH NON-JOINER", "VIRAMA", "YA"] raw: "র‌্য"
to_uname: ["RA", "ZERO WIDTH JOINER", "VIRAMA", "YA"] to_raw: "র‍্য"
}
3 changes: 3 additions & 0 deletions nisaba/scripts/brahmic/testdata/visual_norm.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ rewrite { rule: "BENG" input: "অ্যাড" output: "অ্যাড" }
rewrite { rule: "BENG" input: "এ্যালজিও" output: "এ্যালজিও" }
# YA-phalaa/sign
# <RA, ZWNJ, VIRAMA, YA> → <RA, ZWJ, VIRAMA, YA>
rewrite { rule: "BENG" input: "র‌্যাল" output: "র‍্যাল" }
# ZWJ in <RA, ZWNJ, VIRAMA, YA> is preserved.
rewrite { rule: "BENG" input: "র‍্যাল" output: "র‍্যাল" }
rewrite { rule: "KNDA" input: "ರ‍್ಯಂಡ್" output: "ರ‍್ಯಂಡ್" }
Expand Down

0 comments on commit 4de73d4

Please sign in to comment.