Page 1 of 1

formulas for constructing Composite Glyphs

Posted: Sat May 21, 2022 4:29 pm
by NinnaD
Is there a way to access and edit a list of custom formulas and/or import/export them?

Re: formulas for constructing Composite Glyphs

Posted: Wed May 25, 2022 8:01 am
by Erwin Denissen
There is no easy way to export formulas, but you can insert glyphs based on formulas:

Abrevedotbelow=A+dotbelowcomb+brevecomb.case
omegatonos-grek=omega-grek+tonosmod-grek

Re: formulas for constructing Composite Glyphs

Posted: Wed May 25, 2022 8:22 am
by NinnaD
If I insert glyphs, they will be unmapped, so then instead of inputting composite formula for each glyph, I have to input code-point for each glyph - either way a repetitive manual action for each glyph. :( I've just done that for the n-th time because of the anchor problems and thought it would be a good idea to be able to export and import formulas as a batch.

I tried defining some in the CompositeData.xml, but that doesn't seems to translate to formulas.

Re: formulas for constructing Composite Glyphs

Posted: Wed May 25, 2022 11:40 am
by Erwin Denissen
NinnaD wrote: Wed May 25, 2022 8:22 am If I insert glyphs, they will be unmapped
They will contain a mapping if the glyph name is recognized as a Unicode character.

Try for yourself:
Abrevedotbelow=A+dotbelowcomb+brevecomb

Re: formulas for constructing Composite Glyphs

Posted: Wed May 25, 2022 2:19 pm
by NinnaD
But not for PUA, e.g.
https://mufi.info/m.php?p=mufichars&i=2&v=E0

Which is why it would be very useful to be able to import/export formulas. :)

Re: formulas for constructing Composite Glyphs

Posted: Wed May 25, 2022 8:49 pm
by Bhikkhu Pesala
NinnaD wrote: Wed May 25, 2022 2:19 pm But not for PUA, e.g.
See my tutorial on Customising Unicode Data.

I have not tested it in recent versions, but it should still be possible to assign parts of the PUA to MUFI glyph names and code-points.

Re: formulas for constructing Composite Glyphs

Posted: Thu May 26, 2022 10:02 pm
by NinnaD
See my tutorial on Customising Unicode Data.
:)
it should still be possible to assign parts of the PUA to MUFI glyph names and code-points.
Well, I haven't managed to make it work, but sth else seems to work around that:

1. custom glyphnamesnew.dat in user folder, e.g.

Code: Select all

E404;aogonekacute
E40A;amacronacute
E410;amacronbreve
2. Insert Glyph, e.g.

Code: Select all

aogonekacute=aogonek+acutecomb
amacronacute=amacron+acutecomb
amacronbreve=amacron+brevecomb
3. customising the UnicodeData.txt file wasn't required to make it work, but it does make further work easier.