Page 1 of 1

Tabstops are shifted with Unicode chars

Posted: 30.05.2018 14:04
by ar18
Cudatext version 1.55.0.0:

I have a text document that is mostly in ASCII, with a few UTF-8 characters. I have tabs set to 4 and no spaces. That should mean that tab stops should always be set to multiples of 4, i.e. -- 4,8,12,16,20,...etc.

Problem in Cudatext (and not SynEdit) is that for tabs following characters above 7Fh, it will offset the tab stops so that they no longer line up, e.g. -- the text "> int/fix/flt/dbl" will display properly, but the text "≥ int/fix/flt/dbl" will not because the "≥" will cause the tab stops to appear at 5,9,13,17,21,...etc, instead of stopping at 4,8,12,16,20,...etc so that nothing will align with the tabs anymore.
Screen capture of issue in Cudatext.
Screen capture of issue in Cudatext.
Untitled.png (5.37 KiB) Viewed 1923 times

Posted: 30.05.2018 17:25
by Alexey
Can you post here this small file?

Posted: 31.05.2018 23:27
by ar18
I think a cut-and-paste of the following should do just fine ...

====================================================================================================
CONDITIONALS
====================================================================================================

X int
| int
& int
> int/fix/flt/dbl
≥ int/fix/flt/dbl
< int/fix/flt/dbl
≤ int/fix/flt/dbl
= int/fix/flt/dbl
TRUE int/fix/flt/dbl
FALSE int/fix/flt/dbl

Posted: 02.06.2018 18:18
by Alexey
I added issue for me. as temp workaround, set option "unicode_proportional" to true.

Posted: 02.06.2018 20:54
by ar18
Thank you.

Posted: 27.06.2018 11:26
by Alexey
I don't know yet how to fix it, so pls use "unicode_proportional": true.
problem: if 6 CJK chars are typed, they cannot fit into tabsize=8.