Skip to main content

fretty-book can replace inline fretty markup within documents with the generated images

Project description

fretty-book

fretty-book can replace inline fretty markup within documents with the generated images.

Installation

pip install fretty-book

Usage

fretty-book example/simple.html -o simple.html

Markup

fretty-book can process HTML and XHTML documents. All <fretty> tags will be replaced with the image generated with the included markup.

html

This markup ...

<!DOCTYPE html>
<html>
    <head>
        <title>test document</title>
    </head>
    <body>

        <h3>Fretty test document for html processing</h3>

        <p>Tabs for C major scale</p>
        <fretty width="400">
            III
            --o-o1
            --oo-o
            -o1-o-
            o-o-o-
            1-o-o-
            o-o-o-
        </fretty>
    </body>
</html>

will produce this result:


Fretty test document for html processing

Tabs for C major scale


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fretty_book-0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file fretty_book-0.2-py3-none-any.whl.

File metadata

  • Download URL: fretty_book-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for fretty_book-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5aefe47f0c9d299fda8ea4784ddaf765ec5abbd8f1a594f7e2c259d764ab5b85
MD5 2e29ed8260b9c4abe0528019817d4b3b
BLAKE2b-256 0f0a78f6971d9c0c9ccdc7a09e78667f47438b003ecfbb7fa04173fbdf153373

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