sane accents [was RE: [NTG-context] m-bib issues]
Dear fellow conspirators, Is there a saner way to define the following accent using ConTeXt's framework: \def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font \kern-.0156\dimen0} % compensate for slant/italic in lower accents \def\h#1{{\oalign{\relax#1\crcr\hidewidth\SHIFT{34}% \vbox to.2ex{\hbox{\char'25}\vss}\hidewidth}}} \def\~#1{{\struttedbox{\accent"7E #1}}} In my own work, the tilda is used over (upper and lower case) `h', `t', and `i', and the lower crescent is only used under (upper and lower case) `h'. lmr does not have the latter case and I still have a couple of issues with lmr so I'd like to maintain control over a few accents for now. Best Idris Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
ishamid wrote:
Dear fellow conspirators,
Is there a saner way to define the following accent using ConTeXt's framework:
\def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font \kern-.0156\dimen0} % compensate for slant/italic in lower accents
\def\h#1{{\oalign{\relax#1\crcr\hidewidth\SHIFT{34}% \vbox to.2ex{\hbox{\char'25}\vss}\hidewidth}}}
\def\~#1{{\struttedbox{\accent"7E #1}}}
less encoding dependent: \unexpanded\def\~{\struttedbox{\texttilde#1}} Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
ishamid