Re: Polish characters

David Calinski <[email protected]> Wed, 5 Nov 2003 12:15:51 +0100
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <[email protected]>
On Wednesday 05 of November 2003 08:06, Peter Bienstman wrote:
> On Wednesday 05 November 2003 05:47, David Calinski wrote:
> > Klemens, knock-knock, are you there? ;)
> > Or anybody who knows - how to set up Xfree to UTF?
> > There is nothing about fonts (besides path to fonts) in Xfree config
> > file. So I am guessing it's about locale settings and the right (UTF)
> > fonts in "FontPath" in XF86Config?
>
> I remember experimenting a bit with that KMemaid feature in the past. It
> has nothing to do with setting up XFree, it's just that when the unicode is
> written to elements.txt, it's replaced by question marks, as opposed to
> e.g. a UTF8 encoding, so it cannot be read in again.

Well, AFAIK Klemens somehow uses Japanese characters with current KMemAid 
version, and he doesn't have problems.

As a sidenote: That's why he developed KMemAid - because he couldn't use 
non-English (at least Japanese) characters in plain MemAid.


> There was even a bug report on that before
> https://sourceforge.net/tracker/index.php?func=detail&aid=814154&group_id=8
>9311&atid=589649 which seem to habe been closed without any fix.

There was a patch, by Tomas Styblo, to 'fix' it.

Tomas wrote:

>> The attached patch modifies it to store the questions and
>> answers as UTF8. UTF8 is a necessity for me, because I use kmemaid
>> to learn Russian and Arabic.
>>
>> Unfortunately it makes kmemaid incompatible with existing data.

Klemens replied:

> Well, in my system it stores UTF-8 already. I have set my X to use
> UTF-8 as system encoding. That makes sense because I want to read
> and edit the characters in other programs too. Actually I had to do
> that because I could not enter Japanese characters otherwise.


So I still think it's Klemens who should give us some light about the issue - 
e.g. is setting UTF-8 as locale user settings suffice?
Or just setting an UTF font in ~/.Xdefaults is enough?
Unfortunately, it seems I don't have any UTF fonts installed in
/usr/X11R6/lib/X11/fonts/ so I can't test it.

And I think we should put this question/answer (how to work with non-English 
characters?) in FAQ.


DC



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/