2
0
Fork 0
Python port of Planète Casio's BBcode translator.
Go to file
Thomas Touhey c84f29c1d0 Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
docs Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
scripts Having *other* bugs now. 2018-06-21 00:43:03 +02:00
tests Latest changes (and mirror testing) 2019-06-25 14:49:22 +02:00
textoutpc Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
.editorconfig Continued. 2018-01-16 13:34:11 +01:00
.gitignore Tiny fixes to docs 2019-02-11 19:26:46 +01:00
.python-version Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
LICENSE.txt Latest changes (and mirror testing) 2019-06-25 14:49:22 +02:00
MANIFEST.in Updated docs and project structure, dumped to 0.1.1 2018-07-27 02:25:38 +02:00
Makefile Latest changes (and mirror testing) 2019-06-25 14:49:22 +02:00
Pipfile Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
Pipfile.lock Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
README.rst Yet another commit to test mirroring. 2019-06-25 14:57:15 +02:00
TODO.rst Latest changes (and mirror testing) 2019-06-25 14:49:22 +02:00
setup.cfg Newest elements for SaWellan to fix. 2020-07-01 12:10:35 +02:00
setup.py Found a non-functional test. 2019-02-11 17:48:01 +01:00

README.rst

Planète Casio's textout() BBcode markup language translator

This module contains a BBcode to HTML translator for Planète Casio. For more information, read the documentation accessible on the official website.

Warning

If you are accessing this repository from another forge (such as Planète Casio's forge), keep in mind that it is only a mirror and that the real repository is located in my forge for now.

For example, if we want to translate some basic multi-block text to HTML:

from textoutpc import tohtml

text = """[img=center]https://www.planet-casio.com/skins/bootstrap/img/default/logo.png[/img]

    Hello [color=R10]world[/color]!
    [ul]
        [*]This module is made by [url=https://thomas.touhey.fr/]Thomas Touhey[/url]!
        [*]Use `.tohtml()` to translate magically to HTML!
    [/]
"""

print(tohtml(text))