Text::Amuse::Element - Helper for Text::Amuse
Everything here is pretty much internal only, underdocumented and subject to change.
Constructor
Accessor to the raw input line
Return the original string, but with anchors stripped out.
Attribute to mark if an element cannot be further merged
A list of anchors for this element.
Add the anchors passed to the constructor to this element.
Empty the anchors array in the element
Remove the anchors from this element and add them to the one passed as argument.
The following accessors set the value if an argument is provided.
The block the string belongs
The type
The string (without the indentation or the leading markup)
The portion of the string stripped out
The block style. Default to X, read only. Used for aliases of tags, when closing it requires a matching style.
X
The indentation level, as a numerical value
The footnote number
The footnote symbol
The footnote index
Accessor to attribute
Accessor to attribute_type
Accessor rw to start_list_index (defaults to 0)
Return true if the element is a "startblock" of the required block name
Return true if the element is a matching stopblock for the element passed as argument.
Return true if the element is "regular", i.e., it just have trailing white space
Return true if the element will merge the next one
Return true if the element will merge the next one. Only regular strings.
Return true if the element can be inside a list
Return true if the element is quote, center, right
Append (just concatenate) the given strings to the string attribute.
Append the element passed as argument to this one, setting the raw_line
Set block to empty string and type to regular
Internal numbering of the element.
Return 1 if the element type is h1/h6, 0 otherwise.
To install Text::Amuse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Amuse
CPAN shell
perl -MCPAN -e shell install Text::Amuse
For more information on module installation, please visit the detailed CPAN module installation guide.