The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Text::Amuse::Document - core parser for Text::Amuse (internal)

SYNOPSIS

The module is used internally by Text::Amuse, so everything here is pretty much internal only (and underdocumented). The useful stuff is accessible via the Text::Amuse class.

METHODS

new(file => $filename)

filename

Return the filename of the processed file

attachments

Return the list of the filenames of the attached files, as linked. With an optional argument, store that file in the list.

parse_directives

Return an hashref with the directives found in the document.

raw_header

Accessor to the raw header of the muse file. The header is returned as hash, with key/value pairs. Please note: NOT an hashref.

raw_body

Accessor to the raw body of the muse file. The body is returned as a list of lines.

directives_array

This is very similar to raw_header, but store them in an array, so the header can be rewritten.

elements

Return the list of the elements which compose the body, once they have properly parsed and packed. Footnotes are removed. (To get the footnotes use the accessor below).

get_footnote

Accessor to the internal footnotes hash. You can access the footnote with a numerical argument or even with a string like [123]