What is the easiest way to express replacement rules like “If a letter follows, replace ‘s’ by ‘ſ’” and “If a non-letter/word-boundary follows, replace ‘g’ by ‘g.final’” in a pl file?
Context
I am still trying to get my blackletter font to work with some flavour of LaTeX. I made a lot of progress adapting it to vanilla pdflatex. (Using a perl script that writes the ligatures part for the pl file, because FontForge does not export ligatures to tfm. That script is also in that repository.)
I have difficulties finding the documentation for the language of pl files. I think there is one which I had found earlyer, but I cannot find it again.
Does the declaration (BOUNDARYCHAR O 14) define which character to use for typesetting spaces?
Does that mean that if I want dots and commas to also behave as word boundaries, I need to add them explicitly, expanding the likes of
(BOUNDARYCHAR O 14)
...
(LABEL BOUNDARYCHAR)
(LIG O 167 O 30)
(LIG O 166 O 27)
(STOP)
(LABEL O 163)
(LIG O 14 O 33)
(STOP)
to
(BOUNDARYCHAR O 14)
...
(LABEL BOUNDARYCHAR)
(LIG O 167 O 30)
(LIG O 166 O 27)
(STOP)
(LABEL O 54)
(LIG O 167 O 30)
(LIG O 166 O 27)
(STOP)
(LABEL O 56)
(LIG O 167 O 30)
(LIG O 166 O 27)
(STOP)
(LABEL O 163)
(LIG O 14 O 33)
(LIG O 54 O 33)
(LIG O 56 O 33)
(STOP)
and even more if I also want other non-letters to be word boundaries?
Since both letters and non-letters are quite a few, changing “If a non-letter follows, replace ‘ſ’ by ‘s’” to “If a letter follows, replace ‘s’ by ‘ſ’” does not seem easier, either. Is there good way to do this, preferably one where I don't have to list half the characters in my font for every (LABEL) block?
texdoc pltotfin TeX Live should find it). – خالد حسني Oct 30 '12 at 05:24BOUNDARYCHARdefines which character is used for typesetting spaces, with any flavor of tex, spaces are not set from a character (except for the special case ofcmtt, which contains a "visible space" glyph ro be used on request in verbatim strings). instead, they are set as explicit commands to advance by a specified amount in the horizontal direction. the meaning ofBOUNDARYCHARis given in thepltotfmanual cited by khaled. – barbara beeton Oct 30 '12 at 13:19fontinstknow that I want the substitution "If a letter follows, replace s→ſ" (or even v→v.final, which is definitely non-standard) to generate the appropriate .pl files? – Anaphory Dec 13 '13 at 12:54