For Programmers: Free Programming Magazines  


Home > Archive > Tcl > April 2005 > Strange word & line selection in the text widget?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Strange word & line selection in the text widget?
George Petasis

2005-04-18, 8:59 pm


I am using the latest CVS head (8.5.something :-)), and I have noticed
a strange behaviour with the Tk text widget. When the
widget displays non-english text (in my case gr), when I double-click
(to select a word) or tripple-click (to select a line) in the widget,
the appearence of the selected text is bizzare: from the character the
click was done the text is displayed fine, but before this character
no text is shown. Also, strange things can happen, like characters
moving around, as if text was inserted/deleted around the selection.
Anyone else seeing anything similar?

George
George Petasis

2005-04-18, 8:59 pm

George Petasis wrote:
>
> I am using the latest CVS head (8.5.something :-)), and I have noticed
> a strange behaviour with the Tk text widget. When the
> widget displays non-english text (in my case gr), when I double-click
> (to select a word) or tripple-click (to select a line) in the widget,
> the appearence of the selected text is bizzare: from the character the
> click was done the text is displayed fine, but before this character
> no text is shown. Also, strange things can happen, like characters
> moving around, as if text was inserted/deleted around the selection.
> Anyone else seeing anything similar?
>
> George


Which happens only under unix (linux fedora core 3) when I enable
XFT support :-) Without XFT, everything is normal...

George
Joe English

2005-04-19, 3:59 am

George Petasis wrote:
>
>Which happens only under unix (linux fedora core 3) when I enable
>XFT support :-) Without XFT, everything is normal...



Filed at SourceForge, #1185640


--Joe English
Joe English

2005-04-19, 3:59 am

>George Petasis wrote:
>
>Filed at SourceForge, #1185640


.... and fixed, I think. Please check current CVS HEAD
and let me know if the problem persists.

(Summary of the problem: the Xft implementation was using
a strict interpretation of UTF-8, and had a bug in the error
recovery path.)


--Joe English
George Petasis

2005-04-19, 4:01 pm

Joe English wrote:
>
>
> ... and fixed, I think. Please check current CVS HEAD
> and let me know if the problem persists.
>
> (Summary of the problem: the Xft implementation was using
> a strict interpretation of UTF-8, and had a bug in the error
> recovery path.)
>
>
> --Joe English


Yes, the problem is now fixed :-) Thanks :-)

George
George Petasis

2005-04-19, 4:01 pm

Joe English wrote:
>
>
> ... and fixed, I think. Please check current CVS HEAD
> and let me know if the problem persists.
>
> (Summary of the problem: the Xft implementation was using
> a strict interpretation of UTF-8, and had a bug in the error
> recovery path.)
>
>
> --Joe English


Yes, the problem is now fixed :-) Thanks :-)

George
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com