Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!newstop!sun!amdcad!mozart.amd.com!positron!brian From: brian@positron.amd.com (Brian McMinn) Newsgroups: comp.text Subject: Re: Ignorant troff question Summary: How to print an umlat Message-ID: <1990Dec8.220723.22503@mozart.amd.com> Date: 8 Dec 90 22:07:23 GMT References: <1990Dec3.015835.27999@mozart.amd.com> Sender: usenet@mozart.amd.com (Usenet News) Organization: Advanced Micro Devices, Austin, TX Lines: 150 For all those interested, here is a summary of the "how do I troff an umlat" question. My thanks to all those who replied (including some not mentioned here because I managed to lose some of the mail). One reply not included but worth mentioning because it was so simple was to overstrike an o with a double quote(") char. Thanks to all, I'm going to use the string defined below since I've got a really primative version of troff. Brian -=-=-=-=-=-=-=-=-=-=-=-=- > From: wsb@Eng.Sun.COM (Walt Brainerd) > > You may want to tinker with some of the numbers to optimize > for whatever printing device you are using: > > .ds o: \zo\h'\w'o'u*0/10'\v'-.5m'\z.\h'\w'o'u*4/10'\z.\v'.5m'\h'\w'o'u*6/10' > -=-=-=-=-=-=-=-=-=-=-=-=- > From: zuena@DPW.NYU.EDU > > Try: > o\*: <-- for lower case o > > O\*; <-- for upper case O > > This works with the mm package, hopefully it will work with your stuff > also. BTW, its called an umlaut. > -=-=-=-=-=-=-=-=-=-=-=-=- > From: lynn@elan.com (Lynn Gazis) > > Try \(o:. > -=-=-=-=-=-=-=-=-=-=-=-=- > From: cpsrk@groper.jcu.edu.au (Stuart R Kemp) > > At the head of your document, put > .AM > > Then can say: > > Mr Ro\*:gers > -=-=-=-=-=-=-=-=-=-=-=-=- > From: lee@sq.com (Liam Quin) > > Some things to try (depending on your version of the -ms macros): > > \*:o > > o\*: > > If (and only if) these do not work, and if you can find an umlaut character, > let's call it \(.., you can type > \o'\(..o' > instead. > -=-=-=-=-=-=-=-=-=-=-=-=- > From: msb@sq.com (Mark Brader) > > The original troff character set does not contain an umlaut (the two > dots). In our proprietary version (SoftQuad Inc.), the umlaut exists > on at least some output devices; it is named "\(.." and so you can > overstrike it with the letter "o" by saying "\o'o\(..'". But I don't > know about other versions, in particular, ditroff. The answer may > well depend on the output device. > > The next best choice is to use eqn. > > .EQ > delim ## > .EN > .\" Say the above once at the top of the document; if already > .\" using eqn constructs with delims, use what they use instead. > .\" Now you can produce the name Godel, with umlaut on the o, by: > The man's name is G#roman o dotdot#del. > > You need the word "roman" because eqn assumes that letters are mathematical > variables and therefore are to be in italic. An alternative would be to > say "gfont roman" inside the initial .EQ/.EN pair. (I don't remember > whether all versions of eqn have this; and you can't use it if there are > genuine equations in the document, of course. > > Of course, you have to filter the job through eqn every time you run it, > or the results will be unfortunate. > -=-=-=-=-=-=-=-=-=-=-=-=- > From: daved@physiol.su.oz.au (Dave Davey) > > The double dot is called an umlaut. In some of the macro packages this > diacrit can be obtained with the string \*: (others are \*' \*` \*^) by > including the string immediately the letter on which it should be printed. > e.g. the German word "fur" which should have an umlaut on the 'u' would be > typed "fu\*:r". > -=-=-=-=-=-=-=-=-=-=-=-=- > From: wd@distel.pcs.com (Wolfgang Denk) > > Older versions of troff (English only) do not support "umlauts". > The newer ones do. Try \(o:. > > umlaut a (a"): \(a: umlaut A (A"): \(A: > umlaut o (o"): \(o: umlaut O (O"): \(O: > umlaut u (u"): \(u: umlaut U (U"): \(U: > german "sharp" s (sz): \(ss > -=-=-=-=-=-=-=-=-=-=-=-=- > From: jon%jonlab@Princeton.EDU (Jon H. LaBadie) > > Sounds like you need to define your own string. For example: > > .ds oo ........... > > Then you would use it as: > > Mr. Me\*(ooller > ^^^^^ > > Now the ..... will have to be replaced by a sequence of commands > that print the double dots and the 'o'. This would be specific to > single output device I am sorry to say as the motions needed will > be hardware specific and will require trial and error. > > mark present position in register x > move vertically and horizontally to position for 1st dot > change fonts and point sizes as needed > print first dot > move horizontally to next dot position > print second dot > restore original font and size spec > return to marked position > print the base character (o) > > The size of the moves you will have to determine. It may be based on > the width and height of the base character. Only the string definition > gets more complex. > > One potential problem arises when the local moves (h and v) cause you > to exceed the line length. Then a word break may occur in the middle > of the name. The frequency of this is small enough to allow for hand > adjustment. > -=-=-=-=-=-=-=-=-=-=-=-=- > From: JOHN WERST > > I did an overstrike (\o) umlaut (\(um) for a publication this way: > > Schr\o'o\(um'dinger Equation --- -- Brian McMinn brian@amd.com Advanced Micro Devices N5PSS Austin, Texas 1-(512)-462-5389 "You can't leap a chasm in two jumps."