From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A problem with combining characters
Date: Sun, 4 Jul 2010 17:07:56 +0200 [thread overview]
Message-ID: <AANLkTinXSnRaTopYaIuAWRnaqkyvLh6x1H8KgGpg8T2U@mail.gmail.com> (raw)
In-Reply-To: <AANLkTim2yPBEZc3P58NgH1xwPoGSk0YTVxjiEKkLn_7p@mail.gmail.com>
On Fri, Jul 2, 2010 at 5:57 PM, luigi scarso <luigi.scarso@gmail.com> wrote:
> In this example \N{COMBINING CARON BELOW} looks bad -- a font problem ?
>
> \usetypescript[libertine]
> \setupbodyfont[libertine,rm,10pt]
> \setupinterlinespace[line=2.6ex]
>
> \starttext
> %%echo '\N{LATIN SMALL LETTER A}\N{COMBINING DOT BELOW}\N{COMBINING
> CARON BELOW}' |./uconv -t utf-8 -x "name-any
> ạ̬
> \stoptext
Better in pure mkiv
\usetypescript[libertine]
\setupbodyfont[libertine,rm,10pt]
\setupinterlinespace[line=2.6ex]
\startluacode
function desc2utf8(desc)
local us = ''
local plane = 0
for i,v in pairs(characters.data) do
plane = i
if v.description == desc then
us = v.unicodeslot
break
end
end
return tex.sprint(tex.ctxcatcodes,unicode.utf8.char(us))
end
\stopluacode
\def\N#1{\ctxlua{desc2utf8("#1")}}
\starttext
\N{LATIN SMALL LETTER A}\N{COMBINING DOT BELOW}\N{COMBINING CARON BELOW}
\stoptext
--
luigi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2010-07-04 15:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-02 15:57 luigi scarso
2010-07-02 16:33 ` Khaled Hosny
2010-07-03 0:01 ` luigi scarso
2010-07-03 0:33 ` luigi scarso
2010-07-05 9:44 ` luigi scarso
2010-07-07 9:00 ` luigi scarso
2010-07-04 15:07 ` luigi scarso [this message]
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=AANLkTinXSnRaTopYaIuAWRnaqkyvLh6x1H8KgGpg8T2U@mail.gmail.com \
--to=luigi.scarso@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).