Recent

Author Topic: The Editor cannot get Unicode(Chinese) character input?  (Read 7108 times)

Goodman H__

  • Full Member
  • ***
  • Posts: 130
The Editor cannot get Unicode(Chinese) character input?
« on: May 21, 2010, 06:33:21 am »
Greetings!

I cannot input Chinese characters in the lazarus editor,a round way is to copy from elsewhere and paste to it.

Was I missing something or the current IDE eidtor just support non unicode input?

Thanks in advance.

Regards,
Sam
fpc:2.6.1 Lazarus:1.1 SVN39277
OS:win 7

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1052
    • Burdjia
Re: The Editor cannot get Unicode(Chinese) character input?
« Reply #1 on: May 21, 2010, 09:34:51 am »
What operating system are you using?

BTW UNICODE support isn't complete , as far as I know.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6621
  • Debugger - SynEdit - and more
    • wiki
Re: The Editor cannot get Unicode(Chinese) character input?
« Reply #2 on: May 21, 2010, 10:01:36 am »
As far as I can see this isn't about Unicode. The original poster, has no problems handling files with Chinese chars in it (which is supported).

The problem is imputing them, presumingly using IME.

I had feedback from people who were able to use IME, however with a limitation. The IME editor  is not integrated. That means the Operating System will place the IME editor somewhere on the screen (probably upper left).

Placing the IME on the position of current editing is not yet implemented.

In order to implement this, it will be necessary to find out how other platforms deal/interact with applications to do this.

How does gtk2 query the best position for IME? QT? ...

Even if we don't implement them all at once, in order to define a common interface some knowledge will be needed.

Goodman H__

  • Full Member
  • ***
  • Posts: 130
Re: The Editor cannot get Unicode(Chinese) character input?
« Reply #3 on: May 21, 2010, 10:28:50 am »
What operating system are you using?

BTW UNICODE support isn't complete , as far as I know.

Under Ubuntu 10,Chinese version.

BTW,if under window XP,the editor has no problem to accept Chinese characters,but the console app can not show Chinese properly.

Regards,
Sam
fpc:2.6.1 Lazarus:1.1 SVN39277
OS:win 7

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 6621
  • Debugger - SynEdit - and more
    • wiki
Re: The Editor cannot get Unicode(Chinese) character input?
« Reply #4 on: May 21, 2010, 11:13:08 am »
the console app (writeln, I assume) is a different issue. Probably a need for Utf8 to Utf16 conversation.
Writeln is part of fpc, and doesn't necessarily have the same feature supported as the LCL has..., then again I don't know.
But if so, probably a need for a "writeln" that does this automatically, so developers do not need to put platform depended IFDEF in their code....

As for IME input under gtk2. Unfortunately, I have no idea how it works.

Under windows, and app does not need to do anything, Windows will take 100% care of the IME editor. (An app *can* (optional) provide feedback about IME editing (like position for the editor)

Under GTK(2),QT,Carbon  => no idea.

If you have info, please point it out (However, I can not say were in the huge stack of other planed/needed features this will end up)




skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2515
    • havefunsoft.com
Re: The Editor cannot get Unicode(Chinese) character input?
« Reply #5 on: May 21, 2010, 11:41:28 am »
There's already a bug report about this.

http://bugs.freepascal.org/view.php?id=13374

Sorry, I just have no time for this at all.
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

 

TinyPortal © 2005-2018