Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Sinhala: update Reph specification #141

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opentype-shaping-indic-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ table:
| Oriya | `REPH_POS_AFTER_MAIN` |
| Tamil | `REPH_POS_AFTER_POST` |
| Telugu | `REPH_POS_AFTER_POST` |
| Sinhala | `REPH_POS_AFTER_MAIN` |
| Sinhala | `REPH_POS_AFTER_POST` |



Expand Down
15 changes: 8 additions & 7 deletions opentype-shaping-sinhala.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ characteristics include:
consonant in `<sinh>` text differs from that used by other
`BASE_POS_LAST` scripts.

- `REPH_POS_AFTER_MAIN` = "Reph" is ordered after the base consonant or syllable base.
- `REPH_POS_AFTER_POST` = "Reph" is ordered after the last post-base
consonant form.

- `REPH_MODE_EXPLICIT` = "Reph" is formed by an initial "Ra,Halant,ZWJ" sequence.

Expand Down Expand Up @@ -1239,9 +1240,9 @@ the base consonant or syllable base, and all half forms.
#### 4.3: Reph ####

"Reph" must be moved from the beginning of the syllable to its final
position. Because Sinhala incorporates the `REPH_POS_AFTER_MAIN`
shaping characteristic, this final position is immediately after the
syllable base.
position. Because Sinhala incorporates the `REPH_POS_AFTER_POST`
shaping characteristic, this final position is defined to be
immediately after any post-base consonant forms.

The algorithm for finding the final "Reph" position is

Expand All @@ -1252,10 +1253,10 @@ The algorithm for finding the final "Reph" position is
2](#2-initial-reordering)). This will be the final "Reph"
position.
> Note: Because Sinhala incorporates the
> `REPH_POS_AFTER_MAIN` shaping characteristic, this means
> any positioning tag of `POS_ABOVEBASE_CONSONANT` or later,
> `REPH_POS_AFTER_POST` shaping characteristic, this means
> any positioning tag of `POS_FINAL_CONSONANT` or later,
> although a post-base matra, syllable modifier, or Vedic sign
> would not typically be tagged with `POS_ABOVEBASE_CONSONANT`.
> would not typically be tagged with `POS_FINAL_CONSONANT`.
- If no other location has been located in the previous step, move
the "Reph" to the end of the syllable.

Expand Down