NAME
Text::Amuse::Compile::MuseHeader - Module to parse muse metadata
DESCRIPTION
This class is still a work in progress.
METHODS
new(\%header)
Constructor. It accepts only one mandatory argument with the output of muse_fast_scan_header (an hashref).
wants_slides
Return true if slides are needed. False if #slides
is not present or "no" or "false".
header
The cleaned and lowercased header. Directives with underscores are ignored.
title
Verbatim header field
subtitle
Verbatim header field
listtitle
Verbatim header field
listing_title
Return listtitle if set, title otherwise.
author
Verbatim header field
language
Defaults to en if not present.
topics
An arrayref with topics from sorttopics
, topics
and cat
fields. The cat
field is meant to be reserved from fixed category list, so it splits at space too, while the others split at semicolon (if present) or at comma.
authors
An arrayref with the authors from sortauthors
and authors
fields.
Fields split at semicolon if present, otherwise at comma.
topics_as_html_list
Same as topics
, but returns a plain list of HTML formatted topics.
authors_as_html_list
Same as authors
, but returns a plain list of HTML formatted authors.
tex_metadata
Return an hashref with the following keys: title
author
subject
keywords
with the values LaTeX escaped, mapping to the relevant headers values for setting PDF metadata.
INTERNALS
BUILDARGS
Moo-ifies the constructor.