Article View: comp.text.tex
Article #2690Re: ||: label in METAFONT?
From: dhosek
Date: Mon, 14 Sep 1992 20:18
Date: Mon, 14 Sep 1992 20:18
41 lines
1786 bytes
1786 bytes
In article <1992Sep14.173126.25527@uwm.edu>, andrew@csd4.csd.uwm.edu (Andy Biewer) writes: > Hello NetPeople, > How does one use the ||: label in a METAFONT ligtable description? Say, for > instance, that I would like the characters k,m,n,p,c to be replaced by their > uppercase counterparts K,M,N,P,C when they appear at the end of the word. > First, is it possible to use a ligtable description to do this? And, > second, if so, how do I do it, and does it incorporate the ||: label? ||: is used to indicate a change of character at the beginning of a word. For example, I might have F replaced with a swash F when it occurs at that location. This is done using: ligtable ||: "F" =: oct"177"; % Swash F End-of-word ligatures require the choice of a boundary character. My choice is usually oct"015" [carriage return] which I leave empty (along with oct"40" [space]). Your example, for uppercasing a letter at the end of a word would be handled as follows: boundarychar:=oct"015"; ligtable "k": boundarychar =: "K"; In actuality, you'd also need to insert ligatures for k + various punctuation marks, using =:| to retain the punctuation character: ligtable "k": boundarychar =: "K", "." =:| "K"; and so on. -dh Don Hosek dhosek@ymir.claremont.edu Quixote Digital Typography 714-621-1291
Technical Details
Message-ID:
<1992Sep14.131825.1@linus.claremont.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!linus.claremont.edu!dhosekReferences:
<1992Sep14.173126.25527@uwm.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!linus.claremont.edu!dhosek From: dhosek@linus.claremont.edu Subject: Re: ||: label in METAFONT? Message-ID: <1992Sep14.131825.1@linus.claremont.edu> Lines: 43 Sender: news@muddcs.claremont.edu (The News System) Organization: Harvey Mudd College References: <1992Sep14.173126.25527@uwm.edu> Distribution: usa Date: 14 Sep 92 13:18:25 PDT