home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / text / tex / 11199 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.7 KB  |  56 lines

  1. Newsgroups: comp.text.tex
  2. Path: sparky!uunet!news.claremont.edu!linus.claremont.edu!dhosek
  3. From: dhosek@linus.claremont.edu
  4. Subject: Re: ||: label in METAFONT?
  5. Message-ID: <1992Sep14.131825.1@linus.claremont.edu>
  6. Lines: 43
  7. Sender: news@muddcs.claremont.edu (The News System)
  8. Organization: Harvey Mudd College
  9. References: <1992Sep14.173126.25527@uwm.edu>
  10. Distribution: usa
  11. Date: 14 Sep 92 13:18:25 PDT
  12.  
  13. In article <1992Sep14.173126.25527@uwm.edu>, andrew@csd4.csd.uwm.edu (Andy Biewer) writes:
  14. > Hello NetPeople,
  15.  
  16. > How does one use the ||: label in a METAFONT ligtable description?  Say, for
  17. > instance, that I would like the characters k,m,n,p,c to be replaced by their
  18. > uppercase counterparts K,M,N,P,C when they appear at the end of the word.
  19. > First, is it possible to use a ligtable description to do this?  And,
  20. > second, if so, how do I do it, and does it incorporate the ||: label?
  21.  
  22. ||: is used to indicate a change of character at the beginning of
  23. a word. For example, I might have F replaced with a swash F when
  24. it occurs at that location. This is done using:
  25.  
  26. ligtable ||:
  27.   "F" =: oct"177"; % Swash F
  28.  
  29. End-of-word ligatures require the choice of a boundary character.
  30. My choice is usually oct"015" [carriage return] which I leave
  31. empty (along with oct"40" [space]). Your example, for uppercasing
  32. a letter at the end of a word would be handled as follows:
  33.  
  34. boundarychar:=oct"015";
  35.  
  36. ligtable "k":
  37.   boundarychar =: "K";
  38.  
  39. In actuality, you'd also need to insert ligatures for k + various
  40. punctuation marks, using =:| to retain the punctuation character:
  41.  
  42. ligtable "k":
  43.   boundarychar =: "K",
  44.   "." =:| "K";
  45.  
  46. and so on.
  47.  
  48. -dh
  49.  
  50. Don Hosek                  
  51. dhosek@ymir.claremont.edu  
  52. Quixote Digital Typography 
  53. 714-621-1291
  54.  
  55.  
  56.