ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: rotated accented character
Date: Sun, 21 Aug 2005 20:32:49 +0200	[thread overview]
Message-ID: <4308C8D1.2060505@wxs.nl> (raw)

Mojca Miklavec wrote:

>So now that I have the properly rotated letter, is it possible to do
>the following:
>
>% U0259 LATIN SMALL LETTER SCHWA
>\definecharacter schwa {\rotate[rotation=180,location=high]{\hbox{e}}}
>\definecharacter schwagrave {\buildtextaccent\textgrave{\schwa}}
>\schwagrave
>  
>

Hm, probably needed for old-slovenian or so:

\starttext

\unexpanded\def\topaccent#1#2#3#4#5% down right slantcorrection accent char
  {\dontleavehmode
   \bgroup
     \setbox0\hbox{#4}%
     \setbox2\hbox{#5}%
     \hbox to \wd2 \bgroup
        \hss\copy2\hss
        \hskip-\wd2
        \hss\hskip#2\wd0\hskip-#3\fontdimen1\font\raise#1\hbox{#4}\hss
     \egroup
   \egroup}

\def\buildtextgrave{\topaccent{0pt}{0}{15}{\textgrave}}

\startencoding[default]

\definecharacter schwa      {\hbox{\rotate[rotation=180,location=high]{\hbox{e}}}}
\definecharacter schwagrave {\buildtextgrave\schwa}

\stopencoding

test test \ruledhbox{\schwa} test \schwagrave
test test \ruledhbox{\schwa} test \schwagrave
test test \ruledhbox{\schwa} test \schwagrave

\sl test test \ruledhbox{\schwa} test \schwagrave
test test \ruledhbox{\schwa} test \schwagrave
test test \ruledhbox{\schwa} test \schwagrave

\stoptext

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

-- 

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

             reply	other threads:[~2005-08-21 18:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-21 18:32 Hans Hagen [this message]
2005-08-22  0:25 ` Mojca Miklavec
2005-08-22 16:08   ` Hans Hagen Outside
  -- strict thread matches above, loose matches on Subject: below --
2005-08-18 13:49 Mojca Miklavec
2005-08-18 18:14 ` Hans Hagen
2005-08-21 13:34   ` Mojca Miklavec
2005-08-21 18:31     ` Hans Hagen
2005-08-21 18:33     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4308C8D1.2060505@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).