ó V!¶\c@s dZdZddlZddlZddlZddlmZmZddlm Z ej d"krxddl m Z nd efd „ƒYZ d e fd „ƒYZi d d6d d6dd6dd6dd6dd6dd6dd6dd6dd6d d6dd 6Zd!„ZdS(#s0 This package contains Docutils Writer modules. treStructuredTextiÿÿÿÿN(t languagest Component(t universalii(t __import__tWritercBs_eZdZdZdZd„ZdZdZdZ dZ d„Z d„Z d„Z d„ZRS( s Abstract base class for docutils Writers. Each writer module or package must export a subclass also called 'Writer'. Each writer must support all standard node types listed in `docutils.nodes.node_class_names`. The `write()` method is the main entry point. twritertwriterscCs#tj|ƒtjtjtjgS(N(Rtget_transformsRtMessagestFilterMessagestStripClassesAndElements(tself((s=/tmp/pip-install-usGedi/docutils/docutils/writers/__init__.pyR$s cCs i|_dS(N(tparts(R ((s=/tmp/pip-install-usGedi/docutils/docutils/writers/__init__.pyt__init__8s cCsS||_tj|jj|jƒ|_||_|jƒ|jj |j ƒ}|S(s/ Process a document into its final form. Translate `document` (a Docutils document tree) into the Writer's native format, and write it out to its `destination` (a `docutils.io.Output` subclass object). Normally not overridden or extended in subclasses. ( tdocumentRt get_languagetsettingst language_codetreportertlanguaget destinationt translatetwritetoutput(R RRR((s=/tmp/pip-install-usGedi/docutils/docutils/writers/__init__.pyRAs    cCstdƒ‚dS(s Do final translation of `self.document` into `self.output`. Called from `write`. Override in subclasses. Usually done with a `docutils.nodes.NodeVisitor` subclass, in combination with a call to `docutils.nodes.Node.walk()` or `docutils.nodes.Node.walkabout()`. The ``NodeVisitor`` subclass must support all standard elements (listed in `docutils.nodes.node_class_names`) and possibly non-standard elements used by the current Reader as well. s"subclass must override this methodN(tNotImplementedError(R ((s=/tmp/pip-install-usGedi/docutils/docutils/writers/__init__.pyRTs cCs:|j|jd<|jjj|jdRD(((s=/tmp/pip-install-usGedi/docutils/docutils/writers/__init__.pyts0   T