home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!europa.eng.gtefsd.com!emory!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!sdd.hp.com!hp-cv!hp-pcd!hpcvusn!hpcvusc.cv.hp.com!tommc
- From: tommc@hpcvusc.cv.hp.com (Tom McFarland)
- Subject: Re: Japanese characters for XmLabel
- Message-ID: <1993Jan28.190655.18382@hpcvusn.cv.hp.com>
- Keywords: Japan, Label, String
- Sender: nobody@hpcvusn.cv.hp.com (Nobody - UID must be 99999)
- Nntp-Posting-Host: hpcvusc.cv.hp.com
- Reply-To: tommc@cv.hp.com
- Organization: Hewlett Packard UTD-Corvallis
- References: <1j413oINN9r2@hal.com> <1993Jan26.095201@lectra.fr>
- Date: Thu, 28 Jan 1993 19:06:55 GMT
- Lines: 48
-
- In article <1993Jan26.095201@lectra.fr>, pierre@lectra.fr (Pierre Ficheux) writes:
- |> In article <1j413oINN9r2@hal.com>, randolph@hal.COM (Randolph Bertin) writes:
- |> >
- |> > How can I display Japanese characters on an XmLabel (PushButton, etc)
- |> > widget? Ideally, I would like to be able to set up a Japanese version
- |> > of the resource file containing all of the label strings.
- |> >
- |>
- |> No problem. You just have to put the ascii string corresponding to the
- |> kanji character 16 bits code ==> example with the k14 font :
- |>
- |> *fontList: k14
- |> *label1*labelString: 0!
- |>
- |> It will display the first kanji charactere of the k14 font (code 0x3021 =>
- |> string 0!).
-
- Actually, this is a function of vendor and release of Motif. As of Motif 1.2,
- all that should be necessary is to specify the string in the codeset of the
- locale (i.e. type it into the defaults file using a japanese term emulator
- and an internationalized editor). For example, on HP systems I would launch
- an hpterm with LANG=japanese (or LANG=japanese.euc if I wanted EUC instead of
- shift-JIS encoding) and a japanese font selected. Then I would vi the resource
- file and type in a shift-JIS (or EUC) string of mixed ASCII, 8-bit Katakana
- and 16-bit/24-bit Kanji. Then when launching the application, all that is
- necessary is to make sure the application's LANG is set appropriately and
- that a fontset is specified in the applications font list.
-
- For pre-1.2, each vendor provided his/her own solution. In HP's case,
- the situation is pretty much as described above, except the concept of
- fontsets didn't exist. Instead, it was necessary to specify a Japanese
- font (such as jpn.8x18 or jpn.12x24). Vendors that did not internationalize
- their Xlib or their Xt would have to resort to the work around described
- by Randolph above.
-
- |> ._______________________________.__________________________.
- |> +-------------------------------'--------------------------'|
- |> | Pierre FICHEUX | tel : +33 56 68 80 00 ||
- |> | Lectra Systemes | fax : +33 56 78 88 31 ||
- |> | ZI Marticot 33610 CESTAS | E-mail: pierre@lectra.fr ||
- |> | FRANCE | ||
- |> `-------------------------------^--------------------------'
- |> Comment ? (Beethoven)
-
- Tom McFarland
- Hewlett-Packard, Co.
- R&D Motif team
- <tommc@cv.hp.com>
-