Home | Trees | Index | Help |
|
---|
Package docutils :: Package parsers :: Package rst :: Module states :: Class Text |
|
State
--+ |StateWS
--+ |RSTState
--+ | Text
SpecializedText
Classifier of second line of a text block.
Could be a paragraph, a definition list item, or a title.
Method Summary | |
---|---|
End of paragraph. | |
definition_list_item(self,
termline)
| |
Handle end-of-file. | |
Definition list item. | |
Return a list of nodes. | |
Return a definition_list's term and optional classifier. | |
Paragraph. | |
Section title. | |
Inherited from RSTState | |
Initialize a StateSM object; extends State.__init__() . | |
Called at beginning of file. | |
Check for illegal structure: empty section, misplaced transitions. | |
Check for a valid subsection header. | |
Jump to input line abs_line_offset , ignoring jumps past the end. | |
Return 2 lists: nodes (text and inline elements), and system_messages. | |
Create a new StateMachine rooted at node and run it over the input
block . | |
Create a new StateMachine rooted at node and run it over the input
block . | |
Append new subsection to document tree. | |
Override StateWS.no_match to generate a system message. | |
Return a list (paragraph & messages) & a boolean: literal_block next? | |
Initialize this State before running the state machine; called from
self.state_machine.run() . | |
Check for a valid subsection and create one if it checks out. | |
| |
| |
Inherited from StateWS | |
Add whitespace-specific transitions before those defined in subclass. | |
Handle an indented text block (first line's indent known). | |
Handle a known-indent text block. | |
Inherited from State | |
Add a transition to the start of the transition list. | |
Add a list of transitions to the start of the transition list. | |
Make & return a transition tuple based on name . | |
Return a list of transition names and a transition mapping. | |
A "do nothing" transition method. | |
Remove a transition by name . | |
Remove circular references to objects no longer required. |
Class Variable Summary | |
---|---|
list |
initial_transitions = [('underline', 'Body'), ('text', '...
|
dict |
patterns = {'indent': ' +', 'blank': ' *$', 'text': '', ...
|
Inherited from StateWS | |
NoneType |
indent_sm = None |
NoneType |
indent_sm_kwargs = None |
NoneType |
known_indent_sm = None |
NoneType |
known_indent_sm_kwargs = None |
tuple |
ws_initial_transitions = ('blank', 'indent')
|
dict |
ws_patterns = {'indent': ' +', 'blank': ' *$'}
|
Inherited from State | |
NoneType |
nested_sm = None |
NoneType |
nested_sm_kwargs = None |
Method Details |
---|
blank(self, match, context, next_state)End of paragraph.
|
eof(self, context)Handle end-of-file. Return empty result. Override in subclasses. Parameter
|
indent(self, match, context, next_state)Definition list item.
|
literal_block(self)Return a list of nodes. |
term(self, lines, lineno)Return a definition_list's term and optional classifier. |
text(self, match, context, next_state)Paragraph. |
underline(self, match, context, next_state)Section title. |
Class Variable Details |
---|
initial_transitions
|
patterns
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Jul 22 05:31:33 2003 | http://epydoc.sf.net |