ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing character in texgyreheros
@ 2008-04-28 16:00 luigi scarso
  2008-04-29 13:10 ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2008-04-28 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Sorry for the noise,
but i'm in the middle between an old
context mkii (2005) and mkiv stylesheet for a greek utf-encoded  file
and i'm a bit confused.

While using Heros font, I have:
Missing character: There is no ώ (974) in font
/home/usr7/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf!

But in enco-def.tex there is
\definecharacter greekomegatonos            {'w}

so I believe that it's possible to replace missing glyph with {'w}
Maybe some switch ?

I'm using
\usetypescript[postscript]
\setupbodyfont[postscript,10pt,ss]

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Missing character in texgyreheros
  2008-04-28 16:00 Missing character in texgyreheros luigi scarso
@ 2008-04-29 13:10 ` luigi scarso
  2008-04-29 13:52   ` Taco Hoekwater
  0 siblings, 1 reply; 3+ messages in thread
From: luigi scarso @ 2008-04-29 13:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/4/28 luigi scarso <luigi.scarso@gmail.com>:
> Sorry for the noise,
>  but i'm in the middle between an old
>  context mkii (2005) and mkiv stylesheet for a greek utf-encoded  file
>  and i'm a bit confused.
>
>  While using Heros font, I have:
>  Missing character: There is no ώ (974) in font
>  /home/usr7/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf!
>
>  But in enco-def.tex there is
>  \definecharacter greekomegatonos            {'w}
>
>  so I believe that it's possible to replace missing glyph with {'w}
>  Maybe some switch ?
>
>  I'm using
>  \usetypescript[postscript]
>  \setupbodyfont[postscript,10pt,ss]
>

This works,
but nothing else.

\usetypescript[postscript]
\setupbodyfont[postscript,10pt,ss]

\startluacode
function add_ties (line)
 line = line:gsub('ά','\\buildtextaccent\\textacute\\greekalpha')
 line = line:gsub('έ','\\buildtextaccent\\textacute\\greekepsilon')
 line = line:gsub('ή','\\buildtextaccent\\textacute\\greeketa')
 line = line:gsub('ί','\\buildtextaccent\\textacute\\greekiota')
 line = line:gsub('ό','\\buildtextaccent\\textacute\\greekomicron')
 line = line:gsub('ύ','\\buildtextaccent\\textacute\\greekupsilon')
 line = line:gsub('ώ','\\buildtextaccent\\textacute\\greekomega')
 line = line:gsub('Ό',"'\\greekOmicron")
 line = line:gsub("Ά","'\\greekAlpha")
 line = line:gsub("Έ","'\\greekEpsilon")
 line = line:gsub("Ή","'\\greekEta")
 line = line:gsub("Ί","'\\greekIota")
 line = line:gsub("ϊ","\\buildtextaccent\\textdiaeresis\\greekiota")
 line = line:gsub("Ύ","'\\greekUpsilon")
 line = line:gsub("Ώ","'\\greekOmega")
 return line
end
\stopluacode

\setupcolors[state=start]
\def\startfiltered{\ctxlua {callback.register('process_input_buffer',
add_ties)}}
\def\stopfiltered{\ctxlua {callback.register('process_input_buffer', nil)}}


\language[gr]

\starttext
\startfiltered
%%  see
%%  http://www.lorem-ipsum.info/generator3
\input Greek-Lipsum.txt
\stopfiltered
\stoptext


-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Missing character in texgyreheros
  2008-04-29 13:10 ` luigi scarso
@ 2008-04-29 13:52   ` Taco Hoekwater
  0 siblings, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2008-04-29 13:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users



luigi scarso wrote:
> 2008/4/28 luigi scarso <luigi.scarso@gmail.com>:
>> Sorry for the noise,
>>  but i'm in the middle between an old
>>  context mkii (2005) and mkiv stylesheet for a greek utf-encoded  file
>>  and i'm a bit confused.
>>
>>  While using Heros font, I have:
>>  Missing character: There is no ώ (974) in font
>>  /home/usr7/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf!
>>
>>  But in enco-def.tex there is
>>  \definecharacter greekomegatonos            {'w}
>>
>>  so I believe that it's possible to replace missing glyph with {'w}
>>  Maybe some switch ?
>>
>>  I'm using
>>  \usetypescript[postscript]
>>  \setupbodyfont[postscript,10pt,ss]
>>
> 
> This works,
> but nothing else.

This should also work (but untested)

   \catcode`\ώ=\active \def ώ{\buildtextaccent\textacute\greekomega}

Best wishes,
Taco
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2008-04-29 13:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-28 16:00 Missing character in texgyreheros luigi scarso
2008-04-29 13:10 ` luigi scarso
2008-04-29 13:52   ` Taco Hoekwater

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