ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* sane accents [was RE: m-bib issues]
@ 2005-03-17 15:22 ishamid
  2005-03-17 16:26 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: ishamid @ 2005-03-17 15:22 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sane accents [was RE: m-bib issues]
  2005-03-17 15:22 sane accents [was RE: m-bib issues] ishamid
@ 2005-03-17 16:26 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2005-03-17 16:26 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-17 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-17 15:22 sane accents [was RE: m-bib issues] ishamid
2005-03-17 16:26 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).