ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Choosing an encoding - what are the consequences?
@ 2005-02-15  8:38 Stefan Wachter
  2005-02-15 14:50 ` Adam Lindsay
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Wachter @ 2005-02-15  8:38 UTC (permalink / raw)


Hi all!

I am on the burdensome path to understanding font handling in ConText. 
Now I wonder what the consequences are with choosing certain encodings.

For example if I choose "8a" encoding (called "Adobe standard encoding"):

1. There are lots of empty slots in this encoding. What does ConText do 
if a symbol that is to be typeset is not contained in an encoding?

2. Can I ommit the 8a encoding in map files when PDF documents are 
generated (because it is the Adobe standard encoding)?

3. Somewhere I read that "texnansi" is a preferred encoding. Why?

Thanks for your attention,
--Stefan

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

* Re: Choosing an encoding - what are the consequences?
  2005-02-15  8:38 Choosing an encoding - what are the consequences? Stefan Wachter
@ 2005-02-15 14:50 ` Adam Lindsay
  2005-02-17  8:50   ` Henning Hraban Ramm
  2005-02-17 18:29   ` Stefan Wachter
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Lindsay @ 2005-02-15 14:50 UTC (permalink / raw)


Stefan Wachter said this at Tue, 15 Feb 2005 09:38:02 +0100:

>I am on the burdensome path to understanding font handling in ConText. 
>Now I wonder what the consequences are with choosing certain encodings.

I'll give an answer based on what I understand. Mind you, I'm lucky
enough to write almost exclusively in English, where it's not an issue.

>For example if I choose "8a" encoding (called "Adobe standard encoding"):

Okay, as far as I know, ConTeXt doesn't have an 8a/Adobe encoding vector
defined yet.

>1. There are lots of empty slots in this encoding. What does ConText do 
>if a symbol that is to be typeset is not contained in an encoding?

It falls back to the enco-def encoding, where it substitutes or composes
a character from known (or expected) defaults.

>2. Can I ommit the 8a encoding in map files when PDF documents are 
>generated (because it is the Adobe standard encoding)?

Dunno. But it's worth finding out! :)

>3. Somewhere I read that "texnansi" is a preferred encoding. Why?

I think it's got the most useful (to Hans) glyphs packed in there. 
There's the secondary fact that the built-in fonts shipped with most
distributions don't include it, and Hans seems to view most pre-
fabricated TFM files with some suspicion. If you build a local TFM file
with texfont, then you know what you're getting!

But that's only my interpretation.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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

* Re: Choosing an encoding - what are the consequences?
  2005-02-15 14:50 ` Adam Lindsay
@ 2005-02-17  8:50   ` Henning Hraban Ramm
  2005-02-17 18:29   ` Stefan Wachter
  1 sibling, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2005-02-17  8:50 UTC (permalink / raw)


Am 15.02.2005 um 15:50 schrieb Adam Lindsay:
>> 3. Somewhere I read that "texnansi" is a preferred encoding. Why?
> I think it's got the most useful (to Hans) glyphs packed in there.

Compare texnansi and ec encodings and decide which of these fits your 
needs.
AFAIK ec has some more eastern european signs.

Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net

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

* Re: Choosing an encoding - what are the consequences?
  2005-02-15 14:50 ` Adam Lindsay
  2005-02-17  8:50   ` Henning Hraban Ramm
@ 2005-02-17 18:29   ` Stefan Wachter
  2005-02-18  9:41     ` Hans Hagen
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Wachter @ 2005-02-17 18:29 UTC (permalink / raw)


Adam Lindsay wrote:

 > Okay, as far as I know, ConTeXt doesn't have an 8a/Adobe encoding vector
 > defined yet.

What does it mean that ConTeXt doesn't have an 8a/Adobe encoding vector? 
Isn't it enough for ConTeXt that there is an 8a.enc file? (I am prepared 
to write the necessary typescripts myself.)

 >
 >
 >>2. Can I ommit the 8a encoding in map files when PDF documents are
 >>generated (because it is the Adobe standard encoding)?
 >
 >
 > Dunno. But it's worth finding out! :)

I installed the Adobe Helvetica fonts in 8a encoding using texfont. Then 
I removed the download instructions in the generated map files. After 
that I could generate PDF documents that are rather minimal: no fonts or 
encodings were embedded.

Yet, the results were in some way unexpected. It seems that the 8a 
encoding really isn't supported by ConTeXt. For example if I say

\setupencoding[default=8a]

and output the character \char251

then I get a "ß" in the resulting PDF. I am very astonished to receive 
that character because in 8a, T1, and texnansi encoding the glyph 
/ucircumflex is located at that slot.

Maybe this has to do with virtual fonts? I still struggle with all these 
matters.

1. The afm2tfm tool allows to set two different encodings: "-p ps-enc" 
and "-t tex-enc" whereas texfont offers only one encoding. Does texfont 
use the same encoding for the ps-enc and the tex-enc?

2. What is the meansing of the ps-enc and the tex-enc, respectively?

Can anyone help with these questions?
--Stefan

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

* Re: Re: Choosing an encoding - what are the consequences?
  2005-02-17 18:29   ` Stefan Wachter
@ 2005-02-18  9:41     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-02-18  9:41 UTC (permalink / raw)


Stefan Wachter wrote:
> Adam Lindsay wrote:
> 
>  > Okay, as far as I know, ConTeXt doesn't have an 8a/Adobe encoding vector
>  > defined yet.
> 
> What does it mean that ConTeXt doesn't have an 8a/Adobe encoding vector? 
> Isn't it enough for ConTeXt that there is an 8a.enc file? (I am prepared 
> to write the necessary typescripts myself.)

you need to write an enco-ase file then; no reason for typescripts

> Yet, the results were in some way unexpected. It seems that the 8a 
> encoding really isn't supported by ConTeXt. For example if I say
> 
> \setupencoding[default=8a]
> 
> and output the character \char251
> 
> then I get a "ß" in the resulting PDF. I am very astonished to receive 
> that character because in 8a, T1, and texnansi encoding the glyph 
> /ucircumflex is located at that slot.
> 
> Maybe this has to do with virtual fonts? I still struggle with all these 
> matters.

no, just make me an enco-ase (adobe standard encoding) file; you can use 
enco-ans as starting point

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

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

end of thread, other threads:[~2005-02-18  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15  8:38 Choosing an encoding - what are the consequences? Stefan Wachter
2005-02-15 14:50 ` Adam Lindsay
2005-02-17  8:50   ` Henning Hraban Ramm
2005-02-17 18:29   ` Stefan Wachter
2005-02-18  9:41     ` Hans Hagen

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