* A problem with combining characters
@ 2010-07-02 15:57 luigi scarso
2010-07-02 16:33 ` Khaled Hosny
2010-07-04 15:07 ` luigi scarso
0 siblings, 2 replies; 7+ messages in thread
From: luigi scarso @ 2010-07-02 15:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
2010-07-02 15:57 A problem with combining characters luigi scarso
@ 2010-07-02 16:33 ` Khaled Hosny
2010-07-03 0:01 ` luigi scarso
2010-07-05 9:44 ` luigi scarso
2010-07-04 15:07 ` luigi scarso
1 sibling, 2 replies; 7+ messages in thread
From: Khaled Hosny @ 2010-07-02 16:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jul 02, 2010 at 05:57:01PM +0200, luigi scarso 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
Tested with Pango, the two marks overlap, very likely to be a font issue
(no mark to mark anchor attachment). Looks good in DejaVu Sans (but not
Serif) BTW.
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
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
1 sibling, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-07-03 0:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jul 2, 2010 at 6:33 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> On Fri, Jul 02, 2010 at 05:57:01PM +0200, luigi scarso 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
>
> Tested with Pango, the two marks overlap, very likely to be a font issue
> (no mark to mark anchor attachment). Looks good in DejaVu Sans (but not
> Serif) BTW.
Libertine has not ccmp feature,
dejavusans yes
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
2010-07-03 0:01 ` luigi scarso
@ 2010-07-03 0:33 ` luigi scarso
0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2010-07-03 0:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Also
\usemodule[s-fnt-10]
\setuppapersize[A3,landscape][A3,landscape]
\setupbodyfont[ss,12pt]
\setupinteraction[state=start]
\starttext
\completecontent
\chapter{dejavusansmono}
\ShowCompleteFont{name:dejavusansmono}{12pt}{1}
\chapter{dejavuserif}
\ShowCompleteFont{name:dejavuserif}{12pt}{1}
\chapter{libertine}
\ShowCompleteFont{name:libertine}{12pt}{1}
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
2010-07-02 15:57 A problem with combining characters luigi scarso
2010-07-02 16:33 ` Khaled Hosny
@ 2010-07-04 15:07 ` luigi scarso
1 sibling, 0 replies; 7+ messages in thread
From: luigi scarso @ 2010-07-04 15:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
2010-07-02 16:33 ` Khaled Hosny
2010-07-03 0:01 ` luigi scarso
@ 2010-07-05 9:44 ` luigi scarso
2010-07-07 9:00 ` luigi scarso
1 sibling, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-07-05 9:44 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jul 2, 2010 at 6:33 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
> On Fri, Jul 02, 2010 at 05:57:01PM +0200, luigi scarso 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
>
> Tested with Pango, the two marks overlap, very likely to be a font issue
> (no mark to mark anchor attachment). Looks good in DejaVu Sans (but not
> Serif) BTW.
Not here: the same problem of libertine.
Maybe I'm not using the right features ?
\pdfobjcompresslevel0
\pdfcompresslevel0
\unprotect
\definefontfeature[otftracker-dejavu]
[language=dflt,mode=node,script=latn,ccmp=yes,kern=yes]
%aalt Access All Alternates
%ccmp Glyph Composition/Decomposition
%dlig Discretionary Ligatures
%hlig Historical Ligatures
%kern Kerning
%liga Standard Ligatures
%mark Mark Positioning
%mkmk Mark to Mark Positioning
%salt Stylistic Alternates
\starttypescriptcollection[dejavu]
\starttypescript [serif] [dejavu] [name]
\setups[\s!font:\s!fallback:\s!serif]
\definefontsynonym [\s!Serif]
[\s!file:DejaVuSerif.ttf] [\s!features=otftracker-dejavu]
\definefontsynonym [\s!SerifBold]
[\s!file:DejaVuSerif-Bold.ttf] [\s!features=\s!default]
\definefontsynonym [\s!SerifItalic]
[\s!file:DejaVuSerif-Italic.ttf] [\s!features=\s!default]
\definefontsynonym [\s!SerifBoldItalic]
[\s!file:DejaVuSerif-BoldItalic.ttf] [\s!features=\s!default]
\stoptypescript
\starttypescript [sans] [dejavu] [name]
\setups[\s!font:\s!fallback:\s!sans]
\definefontsynonym [\s!Sans]
[\s!file:DejaVuSans.ttf] [\s!features=otftracker-dejavu]
\definefontsynonym [\s!SansBold]
[\s!file:DejaVuSans-Bold.ttf] [\s!features=\s!default]
\definefontsynonym [\s!SansItalic]
[\s!file:DejaVuSans-Oblique.ttf] [\s!features=\s!default]
\definefontsynonym [\s!SansBoldItalic]
[\s!file:DejaVuSans-Oblique.ttf] [\s!features=\s!default]
\stoptypescript
\stoptypescriptcollection
\protect
\starttypescript[dejavu]
\definetypeface[dejavu][rm][serif][dejavu]
\definetypeface[dejavu][ss][sans][dejavu]
\stoptypescript
\usetypescript[dejavu]
\setupbodyfont[dejavu,rm,18pt]
\setupinterlinespace[line=2.6ex]
\startluacode
function desc2utf8(desc)
local us = ''
local plane = 0
for i,v in pairs(characters.data) do
if v.description == desc then
us = v.unicodeslot
print(string.format("==> \%s u\%04x",desc,us))
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}
{\ss \N{LATIN SMALL LETTER A}\N{COMBINING DOT BELOW}\N{COMBINING CARON
BELOW} }\\
\\
{\rm \N{LATIN SMALL LETTER N}\N{COMBINING TILDE}}%
{\ss \N{LATIN SMALL LETTER N}\N{COMBINING TILDE}}\\
%
{\rm \N{LATIN SMALL LETTER N WITH TILDE}}%
{\ss \N{LATIN SMALL LETTER N WITH TILDE}}
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: A problem with combining characters
2010-07-05 9:44 ` luigi scarso
@ 2010-07-07 9:00 ` luigi scarso
0 siblings, 0 replies; 7+ messages in thread
From: luigi scarso @ 2010-07-07 9:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, Jul 5, 2010 at 11:44 AM, luigi scarso <luigi.scarso@gmail.com> wrote:
> On Fri, Jul 2, 2010 at 6:33 PM, Khaled Hosny <khaledhosny@eglug.org> wrote:
>> On Fri, Jul 02, 2010 at 05:57:01PM +0200, luigi scarso 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
>>
>> Tested with Pango, the two marks overlap, very likely to be a font issue
>> (no mark to mark anchor attachment). Looks good in DejaVu Sans (but not
>> Serif) BTW.
> Not here: the same problem of libertine.
> Maybe I'm not using the right features ?
Maybe combine=yes
--
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-07-07 9:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 15:57 A problem with combining characters 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 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).