ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
Subject: Re: \uchar and italics question
Date: Fri, 20 Jan 2006 18:30:12 +0100	[thread overview]
Message-ID: <6faad9f00601200930v188941c5oeba4ccb10c53d382@mail.gmail.com> (raw)
In-Reply-To: <5F9D5692-2B66-467D-B9D7-A56925B29158@zonnet.nl>

[-- Attachment #1: Type: text/plain, Size: 3079 bytes --]

On 1/18/06, sjoerd siebinga wrote:
> On 18 Jan 2006, at 13:10, Mojca Miklavec wrote:
> > If the placement of the
> > macron doesn't suit your font, you can redefine it and get rid of
> > those \uchar-s.
>
> What is the best way to redefine the accents (like macron, acute,
> etc.) to say a standard tex accent?

See enco-def.tex:

\definecharacter Amacron {\buildtextaccent\textmacron A}

This places the accent in the default way. But for example:

\definecharacter Adotbelow  {\buildtextbottomdot A}

In enco-ini.tex:
\def\buildtextbottomdot{\bottomaccent{.25ex}{0}{5}{\textbottomdot}}
\def\buildtextmacron{\bottomaccent{.25ex}{0}{15}{\textmacron}}
\def\buildtextgrave{\topaccent{0pt}{0}{15}{\textgrave}}

You can fine-tune those three argument to suit you best.

See also enco-acc.tex.

> Is there a command to pick up certain utf-glyphs that aren't picked-
> up by context? See the  ƃ ǖ in my example file.

I don't understand much abot the fonts and typescripts you are using,
but if you are using pdfTeX, two criteria have to be met:

1. you have to have it in the font (not only in the ttf, but also in
tfm I guess) - this seem to be rather complex font definitions; in
case of usual "256-character" fonts you could get them with something
similar to \getglyph{UnicodeRegular01}{\char131} (you can define the
character name somewhere else, so that you don't need to say that
explicitely) or

% has to be included inside the proper encoding & typescript file
% I doubt that this would suit your needs
\definecharacter btopbar   131

But I don't know how this fits with your fonts.

2. If you have low-level access to proper glyphs described above, take
a look at unic-001.tex (or enco-uc.tex, but I guess that the later is
only used in XeTeX):

\startunicodevector 1
  \expandafter\strippedcsname
  \ifcase\numexpr#1\relax
    \Amacron       \or
...
    \Zcaron        \or
    \zcaron        \or
    \slong         \or % 127 \slong \else
    \unknownchar   \or % could be \bstroke
    \unknownchar   \or % could be \Bhook
    \unknownchar   \or
    \unknownchar   \or % this could be "your" \btopbar (ƃ)
           % (LATIN SMALL LETTER B WITH TOPBAR)
           % or some more appropriate name
...
    \uhorn         \or
...
    \udiaeresismacron \or % ǖ LATIN SMALL LETTER U WITH DIAERESIS AND MACRON
...
    \else
    \unknownchar
  \fi
\stopunicodevector

And then \btopbar has to be defined in the "encoding" to result in the
proper glyph. These slots were left undefined since nobody is
currently using them. If you can "invent" appropriate names, plese
consider contributing to the list. I collected some of the names
(those that I was able to find) on
http://pub.mojca.org/tex/enco/contextlist/contextnames.html (not all
of them are present in unic-*). unic-*.tex, enco-uc.tex are not really
sinchronized yet (in one file some names are defined which are not
defined in the other one).

For Chinese and Japanese some other mechanism is used which doesn't
need those names (might be more appropriate for you as well?), but I
don't know any more about it.

Mojca

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  parent reply	other threads:[~2006-01-20 17:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-17 16:57 sjoerd siebinga
2006-01-17 22:54 ` Hans Hagen
2006-01-18 12:10 ` Mojca Miklavec
2006-01-18 14:22   ` Hans Hagen
2006-01-18 20:04     ` sjoerd siebinga
2006-01-18 23:26       ` Hans Hagen
2006-01-19  7:21         ` sjoerd siebinga
2006-01-19  9:43           ` Hans Hagen
2006-01-19 10:30             ` sjoerd siebinga
2006-01-19 10:42               ` Hans Hagen
2006-01-19 13:17               ` Henning Hraban Ramm
2006-01-19 16:35                 ` sjoerd siebinga
2006-01-19 17:20                   ` Hans Hagen
2006-01-19 18:50                   ` Henning Hraban Ramm
2006-01-19 19:44                     ` Hans Hagen
2006-01-19 20:51                       ` sjoerd siebinga
2006-01-20  9:26                         ` Henning Hraban Ramm
2006-01-20 17:30       ` Mojca Miklavec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-01-18  6:56 sjoerd siebinga
2006-01-17 16:57 sjoerd siebinga

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=6faad9f00601200930v188941c5oeba4ccb10c53d382@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --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).