[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: per-buffer language environments
From: |
Werner LEMBERG |
Subject: |
Re: per-buffer language environments |
Date: |
Wed, 15 Dec 2010 08:45:05 +0100 (CET) |
> I wasn't talking about any bugs at all. Werner suggested to add a
> new _feature_; I was talking about what that feature should and
> shouldn't include.
Perhaps it makes sense to provide typical user cases instead of
theorizing a priori. Hopefully, others provide real-life scenarios
too.
My case:
file language: Chinese or Japanese or Korean
file encoding: UTF-8 (or any other flavour of Unicode)
Wish:
Emacs should select a proper font based on a file language tag.
The fonts should be specified by the user, to be configured as a
preference list in `.emacs'.
Reason:
It is not possible to automatically decide whether a given font
like SimSun is really suitable for a given language; this
concept is missing in the OpenType specification, contrary to,
say, CID-keyed fonts. A hint might be the presence of a
specific script and language tag in the font's OpenType tables
(`HANI' and `CHN', respectively, for SimSun), but there are many
TrueType fonts which don't have advanced OpenType features.
Since SimSun contains Katakana, Hiragana, and CJK glyphs – this
might be deduced from the OS/2 table, and FontConfig checks that
also – it *can* be used for Japanese, but it doesn't *suit*.
This problem is really important for CJK fonts, however, even
European languages can be affected. For example, the right way
in Romanian is to write `ş' (s with cedilla), but it should be
displayed as `ș' (s with comma below). Recent OpenType fonts
often contain proper language tags so that a language specific
mapping can be done, but many, many Type 1 fonts don't; they
contain the glyph name `scedilla', but the real glyph displayed
is s with comma below.
Werner
- Re: per-buffer language environments, (continued)
- Re: per-buffer language environments, Eli Zaretskii, 2010/12/13
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/14
- Re: per-buffer language environments, Eli Zaretskii, 2010/12/14
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/14
- Re: per-buffer language environments, Eli Zaretskii, 2010/12/15
- Re: per-buffer language environments,
Werner LEMBERG <=
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/16
- Re: per-buffer language environments, Eli Zaretskii, 2010/12/17
- Re: per-buffer language environments, Werner LEMBERG, 2010/12/18
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/21
- Re: per-buffer language environments, Eli Zaretskii, 2010/12/21
- Re: per-buffer language environments, Werner LEMBERG, 2010/12/21
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/22
- Re: per-buffer language environments, Werner LEMBERG, 2010/12/22
- Re: per-buffer language environments, Kenichi Handa, 2010/12/16
- Re: per-buffer language environments, Stephen J. Turnbull, 2010/12/16