Wrong alignment for CJK characters
pickfire opened this issue · comments
Ivan Tham commented
CJK characters sometimes have multiple width that messed up the indentation.
Example
*Built-in Audio Analog Stereo 10 ─┌▮▮▮▮--------------------------------------------------------------┐─
│ 10 ─└▮▮▮▮--------------------------------------------------------------┘─
└─mpv Media Player: 楊宗緯 張碧晨 - 凉凉 (官 100 ┌▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮----------------------┐
100 └▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮----------------------┘
*Built-in Audio Analog Stereo 10 ─┌▮▮▮▮▮----------------------------------------------------------------------------------┐─
│ 10 ─└▮▮▮▮▮----------------------------------------------------------------------------------┘─
└─mpv Media Player: 楊宗緯 張碧晨 - 凉凉 (官方歌詞 100 ┌▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮-----------------------------┐
100 └▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮-----------------------------┘
GeorgeFilipkin commented
Try now.
Ivan Tham commented
Nice, it works now for CJK characters. But I am not sure how well it will work for RTL characters.