Comment 4 for bug 67882

Revision history for this message
vroetman (vroetman) wrote : Re: can not enter Chinese in scribus and lyx.

Launching scribus-ng on Hardy (scribus-ng 1.3.4.dfsg+svn20071115-1ubuntu1), story editor defaults to font Arial Regular
I type in Chinese, hit RETURN, and it crashes with "Scribus crashes due to Signal #6"
sent to console:
sending IMEnd with 3 chars to 0x915a5a8, text=???
sending IMStart with 0 chars to 0x915a5a8
sending IMCompose to 0x915a5a8 with 0 chars, cpos=0, sellen=0, text=
sending IMEnd with 0 chars to 0x915a5a8, text=
scribus-ng: /build/buildd/scribus-ng-1.3.4.dfsg+svn20071115/scribus/text/storytext.cpp:307: void StoryText::insertChars(int, QString, bool): Assertion `pos <= length()' failed.
Scribus Crash
-------------
Scribus crashes due to Signal #6
QGArray::at: Absolute index 12 out of range

If, however, I change the font in the Story Editor to AR PL UKai CN Book, it has no problems. This is exactly how it behaved earlier. If the font does not support the characters, the story editor it rejects them and scribus becomes unstable. If I copy and paste in, it works fine, even with a non-chinese font. Then the main screen shows squares where the font does not support the characters. And the story editor still shows the characters. So the problem is entirely how the story editors works with input. If I try to input into the text box directly, I am unable to type any Chinese.

I think this is a known problem: http://bugs.scribus.net/view.php?id=4305