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


Release history Release notifications | RSS feed

This version

0.1

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

fretty_book-0.1-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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