414 views
in GUI Development by
Hi Tara,

Recently we had to solve a problem in a component used to display Chinese characters that is made using attributed text. The complaint was that the text would wrap in a strange way and only where space character 0x0020 occurs. Our fix was to introduce the silent soft hyphen character '^' at some regular intervals in the Chinese strings. This does seem to work reasonably well.. although it seems expensive to visit each character in the string to append the extra '^'. We wondered was there a better way to solve this kind of problem for Chinese where word spacing is not like in Western languages.

Regards,

Niall.

1 Answer

0 votes
by
 
Best answer

Hello Niall,

We wondered was there a better way to solve this kind of problem for Chinese where word spacing is not like in Western languages.

the text wrap occurs at space characters or at explicitly dedicated signs like soft hyphen only. There is no other automatism to detect language specific wrap candidates.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...