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 ./mediaTexf846dd8efc3d12cf.tex Traceback (most recent call last):
File "C:manimmanimlibextract_scene.py", line 155, in main scene = SceneClass(**scene_kwargs)
File "C:manimmanimlibscenescene.py", line 53, in __init__ self.construct()
File "example_scenes.py", line 102, in construct tex_to_color_map={"text": YELLOW}
File "C:manimmanimlibmobjectsvgtex_mobject.py", line 144, in __init__ self, self.arg_separator.join(tex_strings), **kwargs
File "C:manimmanimlibmobjectsvgtex_mobject.py", line 44, in __init__ self.template_tex_file_body
File "C:manimmanimlibutilstex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file)
File "C:manimmanimlibutilstex_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: ./mediaTexf846dd8efc3d12cf.log
I've tried adding following packages to tex_template.tex file :
usepackage[banglamainfont=Kalpurush, banglattfont=Siyam Rupali]{latexbangla}
You need to use latexbangla or xelatex, you can modify that configuration here:
Used xelatex as u mentioned. And added
\usepackage[banglamainfont=Akaash,banglattfont=Akaash]{latexbangla} in the
file.
But still showing the same error. This time it's also showing
Sorry, but maketfm did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
googled it and tried running
updmap.exe --admin in the directory :
C:\Program Files\MiKTeX 2.9\miktex\bin\x64>updmap.exe --admin
but it didn't work.
To enable xelatex you have to modify this to True, and add that packages to manimlib\ctex_template.tex.
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
You can see #680 for more information
You can try Text instead of TextMobject
You can see #680 for more information
Thank you. It worked. I've written
script = '''Hello কি করিছস'''
class FirstScene(Scene):
def construct(self):
text=Text(script, font='Kalpurush')
self.play(Write(text))
but the image shows this:

The rendering bug is caused by the package called pycairo that I used to generate svg files.
I have feedbacked this problem to pycairo and wait for the solution.
I am not sure when the bug can be fixed, so I recommend to try to use TextMobject again or use other software like Adobe Illustrator to generate svgs which has those texts and use SVGMobject to generate it into videos.
The rendering bug is caused by the package called
pycairothat I used to generate svg files.
I have feedbacked this problem to pycairo and wait for the solution.
I am not sure when the bug can be fixed, so I recommend to try to use TextMobject again or use other software like Adobe Illustrator to generate svgs which has those texts and use SVGMobject to generate it into videos.
Thank you very much 👍
hridya100 so after installing xelatex you just used Text and it worked?
Most helpful comment
You can try Text instead of TextMobject
You can see #680 for more information