class documentation

class SmartQuotes(Transform): (source)

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 not 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): (source)

Initial setup for in-place document transforms.

def apply(self): (source)

Override to apply the transform to the document tree.

def get_tokens(self, txtnodes): (source)

Undocumented

default_priority: int = (source)

Numerical priority of this transform, 0 through 999 (override).

literal_nodes = (source)

Do not apply smartquotes to instances of these inline nodes.

nodes_to_skip = (source)

Do not apply "smartquotes" to instances of these block-level nodes.

smartquotes_action: str = (source)

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

unsupported_languages = (source)

Undocumented