i was sent a bug-report of my playlist-formatting string. However, after thinking about it and checking my string, i'm not sure if the problem is maybe a bug in $len2()
Another possiblility would be that the font that user uses is screwed up.
Screenshot:
http://www.hydrogenaudio.org/forums/index....=post&id=183910
the column before the tracknumber-column is wrongly aligned.
I am using $len2 to pad the artist and albumname manually(i have to do this for various reasons), so the error clearly can only happen at that location in the code.... it looks like this:
QUOTE
// adjust Artist/Album-column's width
$puts(artist-album_width,$sub($get(artist-album_width),$len2($get(artist))))
$puts(artist-album_width,$sub($get(artist-album_width),$len2($get(artist))))
So, to me it appears that most of those doublewith chinese characters get counted correctly, but char ALT+149 (a small filled circle/bullet) gets counted as double-width character, although its only single-width.
Users setup:
System: Windows XP
Language: Chinese GB2312
"Display"---"Double-width characters in title formatting"---"Count
double-width characters and ambiguous characters as two regular
characters"
- Lyx