At 12:54 PM 2/1/2003 +0100, you wrote:
On Fri, Jan 31, 2003 at 11:28:41PM +0100, Hans Hagen wrote:
>
> \definecharacter dstroke          {\pseudoencodeddj}
> \definecharacter Dstroke          {\pseudoencodedDJ}
>
Last time i tried those letters didn't work in e.g. \startitemize. The bar
was (mis)placed over center of the whole line of text... so I had to choose
words more carefully (dj and DJ are rare letters in Croatian) when typing
text in itemize lists :(
\def\pseudoencodeddj % like in babel, but safer
  {\leavevmode\hbox\bgroup
   \setbox\scratchbox\hbox{d}%
   \scratchdimen\ht\scratchbox
   \advance\scratchdimen 1ex
   \scratchdimen.45\scratchdimen
   \dimen2\expandafter\withoutpt\the\fontdimen1\font\dimen0
   \advance\dimen2 .5ex
   \hbox to \wd\scratchbox
     {\box\scratchbox\hss
      \raise\scratchdimen\hbox{\kern\dimen2\vbox{\hrule\!!height0.1ex\!!width0.3em}}}%
   \egroup}

\def\pseudoencodedDJ % like in babel, but safer
  {\leavevmode
   \hbox\bgroup
   \setbox\scratchbox\hbox{D}%
   \scratchdimen.55\ht\scratchbox
   \dimen2\expandafter\withoutpt\the\fontdimen1\font\scratchdimen
   \advance\dimen2 .15ex
   \advance\dimen2 -.15\fontdimen7\font
   \hbox to \wd\scratchbox
     {\box\scratchbox\hss
      \raise\scratchdimen\hbox{\kern\dimen2\vbox{\hrule\!!height0.1ex\!!width0.3em}}}%
   \egroup}

-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED]
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                       information: http://www.pragma-ade.com/roadmap.pdf
                    documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to