Ar an triochadú lá de mí Aibréan, scríobh Raymond Toy:
Heh. Where did I get kr from? Anyway, changing from kr to ko on my
Ubuntu
system makes Korean (Hangul) display correctly. Hurray!
Hurray!
> > How do I set this up to display this?
> >
> > (As an aside, I tried this on my mac using other fonts for Japanese,
> > Chinese, and Arabic, just for fun. The display for Japanese and Chinese
> > look right, but I can't get arabic to display. I would like, someday, to
> > display all of the HELLO page.)
>
> You and me both! Jeff Sparkes is our great hope.
>
What is the blocker for these other examples? It looks like my Ubuntu has
fonts for many of the languages listed on the HELLO page, but most do not
display correctly, so I'm just curious on what prevents them from working?
Three things occur to me:
2. The language-to-charset mapping in fontcolor-xlike-inc.c is far from
complete. Now, having it complete wouldn’t be a panacea, especially with the
JIT unicode charsets, but it would improve things a little. Easy enough to
change.
2. There’s nothing like the below in the startup files. This would be also
easy enough to change.
3. There’s no support whatsoever for contextual shaping, bidirectional text,
combining characters and all the other good stuff that makes multilingual
text display an interesting problem. This is basically impossible without a
couple of man years in the context of XEmacs’ XFT support; it’s entirely
achievable with GTK and Pango, and Jeff Sparkes has done important work in
that direction. His repository is here:
https://bitbucket.org/jsparkes/xemacs-gtk .
Code from 2:
(when (featurep 'xft-fonts)
(with-fboundp '(fc-name-unparse fc-font-match fc-name-parse)
(set-specifier
(face-font 'default)
(cons '(x)
(fc-name-unparse
(fc-font-match (selected-device)
(fc-name-parse "Monospace-11.5:lang=en")))))
(loop
for (tag-name regex size) in
'((zh-tw "^chinese-\\(big5\\|cns\\)" 18)
(zh "^chinese-" 18)
(ja "^\\(japanese\\|katakana\\)-" 18)
(ko "^korean-" 18)
(am "^ethiopic-" 18)
(vi "^vietnamese-" 14)
(el "^greek-" 12)
(ru "^cyrillic-" 12)
(hu "^latin-iso8859-2" 12)
(ar "^arabic-" 16)
(lo "^lao" 14)
(he "^hebrew" 11.5)
(th "^thai" 14))
do
(define-specifier-tag tag-name nil
`(lambda (charset)
(string-match ,regex (symbol-name (charset-name charset)))))
(set-face-font 'default
(fc-name-unparse
(fc-font-match
(selected-device)
(fc-name-parse
(format "-%d:lang=%s"
size tag-name))))
nil (list 'x tag-name) 'append))))
--
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta