Hi there,

As there is no other response to your mail, I'll try my best to help you,
although my English make it a little difficult.

I am not so sure about whait did you really mean by saying "add a
non-standard charset". I guess you have some files in the exotic charset
code, and you want to display the content of these files. Is that the case?

The locale mechanics X use to fulfill i18n is based on synthesis of multiple
non-overlapped charsets. The charset defination is either used in output
method(XOM) and in inter-client communication(ICC). To change charset
defination, you need to modify XLC_FONTSET and XLC_XLOCALE categories in
XLC_LOCALE file, which affect XOM and ICC respectively. Compose file is to
change keyboard input mapping, and thus has nothing to do with charset.

However, you can't simply modify the XLC_LOCALE file and expect everything
goes well. I assume  your main intention is output, so we leave all ICC
stuff alone. Do you have a X usable font file according that code? If so,
you must have the fonts.dir file included coresponding XLFD name. If you
want use font encoded in other charset code, you have to add support in
fontenc layer of X server to perform necessarily code conversion.

Basically, I don't think things will work as you wish. If all you want to
deal with are some legacy files, I suggest you write converting program and
convert these files into certain standard charset code.

Best regards,
Xie Qian

Open System and Chinese Information Processing Center,
Institute of Software, Chinese Academy of Sciences,
P.O. Box 8718, Beijing 100080, CHINA

----- Original Message -----
From: "Victor Yegorov" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, April 05, 2005 6:04 PM
Subject: [I18n] How to add non-standard charset?


> Hi all.
>
> I've got one system, where (for historical reasons) an exotic 1-byte
charset
> is used. And now I'd like to add support for it to my xterm (I'm using
luit).
>
> So far, I took luit sources and played with them a bit. As I see from the
> code, I can add an entry in localeCharsets array for my encoding. After
doing
> that, I need to create some charset definition (via Compose file?) for my
> encoding and put it into XFree locales directory (along with XI18N_OBJS
> and XLC_LOCALE files). Is it so? Or is there a better/easier way?
>
> In general --- how to add an exotic charset to the Xfree the "right
> way", i.e. not doing ugly hacks in the code (luit's code in my case)?
>
> I tried to google for howtos or any other docs without any luck. Also,
I've
> checked this list's archives -- nothing appropriate.
>
> Thank you.
>
>
> --
>
> Victor Y. Yegorov
> Software Developer, NORD/LB Latvija JSC
> Phone (+371) 7077142, Mobile (+371) 9131883
> _______________________________________________
> I18n mailing list
> [email protected]
> http://XFree86.Org/mailman/listinfo/i18n


_______________________________________________
I18n mailing list
[email protected]
http://XFree86.Org/mailman/listinfo/i18n

Reply via email to