Skip to main content

افزونه‌ی مانیم برای نمایش متن فارسی (راست به چپ) با قابلیت تبدیل خودکار از حروف لاتین به فارسی

Project description

manim-fa

افزونه‌ی مانیم برای نمایش متن فارسی (راست به چپ) با قابلیت تبدیل خودکار از حروف لاتین به فارسی.

نحوه نصب پلاگین

pip install manim-fa

نحوه استفاده از این پلاگین

from manim import *
from manim_fa import create_fa_text

class Demo(Scene):
    def construct(self):
        # ایجاد متن مستقیم فارسی
        t1 = create_fa_text(".سلام بر کاربر گرامی، این یک افزونه فارسی ساز در مانیم هست", color="BLUE", font_size=70)
        
        # قابلیت آوا نگاری از فنگلش به فارسی
        t2 = create_fa_text("Salam bar shoma karbare manim fa", translit=True, color="GREEN", font_size=70)
        
        self.play(Write(t1))
        self.play(Transform(t1, t2))
        self.wait(2)

تراز بندی متن از راست به چپ

برای ایجاد متن بلند :

from manim_fa.layout import arrange_rtl
text_group = VGroup(line1, line2, line3)
arrange_rtl(text_group)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manim_fa-0.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manim_fa-0.2.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file manim_fa-0.2.1.tar.gz.

File metadata

  • Download URL: manim_fa-0.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for manim_fa-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6bc19cb8cf013221fb6a12a7b01787f806da3ac5c319b4707b5f2d1e1b090aef
MD5 3ac83f492a2e20b3b286aa3ea155d677
BLAKE2b-256 501a530e8243d8438c8e9b9150f031bec8b6fb17ed781a2236139a782ba15c1c

See more details on using hashes here.

File details

Details for the file manim_fa-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: manim_fa-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for manim_fa-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18263352b98639f2d1d50801a3e27f934311b10f52f01ffd331498d10511d425
MD5 beac40ca5d28b241ba3875ef62837833
BLAKE2b-256 3a11f01fc2b41bb5eaea4de02067a905eaa0bfb4e133cd2576d9b2d2d2d3a22b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page