class documentation

class SmartQuotes(Transform):

View In Hierarchy

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​_tokens Undocumented
Class Variable default​_priority Numerical priority of this transform, 0 through 999 (override).
Class Variable literal​_nodes Do apply smartquotes to instances of these inline nodes.
Class Variable nodes​_to​_skip Do not apply "smartquotes" to instances of these block-level nodes.
Class Variable smartquotes​_action Setting to select smartquote transformations.
Instance Variable unsupported​_languages 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).
def __init__(self, document, startnode):
Initial setup for in-place document transforms.
def apply(self):
Override to apply the transform to the document tree.
def get_tokens(self, txtnodes):

Undocumented

default_priority: int =
Numerical priority of this transform, 0 through 999 (override).
literal_nodes =
Do apply smartquotes to instances of these inline nodes.
nodes_to_skip =
Do not apply "smartquotes" to instances of these block-level nodes.
smartquotes_action: str =

Setting to select smartquote transformations.

The default 'qDe' educates normal quote characters: (", '), em- and en-dashes (---, --) and ellipses (...).

unsupported_languages: set =

Undocumented