On Fri, 05 Aug 2016 16:33:11 +0200, Marguerite Su wrote:
On Thu, Aug 4, 2016 at 2:43 PM, Takashi Iwai
wrote: Well, it's a problem of Unicode in general. The issue may happen no matter whether ttc or not. Japanese is chosen just because of the alphabet order in this case.
Yes...it's not ttc or ttf, but "one" ttc or "many" ttcs.
If we use separated ttcs, you can install Chinese variant and see Chinese right if you see Chinese not displayed under any locale.
But if we use one ttc, you will not see Chinese right even if you have installed Chinese variant in English (which is not covered by the tweak and should not be covered)
And if you install both Chinese and Japanese fonts? The problem returns again. See, it's no solution at all.
Because the locale-based tweak and the unicode problem.
So I think this might be a shortcoming for this topic.
Because users will not get the behavior they want in some cases.
IMO, the problem is that the implicitly preferred locale hasn't been told to the system. If you run a system in English locale but still prefer the Chinese letters over other CJK, how can the system know of it? We need to inform it somehow. The package selection works partially, but it gets broken again if multiple language fonts are installed. Maybe we can another item, e.g. $CJK_PREFERRED_LOCALE in /etc/sysconfig/fonts-config? If this is set, it can be referred by a fontconfig snippet in addition to the current locale check. Adding Petr to Cc about this idea.
If the web page specifies properly the language attribute, the rendering should be fine. But most of web pages don't do the right thing :)
Most of the web pages will only specify "sans-serif" and let the system decide. The language attribute is not possible at all, because any web page may have something English...
Well, you can set the language attribute to specific blocks in HTML, too. The language isn't necessarily unique in the whole page.
A good part of fontconfig is that you can use a font to display English and fallback to the other when CJK characters come out. This technology is commonly used in Windows/Mac/Linux...
Yes, and this should work only if set up properly. As said, the missing piece is the information which locale is implicitly preferred. thanks, Takashi -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-m17n+owner@opensuse.org