Render of Thai text with and without mouse selection
Leo Savernik
l.savernik at aon.at
Mon Dec 27 20:28:57 GMT 2004
Am Montag, 27. Dezember 2004 20:53 schrieb Allan Sandfeld Jensen:
> On Monday 27 December 2004 20:21, Leo Savernik wrote:
> > The proper solution would be to draw the full run, and clip it between
> > the combined characters (this will keep the characters from being drawn
> > in their separated form). However, there's no public API in Qt to
> > retrieve the exact point of clipping (or is there, Lars?).
>
> That would be the good looking solution. I don't know common practices in
> these languages but would splitting the text at selection points with a
> breakable zerowidth space and issuing a local relayout, be all that bad?
Yes, it might change the meaning of the word (maybe making out of "wisest
leader" a "fuckhead", thus escalating WW3 ;-) ). A zerowidth-space certainly
breaks up the combining, which leaves us in a situation no better than the
current one.
>
> From experimenting with www.farsikde.org, I think there are more problems.
> Often the selection doesn't not even appear near the cursor.
Oh my gawd! We have problems, we have problems...
Excellent test page :-)
mfg
Leo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20041227/0d982e48/attachment.sig>
More information about the kfm-devel
mailing list