ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* uc-encoded fonts and accents
@ 2006-12-12 16:54 Mojca Miklavec
  2006-12-18 18:29 ` Mojca Miklavec
  0 siblings, 1 reply; 2+ messages in thread
From: Mojca Miklavec @ 2006-12-12 16:54 UTC (permalink / raw)
  Cc: Adam Lindsay

Hello,

in enco-uc.tex there are some definitions which use "combining" accents:

\definecharacter textgrave        {\uchar3{0}}
\definecharacter textacute        {\uchar3{1}}
\definecharacter textcircumflex   {\uchar3{2}}
\definecharacter texttilde        {\uchar3{3}}
\definecharacter textmacron       {\uchar3{4}}
\definecharacter textbreve        {\uchar3{6}}
\definecharacter textdotaccent    {\uchar3{7}}
\definecharacter textdiaeresis    {\uchar3{8}}
\definecharacter textring         {\uchar3{10}}
\definecharacter texthungarumlaut {\uchar3{11}}
\definecharacter textcaron        {\uchar3{12}}
\definecharacter textogonek       {\uchar3{40}}

But this is almost useless, since those fonts that have things like
"ccaron" missing (which are exactly the ones for which such kind of
definitions might be useful) don't have any glyphs on those slots.
Appart from that \buildtextaccent is used for "combining", so there
should be no real need for using "combining accents" at that place.

Here's a copy of relevant lines from contextnames.txt (as a refence to
which values the values above should be changed if others agree):

005E;asciicircum;textasciicircum;CIRCUMFLEX ACCENT
0060;grave;textgrave;GRAVE ACCENT
00A8;dieresis;textdiaeresis;DIAERESIS
00AF;macron;textmacron;MACRON
00B4;acute;textacute;ACUTE ACCENT
00B8;cedilla;textcedilla;CEDILLA
02C6;circumflex;textcircumflex;MODIFIER LETTER CIRCUMFLEX ACCENT
02C7;caron;textcaron;CARON
02D8;breve;textbreve;BREVE
02D9;dotaccent;textdotaccent;DOT ABOVE
02DA;ring;textring;RING ABOVE
02DB;ogonek;textogonek;OGONEK
02DC;tilde;texttilde;SMALL TILDE
02DD;hungarumlaut;texthungarumlaut;DOUBLE ACUTE ACCENT

Would it be possible to fix those lines in enco-uc.tex?

(Writing because I needed to use ccaron in one of the fonts which
doesn't have that. After redefining textcaron to a proper value it
worked OK for that specific font.)

Thanks,
    Mojca

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

* Re: uc-encoded fonts and accents
  2006-12-12 16:54 uc-encoded fonts and accents Mojca Miklavec
@ 2006-12-18 18:29 ` Mojca Miklavec
  0 siblings, 0 replies; 2+ messages in thread
From: Mojca Miklavec @ 2006-12-18 18:29 UTC (permalink / raw)


I would like to ask once more since there was no response on the
prevous post: are there any objections against adding the following
patch to enco-uc.tex?

\definecharacter textasciicircum  {\uchar{0}{"5E}}
\definecharacter textgrave        {\uchar{0}{"60}}
\definecharacter textdiaeresis    {\uchar{0}{"A8}}
\definecharacter textmacron       {\uchar{0}{"AF}}
\definecharacter textacute        {\uchar{0}{"B4}}
\definecharacter textcedilla      {\uchar{0}{"B8}}
\definecharacter textcircumflex   {\uchar{2}{"C6}}
\definecharacter textcaron        {\uchar{2}{"C7}}
\definecharacter textbreve        {\uchar{2}{"D8}}
\definecharacter textdotaccent    {\uchar{2}{"D9}}
\definecharacter textring         {\uchar{2}{"DA}}
\definecharacter textogonek       {\uchar{2}{"DB}}
\definecharacter texttilde        {\uchar{2}{"DC}}
\definecharacter texthungarumlaut {\uchar{2}{"DD}}

(second number should be written in decimal, but I don't want to be
responsible for a wrong conversion ;)

Mojca


On 12/12/06, Mojca Miklavec wrote:
> Hello,
>
> in enco-uc.tex there are some definitions which use "combining" accents:
>
> \definecharacter textgrave        {\uchar3{0}}
> \definecharacter textacute        {\uchar3{1}}
> \definecharacter textcircumflex   {\uchar3{2}}
> \definecharacter texttilde        {\uchar3{3}}
> \definecharacter textmacron       {\uchar3{4}}
> \definecharacter textbreve        {\uchar3{6}}
> \definecharacter textdotaccent    {\uchar3{7}}
> \definecharacter textdiaeresis    {\uchar3{8}}
> \definecharacter textring         {\uchar3{10}}
> \definecharacter texthungarumlaut {\uchar3{11}}
> \definecharacter textcaron        {\uchar3{12}}
> \definecharacter textogonek       {\uchar3{40}}
>
> But this is almost useless, since those fonts that have things like
> "ccaron" missing (which are exactly the ones for which such kind of
> definitions might be useful) don't have any glyphs on those slots.
> Appart from that \buildtextaccent is used for "combining", so there
> should be no real need for using "combining accents" at that place.
>
> Here's a copy of relevant lines from contextnames.txt (as a refence to
> which values the values above should be changed if others agree):
>
> 005E;asciicircum;textasciicircum;CIRCUMFLEX ACCENT
> 0060;grave;textgrave;GRAVE ACCENT
> 00A8;dieresis;textdiaeresis;DIAERESIS
> 00AF;macron;textmacron;MACRON
> 00B4;acute;textacute;ACUTE ACCENT
> 00B8;cedilla;textcedilla;CEDILLA
> 02C6;circumflex;textcircumflex;MODIFIER LETTER CIRCUMFLEX ACCENT
> 02C7;caron;textcaron;CARON
> 02D8;breve;textbreve;BREVE
> 02D9;dotaccent;textdotaccent;DOT ABOVE
> 02DA;ring;textring;RING ABOVE
> 02DB;ogonek;textogonek;OGONEK
> 02DC;tilde;texttilde;SMALL TILDE
> 02DD;hungarumlaut;texthungarumlaut;DOUBLE ACUTE ACCENT
>
> Would it be possible to fix those lines in enco-uc.tex?
>
> (Writing because I needed to use ccaron in one of the fonts which
> doesn't have that. After redefining textcaron to a proper value it
> worked OK for that specific font.)
>
> Thanks,
>     Mojca
>

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

end of thread, other threads:[~2006-12-18 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-12 16:54 uc-encoded fonts and accents Mojca Miklavec
2006-12-18 18:29 ` Mojca Miklavec

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