Wakamai-Fondue / wakamai-fondue-engine

The engine that powers Wakamai Fondue
Apache License 2.0
46 stars 9 forks source link

[RFE] Display all characters in the font (even without Unicode codepoint) #62

Open rajeeshknambiar opened 3 years ago

rajeeshknambiar commented 3 years ago

It would be great if fondue can also display all characters in a font, including the ligatures/conjuncts fonts very common in Indic fonts; which do not have specific Unicode codepoint assigned (but formed via OpenType shaping rules).

For instance RIT Rachana, has hundreds of such characters (specimen of whole Malayalam character set here: Rachana conjuncts).

RoelN commented 3 years ago

I would've expected ligature glyphs to be exposed in the OpenType Features panel, where it would hint to which characters turn into which ligatures/conjuncts. But this seems to be missing indeed:

afbeelding

I'd have to look into why that is. Quick assumption would be that these sequences are inside the "Required layout features", which Wakamai Fondue currently doesn't show. It might be good if Wakamai Fondue does expose these, as this related issue asks for too: https://github.com/Wakamai-Fondue/wakamai-fondue-site/issues/101

rajeeshknambiar commented 3 years ago

Hi Roel,

Indeed, those ‘ligatures’ are inside the ‘required layout features’. The specified font has very many conjuncts in akhn feature, a couple in pstf and another large number in abvm for the dot-reph positioning in Malayalam.

I quickly skimmed through the code, but couldn’t identify the precise locations where this functionality could be added (I saw some parts which keeps only glyphs with Unicode values, not sure actually relevant: src/fondue/Fondue.js#L664) . Could you point me to some relevant files/parts in the code? I’ll try to hack around (but I have little experience with javascript).