<html><body>
<DIV>Working as I am from an internet cafe in Rimini, I can't go into detail, but I am</DIV>
<DIV>sure that the use of a boundary character would work.&nbsp; I do something like that</DIV>
<DIV>for the final sigma in Ibycus, and it has to distinguish between following punctuation in+two classes, and folllowing space.&nbsp; The details are in the Metafont files for Ibycus.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Pierre MacKay</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR><BR>&gt; I only want to make the <BR>&gt; substitution if the next character is a space <BR>&gt; <BR>&gt; If it's ok to make the substitution at the end of a word, you could <BR>&gt; perhaps use word boundary ligatures. They're described in the vf and MF <BR>&gt; documentation somewhere. But it seems like these putative fancy swashes <BR>&gt; wouldn't go well with a comma or period following. <BR>&gt; <BR>&gt; I cannot quite picture how to detect a following space at the font <BR>&gt; level. I think it would have to be done at the macro level, and even <BR>&gt; there it's not trivial. <BR>&gt; <BR>&gt; always turn an 'n' followed by a space into a fancy 'n' and then <BR>&gt; kern a little but wouldn't this interfere with the normal interword <BR>&gt; spacing that TeX tries to do? <BR>&gt; <BR>&gt; Yes (even if it could be done). <BR>&gt; <BR>&gt; Would this part of the code even see the space? I'm guessing it <BR>&gt; doesn't. <BR>&gt; <BR>&gt; Right. There is no "space character" per se by the time TeX is <BR>&gt; typesetting fonts, the <SPACE>(catcode 10) characters have turned into <BR>&gt; interword glue, and you can't make a ligature with that. <BR>&gt; <BR>&gt; On a related note the font also has a "ct" ligature. How can I make <BR>&gt; sure it doesn't use this at the end of a word? <BR>&gt; <BR>&gt; That should be doable with boundary ligatures. At a word boundary, <BR>&gt; typeset c, t. At a non-boundary, typeset the ct ligature. <BR>&gt; <BR>&gt; I set it up so that I need 'n', space, space (can you say ugly) to turn <BR>&gt; it on? <BR>&gt; <BR>&gt; With TeX macros, it could potentially be done. But TeX collapses <BR>&gt; multiple spaces into one very early. So unless you typeset the whole <BR>&gt; thing with \obeyspaces ... argh, it just gets worse. <BR>&gt; <BR>&gt; What I don't like about this is I change the entire <BR>&gt; font for the document then I need to r

emove all of them. <BR>&gt; <BR>&gt; Well, if it's done with macros (\ct, \finaln, etc.), the macros could <BR>&gt; perhaps be redefined to always do the standard thing (just insert "ct", <BR>&gt; "n") with other fonts. Still a drag, though, I agree. <BR>&gt; <BR>&gt; <BR>&gt; You might try posting to tex-fonts@math.utah.edu if no other leads are <BR>&gt; forthcoming, there are some other font folks there who don't read texhax. <BR>&gt; <BR>&gt; Happy swashing, <BR>&gt; karl <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; TeX FAQ: http://www.tex.ac.uk/faq <BR>&gt; TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex <BR>&gt; Mailing list archives: http://tug.org/pipermail/texhax/ <BR>&gt; More links: http://tug.org/begin.html <BR>&gt; <BR>&gt; Automated subscription management: http://tug.org/mailman/listinfo/texhax <BR>&gt; Human mailing list managers: postmaster@tug.org </BLOCKQUOTE></body></html>