Not nice vertical carets line for CJK chars

powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

it is a problem that need to be enhanced right?
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

i have a question, why type "END" key in CJK lines, the cursor shows correctly, but column mode wrong??
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

testing in 1.64, after column selected, moving the cursors go and back, they show correctly, all cursors show in the end of line.
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

problem in SColumnPosToCharPos, it use Length(S) to get character number, and then return a position for caret,
but CJK and ASCII/Latin characters are different width, so when all column selected rows are ASCII/LATIN or CJK only, its position of CaretPosToClientPos will correct,
but mixing will not correct.
may be a simple solution for this problem is: all caret Y position in column select just same as the beginning position.
then when _DoCaretPosToClientPos:
if pos in CJK then
caret draw after CJK
else
normal ASCII/LATIN caret draw
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

1.64.4 has enhanced but from mixing CJK to pure LATIN still not correct.
i think, column select block, that can simple just mark down the 2 corner ClientPos and its Row position, when render screen,
if a char it render inside this rectangle, then render it different. and mark down the "from" "to" pos
when copy click, just using this pos, can easy handle.
this is my terminal program did.
ColumnPosToCharPos and STabsToSpaces_Length, this two function waste times for calculating. and do just 2 line block selecting, will
happend so many time calculations, this is why CUDA much slower selections compare to NP++ or AKELPAD
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

modifed Cuda
modifed Cuda
Modified.png (7.54 KiB) Viewed 2682 times
after modified, it supported what i want.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I dont reply coz I dont get idea of your posts. broken english.
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

oh, never mind. coz you don't have this problem.
and don't need your help, i fixed this problem.
powerpcer
Posts: 38
Joined: 22.09.2017 12:37

Post by powerpcer »

block/column mode enhanced
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

[MOD] Exe file deleted. Dont post EXE files, i can see only src changes. Post EXE to your github "releases"
Locked