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

Bug reports concerning HxD.
Post Reply
Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

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

Post by Nelson » 16 Feb 2006 19:44

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.

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 17 Feb 2006 13:21

Could you please send me a file so I can reproduce it? Here it works fine.

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 17 Feb 2006 14:19

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.

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 17 Feb 2006 16:52

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?

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 17 Feb 2006 18:26

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 :(

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 17 Feb 2006 18:48

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.
Last edited by Maël on 12 May 2006 13:33, edited 1 time in total.

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 18 Feb 2006 06:06

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.)

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 18 Feb 2006 12:48

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).

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 19 Feb 2006 19:28

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.

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 20 Feb 2006 14:24

I'll look into this too.

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 12 May 2006 21:31

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.

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 13 May 2006 05:15

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

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 13 May 2006 12:57

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.

Nelson
Posts: 8
Joined: 16 Feb 2006 19:41

Post by Nelson » 13 May 2006 17:56

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 :)

Maël
Site Admin
Posts: 1148
Joined: 12 Mar 2005 14:15

Post by Maël » 21 May 2006 15:06

Fixed in CVS, snapshot of UniSynEdit follows soon.
ClearEdit will come a little later, as I add some other minor things.

Post Reply