class documentation
class SmartQuotes(Transform): (source)
Constructor: SmartQuotes(document, startnode)
Replace ASCII quotation marks with typographic form.
Also replace multiple dashes with em-dash/en-dash characters.
Method | __init__ |
Initial setup for in-place document transforms. |
Method | apply |
Override to apply the transform to the document tree. |
Method | get |
Undocumented |
Class Variable | default |
Numerical priority of this transform, 0 through 999 (override). |
Class Variable | literal |
Do apply smartquotes to instances of these inline nodes. |
Class Variable | nodes |
Do not apply "smartquotes" to instances of these block-level nodes. |
Class Variable | smartquotes |
Setting to select smartquote transformations. |
Instance Variable | unsupported |
Undocumented |
Inherited from Transform
:
Instance Variable | document |
The document tree to transform. |
Instance Variable | language |
Language module local to this document. |
Instance Variable | startnode |
Node from which to begin the transform. For many transforms which apply to the document as a whole, startnode is not set (i.e. its value is None ). |