bin.sizeclassifier
¶
Module Contents¶
-
bin.sizeclassifier.
__email__
= martin@martineve.com[source]¶ A class that scans for meTypeset size fields in a TEI file.
1.) Identifies a list of sizes 2.) Ascertains the density and likelihood of the size being a heading 3.) Returns a manipulator ready to implement all the changes to the TEI file
-
class
bin.sizeclassifier.
SizeClassifier
(global_variables)[source]¶ Bases:
debug.Debuggable
-
static
handle_bold_only_paragraph
(manipulate, root_size)[source]¶ This method looks for paragraphs that contain only bold text. It then transforms them to titles. @param manipulate: a TeiManipulator object @param root_size: the size styling to apply to these elements
-
static
handle_heading
(manipulate, attribute, root_size)[source]¶ This method looks for paragraphs that contain the specified attribute in their rend tag. It then transforms them to titles. @param manipulate: a TeiManipulator object @param attribute: a string to search for in the rend attribute @param root_size: the size styling to apply to these elements
-
static