manimpango 0.2.3__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ManimPango-0.2.5/.coveragerc +26 -0
- ManimPango-0.2.5/CODE_OF_CONDUCT.md +5 -0
- ManimPango-0.2.5/MANIFEST.in +7 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5/ManimPango.egg-info}/PKG-INFO +3 -13
- ManimPango-0.2.5/ManimPango.egg-info/SOURCES.txt +48 -0
- {ManimPango-0.2.3/ManimPango.egg-info → ManimPango-0.2.5}/PKG-INFO +3 -13
- {ManimPango-0.2.3 → ManimPango-0.2.5}/README.md +2 -12
- ManimPango-0.2.5/docs/RELEASE.rst +52 -0
- ManimPango-0.2.5/docs/_static/favicon.ico +0 -0
- ManimPango-0.2.5/docs/_templates/autosummary/class.rst +19 -0
- ManimPango-0.2.5/docs/_templates/autosummary/module.rst +50 -0
- ManimPango-0.2.5/docs/conf.py +85 -0
- ManimPango-0.2.5/docs/index.rst +16 -0
- ManimPango-0.2.5/docs/make.bat +35 -0
- ManimPango-0.2.5/docs/reference.rst +22 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/manimpango/__init__.py +4 -2
- {ManimPango-0.2.3 → ManimPango-0.2.5}/manimpango/_version.py +1 -1
- ManimPango-0.2.5/manimpango/cairo.pxd +27 -0
- ManimPango-0.2.5/manimpango/cmanimpango.pxd +3 -0
- ManimPango-0.2.5/manimpango/cmanimpango.pyx +259 -0
- ManimPango-0.2.5/manimpango/enums.pyx +110 -0
- ManimPango-0.2.5/manimpango/glib.pxd +8 -0
- ManimPango-0.2.3/manimpango/cmanimpango.pxd → ManimPango-0.2.5/manimpango/pango.pxd +37 -91
- ManimPango-0.2.5/manimpango/register_font.pxd +54 -0
- ManimPango-0.2.5/manimpango/register_font.pyx +216 -0
- ManimPango-0.2.5/manimpango/utils.py +55 -0
- ManimPango-0.2.5/requirements-dev.txt +5 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/setup.cfg +5 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/setup.py +21 -3
- ManimPango-0.2.5/tests/__init__.py +41 -0
- ManimPango-0.2.5/tests/_manim.py +81 -0
- ManimPango-0.2.5/tests/conftest.py +10 -0
- ManimPango-0.2.5/tests/fonts/AdobeVFPrototype.ttf +0 -0
- ManimPango-0.2.5/tests/fonts/BungeeColor-Regular_colr_Windows.ttf +0 -0
- ManimPango-0.2.5/tests/fonts/BungeeOutline-Regular.ttf +0 -0
- ManimPango-0.2.5/tests/fonts/LICENSE.txt +6 -0
- ManimPango-0.2.5/tests/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
- ManimPango-0.2.5/tests/svg_tester.py +134 -0
- ManimPango-0.2.5/tests/test_fonts.py +97 -0
- ManimPango-0.2.5/tests/test_import.py +5 -0
- ManimPango-0.2.5/tests/test_list_fonts.py +26 -0
- ManimPango-0.2.5/tests/test_markup.py +99 -0
- ManimPango-0.2.5/tests/test_utils.py +40 -0
- ManimPango-0.2.5/tests/test_version.py +13 -0
- ManimPango-0.2.3/MANIFEST.in +0 -1
- ManimPango-0.2.3/ManimPango.egg-info/SOURCES.txt +0 -15
- ManimPango-0.2.3/manimpango/cmanimpango.pyx +0 -582
- {ManimPango-0.2.3 → ManimPango-0.2.5}/LICENSE +0 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/ManimPango.egg-info/dependency_links.txt +0 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/ManimPango.egg-info/not-zip-safe +0 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/ManimPango.egg-info/top_level.txt +0 -0
- {ManimPango-0.2.3 → ManimPango-0.2.5}/pyproject.toml +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[run]
|
|
2
|
+
plugins = Cython.Coverage
|
|
3
|
+
omit =
|
|
4
|
+
packing
|
|
5
|
+
data_file = .coverage/data
|
|
6
|
+
source = manimpango
|
|
7
|
+
|
|
8
|
+
[report]
|
|
9
|
+
skip_empty = true
|
|
10
|
+
ignore_errors = true
|
|
11
|
+
exclude_lines =
|
|
12
|
+
pragma: no cover
|
|
13
|
+
def __repr__
|
|
14
|
+
if self.debug:
|
|
15
|
+
raise AssertionError
|
|
16
|
+
raise NotImplementedError
|
|
17
|
+
except Exception as e:
|
|
18
|
+
|
|
19
|
+
[html]
|
|
20
|
+
directory = .coverage/html
|
|
21
|
+
|
|
22
|
+
[xml]
|
|
23
|
+
output = .coverage/coverage.xml
|
|
24
|
+
|
|
25
|
+
[json]
|
|
26
|
+
output = .coverage/coverage.json
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ManimPango
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Bindings for Pango for using with Manim.
|
|
5
5
|
Home-page: https://manimpango.manim.community/
|
|
6
6
|
Author: Naveen M K
|
|
@@ -16,7 +16,7 @@ Description: # ManimPango
|
|
|
16
16
|
<a href="https://pypi.org/project/manimpango/"><img src="https://img.shields.io/pypi/v/manimpango.svg?style=flat&logo=pypi" alt="PyPI Latest Release"></a>
|
|
17
17
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/manimpango"></a>
|
|
18
18
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/manimpango"></a>
|
|
19
|
-
<a href="
|
|
19
|
+
<a href="https://choosealicense.com/licenses/gpl-3.0/"><img alt="PyPI - License" src="https://img.shields.io/pypi/l/manimpango"></a>
|
|
20
20
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pangocffi.svg?style=flat"></a>
|
|
21
21
|
<a href='https://manimpango.readthedocs.io/en/latest/?badge=latest'><img src='https://readthedocs.org/projects/manimpango/badge/?version=latest' alt='Documentation Status' /></a>
|
|
22
22
|
<br>
|
|
@@ -35,17 +35,7 @@ Description: # ManimPango
|
|
|
35
35
|
pip install manimpango
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
For **Linux Users**, installing the binary wheel provided in PyPi may have unexpected side effects.
|
|
41
|
-
|
|
42
|
-
For example, a folder named `fontconfig` might be created in the current working directory. That folder would then have a lot of cache files each time you run Manim. In order to avoid this, you will have to install **Manimpango** from source:.
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
pip install manimpango --no-binary :all:
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Please note that for this kind of installation to work, you must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING ) for more information.
|
|
38
|
+
For **Linux Users**, there are no Wheels. You must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING) for more information.
|
|
49
39
|
|
|
50
40
|
## BUILDING
|
|
51
41
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.coveragerc
|
|
2
|
+
CODE_OF_CONDUCT.md
|
|
3
|
+
LICENSE
|
|
4
|
+
MANIFEST.in
|
|
5
|
+
README.md
|
|
6
|
+
pyproject.toml
|
|
7
|
+
requirements-dev.txt
|
|
8
|
+
setup.cfg
|
|
9
|
+
setup.py
|
|
10
|
+
ManimPango.egg-info/PKG-INFO
|
|
11
|
+
ManimPango.egg-info/SOURCES.txt
|
|
12
|
+
ManimPango.egg-info/dependency_links.txt
|
|
13
|
+
ManimPango.egg-info/not-zip-safe
|
|
14
|
+
ManimPango.egg-info/top_level.txt
|
|
15
|
+
docs/RELEASE.rst
|
|
16
|
+
docs/conf.py
|
|
17
|
+
docs/index.rst
|
|
18
|
+
docs/make.bat
|
|
19
|
+
docs/reference.rst
|
|
20
|
+
docs/_static/favicon.ico
|
|
21
|
+
docs/_templates/autosummary/class.rst
|
|
22
|
+
docs/_templates/autosummary/module.rst
|
|
23
|
+
manimpango/__init__.py
|
|
24
|
+
manimpango/_version.py
|
|
25
|
+
manimpango/cairo.pxd
|
|
26
|
+
manimpango/cmanimpango.pxd
|
|
27
|
+
manimpango/cmanimpango.pyx
|
|
28
|
+
manimpango/enums.pyx
|
|
29
|
+
manimpango/glib.pxd
|
|
30
|
+
manimpango/pango.pxd
|
|
31
|
+
manimpango/register_font.pxd
|
|
32
|
+
manimpango/register_font.pyx
|
|
33
|
+
manimpango/utils.py
|
|
34
|
+
tests/__init__.py
|
|
35
|
+
tests/_manim.py
|
|
36
|
+
tests/conftest.py
|
|
37
|
+
tests/svg_tester.py
|
|
38
|
+
tests/test_fonts.py
|
|
39
|
+
tests/test_import.py
|
|
40
|
+
tests/test_list_fonts.py
|
|
41
|
+
tests/test_markup.py
|
|
42
|
+
tests/test_utils.py
|
|
43
|
+
tests/test_version.py
|
|
44
|
+
tests/fonts/AdobeVFPrototype.ttf
|
|
45
|
+
tests/fonts/BungeeColor-Regular_colr_Windows.ttf
|
|
46
|
+
tests/fonts/BungeeOutline-Regular.ttf
|
|
47
|
+
tests/fonts/LICENSE.txt
|
|
48
|
+
tests/fonts/NotoNastaliqUrdu-Regular.ttf
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ManimPango
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Bindings for Pango for using with Manim.
|
|
5
5
|
Home-page: https://manimpango.manim.community/
|
|
6
6
|
Author: Naveen M K
|
|
@@ -16,7 +16,7 @@ Description: # ManimPango
|
|
|
16
16
|
<a href="https://pypi.org/project/manimpango/"><img src="https://img.shields.io/pypi/v/manimpango.svg?style=flat&logo=pypi" alt="PyPI Latest Release"></a>
|
|
17
17
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/manimpango"></a>
|
|
18
18
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/manimpango"></a>
|
|
19
|
-
<a href="
|
|
19
|
+
<a href="https://choosealicense.com/licenses/gpl-3.0/"><img alt="PyPI - License" src="https://img.shields.io/pypi/l/manimpango"></a>
|
|
20
20
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pangocffi.svg?style=flat"></a>
|
|
21
21
|
<a href='https://manimpango.readthedocs.io/en/latest/?badge=latest'><img src='https://readthedocs.org/projects/manimpango/badge/?version=latest' alt='Documentation Status' /></a>
|
|
22
22
|
<br>
|
|
@@ -35,17 +35,7 @@ Description: # ManimPango
|
|
|
35
35
|
pip install manimpango
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
For **Linux Users**, installing the binary wheel provided in PyPi may have unexpected side effects.
|
|
41
|
-
|
|
42
|
-
For example, a folder named `fontconfig` might be created in the current working directory. That folder would then have a lot of cache files each time you run Manim. In order to avoid this, you will have to install **Manimpango** from source:.
|
|
43
|
-
|
|
44
|
-
```sh
|
|
45
|
-
pip install manimpango --no-binary :all:
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Please note that for this kind of installation to work, you must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING ) for more information.
|
|
38
|
+
For **Linux Users**, there are no Wheels. You must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING) for more information.
|
|
49
39
|
|
|
50
40
|
## BUILDING
|
|
51
41
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<a href="https://pypi.org/project/manimpango/"><img src="https://img.shields.io/pypi/v/manimpango.svg?style=flat&logo=pypi" alt="PyPI Latest Release"></a>
|
|
5
5
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Wheel" src="https://img.shields.io/pypi/wheel/manimpango"></a>
|
|
6
6
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/manimpango"></a>
|
|
7
|
-
<a href="
|
|
7
|
+
<a href="https://choosealicense.com/licenses/gpl-3.0/"><img alt="PyPI - License" src="https://img.shields.io/pypi/l/manimpango"></a>
|
|
8
8
|
<a href="https://pypi.org/project/manimpango/"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pangocffi.svg?style=flat"></a>
|
|
9
9
|
<a href='https://manimpango.readthedocs.io/en/latest/?badge=latest'><img src='https://readthedocs.org/projects/manimpango/badge/?version=latest' alt='Documentation Status' /></a>
|
|
10
10
|
<br>
|
|
@@ -23,17 +23,7 @@ Installing **ManimPango** is super easy, just use `pip`. It is [`manimpango`](ht
|
|
|
23
23
|
pip install manimpango
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
For **Linux Users**, installing the binary wheel provided in PyPi may have unexpected side effects.
|
|
29
|
-
|
|
30
|
-
For example, a folder named `fontconfig` might be created in the current working directory. That folder would then have a lot of cache files each time you run Manim. In order to avoid this, you will have to install **Manimpango** from source:.
|
|
31
|
-
|
|
32
|
-
```sh
|
|
33
|
-
pip install manimpango --no-binary :all:
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Please note that for this kind of installation to work, you must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING ) for more information.
|
|
26
|
+
For **Linux Users**, there are no Wheels. You must have a C compiler as well as **Pango** and its dependencies along with the **Pango** development headers. See [BUILDING](#BUILDING) for more information.
|
|
37
27
|
|
|
38
28
|
## BUILDING
|
|
39
29
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Release Procedure
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
This is the **maintainer** note on how to Release.
|
|
5
|
+
All versioning is in accordance to
|
|
6
|
+
`Semantic Versioning 2.0.0 <https://semver.org/>`_.
|
|
7
|
+
This means older version would have a backport of bugs fixes.
|
|
8
|
+
|
|
9
|
+
1. Check whether the test suite passes on the main branch.
|
|
10
|
+
|
|
11
|
+
2. Revert any changes which seems to be not working, and check
|
|
12
|
+
for the milestone if PR are merged accordingly.
|
|
13
|
+
|
|
14
|
+
3. Check whether the `Wheels Build`_,
|
|
15
|
+
against the main branch works as expected.
|
|
16
|
+
|
|
17
|
+
4. Clone the repository locally.
|
|
18
|
+
|
|
19
|
+
5. Bump the version in `manimpango/_version`_ accordingly.
|
|
20
|
+
|
|
21
|
+
6. Make a commit with the changes done, as ``Release v<version here>``
|
|
22
|
+
|
|
23
|
+
7. Create a tag, locally with
|
|
24
|
+
|
|
25
|
+
.. code-block:: sh
|
|
26
|
+
|
|
27
|
+
git tag -s v<version-number>
|
|
28
|
+
|
|
29
|
+
.. note::
|
|
30
|
+
|
|
31
|
+
Here, ``-s`` is used to sign the tag with gpg so that users
|
|
32
|
+
can later verify it, and a tag shouldn't be created with
|
|
33
|
+
signing because Github shows it unverified.
|
|
34
|
+
.. important::
|
|
35
|
+
|
|
36
|
+
The message should include the changelog of the release.
|
|
37
|
+
|
|
38
|
+
8. Push the tag to remote.
|
|
39
|
+
|
|
40
|
+
9. Go to `Github`_, and `draft a new release`_ with the same tag pushed.
|
|
41
|
+
|
|
42
|
+
10. Check whether the CI uploads the wheels and the ``.tar.gz`` file to
|
|
43
|
+
PyPi.
|
|
44
|
+
|
|
45
|
+
11. Finally, test the ``.tar.gz`` which was uploaded to `PyPi`_, and install
|
|
46
|
+
it in a new virtual environment.
|
|
47
|
+
|
|
48
|
+
.. _Wheels Build: https://github.com/ManimCommunity/ManimPango/actions?query=workflow%3A%22Build+Wheels%22
|
|
49
|
+
.. _manimpango/_version: https://github.com/ManimCommunity/ManimPango/blob/main/manimpango/_version.py
|
|
50
|
+
.. _Github: https://github.com
|
|
51
|
+
.. _draft a new release: https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release
|
|
52
|
+
.. _PyPi: https://pypi.org/project/manimpango/
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{{ fullname | escape | underline}}
|
|
2
|
+
|
|
3
|
+
.. currentmodule:: {{ module }}
|
|
4
|
+
|
|
5
|
+
.. autoclass:: {{ objname }}
|
|
6
|
+
:show-inheritance:
|
|
7
|
+
:members:
|
|
8
|
+
|
|
9
|
+
{% block methods %}
|
|
10
|
+
{%- if methods %}
|
|
11
|
+
.. rubric:: {{ _('Methods') }}
|
|
12
|
+
|
|
13
|
+
.. autosummary::
|
|
14
|
+
:nosignatures:
|
|
15
|
+
{% for item in methods if item != '__init__' and item not in inherited_members %}
|
|
16
|
+
~{{ name }}.{{ item }}
|
|
17
|
+
{%- endfor %}
|
|
18
|
+
{%- endif %}
|
|
19
|
+
{%- endblock %}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{{ fullname | escape | underline }}
|
|
2
|
+
|
|
3
|
+
.. currentmodule:: {{ fullname }}
|
|
4
|
+
|
|
5
|
+
.. automodule:: {{ fullname }}
|
|
6
|
+
|
|
7
|
+
{% block attributes %}
|
|
8
|
+
{% if attributes %}
|
|
9
|
+
.. rubric:: Module Attributes
|
|
10
|
+
|
|
11
|
+
.. autosummary::
|
|
12
|
+
{% for item in attributes %}
|
|
13
|
+
{{ item }}
|
|
14
|
+
{%- endfor %}
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% endblock %}
|
|
17
|
+
|
|
18
|
+
{% block classes %}
|
|
19
|
+
{% if classes %}
|
|
20
|
+
.. rubric:: Classes
|
|
21
|
+
|
|
22
|
+
.. autosummary::
|
|
23
|
+
:toctree: .
|
|
24
|
+
:nosignatures:
|
|
25
|
+
{% for class in classes %}
|
|
26
|
+
{{ class }}
|
|
27
|
+
{% endfor %}
|
|
28
|
+
{% endif %}
|
|
29
|
+
{% endblock %}
|
|
30
|
+
|
|
31
|
+
{% block functions %}
|
|
32
|
+
{% if functions %}
|
|
33
|
+
.. rubric:: {{ _('Functions') }}
|
|
34
|
+
|
|
35
|
+
{% for item in functions %}
|
|
36
|
+
.. autofunction:: {{ item }}
|
|
37
|
+
{%- endfor %}
|
|
38
|
+
{% endif %}
|
|
39
|
+
{% endblock %}
|
|
40
|
+
|
|
41
|
+
{% block exceptions %}
|
|
42
|
+
{% if exceptions %}
|
|
43
|
+
.. rubric:: {{ _('Exceptions') }}
|
|
44
|
+
|
|
45
|
+
.. autosummary::
|
|
46
|
+
{% for item in exceptions %}
|
|
47
|
+
{{ item }}
|
|
48
|
+
{%- endfor %}
|
|
49
|
+
{% endif %}
|
|
50
|
+
{% endblock %}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Configuration file for the Sphinx documentation builder.
|
|
3
|
+
#
|
|
4
|
+
# This file only contains a selection of the most common options. For a full
|
|
5
|
+
# list see the documentation:
|
|
6
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
7
|
+
|
|
8
|
+
# -- Path setup --------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
11
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
12
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
13
|
+
#
|
|
14
|
+
# import os
|
|
15
|
+
# import sys
|
|
16
|
+
# sys.path.insert(0, os.path.abspath(".."))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
from pathlib import Path
|
|
20
|
+
|
|
21
|
+
# -- Project information -----------------------------------------------------
|
|
22
|
+
from pkg_resources import get_distribution
|
|
23
|
+
|
|
24
|
+
project = "ManimPango"
|
|
25
|
+
copyright = "2021, The Manim Community Dev Team"
|
|
26
|
+
author = "The Manim Community Dev Team"
|
|
27
|
+
|
|
28
|
+
release = get_distribution("ManimPango").version
|
|
29
|
+
version = ".".join(release.split(".")[:2])
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# -- General configuration ---------------------------------------------------
|
|
33
|
+
|
|
34
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
|
35
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
36
|
+
# ones.
|
|
37
|
+
extensions = [
|
|
38
|
+
"sphinx.ext.autodoc",
|
|
39
|
+
"sphinx.ext.napoleon",
|
|
40
|
+
"sphinx.ext.autosummary",
|
|
41
|
+
"sphinx.ext.doctest",
|
|
42
|
+
"sphinx.ext.extlinks",
|
|
43
|
+
"sphinx.ext.intersphinx",
|
|
44
|
+
"sphinxext.opengraph",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
# Add any paths that contain templates here, relative to this directory.
|
|
48
|
+
templates_path = ["_templates"]
|
|
49
|
+
|
|
50
|
+
# List of patterns, relative to source directory, that match files and
|
|
51
|
+
# directories to ignore when looking for source files.
|
|
52
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
53
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
# -- Options for HTML output -------------------------------------------------
|
|
57
|
+
|
|
58
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
59
|
+
# a list of builtin themes.
|
|
60
|
+
#
|
|
61
|
+
html_theme = "furo"
|
|
62
|
+
|
|
63
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
|
64
|
+
# relative to this directory. They are copied after the builtin static files,
|
|
65
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
|
66
|
+
html_static_path = ["_static"]
|
|
67
|
+
html_favicon = str(Path("_static/favicon.ico"))
|
|
68
|
+
autosummary_generate = True
|
|
69
|
+
|
|
70
|
+
# generate documentation from type hints
|
|
71
|
+
autodoc_typehints = "description"
|
|
72
|
+
autoclass_content = "both"
|
|
73
|
+
|
|
74
|
+
# controls whether functions documented by the autofunction directive
|
|
75
|
+
# appear with their full module names
|
|
76
|
+
add_module_names = False
|
|
77
|
+
|
|
78
|
+
intersphinx_mapping = {
|
|
79
|
+
"manim": ("https://docs.manim.community/en/v0.2.0", None),
|
|
80
|
+
"python": ("https://docs.python.org/3", None),
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
ogp_image = "https://www.manim.community/logo.png"
|
|
84
|
+
ogp_site_name = "Manim Pango | Documentation"
|
|
85
|
+
ogp_site_url = "https://manimpango.manim.community/"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@ECHO OFF
|
|
2
|
+
|
|
3
|
+
pushd %~dp0
|
|
4
|
+
|
|
5
|
+
REM Command file for Sphinx documentation
|
|
6
|
+
|
|
7
|
+
if "%SPHINXBUILD%" == "" (
|
|
8
|
+
set SPHINXBUILD=sphinx-build
|
|
9
|
+
)
|
|
10
|
+
set SOURCEDIR=.
|
|
11
|
+
set BUILDDIR=_build
|
|
12
|
+
|
|
13
|
+
if "%1" == "" goto help
|
|
14
|
+
|
|
15
|
+
%SPHINXBUILD% >NUL 2>NUL
|
|
16
|
+
if errorlevel 9009 (
|
|
17
|
+
echo.
|
|
18
|
+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
|
|
19
|
+
echo.installed, then set the SPHINXBUILD environment variable to point
|
|
20
|
+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
|
|
21
|
+
echo.may add the Sphinx directory to PATH.
|
|
22
|
+
echo.
|
|
23
|
+
echo.If you don't have Sphinx installed, grab it from
|
|
24
|
+
echo.http://sphinx-doc.org/
|
|
25
|
+
exit /b 1
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
29
|
+
goto end
|
|
30
|
+
|
|
31
|
+
:help
|
|
32
|
+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
|
|
33
|
+
|
|
34
|
+
:end
|
|
35
|
+
popd
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Manimpango Reference
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
.. autosummary::
|
|
5
|
+
:toctree: reference
|
|
6
|
+
|
|
7
|
+
manimpango.TextSetting
|
|
8
|
+
manimpango.PangoUtils
|
|
9
|
+
manimpango.text2svg
|
|
10
|
+
manimpango.MarkupUtils
|
|
11
|
+
manimpango.register_font
|
|
12
|
+
manimpango.unregister_font
|
|
13
|
+
manimpango.list_fonts
|
|
14
|
+
|
|
15
|
+
Enums
|
|
16
|
+
=====
|
|
17
|
+
.. autosummary::
|
|
18
|
+
:toctree: reference
|
|
19
|
+
|
|
20
|
+
manimpango.Style
|
|
21
|
+
manimpango.Weight
|
|
22
|
+
manimpango.Variant
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
|
|
4
4
|
from ._version import __version__ # noqa: F403,F401
|
|
5
5
|
|
|
6
|
-
if os.name == "nt":
|
|
6
|
+
if os.name == "nt": # pragma: no cover
|
|
7
7
|
os.environ["PATH"] = (
|
|
8
8
|
f"{os.path.abspath(os.path.dirname(__file__))}"
|
|
9
9
|
f"{os.pathsep}"
|
|
@@ -11,5 +11,7 @@ if os.name == "nt":
|
|
|
11
11
|
)
|
|
12
12
|
try:
|
|
13
13
|
from .cmanimpango import * # noqa: F403,F401
|
|
14
|
-
|
|
14
|
+
from .enums import * # noqa: F403,F401
|
|
15
|
+
from .register_font import * # noqa: F403,F401
|
|
16
|
+
except ImportError: # pragma: no cover
|
|
15
17
|
raise ImportError("Couldn't load the necessary Shared Libraries.")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
__version__ = "0.2.
|
|
2
|
+
__version__ = "0.2.5"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
cdef extern from "cairo.h":
|
|
2
|
+
ctypedef struct cairo_surface_t:
|
|
3
|
+
pass
|
|
4
|
+
ctypedef struct cairo_t:
|
|
5
|
+
pass
|
|
6
|
+
ctypedef enum cairo_status_t:
|
|
7
|
+
CAIRO_STATUS_SUCCESS
|
|
8
|
+
CAIRO_STATUS_NO_MEMORY
|
|
9
|
+
cairo_t* cairo_create(cairo_surface_t* target)
|
|
10
|
+
void cairo_move_to(
|
|
11
|
+
cairo_t* cr,
|
|
12
|
+
double x,
|
|
13
|
+
double y
|
|
14
|
+
)
|
|
15
|
+
void cairo_destroy(cairo_t* cr)
|
|
16
|
+
void cairo_surface_destroy(cairo_surface_t* surface)
|
|
17
|
+
|
|
18
|
+
cairo_status_t cairo_status(cairo_t *cr)
|
|
19
|
+
const char* cairo_status_to_string(cairo_status_t status)
|
|
20
|
+
const char* cairo_version_string()
|
|
21
|
+
|
|
22
|
+
cdef extern from "cairo-svg.h":
|
|
23
|
+
cairo_surface_t* cairo_svg_surface_create(
|
|
24
|
+
const char* filename,
|
|
25
|
+
double width_in_points,
|
|
26
|
+
double height_in_points
|
|
27
|
+
)
|