# Filter Tests

## Toy filter example from User Guide

    ''' A multi-line
        comment.'''
    def sub_word(mo):
        ''' Single line comment.'''
        word = mo.group('word')   # Inline comment
        if word in keywords[language]:
            return quote + word + quote
        else:
            return word

## Pychart Chart generations from FAQ

No barchart to avoid depending on Pychart for the tests. See also: https://asciidoc.org/faq.html#_is_it_possible_to_include_charts_in_asciidoc_documents

barchart.png

## Graphviz Graphs

Simple graph

Graphviz->AsciiDoc->HTML

Not so simple graph

graphviz2.png

## Music filter

A tune generated from ABC notation

music1.png

Link to following fragment.

A fragment generated from LilyPond source

music2.png