manim-devanagari


Namemanim-devanagari JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/avnlearn/manim-devanagari
SummaryDevanagari plugin for manim
upload_time2024-09-22 23:42:15
maintainerNone
docs_urlNone
authorAvN Learn
requires_python<3.13,>=3.9
licenseMIT
keywords davanagari hindi latex latex cancel tag manim
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ::: {.cell .code execution_count="1"}

:::

# Manim Devangari

Manim plugin for adding devanagari script.

# Table of Contents:

- [Manim Devangari](#manim-devangari)
- [Table of Contents:](#table-of-contents)
- [Installation](#installation)
- [Usage Devanagari](#usage-devanagari)
  - [Using Devanagari Template](#using-devanagari-template)
  - [Footer](#footer)
  - [Bold](#bold)
- [Theme](#theme)
- [Usage Notebook](#usage-notebook)
  - [Example 1](#example-1)
  - [Example 2](#example-2)
  - [Example 3](#example-3)
  - [Example 4](#example-4)
  - [Example 5](#example-5)

# Installation

- Install `pip install manim`
- Install font - `Noto Sans` and `Noto Sans Devanagari`

# Usage Devanagari

## Using Devanagari Template

```python
from manim import *
import manim_devanagari as m_deva
```

Supported Hindi, English and Math

```python
class Deva_1_Template(Scene):
    def construct(self):
        dev_tex = VGroup(
            Tex("धन्यावद", tex_template=m_deva._Devanagari),
            Tex("धन्यावद (Thank you!)", tex_template=m_deva._Devanagari),
            Tex(r"द्विघात सुत्र (Quadratic formula) \\ $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$", tex_template=m_deva._Devanagari),
            MathTex(r"\text{भिन्न} = \dfrac{\text{अंश}}{\text{हर}}", tex_template=m_deva._Devanagari)
        ).arrange(DOWN)

        self.add(dev_tex)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_1_Template_ManimCE_v0.18.1.png)

```python


class Deva_2_MObject(Scene):
    def construct(self):
        dev_tex = VGroup(
            m_deva.Deva_Tex("धन्यावद", font_size=DEFAULT_FONT_SIZE),
            m_deva.Deva_Tex("धन्यावद (Thank you!)", font_size=DEFAULT_FONT_SIZE),
            m_deva.Deva_Tex(r"द्विघात सुत्र (Quadratic formula) \\ $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$", font_size=DEFAULT_FONT_SIZE),
            m_deva.Deva_MathTex(r"\text{भिन्न} = \dfrac{\text{अंश}}{\text{हर}}", font_size=DEFAULT_FONT_SIZE)
        ).arrange(DOWN)

        self.add(dev_tex)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_2_MObject_ManimCE_v0.18.1.png)

```python

class Deva_3_CancelMath(Scene):
    def construct(self):
        cancel_tex = VGroup(
            m_deva.Deva_MathTex(r"{{(1 + x)",r"(2 - x^2)}",r"\over",r"{(1 + x)}}", font_size=DEFAULT_FONT_SIZE),
            MathTex(r"{{(1 + x)",r"(2 - x^2)}",r"\over",r"{(2 - x^2)}}")
        ).arrange(DOWN)

        self.add(cancel_tex)
        self.add(m_deva.Cancel(cancel_tex[0][0]))
        self.add(m_deva.Cancel(cancel_tex[0][3]))

        self.add(m_deva.Cancel(cancel_tex[1][1]))
        self.add(m_deva.Cancel(cancel_tex[1][3]))
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_3_CancelMath_ManimCE_v0.18.1.png)

## Footer

```python

class Deva_4_SpecialText(Scene):
    def construct(self):
        footer = m_deva.Footer()
        cancel_tex = VGroup(
            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),
            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),
            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)
        ).arrange(DOWN)
        self.add(cancel_tex, footer)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_4_SpecialText_ManimCE_v0.18.1.png)

```python

class Deva_5_Footer(Scene):
    def construct(self):
        footer = m_deva.Footer(self.camera.frame_width)
        cancel_tex = VGroup(
            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),
            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),
            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)
        ).arrange(DOWN)
        self.add(cancel_tex, footer)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_5_Footer_ManimCE_v0.18.1.png)

## Bold

```python

class Deva_6_Bold(m_deva.Themes):
    def construct(self):
        self.set_theme(background_color=WHITE)
        cancel_tex = VGroup(
            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),
            m_deva.BoldTex("Hello World!"),
            m_deva.Tex("Hello World!")
        ).arrange(DOWN)
        self.add(cancel_tex)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_6_Bold_ManimCE_v0.18.1.png)

# Theme

```python

class Deva_7_Theme(m_deva.Themes):
    def construct(self):
        self.set_theme(background_color=WHITE)
        cancel_tex = VGroup(
            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),
            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),
            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)
        ).arrange(DOWN)
        self.add(cancel_tex)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_7_Theme_ManimCE_v0.18.1.png)

# Usage Notebook

```python
from manim import *
from manim_devanagari.notebook import Notebook, cue_column, Question, Answer, Solution
```

## Example 1

Only String value

```python
class Notebook_0(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="Noto Sans")
        Paragraph.set_default(font_size=10, font="Noto Sans")
        MathTex.set_default(font_size=10)

        m = Notebook(
            cue_column("Question 1 :"),
            "What is motion?",
            cue_column("Answer :"),
            "Motion is the change in position of an object over time.",
            r"$$v = \dfrac{d}{t}$$",
            cue_column("Question 2 :"),
            "What is force?",
            cue_column("Answer :"),
            "Force is an interaction that causes an object to change its velocity, direction, or shape. It is a vector quantity, meaning it has both magnitude and direction.",
            r"$$F = m \cdot a$$",
            cue_column("Question 3 :"),
            "what is sound?",
            cue_column("Answer :"),
            "Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.",
            cue_column("Question 4 :"),
            "what is speed?",
            cue_column("Answer :"),
            "Speed is the distance traveled per unit of time. The formula for speed is:",
            r"$$\text{Speed} = \dfrac{\text{Distance}}{\text{Time}}$$",
            "where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).",
        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_0_ManimCE_v0.18.1.png)

```python


class Notebook_1(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="Noto Sans")
        Paragraph.set_default(font_size=10, font="Noto Sans")
        MathTex.set_default(font_size=10)

        m = Notebook(
            Question(1),
            "What is motion?",
            Answer(),
            "Motion is the change in position of an object over time.",
            r"$$v = \dfrac{d}{t}$$",
            Question(2),
            "What is force?",
            Answer(),
            "Force is an interaction that causes an object to change its velocity, direction, or shape. It is a vector quantity, meaning it has both magnitude and direction.",
            r"$$F = m \cdot a$$",
            Question(3),
            "what is sound?",
            Answer(),
            "Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.",
            Question(4),
            "what is speed?",
            Answer(),
            "Speed is the distance traveled per unit of time. The formula for speed is:",
            r"$$\text{Speed} = \dfrac{\text{Distance}}{\text{Time}}$$",
            "where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).",
        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_1_ManimCE_v0.18.1.png)

## Example 2

```python


class Notebook_2(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="Noto Sans")
        Paragraph.set_default(font_size=10, font="Noto Sans")
        MathTex.set_default(font_size=10)

        m = Notebook(
            cue_column("Question 1 :"),
            Text("What is motion?"),
            cue_column("Answer :"),
            Text(
                "Motion is the change in position of an object over time.",
            ),
            MathTex(r"v = \dfrac{d}{t}"),
            cue_column("Question 2 :"),
            Text("What is force?"),
            cue_column("Answer :"),
            Paragraph(
                "Force is an interaction that causes an object to change its velocity,",
                "direction, or shape."
                "It is a vector quantity, meaning it has both magnitude and direction.",
            ),
            MathTex(r"F = m \cdot a"),
            cue_column("Question 3 :"),
            Text("what is sound?"),
            cue_column("Answer :"),
            Paragraph(
                "Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations."
            ),
            cue_column("Question 4 :"),
            Text("what is speed?"),
            cue_column("Answer :"),
            Paragraph(
                "Speed is the distance traveled per unit of time. The formula for speed is:"
            ),
            MathTex(r"\text{Speed} = \dfrac{\text{Distance}}{\text{Time}}"),
            Paragraph(
                "where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h)."
            ),
        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_2_ManimCE_v0.18.1.png)

## Example 3

```python


class Notebook_3(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="sans-serif")
        Paragraph.set_default(font_size=10, font="sans-serif")
        MathTex.set_default(font_size=10)

        m = Notebook(
            Text("Question 1 :"),
            Text("What is motion?"),
            Text("Answer :"),
            Text(
                "Motion is the change in position of an object over time.",
            ),
            MathTex(r"v = \dfrac{d}{t}"),
            Text("Question 2 :"),
            Text("What is force?"),
            Text("Answer :"),
            Paragraph(
                "Force is an interaction that causes an object to change its velocity,",
                "direction, or shape."
                "It is a vector quantity, meaning it has both magnitude and direction.",
            ),
            MathTex(r"F = m \cdot a"),
            Text("Question 3 :"),
            Text("what is sound?"),
            Text("Answer :"),
            Paragraph(
                "Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations."
            ),
            Text("Question 4 :"),
            Text("what is speed?"),
            Text("Answer :"),
            Paragraph(
                "Speed is the distance traveled per unit of time. The formula for speed is:"
            ),
            MathTex(r"\text{Speed} = \dfrac{\text{Distance}}{\text{Time}}"),
            Paragraph(
                "where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h)."
            ),
        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_3_ManimCE_v0.18.1.png)

## Example 4

```python


class Notebook_3(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="sans-serif")
        Paragraph.set_default(font_size=10, font="sans-serif")
        MathTex.set_default(font_size=10)

        m = Notebook(
            cue_column("Q1."),
            Text("What is motion?"),
            Text("Answer :"),
            Text(
                "Motion is the change in position of an object over time.",
            ),
            MathTex(r"v = \dfrac{d}{t}"),
            cue_column("Q2."),
            Text("What is force?"),
            Text("Answer :"),
            Paragraph(
                "Force is an interaction that causes an object to change its velocity,",
                "direction, or shape."
                "It is a vector quantity, meaning it has both magnitude and direction.",
            ),
            MathTex(r"F = m \cdot a"),
            cue_column("Q3."),
            Text("what is sound?"),
            Text("Answer :"),
            Paragraph(
                "Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations."
            ),
            cue_column("Q4."),
            Text("what is speed?"),
            Text("Answer :"),
            Paragraph(
                "Speed is the distance traveled per unit of time. The formula for speed is:"
            ),
            MathTex(r"\text{Speed} = \dfrac{\text{Distance}}{\text{Time}}"),
            Paragraph(
                "where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h)."
            ),
        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_4_ManimCE_v0.18.1.png)

## Example 5

```python


class Notebook_4(Scene):
    def construct(self):
        Text.set_default(font_size=10, font="sans-serif")
        Paragraph.set_default(font_size=10, font="sans-serif")
        MathTex.set_default(font_size=10)

        m = Notebook(
            cue_column("Question 1:"),
            Text("Which of the following are sets? Justify your answer."),
            cue_column("(i)"),
            Text(
                "The collection of all months of a year beginning with the letter J.",
            ),
            cue_column("Soluton :"),
            Paragraph(
                "The collection of all months of a year beginning with the letter J is a well-defined",
                "collection of objects because one can definitely identify a month that belongs to this collection.",
                "Hence, this collection is a set."
            ),
            cue_column("(ii)"),
            Text("The collection of ten most talented writers of India."),
            cue_column("Soluton :"),
            Paragraph(
                "The collection of ten most talented writers of India is not a well-defined collection",
                "because the criteria for determining a writer’s talent may vary from person to person."
                "Hence, this collection is not a set.",
            ),
            cue_column("(iii)"),
            Text("A team of eleven best-cricket batsmen of the world."),
            cue_column("Soluton :"),
            Paragraph(
                "A team of eleven best cricket batsmen of the world is not a well-defined collection",
                "because the criteria for determining a batsman’s talent may vary from person to person.",
                "Hence, this collection is not a set."
            ),
            cue_column("(iv)"),
            Text("A team of eleven best-cricket batsmen of the world."),
            cue_column("Soluton :"),
            Paragraph(
                "The collection of all boys in your class is a well-defined collection because you can",
                "definitely identify a boy who belongs to this collection.",
                "Hence, this collection is a set."
            ),

        )

        self.add(m)
```

![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_4_ManimCE_v0.18.1.png)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/avnlearn/manim-devanagari",
    "name": "manim-devanagari",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": "davanagari, hindi, latex, latex cancel tag, manim",
    "author": "AvN Learn",
    "author_email": "avnlearn@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/22/18/5b612a7075e46dff7534e17d7d1619fe0c08fd08f420dd46f76cc5cfd236/manim_devanagari-0.0.5.tar.gz",
    "platform": null,
    "description": "::: {.cell .code execution_count=\"1\"}\n\n:::\n\n# Manim Devangari\n\nManim plugin for adding devanagari script.\n\n# Table of Contents:\n\n- [Manim Devangari](#manim-devangari)\n- [Table of Contents:](#table-of-contents)\n- [Installation](#installation)\n- [Usage Devanagari](#usage-devanagari)\n  - [Using Devanagari Template](#using-devanagari-template)\n  - [Footer](#footer)\n  - [Bold](#bold)\n- [Theme](#theme)\n- [Usage Notebook](#usage-notebook)\n  - [Example 1](#example-1)\n  - [Example 2](#example-2)\n  - [Example 3](#example-3)\n  - [Example 4](#example-4)\n  - [Example 5](#example-5)\n\n# Installation\n\n- Install `pip install manim`\n- Install font - `Noto Sans` and `Noto Sans Devanagari`\n\n# Usage Devanagari\n\n## Using Devanagari Template\n\n```python\nfrom manim import *\nimport manim_devanagari as m_deva\n```\n\nSupported Hindi, English and Math\n\n```python\nclass Deva_1_Template(Scene):\n    def construct(self):\n        dev_tex = VGroup(\n            Tex(\"\u0927\u0928\u094d\u092f\u093e\u0935\u0926\", tex_template=m_deva._Devanagari),\n            Tex(\"\u0927\u0928\u094d\u092f\u093e\u0935\u0926 (Thank you!)\", tex_template=m_deva._Devanagari),\n            Tex(r\"\u0926\u094d\u0935\u093f\u0918\u093e\u0924 \u0938\u0941\u0924\u094d\u0930 (Quadratic formula) \\\\ $x = \\dfrac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$\", tex_template=m_deva._Devanagari),\n            MathTex(r\"\\text{\u092d\u093f\u0928\u094d\u0928} = \\dfrac{\\text{\u0905\u0902\u0936}}{\\text{\u0939\u0930}}\", tex_template=m_deva._Devanagari)\n        ).arrange(DOWN)\n\n        self.add(dev_tex)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_1_Template_ManimCE_v0.18.1.png)\n\n```python\n\n\nclass Deva_2_MObject(Scene):\n    def construct(self):\n        dev_tex = VGroup(\n            m_deva.Deva_Tex(\"\u0927\u0928\u094d\u092f\u093e\u0935\u0926\", font_size=DEFAULT_FONT_SIZE),\n            m_deva.Deva_Tex(\"\u0927\u0928\u094d\u092f\u093e\u0935\u0926 (Thank you!)\", font_size=DEFAULT_FONT_SIZE),\n            m_deva.Deva_Tex(r\"\u0926\u094d\u0935\u093f\u0918\u093e\u0924 \u0938\u0941\u0924\u094d\u0930 (Quadratic formula) \\\\ $x = \\dfrac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$\", font_size=DEFAULT_FONT_SIZE),\n            m_deva.Deva_MathTex(r\"\\text{\u092d\u093f\u0928\u094d\u0928} = \\dfrac{\\text{\u0905\u0902\u0936}}{\\text{\u0939\u0930}}\", font_size=DEFAULT_FONT_SIZE)\n        ).arrange(DOWN)\n\n        self.add(dev_tex)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_2_MObject_ManimCE_v0.18.1.png)\n\n```python\n\nclass Deva_3_CancelMath(Scene):\n    def construct(self):\n        cancel_tex = VGroup(\n            m_deva.Deva_MathTex(r\"{{(1 + x)\",r\"(2 - x^2)}\",r\"\\over\",r\"{(1 + x)}}\", font_size=DEFAULT_FONT_SIZE),\n            MathTex(r\"{{(1 + x)\",r\"(2 - x^2)}\",r\"\\over\",r\"{(2 - x^2)}}\")\n        ).arrange(DOWN)\n\n        self.add(cancel_tex)\n        self.add(m_deva.Cancel(cancel_tex[0][0]))\n        self.add(m_deva.Cancel(cancel_tex[0][3]))\n\n        self.add(m_deva.Cancel(cancel_tex[1][1]))\n        self.add(m_deva.Cancel(cancel_tex[1][3]))\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_3_CancelMath_ManimCE_v0.18.1.png)\n\n## Footer\n\n```python\n\nclass Deva_4_SpecialText(Scene):\n    def construct(self):\n        footer = m_deva.Footer()\n        cancel_tex = VGroup(\n            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),\n            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),\n            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)\n        ).arrange(DOWN)\n        self.add(cancel_tex, footer)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_4_SpecialText_ManimCE_v0.18.1.png)\n\n```python\n\nclass Deva_5_Footer(Scene):\n    def construct(self):\n        footer = m_deva.Footer(self.camera.frame_width)\n        cancel_tex = VGroup(\n            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),\n            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),\n            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)\n        ).arrange(DOWN)\n        self.add(cancel_tex, footer)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_5_Footer_ManimCE_v0.18.1.png)\n\n## Bold\n\n```python\n\nclass Deva_6_Bold(m_deva.Themes):\n    def construct(self):\n        self.set_theme(background_color=WHITE)\n        cancel_tex = VGroup(\n            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),\n            m_deva.BoldTex(\"Hello World!\"),\n            m_deva.Tex(\"Hello World!\")\n        ).arrange(DOWN)\n        self.add(cancel_tex)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_6_Bold_ManimCE_v0.18.1.png)\n\n# Theme\n\n```python\n\nclass Deva_7_Theme(m_deva.Themes):\n    def construct(self):\n        self.set_theme(background_color=WHITE)\n        cancel_tex = VGroup(\n            m_deva.QuestionText(1, font_size=DEFAULT_FONT_SIZE),\n            m_deva.SolutionText(font_size=DEFAULT_FONT_SIZE),\n            m_deva.AnswerText( font_size=DEFAULT_FONT_SIZE)\n        ).arrange(DOWN)\n        self.add(cancel_tex)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Deva_7_Theme_ManimCE_v0.18.1.png)\n\n# Usage Notebook\n\n```python\nfrom manim import *\nfrom manim_devanagari.notebook import Notebook, cue_column, Question, Answer, Solution\n```\n\n## Example 1\n\nOnly String value\n\n```python\nclass Notebook_0(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"Noto Sans\")\n        Paragraph.set_default(font_size=10, font=\"Noto Sans\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            cue_column(\"Question 1 :\"),\n            \"What is motion?\",\n            cue_column(\"Answer :\"),\n            \"Motion is the change in position of an object over time.\",\n            r\"$$v = \\dfrac{d}{t}$$\",\n            cue_column(\"Question 2 :\"),\n            \"What is force?\",\n            cue_column(\"Answer :\"),\n            \"Force is an interaction that causes an object to change its velocity, direction, or shape. It is a vector quantity, meaning it has both magnitude and direction.\",\n            r\"$$F = m \\cdot a$$\",\n            cue_column(\"Question 3 :\"),\n            \"what is sound?\",\n            cue_column(\"Answer :\"),\n            \"Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.\",\n            cue_column(\"Question 4 :\"),\n            \"what is speed?\",\n            cue_column(\"Answer :\"),\n            \"Speed is the distance traveled per unit of time. The formula for speed is:\",\n            r\"$$\\text{Speed} = \\dfrac{\\text{Distance}}{\\text{Time}}$$\",\n            \"where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).\",\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_0_ManimCE_v0.18.1.png)\n\n```python\n\n\nclass Notebook_1(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"Noto Sans\")\n        Paragraph.set_default(font_size=10, font=\"Noto Sans\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            Question(1),\n            \"What is motion?\",\n            Answer(),\n            \"Motion is the change in position of an object over time.\",\n            r\"$$v = \\dfrac{d}{t}$$\",\n            Question(2),\n            \"What is force?\",\n            Answer(),\n            \"Force is an interaction that causes an object to change its velocity, direction, or shape. It is a vector quantity, meaning it has both magnitude and direction.\",\n            r\"$$F = m \\cdot a$$\",\n            Question(3),\n            \"what is sound?\",\n            Answer(),\n            \"Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.\",\n            Question(4),\n            \"what is speed?\",\n            Answer(),\n            \"Speed is the distance traveled per unit of time. The formula for speed is:\",\n            r\"$$\\text{Speed} = \\dfrac{\\text{Distance}}{\\text{Time}}$$\",\n            \"where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).\",\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_1_ManimCE_v0.18.1.png)\n\n## Example 2\n\n```python\n\n\nclass Notebook_2(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"Noto Sans\")\n        Paragraph.set_default(font_size=10, font=\"Noto Sans\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            cue_column(\"Question 1 :\"),\n            Text(\"What is motion?\"),\n            cue_column(\"Answer :\"),\n            Text(\n                \"Motion is the change in position of an object over time.\",\n            ),\n            MathTex(r\"v = \\dfrac{d}{t}\"),\n            cue_column(\"Question 2 :\"),\n            Text(\"What is force?\"),\n            cue_column(\"Answer :\"),\n            Paragraph(\n                \"Force is an interaction that causes an object to change its velocity,\",\n                \"direction, or shape.\"\n                \"It is a vector quantity, meaning it has both magnitude and direction.\",\n            ),\n            MathTex(r\"F = m \\cdot a\"),\n            cue_column(\"Question 3 :\"),\n            Text(\"what is sound?\"),\n            cue_column(\"Answer :\"),\n            Paragraph(\n                \"Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.\"\n            ),\n            cue_column(\"Question 4 :\"),\n            Text(\"what is speed?\"),\n            cue_column(\"Answer :\"),\n            Paragraph(\n                \"Speed is the distance traveled per unit of time. The formula for speed is:\"\n            ),\n            MathTex(r\"\\text{Speed} = \\dfrac{\\text{Distance}}{\\text{Time}}\"),\n            Paragraph(\n                \"where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).\"\n            ),\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_2_ManimCE_v0.18.1.png)\n\n## Example 3\n\n```python\n\n\nclass Notebook_3(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"sans-serif\")\n        Paragraph.set_default(font_size=10, font=\"sans-serif\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            Text(\"Question 1 :\"),\n            Text(\"What is motion?\"),\n            Text(\"Answer :\"),\n            Text(\n                \"Motion is the change in position of an object over time.\",\n            ),\n            MathTex(r\"v = \\dfrac{d}{t}\"),\n            Text(\"Question 2 :\"),\n            Text(\"What is force?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Force is an interaction that causes an object to change its velocity,\",\n                \"direction, or shape.\"\n                \"It is a vector quantity, meaning it has both magnitude and direction.\",\n            ),\n            MathTex(r\"F = m \\cdot a\"),\n            Text(\"Question 3 :\"),\n            Text(\"what is sound?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.\"\n            ),\n            Text(\"Question 4 :\"),\n            Text(\"what is speed?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Speed is the distance traveled per unit of time. The formula for speed is:\"\n            ),\n            MathTex(r\"\\text{Speed} = \\dfrac{\\text{Distance}}{\\text{Time}}\"),\n            Paragraph(\n                \"where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).\"\n            ),\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_3_ManimCE_v0.18.1.png)\n\n## Example 4\n\n```python\n\n\nclass Notebook_3(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"sans-serif\")\n        Paragraph.set_default(font_size=10, font=\"sans-serif\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            cue_column(\"Q1.\"),\n            Text(\"What is motion?\"),\n            Text(\"Answer :\"),\n            Text(\n                \"Motion is the change in position of an object over time.\",\n            ),\n            MathTex(r\"v = \\dfrac{d}{t}\"),\n            cue_column(\"Q2.\"),\n            Text(\"What is force?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Force is an interaction that causes an object to change its velocity,\",\n                \"direction, or shape.\"\n                \"It is a vector quantity, meaning it has both magnitude and direction.\",\n            ),\n            MathTex(r\"F = m \\cdot a\"),\n            cue_column(\"Q3.\"),\n            Text(\"what is sound?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Sound is a form of energy that travels as vibrations through a medium, such as air, water, or solids, and is perceived by our ears as auditory sensations.\"\n            ),\n            cue_column(\"Q4.\"),\n            Text(\"what is speed?\"),\n            Text(\"Answer :\"),\n            Paragraph(\n                \"Speed is the distance traveled per unit of time. The formula for speed is:\"\n            ),\n            MathTex(r\"\\text{Speed} = \\dfrac{\\text{Distance}}{\\text{Time}}\"),\n            Paragraph(\n                \"where speed is measured in units such as meters per second (m/s) or kilometers per hour (km/h).\"\n            ),\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_4_ManimCE_v0.18.1.png)\n\n## Example 5\n\n```python\n\n\nclass Notebook_4(Scene):\n    def construct(self):\n        Text.set_default(font_size=10, font=\"sans-serif\")\n        Paragraph.set_default(font_size=10, font=\"sans-serif\")\n        MathTex.set_default(font_size=10)\n\n        m = Notebook(\n            cue_column(\"Question 1:\"),\n            Text(\"Which of the following are sets? Justify your answer.\"),\n            cue_column(\"(i)\"),\n            Text(\n                \"The collection of all months of a year beginning with the letter J.\",\n            ),\n            cue_column(\"Soluton :\"),\n            Paragraph(\n                \"The collection of all months of a year beginning with the letter J is a well-defined\",\n                \"collection of objects because one can definitely identify a month that belongs to this collection.\",\n                \"Hence, this collection is a set.\"\n            ),\n            cue_column(\"(ii)\"),\n            Text(\"The collection of ten most talented writers of India.\"),\n            cue_column(\"Soluton :\"),\n            Paragraph(\n                \"The collection of ten most talented writers of India is not a well-defined collection\",\n                \"because the criteria for determining a writer\u2019s talent may vary from person to person.\"\n                \"Hence, this collection is not a set.\",\n            ),\n            cue_column(\"(iii)\"),\n            Text(\"A team of eleven best-cricket batsmen of the world.\"),\n            cue_column(\"Soluton :\"),\n            Paragraph(\n                \"A team of eleven best cricket batsmen of the world is not a well-defined collection\",\n                \"because the criteria for determining a batsman\u2019s talent may vary from person to person.\",\n                \"Hence, this collection is not a set.\"\n            ),\n            cue_column(\"(iv)\"),\n            Text(\"A team of eleven best-cricket batsmen of the world.\"),\n            cue_column(\"Soluton :\"),\n            Paragraph(\n                \"The collection of all boys in your class is a well-defined collection because you can\",\n                \"definitely identify a boy who belongs to this collection.\",\n                \"Hence, this collection is a set.\"\n            ),\n\n        )\n\n        self.add(m)\n```\n\n![](https://raw.githubusercontent.com/avnlearn/manim-devanagari/refs/heads/main/assets/images/Notebook_4_ManimCE_v0.18.1.png)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Devanagari plugin for manim",
    "version": "0.0.5",
    "project_urls": {
        "Documentation": "https://github.com/avnlearn/manim-devanagari/blob/master/README.md",
        "Homepage": "https://github.com/avnlearn/manim-devanagari",
        "Repository": "https://github.com/avnlearn/manim-devanagari"
    },
    "split_keywords": [
        "davanagari",
        " hindi",
        " latex",
        " latex cancel tag",
        " manim"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c20e2d382fe115d7e1426439c0f5813159e9abf9c4f1e56c0a1009eb74986e94",
                "md5": "ab2260a7b893197b1074b54463301fb9",
                "sha256": "2e8d53facafed6125d9dade53c8fd9d07f8f7210625c7f17bee9efa04044b3cf"
            },
            "downloads": -1,
            "filename": "manim_devanagari-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ab2260a7b893197b1074b54463301fb9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 11893,
            "upload_time": "2024-09-22T23:42:14",
            "upload_time_iso_8601": "2024-09-22T23:42:14.046638Z",
            "url": "https://files.pythonhosted.org/packages/c2/0e/2d382fe115d7e1426439c0f5813159e9abf9c4f1e56c0a1009eb74986e94/manim_devanagari-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22185b612a7075e46dff7534e17d7d1619fe0c08fd08f420dd46f76cc5cfd236",
                "md5": "9afcb2f68f2b5dfd108a5bbf7747a753",
                "sha256": "62a4b6416bd6ffe4c1601b47773726597c49d726488dd657c14a657802a71998"
            },
            "downloads": -1,
            "filename": "manim_devanagari-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "9afcb2f68f2b5dfd108a5bbf7747a753",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 11967,
            "upload_time": "2024-09-22T23:42:15",
            "upload_time_iso_8601": "2024-09-22T23:42:15.556889Z",
            "url": "https://files.pythonhosted.org/packages/22/18/5b612a7075e46dff7534e17d7d1619fe0c08fd08f420dd46f76cc5cfd236/manim_devanagari-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-22 23:42:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "avnlearn",
    "github_project": "manim-devanagari",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "manim-devanagari"
}
        
Elapsed time: 0.34484s