Tabstops are shifted with Unicode chars

Post Reply
ar18
Posts: 8
Joined: 30.05.2018 02:12

Tabstops are shifted with Unicode chars

Post 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 1911 times
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Can you post here this small file?
ar18
Posts: 8
Joined: 30.05.2018 02:12

Post 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
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I added issue for me. as temp workaround, set option "unicode_proportional" to true.
ar18
Posts: 8
Joined: 30.05.2018 02:12

Post by ar18 »

Thank you.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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.
Post Reply