[luatex] small script to change initial letter forms

Khaled Hosny khaledhosny at eglug.org
Wed Feb 1 16:09:18 CET 2012


On Tue, Jan 31, 2012 at 10:47:43PM +0100, Pablo Rodríguez wrote:
> On 01/31/2012 07:59 AM, Paul Isambert wrote:
> > Pablo Rodríguez <oinos at web.de> a écrit:
> >> [...]
> >> Thanks for the reply, Paul.
> >>
> >> I'm afraid that the feature file might be easy to create, but in order
> >> to make use of it you have to edit the font files (not allowed by
> >> copyright law [digital fonts are protected as computer programs).
> > 
> > Patrick has answered to that, and I suppose you will be following that
> > road (if you manage to do it in ConTeXt, and I can't see why you
> > wouldn't).
> 
> Thank you very much for your help, Paul.
> 
> Just for the record, the ConTeXt command is the following:
> 
> \definefontfeature[default][default][script=latn,featurefile={myligs.fea}]
> 
> Another question would be to generate a feature file that works with
> initial and medial/final glyphs. (I wrote one, but it doesn't work ;-))

If you are using init/fina features, it will only work with
Arabic/Syriac and similar scripts where it is needed for basic shaping,
most OpenType engines (including the one Hans wrote for LuaTeX) don't
support them for other scripts. However, you can use contextual
substitution to implement the word boundary logic into your OpenType
code, but that is a bit tricky.

Regards,
 Khaled


More information about the luatex mailing list