right-to-left language like Arabic makes the track menu a mess #17119
Replies: 3 comments
-
|
Without deep analysis, I'm guessing that the diff between all-tracks and sub-tracks is that the former begins with English text ("Audio"/Video"/"Sub"), which sets the primary direction as LTR. But sub-tracks don't begin in English, so it sets the primary direction to that of the 1st directional glyph (roughly speaking), which is not the bullet, but it is the text which follows. Assuming we want to keep all the output generally LTR, even for RTL items (which I think can be considered reasonable currently, because the interface is English, and we don't have i18n interface), then I think there are Unicode codepoints which can specify the primary text direction as LTR or RTL. Alternatively, just change the format to always start with English text, for instance by adding I'd recomend against trying to do manual analysis of codepoints for some quick'n'dirty fix. Directionality is a very complex subject, and it's best to leave it to tools which already put in the effort to handle it correctly - like libass. @astiob might be able to help more and/or correct me ;) |
Beta Was this translation helpful? Give feedback.
-
|
Also, I think this should be considered an mpv issue, and would probably get better exposure as an issue than as a discussion. It doesn't behave correctly, it's a bug, there's not much to discuss here. It should be fixed if possible. @verygoodlee can you file it as an issue please? |
Beta Was this translation helpful? Give feedback.
-
|
Moved to #17605 . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
circle is rendered on the right side in the

select/select-sidmenu.It's interesting that there's no issue in the

select/select-trackmenu,the only difference between the two menus is the addition of the track type prefix (Sub: ).
This might need to be fixed by libass, so I post it in Discussion.
Beta Was this translation helpful? Give feedback.
All reactions