Page 1 of 1

Fixed: ClearEdit: Can't display long line well.

Posted: 16 Feb 2006 19:44
by Nelson
I open a file with long lines in it.

I press the End key, but the cursor doesn't jump to the end of the line.

Can you fix it ?

PS: I'm using Win-XP SP2, Chinese version.

Posted: 17 Feb 2006 13:21
by Maël
Could you please send me a file so I can reproduce it? Here it works fine.

Posted: 17 Feb 2006 14:19
by Nelson
Maël wrote:Could you please send me a file so I can reproduce it? Here it works fine.
Ok, you can download the file from http://www.csie.nctu.edu.tw/~chtai/File.xml
You can see in the file, Line#7 is a very long line.
After pressing the End key, you still can't see the end of the line.

This is a file with Asian characters, I hope you can read it.

Posted: 17 Feb 2006 16:52
by Maël
Thanks for the file, but I still couldn't reproduce, though if've set my system locale to Chinese (Traditional) also tried Taiwan.
Could you send me a screenshot? Does it work when you activate Edit|Wordwrap?
What language did you choose in Windows' system settings?
Are there drawing bugs?

Posted: 17 Feb 2006 18:26
by Nelson
Maël wrote:Thanks for the file, but I still couldn't reproduce, though if've set my system locale to Chinese (Traditional) also tried Taiwan.
Could you send me a screenshot? Does it work when you activate Edit|Wordwrap?
What language did you choose in Windows' system settings?
Are there drawing bugs?
Image

See the screenshot above.
The horizontal scrollbar is pulled to the right-most side, the end of the line still can't display.
Wordwrap works fine.

I'm using Traditional Chinese.

Is this the SynEdit's issue ? Lot's of editors using SynEdit component have this issue.

BTW, in the font dialog I can't see all the fonts I've installed, why ?
I hope I can choose some fonts that fully support Unicode, but they aren't in the list :(

Posted: 17 Feb 2006 18:48
by Maël
Okay, I could identify the bug.
It is triggered when you disable the option: Cursor behind EOL
and appears only together with Asian characters.

I did the Unicode version of SynEdit, so I know it is a SynEdit issue.
(But most editors have that problem because they forget to make a setting for SynEdit, which behaves as the Delphi IDE as default = 1024 max chars).
However, this bug is related to Unicode.

As SynEdit is a programmers editor, you can only choose fixed width fonts, if you don't, it might look strange (stretched characters, or many spaces).
I or somebody else might once change SynEdit to support variable width characters, but that means a major rewrite of/change to SynEdit, so I don't know if and when it will be done.

Posted: 18 Feb 2006 06:06
by Nelson
Maël wrote:Okay, I could identify the bug.
It is triggered when you disable the option: Cursor behind EOL
and appears only together with Asian characters.
I did the Unicode version of SynEdit, so I know it is a SynEdit issue.
(But most editors have that problem because they forget to make a setting for SynEdit, which behaves as the Delphi IDE as default = 1024 max chars).
However, this bug is related to Unicode.
Thanks for answering :)
Not a big bug though, hope you can fix it.
As SynEdit is a programmers editor, you can only choose fixed width fonts, if you don't, it might look strange (stretched characters, or many spaces).
But even fixed width fonts might look strange.
For example, it looks bad when Courier New is applied.
(If the file is with Asian character.)

Posted: 18 Feb 2006 12:48
by Maël
Nelson wrote: Thanks for answering :)
Not a big bug though, hope you can fix it.
I'll be looking into it (the end-key thing).
Nelson wrote: But even fixed width fonts might look strange.
For example, it looks bad when Courier New is applied.
(If the file is with Asian character.)
It looks good to me with Courier New and Asian characters, see below:

Image

In fact I worked long time on it, so Asian characters (if they are wider than latin ones) can take up two "spaces" but latin chars keep using one. Does it look different on your Windows (perhaps Windows substitutes Courier New completely with another font)? Under Western XP it combines several fonts to make them display all Unicode characters. In the screenshot above, Windows combined Courier New (for latin) with NSimSun (for the missing Asian characters in Courier New).

Posted: 19 Feb 2006 19:28
by Nelson
Image

This is what I see when I use Courier New.
I don't know which font it chooses for displaying Asian characters.
But if I use other fonts, ex: Courier, it can display well.

Posted: 20 Feb 2006 14:24
by Maël
I'll look into this too.

Posted: 12 May 2006 21:31
by Maël
Both problems should be fixed.
See here:
http://mh-nexus.de/downloads/ClearEdit.zip

This is just a test release so it is German, the final version will be available in English, too.

Could you please test if the bugs you reported are gone?

Thanks, Maël.

Posted: 13 May 2006 05:15
by Nelson
Maël wrote:Both problems should be fixed.
See here:
http://mh-nexus.de/downloads/ClearEdit.zip

This is just a test release so it is German, the final version will be available in English, too.

Could you please test if the bugs you reported are gone?

Thanks, Maël.
Yeah~both are fixed.
Thanks a lot.

BTW, these are SynEdit-related issues, right?
Hope the SynEdit component is also updated, too.
Thus other editors using SynEdit can get these bugs fixed. :D

Posted: 13 May 2006 12:57
by Maël
Nelson wrote:BTW, these are SynEdit-related issues, right?
Hope the SynEdit component is also updated, too.
Thus other editors using SynEdit can get these bugs fixed. :D
You did make a bug report for ClearEdit in the hope that I fix it sooner than if you report it directly for SynEdit, didn't you ;-)
Naturally I will submit it as soon as sourceforge CVS works again, it is down for some weeks now.

Posted: 13 May 2006 17:56
by Nelson
Maël wrote: You did make a bug report for ClearEdit in the hope that I fix it sooner than if you report it directly for SynEdit, didn't you ;-)
Naturally I will submit it as soon as sourceforge CVS works again, it is down for some weeks now.
To be honest, I don't know where to report a bug for SynEdit. :D

I'm using Notepad2 as my basic editor and PSPad as my advanced editor, they both use SynEdit as base component.
But Notepad2 wasn't updated for a long long time, so I started to find an alternative editor.
And then I found ClearEdit.

So, of course I hope SynEdit can fix these bugs. :D

PS: Please release a new version for ClearEdit, I can't wait for it :)

Posted: 21 May 2006 15:06
by Maël
Fixed in CVS, snapshot of UniSynEdit follows soon.
ClearEdit will come a little later, as I add some other minor things.