vim-beancount icon indicating copy to clipboard operation
vim-beancount copied to clipboard

Support non-ASCII characters in account names?

Open lilydjwg opened this issue 6 years ago • 1 comments

Hi there. I'm using Chinese in account names because a translation is not always readable and pinyin (a way to use ASCIIs when necessary) is not very readable either.

This plugin doesn't highlight such names and :AlignCommodity doesn't take this into account. Also note that Chinese characters are wider than ASCIIs.

I've replaced the regex to use \S and used strwidth to calculate and it seems to work for me, but I don't know if I missed anything.

lilydjwg avatar Apr 13 '19 11:04 lilydjwg

Same for german Umlauts, see screenshot:

screenshot-2020-10-19T13:28:27Z

Here's the input beanfile for reference: utf8-test.beancount.txt

varac avatar Oct 19 '20 11:10 varac