-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unreasonable handling of long filename #9135
Comments
I don't really understand what the issue is. I think you mean this?
It's not clear to me what "normal" means to you and how you expect it to look instead for each of the file-names you gave as example. If that's not what you meant, you can try explaining again, one issue at a time:
Either way, libass is responsible for word-wrap, and the wrap happens if there's a space or other characters which allow word-wrap according to Unicode. This means that some filenames cannot be word-wrapped (if they don't have spaces), while other file-names will get word-wrapped if they contain spaces. That's normal behavior with word wrapping, and even if it wasn't, mpv doesn't have much to do about it. It appears that all the libass word-wrapping modes don't break the line if there are no spaces. You can try smaller font size if you have very long file names, using |
Thanks, at least it's now clear what you meant. For the first screenshot, I think it's a reasonable expectation, however, as mentioned, libass currently doesn't support word wrap for lines without any spaces. For the second screenshot, I'm not sure. Word-wrap (in any editor or web browser) always breaks the line on spaces before it breaks in places without spaces. So I think libass does the right thing in this case. |
Thanks for your explanation. |
Important Information
Provide following Information:
Reproduction steps
just open the files which has long file names and see the osd filename.
Some long filenames cannot be handle normally.
Expected behavior
filenames couldn't be cut or early truncated
Actual behavior
the picture posted previously.
Log file
I'll post it if needed.
Sample files
example filenames:
[aaaaaaa&bbbbbbb][ccccccc dd eeeee][00][1080p][xx][kkk].mp4
aaaaa.bbbbb.cccccc.1996.bluray.1080p.x265.10bit.8audio.10subs.mp4
The text was updated successfully, but these errors were encountered: