ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Simon Pepping <spepping@scaprea.hobby.nl>
Subject: Re: utf 8 / test file
Date: Mon, 9 Dec 2002 21:32:03 +0100	[thread overview]
Message-ID: <20021209203203.GB1164@scaprea> (raw)
In-Reply-To: <5.1.0.14.1.20021209001503.02b22708@remote-1>

On Mon, Dec 09, 2002 at 12:26:16AM +0100, Hans Hagen wrote:
> At 09:38 PM 12/8/2002 +0100, you wrote:
> 
> For Context this might be worked out as follows: Each font family must
> >be in a known encoding. When a font family is loaded, the encoding and
> >the associated font family are added to a table of loaded
> >encodings. When a unicode character is sought, the loaded encodings
> >are scanned in the order in which they appear in the table, until an
> >encoding is found that provides a glyph for that character.
> 
> hm, must think this over, esp since tex has no way (except measuring) to 
> determine if a slot is really taken

My idea was that the encoding should indicate which slots are
provided (if the font complies).
 
> >The NFSS in LaTeX provides a default encoding for a character (not to
> >be confused with Context's default encoding, which is a different
> >thing). When the character is not found in the current encoding, it is
> >taken from this default encoding. Such a strategy may be more
> >efficient than going through the list of loaded encodings.
> 
> eh ... context does have fall backs (nearly always something default, often 
> very plain); if something does not show up, it's probably not defined 
> (yet); so, maybe i misunderstand you

I do not see this as a fallback but as an optimization. It is an
effective means of knowing which encoding is on top for a certain
character.

> Indeed i think that we should have some reasonable defaults, and it seems 
> that there are no free complete unicode fonts, so we probably end up with 
> something

There are apps, e.g. XMLSpy, that rely on a single font to provide all
required characters. I find that a waste of resources; the user's
fonts are used much better if they can combined into a set.

Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl

  parent reply	other threads:[~2002-12-09 20:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-07 11:38 Hans Hagen
2002-12-08 20:38 ` Simon Pepping
2002-12-08 23:26   ` Hans Hagen
2002-12-09  9:40     ` Taco Hoekwater
2002-12-09 10:40     ` Re[2]: " Giuseppe Bilotta
2002-12-09 11:30       ` Hans Hagen
2002-12-09 20:32     ` Simon Pepping [this message]
2002-12-09 20:44 ` Simon Pepping
2002-12-10  9:54   ` Hans Hagen

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=20021209203203.GB1164@scaprea \
    --to=spepping@scaprea.hobby.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).