ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: font encodings
Date: Thu, 05 May 2005 13:00:00 +0200	[thread overview]
Message-ID: <4279FCB0.30500@wxs.nl> (raw)
In-Reply-To: <55090c5a9cfed26a3048f44750668edd@uni-bonn.de>

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

  parent reply	other threads:[~2005-05-05 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-14 21:26 Thomas A.Schmitz
2005-03-15 21:51 ` Hans Hagen
2005-05-05 11:00 ` Hans Hagen [this message]
2005-03-15  8:28 Thomas A.Schmitz
2005-03-15  9:39 ` luigi.scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4279FCB0.30500@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).