Home | Trees | Index | Help |
|
---|
Package docutils :: Package parsers :: Package rst :: Module states :: Class Inliner |
|
Inliner
parse()
method.Method Summary | |
---|---|
roles is a mapping of canonical role name to role function or bound
method, which enables additional interpreted text roles. | |
adjust_uri(self,
uri)
| |
anonymous_reference(self,
match,
lineno)
| |
emphasis(self,
match,
lineno)
| |
Handles nodes.footnote_reference and nodes.citation_reference
elements. | |
generic_interpreted_role(self,
role,
rawtext,
text,
lineno)
| |
get_role_function(self,
role,
lineno)
| |
Check each of the patterns in self.implicit_dispatch for a match,
and dispatch to the stored method for the pattern. | |
Setting-based customizations; run when parsing begins. | |
inline_internal_target(self,
match,
lineno)
| |
inline_obj(self,
match,
lineno,
end_pattern,
nodeclass,
restore_backslashes)
| |
interpreted(self,
before,
after,
rawsource,
text,
role,
lineno)
| |
interpreted_or_phrase_ref(self,
match,
lineno)
| |
literal(self,
match,
lineno)
| |
Return 2 lists: nodes (text and inline elements), and system_messages. | |
pep_reference(self,
match,
lineno)
| |
pep_reference_role(self,
role,
rawtext,
text,
lineno)
| |
phrase_ref(self,
before,
after,
rawsource,
escaped,
text)
| |
problematic(self,
text,
rawsource,
message)
| |
Return 1 if inline markup start-string is 'quoted', 0 if not. | |
reference(self,
match,
lineno,
anonymous)
| |
rfc_reference(self,
match,
lineno)
| |
rfc_reference_role(self,
role,
rawtext,
text,
lineno)
| |
standalone_uri(self,
match,
lineno)
| |
strong(self,
match,
lineno)
| |
substitution_reference(self,
match,
lineno)
|
Class Variable Summary | |
---|---|
str |
closers = '\'")]}>'
|
str |
default_interpreted_role = 'title-reference'
|
dict |
dispatch = {'__': <function anonymous_reference at 0x82e...
|
str |
email_pattern = '\n %(emailc)s+(?:\\.%(emailc)s...
|
str |
emailc = "[-_!~*'{|}/#?^`&=+$%a-zA-Z0-9]"
|
str |
end_string_suffix = '((?=$)|(?=[-/:.,;!? \\n\\x00\\\'\\"...
|
dict |
generic_roles = {'abbreviation': <class docutils.nodes.a...
|
str |
non_whitespace_after = '(?![ \\n])'
|
str |
non_whitespace_before = '(?<![ \\n])'
|
str |
non_whitespace_escape_before = '(?<![ \\n\\x00])'
|
str |
openers = '\'"([{<'
|
tuple |
parts = ('initial_inline', '((?<=^)|(?<=[-/: \\n\\\'\\"\...
|
Struct |
patterns = <docutils.parsers.rst.states.Struct instance ...
|
str |
pep_url = 'http://www.python.org/peps/pep-%04d.html'
|
str |
pep_url_absolute = 'http://www.python.org/peps/pep-%04d....
|
str |
pep_url_local = 'pep-%04d.html'
|
str |
rfc_url = 'http://www.faqs.org/rfcs/rfc%d.html'
|
str |
simplename = '(?:(?!_)\\w)+(?:[-._](?:(?!_)\\w)+)*'
|
str |
start_string_prefix = '((?<=^)|(?<=[-/: \\n\\\'\\"\\(\\[...
|
str |
uric = "[-_.!~*'()[\\];/:@&=+$,%a-zA-Z0-9]"
|
str |
urilast = '[_~/a-zA-Z0-9]'
|
dict |
_interpreted_roles = {'substitution-reference': None, 'i...
|
Method Details |
---|
__init__(self,
roles=None)
|
footnote_reference(self, match, lineno)Handlesnodes.footnote_reference and nodes.citation_reference
elements. |
implicit_inline(self, text, lineno)Check each of the patterns inself.implicit_dispatch for a match,
and dispatch to the stored method for the pattern. Recursively check
the text before and after the match. Return a list of nodes.Text
and inline element nodes. |
init_customizations(self, settings)Setting-based customizations; run when parsing begins. |
parse(self, text, lineno, memo, parent)Return 2 lists: nodes (text and inline elements), and system_messages. Using |
quoted_start(self, match)Return 1 if inline markup start-string is 'quoted', 0 if not. |
Class Variable Details |
---|
closers
|
default_interpreted_role
|
email_pattern
|
emailc
|
end_string_suffix
|
generic_roles
|
non_whitespace_after
|
non_whitespace_before
|
non_whitespace_escape_before
|
openers
|
parts
|
patterns
|
pep_url
|
pep_url_absolute
|
pep_url_local
|
rfc_url
|
simplename
|
start_string_prefix
|
uric
|
urilast
|
_interpreted_roles
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Jul 22 05:31:38 2003 | http://epydoc.sf.net |