-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
added subtitles with languages such as Chinese, Japanese, etc. cannot be fully displayed #2260
Comments
Could you please provide some code (the code you used and failed is ok) to be able to check and investigate about that? I've not used the subtitles functionality yet and I could try with your code. Thank you. |
|
subtitle_config: |
I encountered the same issue. Did you find a solution? |
I have temporarily downgraded the version to 1.0.3 |
So, this is specifically due to the language your using in your video. From what I understand many languages that use ideograms (at least Chinese, Japanese and Corean, probably a few languages from India and such) dont use spaces. As an european this is just not something I didn't think about during creation of the TextClip, as I cannot think of any modern european language not using spaces. Currently the implementation of text clip try to break text lines overflowing from text box, based on spaces. We never cut a word in half, instead we add a breakline in place of the last non overflowing space. Adapting this implementation to work with languages without spacing would be nice, but I absolutely dont now how to do it. Obviously we want the preserve the current system, while supporting an alternative for non-spaced languages. Doing so would probably need to understand the specific rules of such languages, which to my knowledge no current maintainer do. Your welcomed if you want to have a go a it and make a PR. |
Expected Behavior
Add subtitles normally
Actual Behavior
After upgrading to version 2.1.1 of Moviepy, it is not possible to wrap subtitles when adding them. Multiple subtitles can only display one line, and any excess will be truncated.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: