Add Virama conjunct for the Brahmic scripts#204
Conversation
no codegen necessary
rewrite this fine comment into fine code like it was intended,
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
Performance Changes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #204 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 15 15
Lines 938 986 +48
Branches 239 247 +8
=========================================
+ Hits 938 986 +48 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I wasn't certain and made some errors along the way, but I integrated with latest |
Brahmic script has conjuncts that "collapse" to cell width, Closes #155
(From specs.rst)
Virama Conjunct Formation
In
Brahmic scripts, aVirama(Indic_Syllabic_Category=ViramainIndicSyllabicCategory.txt) between two consonants triggersconjunctformation: the font engine merges the consonants into a single ligature glyph.
A
Consonantimmediately following aViramacontributes 0 width.The conjunct still occupies cells — the next visible advance settles it:
Mc(Spacing Combining Mark_, e.g. a vowel sign) counts as1 cell and closes the conjunct — no extra cell is added.
before counting its own width.
Chains work the same way: C + virama + C + virama + C collapses each
virama+consonant pair.
Mnmarks do not break conjunct context within the sameaksara_.