ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Is this an encoding problem?
@ 2009-05-31 20:00 Maurí­cio
  2009-05-31 22:13 ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Maurí­cio @ 2009-05-31 20:00 UTC (permalink / raw)
  To: ntg-context

Hi,

I'm using the lines below in the start of a book '.tex' file. It
selects the 'gentium' pre-defined typeface, and the file itself
was done using utf8.

However, a few unicode characters desapear or cause small
problems, like these (unicodes between 2012 and 2015):

― (before spoken text)
- (hyphen)

I thought they could be missing from the font, but I have already
used gentium by just loading the font, before I learned about
typefaces. (I did download the font from its site, however,
instead of using that from minimals.)

Did I do anything wrong?

Thanks,
Maurício


%%%%

\enableregime[utf]
\mainlanguage[pt]
\setuppapersize[a5][a5]

\usetypescript[gentium]
\setupbodyfont[gentium,20pt]

\setupindenting[small]
\indenting[yes]
\setupwhitespace[small]
\definestartstop [verse]
                  [before=\vbox\bgroup\startlines,
                    after=\stoplines\egroup]
\defineselector[title][max=2,n=2]
\setuplist[chapter][width=0pt]
\setupheads[alternative=middle]
\setuphead[chapter][number=no,incrementnumber=list]
\starttext

___________________________________________________________________________________
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: Is this an encoding problem?
  2009-05-31 20:00 Is this an encoding problem? Maurí­cio
@ 2009-05-31 22:13 ` Mojca Miklavec
  2009-06-01  2:56   ` Maurí­cio
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2009-05-31 22:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz

On Sun, May 31, 2009 at 22:00, Maurí­cio wrote:
> Hi,
>
> I'm using the lines below in the start of a book '.tex' file. It
> selects the 'gentium' pre-defined typeface, and the file itself
> was done using utf8.
>
> However, a few unicode characters desapear or cause small
> problems, like these (unicodes between 2012 and 2015):
>
> ― (before spoken text)
> - (hyphen)

They work here both in mkii and mkiv (Thomas - I have a feeling that
naming of book basic in type-gentium and in tfm files is out of sync
for some reason), though I wouldn't be surprised if there were any
problems with the font (we submitted a faulty ttf version to CTAN
once). Does it make any difference if you replace the font in TeX tree
with the font downloaded straight from SIL (and maybe regenerate font
cache for luatex just in case)?

You'll probably need to post a minimal complete example that fails.

Mojca
___________________________________________________________________________________
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: Is this an encoding problem?
  2009-05-31 22:13 ` Mojca Miklavec
@ 2009-06-01  2:56   ` Maurí­cio
  0 siblings, 0 replies; 3+ messages in thread
From: Maurí­cio @ 2009-06-01  2:56 UTC (permalink / raw)
  To: ntg-context

>> However, a few unicode characters desapear or cause small
>> problems, like these (unicodes between 2012 and 2015):

> They work here both in mkii and mkiv (...)
> Does it make any difference if you replace the font in TeX tree
> with the font downloaded straight from SIL (and maybe regenerate font
> cache for luatex just in case)?

Here is md5sum of gentium files. However, I wasn't able to
get those characters with any font. My first tought was that
input could be in something different from utf8, but I can get
the ellipsis from the example below to work.

34cc1c1f334221ba0b67e05011036906 *context/tex/texmf/fonts/truetype/public/gentium/GenI102.TTF
c8b88a8ecf5f6f93052fb2d1628438d5 *context/tex/texmf/fonts/truetype/public/gentium/GenBasBI.ttf
c968d72c4bfc649e2581a5d6699fd31f *context/tex/texmf/fonts/truetype/public/gentium/GenR102.TTF
03ca29844a7db9b018b2dd4de50be6d6 *context/tex/texmf/fonts/truetype/public/gentium/GenBasB.ttf

> You'll probably need to post a minimal complete example that fails.

Here it is. The ellipsis is okay in the output. The
horizontal bars, however, just desapear, although they
do use some space, as the first letters do not stay
aligned with the last line.

%%%%

\enableregime[utf]
\usetypescript[gentium]
\setupbodyfont[gentium,20pt]
\starttext

― Tá vendo? Você não entende!

― Claro que entendo…

This is a line without a dash.

\stoptext

___________________________________________________________________________________
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:[~2009-06-01  2:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-31 20:00 Is this an encoding problem? Maurí­cio
2009-05-31 22:13 ` Mojca Miklavec
2009-06-01  2:56   ` Maurí­cio

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