Skip to content

Commit

Permalink
Remove dotted circle for ാം rendering
Browse files Browse the repository at this point in the history
This has been a recurrent issue for the users. While browser and most
modern applications use recent shaping engines that remove the dotted circle,
applications like libreoffice has this issue unresolved for long time.

Here, remove the dotted circle if followed by aa sign and anuswara. This
rule will be picked up only if shaping engines had not removed the dotted
circle.
  • Loading branch information
santhoshtr committed Sep 29, 2023
1 parent a2e8306 commit ed820d7
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sources/Manjari-Bold.ufo/glyphs/aam.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<glyph name="ai1" format="2">
<advance width="1828"/>
<outline>
<component base="a2"/>
<component base="anuswara" xOffset="1000" yOffset="4"/>
</outline>
<lib>
<dict>
<key>org.fontforge.glyphclass</key>
<string>baseligature</string>
</dict>
</lib>
</glyph>
2 changes: 2 additions & 0 deletions sources/Manjari-Bold.ufo/glyphs/contents.plist
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@
<string>a2.glif</string>
<key>aacute</key>
<string>aacute.glif</string>
<key>aam</key>
<string>aam.glif</string>
<key>acircumflex</key>
<string>acircumflex.glif</string>
<key>acute</key>
Expand Down
14 changes: 14 additions & 0 deletions sources/Manjari-Regular.ufo/glyphs/aam.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<glyph name="ai1" format="2">
<advance width="1828"/>
<outline>
<component base="a2"/>
<component base="anuswara" xOffset="1000" yOffset="4"/>
</outline>
<lib>
<dict>
<key>org.fontforge.glyphclass</key>
<string>baseligature</string>
</dict>
</lib>
</glyph>
2 changes: 2 additions & 0 deletions sources/Manjari-Regular.ufo/glyphs/contents.plist
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@
<string>a2.glif</string>
<key>aacute</key>
<string>aacute.glif</string>
<key>aam</key>
<string>aam.glif</string>
<key>acircumflex</key>
<string>acircumflex.glif</string>
<key>acute</key>
Expand Down
14 changes: 14 additions & 0 deletions sources/Manjari-Thin.ufo/glyphs/aam.glif
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<glyph name="ai1" format="2">
<advance width="1828"/>
<outline>
<component base="a2"/>
<component base="anuswara" xOffset="1000" yOffset="4"/>
</outline>
<lib>
<dict>
<key>org.fontforge.glyphclass</key>
<string>baseligature</string>
</dict>
</lib>
</glyph>
2 changes: 2 additions & 0 deletions sources/Manjari-Thin.ufo/glyphs/contents.plist
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@
<string>a2.glif</string>
<key>aacute</key>
<string>aacute.glif</string>
<key>aam</key>
<string>aam.glif</string>
<key>acircumflex</key>
<string>acircumflex.glif</string>
<key>acute</key>
Expand Down
2 changes: 2 additions & 0 deletions sources/features/features.fea
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ feature akhn {
lookup chillu;
lookup akhn_conjuncts;
lookup akhn_conditional_stacking;
lookup remove_dotted_circle;
script mlym;
language dflt ;
lookup chillu;
lookup akhn_conjuncts;
lookup akhn_conditional_stacking;
lookup remove_dotted_circle;
} akhn;

feature blwf {
Expand Down
4 changes: 4 additions & 0 deletions sources/features/lookups-common.fea
Original file line number Diff line number Diff line change
Expand Up @@ -622,3 +622,7 @@ lookup psts_vowel_signs_common {
sub rhrh u2 by rhrhu2;
} psts_vowel_signs_common;


lookup remove_dotted_circle {
sub uni25CC a2 anuswara by aam;
} remove_dotted_circle;
5 changes: 5 additions & 0 deletions tests/ligatures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1110,3 +1110,8 @@ proident, sunt in culpa qui officia deserunt mollit anim id est laborum

ന്റ ന്റു ന്റൂ
ൻ്റ ൻ്റു ൻ്റൂ

4-ാം
ാം
ാം
4ാം

0 comments on commit ed820d7

Please sign in to comment.
  NODES
coding 3
Community 1
Note 1
os 7
text 9
Users 2
web 1