Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add arabic in Example

Syrus Darkae9146420ded
diff --git a/example_scenes/pangoText.py b/example_scenes/pangoText.py
index be38772b8..d257af0cf 100644
--- a/example_scenes/pangoText.py
+++ b/example_scenes/pangoText.py
@@ -12,10 +12,14 @@ class PangoRendering(Scene):
self.play(Transform(text, mess))
self.wait(2)
self.clear()
- arb = PangoText("Здравствуйте मस नम म ", font="sans-serif")
- self.play(Write(arb))
+ russ = PangoText("Здравствуйте मस नम म ")
+ self.play(Write(russ))
+ self.wait(2)
+ self.clear()
+ hin = PangoText("नमस्ते")
+ self.play(Write(hin))
self.wait(2)
self.clear()
- arb = PangoText("नमस्ते", font="sans-serif")
+ arb = PangoText("السَّلام عليكُم",font="sans-serif")
self.play(Write(arb))
- self.wait(3)
+ self.wait(3)
\ No newline at end of file