-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Writing Bengali in Manim #735
Comments
You need to use |
Used tex_template.texfile. But still showing the same error. This time it's also showing googled it and tried running |
To enable |
Did all of these things. But still showing errors. It's not even executing any English words. |
Just changed this as True. Then executed the program without changing any other thing. Now it's showing error even in the case of English words. |
You have to install xelatex and LaTeXBangla, and you have to added to the PATH variable. |
I would be grateful if you tell me about the installation process :) |
installed xelatex. But still problem occurs |
You can try Text instead of TextMobject |
Thank you. It worked. I've written
*I've also tried using other font families. |
The rendering bug is caused by the package called |
Thank you very much 👍 |
hridya100 so after installing xelatex you just used Text and it worked? |
Hi, how is it finally solved? I want to write Bangla in |
I want to write Bangla through Manim. But after writing the text and compiling it causes errors.
I've attempted to solve the problem on my own but failed.
The command that I've run was: python -m manim example_scenes.py WriteStuff -pl.
In the example_scenes.py file, i've changed the text of WriteStuff class. I've changed it to
example_text = TextMobject(
"বাংলা",
tex_to_color_map={"text": YELLOW}
)
Then it shows the following errors:
Writing "\centering বাংলা" to ./media\Tex\f846dd8efc3d12cf.tex Traceback (most recent call last):
File "C:\manim\manimlib\extract_scene.py", line 155, in main scene = SceneClass(**scene_kwargs)
File "C:\manim\manimlib\scene\scene.py", line 53, in init self.construct()
File "example_scenes.py", line 102, in construct tex_to_color_map={"text": YELLOW}
File "C:\manim\manimlib\mobject\svg\tex_mobject.py", line 144, in init self, self.arg_separator.join(tex_strings), **kwargs
File "C:\manim\manimlib\mobject\svg\tex_mobject.py", line 44, in init self.template_tex_file_body
File "C:\manim\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file)
File "C:\manim\manimlib\utils\tex_file_writing.py", line 67, in tex_to_dvi "See log output above or the log file: %s" % log_file)
Exception: Latex error converting to dvi. See log output above or the log file: ./media\Tex\f846dd8efc3d12cf.log
I've tried adding following packages to tex_template.tex file :
\usepackage[banglamainfont=Kalpurush, banglattfont=Siyam Rupali]{latexbangla}
The text was updated successfully, but these errors were encountered: