GeorgeFilipkin / pulsemixer

CLI and curses mixer for PulseAudio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong alignment for CJK characters

pickfire opened this issue · comments

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  └▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮▮-----------------------------┘

2019-05-16-161735_859x57_scrot

Try now.

Nice, it works now for CJK characters. But I am not sure how well it will work for RTL characters.