mς hγΈEc@sΥdZdZdkZdkZdkZdklZlZdkl Z l Z de fd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZd e fd„ƒYZde fd„ƒYZdS(s+ Transforms needed by most or all documents: - `Decorations`: Generate a document's header & footer. - `Messages`: Placement of system messages stored in `nodes.document.transform_messages`. - `TestMessages`: Like `Messages`, used on test runs. - `FinalReferences`: Resolve remaining references. treStructuredTextN(snodessutils(sTransformErrors Transformt DecorationscBs/tZdZdZd„Zd„Zd„ZRS(sD Populate a document's decoration element (header, footer). i4cCs‚|iƒ}|o,|iiƒ}|iƒ}|i|ƒn|i ƒ}|o,|iiƒ}|i ƒ}|i|ƒndS(N( tselftgenerate_headert header_nodestdocumenttget_decorationt decorationt get_headertheadertextendtgenerate_footert footer_nodest get_footertfooter(RRRR RR ((t</data/zmath/zope/lib/python/docutils/transforms/universal.pytapply"s    cCsdS(N(tNone(R((RR.sc Cs‹|ii}|ip|ip|ip |ioOg}|io |ip |ioa|io |i}nt i |i |iƒ}|i tiddd|ƒtidƒgƒn|io=ti|itiƒƒ}|itid|dƒƒn|io_|i tidƒtiddddƒtid ƒtidd dd ƒtid ƒgƒntidd|ŒgSndSdS( NtsView document sourcetrefuris. sGenerated on: s Generated by tDocutilss http://docutils.sourceforge.net/s from Rs(http://docutils.sourceforge.net/rst.htmls source. (RRtsettingst generatort datestampt source_linkt source_urlttextt_sourcetsourcetutilst relative_patht _destinationR tnodest referencetTextttimetstrftimetgmtimetappendt paragraphR(RRRRR((RR 1s" (      " _(t__name__t __module__t__doc__tdefault_priorityRRR (((RRs  tExposeInternalscBs&tZdZdZd„Zd„ZRS(sL Expose internal attributes if ``expose_internals`` setting is set. iHcCst|tiƒ S(N(t isinstancetnodeR R"(RR.((Rtnot_Text\scCsƒ|iiiooxl|ii|iƒD]Q}xH|iiiD]7}t||dƒ}|dj o||d|R9R<R@((RRqs   (R(R)R*R+R(((RR5hs tFilterMessagescBstZdZdZd„ZRS(s; Remove system messages below verbosity threshold. ifcCsRxK|iitiƒD]4}|d|iiijo|ii |ƒqqWdS(NR6( RRR1R tsystem_messageR.R:R;R?tremove(RR.((RR‰s(R(R)R*R+R(((RRBs t TestMessagescBstZdZdZd„ZRS(sk Append all post-parse system messages to the end of the document. Used for testing purposes. ipcCs8x1|iiD]#}|ip|i|7_q q WdS(N(RRR8R>R?(RR>((RR™s  (R(R)R*R+R(((RREs t StripCommentscBstZdZdZd„ZRS(sq Remove comment elements from the document tree (only if the ``strip_comments`` setting is enabled). iδcCsH|iiio4x1|iitiƒD]}|ii |ƒq&WndS(N( RRRtstrip_commentsR1R tcommentR.R?RD(RR.((RR¨s(R(R)R*R+R(((RRFŸs (R*t __docformat__tretsysR#tdocutilsR Rtdocutils.transformstTransformErrort TransformRR,R5RBRERF(RNR,RERR5RORIRKRJRBRFRR#R ((Rt?s   :