ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font encodings
@ 2005-03-14 21:26 Thomas A.Schmitz
  2005-03-15 21:51 ` Hans Hagen
  2005-05-05 11:00 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas A.Schmitz @ 2005-03-14 21:26 UTC (permalink / raw)


Hi all,

I want to use a custom font encoding (in my case, enco-agr for ancient 
Greek). I can't set it up for the entire document because it breaks, 
e.g., the output of accented letters. But when I try to use it for 
certain parts of the document only, it will insert a line break 
whenever it is used. So my question: is it possible to switch font 
encoding in mid-paragraph?

Best

Thomas

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

* Re: font encodings
  2005-03-14 21:26 font encodings Thomas A.Schmitz
@ 2005-03-15 21:51 ` Hans Hagen
  2005-05-05 11:00 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-03-15 21:51 UTC (permalink / raw)


Thomas A.Schmitz wrote:

> I want to use a custom font encoding (in my case, enco-agr for ancient 
> Greek). I can't set it up for the entire document because it breaks, 
> e.g., the output of accented letters. But when I try to use it for 
> certain parts of the document only, it will insert a line break whenever 
> it is used. So my question: is it possible to switch font encoding in 
> mid-paragraph?

sure; fonts can be asociated with encodings and can be mixed in a paragraph;

your problem may be due to for instance a spurious space in one of your definitions

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

* Re: font encodings
  2005-03-14 21:26 font encodings Thomas A.Schmitz
  2005-03-15 21:51 ` Hans Hagen
@ 2005-05-05 11:00 ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2005-05-05 11:00 UTC (permalink / raw)


Thomas A.Schmitz wrote:

> I want to use a custom font encoding (in my case, enco-agr for ancient 
> Greek). I can't set it up for the entire document because it breaks, 
> e.g., the output of accented letters. But when I try to use it for 
> certain parts of the document only, it will insert a line break whenever 
> it is used. So my question: is it possible to switch font encoding in 
> mid-paragraph?

no problem, since font encodings are bound to fonts, not paragraphs; however, 
you need to keep in mind that hyphenation is related to the font encoding as 
well as the language; when a paragraph is converted to a list, it's known what 
font is used and the character codes are resolved (i.e. when mixing two font 
encodings \"e may have resulted in a reference to slot 123 in fontA and slot 231 
in fontB which then may give funny hyphenation problems; so, when one language 
is chose, you may end up with greek hyphenated in for instance the german way 
when slots match those in the hyphenation patterns);

taco may shed more light on what exactly happens when mixing languages paragraphs

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

* Re: font encodings
  2005-03-15  8:28 Thomas A.Schmitz
@ 2005-03-15  9:39 ` luigi.scarso
  0 siblings, 0 replies; 5+ messages in thread
From: luigi.scarso @ 2005-03-15  9:39 UTC (permalink / raw)


Thomas A.Schmitz wrote:

> Somehow this message didn't make it to the list...
>
Hmm, i read this message yesterday at 22:26....

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

* font encodings
@ 2005-03-15  8:28 Thomas A.Schmitz
  2005-03-15  9:39 ` luigi.scarso
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A.Schmitz @ 2005-03-15  8:28 UTC (permalink / raw)


Somehow this message didn't make it to the list...

Hi all,

I want to use a custom font encoding (in my case, enco-agr for ancient 
Greek). I can't set it up for the entire document because it breaks, 
e.g., the output of accented letters. But when I try to use it for 
certain parts of the document only, it will insert a line break 
whenever it is used. So my question: is it possible to switch font 
encoding in mid-paragraph?

Best

Thomas

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

end of thread, other threads:[~2005-05-05 11:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-14 21:26 font encodings Thomas A.Schmitz
2005-03-15 21:51 ` Hans Hagen
2005-05-05 11:00 ` Hans Hagen
2005-03-15  8:28 Thomas A.Schmitz
2005-03-15  9:39 ` 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).