Closed
Bug 183372
Opened 23 years ago
Closed 23 years ago
XFree86 provides "*-big5hkscs-0" rather than "*-hkscs-1" for Big5-HKSCS font
Categories
(Core :: Internationalization, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: anthony, Assigned: shanjian)
Details
(Whiteboard: Patch to add "big5hkscs-0" attached.)
Attachments
(1 file)
|
2.54 KB,
patch
|
shanjian
:
review+
blizzard
:
superreview+
asa
:
approval1.3a+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686 Thiz; en-US; rv:1.1) Gecko/20021127
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 Thiz; en-US; rv:1.1) Gecko/20021127
Big5-HKSCS fonts are provided as XLFD "*-big5hkscs-0" rather than "*-hkscs-1" on
XFree86. A patch to add "big5hkscs-0" is attached. :-)
Reproducible: Always
Steps to Reproduce:
| Reporter | ||
Comment 1•23 years ago
|
||
Hello Shanjian,
I have tested it on my system, and it works.
("Edit->Preference->Appearance->Font Settings->Traditional Chinese" now shows
*-big5hkscs-0 fonts too.
By the way, I also changed "hkscs-1" to use TT_OS2_CPR1_CHINESE_TRAD instead of
TT_OS2_CPR1_CHINESE_SIMP. Please let me know if that change is okay. :-)
Thanks!
Anthony
| Reporter | ||
Updated•23 years ago
|
Whiteboard: Patch to add "big5hkscs-0" attached.
Updated•23 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•23 years ago
|
||
Anthony Fok:
Can you attach a bitmap font in the "big5hkscs-0"-encoding incl. matching
"fonts.dir" index for verification, please ?
| Reporter | ||
Comment 3•23 years ago
|
||
Hello Roland,
Thank you for looking into this. Unfortunately, I do not have any big5hkscs-0
bitmap font here. (Probably the GNU/Linux Chinese community will eventually
start a project to make one.) Meanwhile, what I do have are:
* /usr/X11R6/lib/X11/locale/zh_HK.big5hkscs/*. The XLC_LOCALE therein was
created by fellow Chinese developer Roger So some years ago. That is the origin
of the use of *-big5hkscs-0 on XFree86 and Linux systems.
* Big5-HKSCS TrueType fonts. The ones I have are proprietary by 3rd parties,
so I probably can't give it to you. Instead, you may download one from here, a
rather high-quality sample Big5-HKSCS (and CJK + CJK A) TrueType font by DynaLab:
http://www.iso10646hk.net/download/DFSongSd.ttf
(Note: The web page says it is for personal use only; can't be resold; not for
commercial use, etc., but I suppose using it for testing is just fine.)
We use X-TT ('load "xtt"' module in XFree86) for rendering such fonts. I
suppose the 'load "freetype"' module would work too. Note that big5hkscs-0.enc
is not yet officially submitted to XFree86, so probably only X-TT would work here.
As for the fonts.dir file, it may look something like this:
2
bmin00l.ttf -arphic-ar mingti light b5-medium-r-normal--0-0-0-0-c-0-big5-0
bmin00l.ttf -arphic-ar mingti light b5-medium-r-normal--0-0-0-0-c-0-big5hkscs-0
So yes, depending on your system configuration, it may take a bit of effort to
get your environment to properly display Big5-HKSCS fonts. But yes, be rest
assure that we in the Hong Kong Linux community use "big5hkscs-0", and Linux
distributions like Thiz Linux Desktop, Turbolinux China, Chinese 2000, began
supporting Big5-HKSCS about a year ago, using "*-big5hkscs-0" fonts. We have
been using "*-hkscs-1" in fonts.alias too, but that shouldn't have been
necessary. Anyhow, since I mentioned to Roger So a year ago that I was going to
look into extending hkscs.uf and hkscs.ut, Roger has urged me to patch Mozilla
to recognize "big5hkscs-0", so finally, here I am. :-)
Why didn't we use "hkscs-1" in the first place? Here are a few reasons:
* Roger implemented "big5hkscs-0" before he heard of "hkscs-1" on Solaris (my
guess).
* We feel that "*-big5hkscs-0" is a more appropriate name because HKSCS is a
character set that may be encoded either as Unicode/ISO 10646, or as an
extension to Big-5. That's why the Hong Kong government registered the
Big5-encoded version of HKSCS as "Big5-HKSCS". The name "hkscs-1" does not
reflect that the font is Big5-encoded. So, even now that we see that Solaris
uses "hkscs-1", we Hong Kong Chinese Linux developers want to stick with
"big5hkscs-0".
Cheers,
Anthony
| Assignee | ||
Comment 4•23 years ago
|
||
The change make sense to me. I would like to have brian take a look at this.
Comment 5•23 years ago
|
||
this looks okay to me
| Assignee | ||
Updated•23 years ago
|
Attachment #108133 -
Flags: review?(shanjian)
| Assignee | ||
Updated•23 years ago
|
Attachment #108133 -
Flags: review?(shanjian) → review+
| Assignee | ||
Updated•23 years ago
|
Attachment #108133 -
Flags: superreview?(blizzard)
Comment 7•23 years ago
|
||
Comment on attachment 108133 [details] [diff] [review]
Patch to add XLFD "big5hkscs-0" encoding support
sr=blizzard
Attachment #108133 -
Flags: superreview?(blizzard) → superreview+
| Assignee | ||
Comment 8•23 years ago
|
||
Comment on attachment 108133 [details] [diff] [review]
Patch to add XLFD "big5hkscs-0" encoding support
This should be a very safe change, and it only affect chinese display for
Hongkong on *nix.
Attachment #108133 -
Flags: approval1.3a?
Comment 9•23 years ago
|
||
Comment on attachment 108133 [details] [diff] [review]
Patch to add XLFD "big5hkscs-0" encoding support
a=asa for checkin to 1.3a
Attachment #108133 -
Flags: approval1.3a? → approval1.3a+
Comment 10•23 years ago
|
||
Hi guys, this is Roger So here. :)
I can confirm that this patch works beautifully.
Regarding the use of big5hkscs-0: yes, Anthony is correct. Thanks Anthony, you
summed it all up better than I could!
| Assignee | ||
Comment 11•23 years ago
|
||
fix checked in. Thanks to Anthony for his great work.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 12•23 years ago
|
||
Is there some one can help verify this fix in latest trunk build? otherwise
please provide some steps to me to verify. Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•