;ò GÒ Fc @s­dkZdkZdkZdkZdkZdkZdkZdkZdkZdk Z dk Z dk Z dk Z dk Z dkZdkZdkZdkZdkZdkZdefd„ƒYZdfd„ƒYZdeifd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZ de fd„ƒYZ!de fd„ƒYZ"de fd„ƒYZ#eƒe_$edƒe_%edƒe_&eƒe_'e ƒe_(e!ƒe_)e"ƒe_*e#ƒe_+eƒe_,eƒe_-eƒe_.eƒe_/defd „ƒYZ0e0ƒe_1d!efd"„ƒYZ2e2ei3d#ei4ƒd$ƒe_5e2ei3d%ei4ƒd&ƒe_6e2ei3d'ei4ƒd(ƒe_7d)Z8d*fd+„ƒYZ9d,fd-„ƒYZ:e8d.7Z8d/ei;e9e:fd0„ƒYZ<e<d1ƒe<_=e<d2ƒe<_>e<d3ƒe<_?d4ei;e9e:fd5„ƒYZ@e@d1ƒe@_=e@d2ƒe@_>e@d3ƒe@_?d6ei;e9e<e@e:fd7„ƒYZAeAd1d1ƒeA_=eAd2d2ƒeA_>eAd3d3ƒeA_?eiBeAƒeA_Ce<i=eA_De<i>eA_Ee<i?eA_Fe@i=eA_GeA_He@i>eA_IeA_Je@i?eA_KeA_Ld8eie9e:fd9„ƒYZMeMƒZNeiBeMƒZOd:eie9e:fd;„ƒYZPePƒZQeiBePƒZRe8d<7Z8d=eiSe9fd>„ƒYZTeiBeTƒeT_Cd?eTfd@„ƒYZUeTiCeU_Ce8dA7Z8dBeiSe9fdC„ƒYZVeVd1ƒeV_WeVd2ƒeV_XeVd3ƒeV_YeiBeVƒeV_CeV_Ze8dD7Z8dEei[e9fdF„ƒYZ\dGe\fdH„ƒYZ]dIe\fdJ„ƒYZ^e]d1ƒe]__e]d2ƒe]_`e]d3ƒe]_ae^ƒe]_beiBe\ƒe]_CdKdLdMdNdOdPecdQdRdSdTg ZddUei[e9fdV„ƒYZeeedWƒee_feedXƒee_gee_heedYƒee_iee_jeedZƒee_keed1ƒee_lee_meed3ƒee_need[ƒee_oeed\ƒee_peed]ƒee_qeed^ƒee_reiBeeƒee_Cd_eisfd`„ƒYZtdae iue ivfdb„ƒYZwdc„Zxddfde„ƒYZydffdg„ƒYZzezƒZ{e{i|Z|e{i}Z}e{i~Z~e{iZe{i€Z€hdhdi<djdk<dldm<dndo<dpdq<drds<dtdu<didv<dwdx<dydz<d{d|<d}d~<dd€<dd‚Ass( s texrunners errordebugs descriptionsexprsreplacesrstrips texmessagestexmessageparsedsselfssplits firstlinesslensreduce(sselfs descriptions texrunners firstlines((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__0shKcCs |iSdS(N(sselfs description(sself((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__str__Es(s__name__s __module__s__doc__s__init__s__str__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysTexResultError(s  s _ItexmessagecBstZdZd„ZRS(s(validates/invalidates TeX/LaTeX responsecCsdS(scheck a Tex/LaTeX response and respond appropriate - read the texrunners texmessageparsed attribute - if there is an problem found, raise TexResultError - remove any valid and identified TeX/LaTeX response from the texrunners texmessageparsed attribute -> finally, there should be nothing left in there, otherwise it is interpreted as an errorN((sselfs texrunner((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheckLs(s__name__s __module__s__doc__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys _ItexmessageIs s texmessagecBstZRS(N(s__name__s __module__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys texmessageVss_texmessagestartcBs,tZdZeZeidƒZd„ZRS(svalidates TeX/LaTeX startupsThis is [-0-9a-zA-Z\s_]*TeXcCsç|ii|iƒ}| otd|ƒ‚n|i|iƒ|_y'|iid|i dƒd|_Wn(t t fj otd|ƒ‚nXy |iiddƒd|_Wn(t t fj otd|ƒ‚nXdS(NsTeX startup faileds%s.texisTeX running startup file faileds@*! Undefined control sequence. <*> \raiseerror % sTeX scrollmode check failed( sselfs startpatternssearchs texrunnerstexmessageparsedsmsTexResultErrorsendssplits texfilenames IndexErrors ValueError(sselfs texrunnersm((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheck`s' ( s__name__s __module__s__doc__s _Itexmessages__implements__srescompiles startpatternscheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessagestartYs s_texmessagenofilecBs&tZdZeZd„Zd„ZRS(s!allows for LaTeXs no-file warningcCs ||_dS(N(s fileendingsself(sselfs fileending((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__yscCsÀy<|iid|i|ifdƒ\}}|||_Wn}tt fj okyH|iidt i t i |i|ifdƒ\}}|||_Wq¼tt fj oq¼XnXdS(NsNo file %s.%s.isNo file %s%s%s.%s.( s texrunnerstexmessageparsedssplits texfilenamesselfs fileendingss1ss2s IndexErrors ValueErrorsosscurdirssep(sselfs texrunnerss2ss1((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheck|s+((s__name__s __module__s__doc__s _Itexmessages__implements__s__init__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessagenofilets  s_texmessageinputmarkercBstZdZeZd„ZRS(svalidates the PyXInputMarkercCsby3|iid|idƒ\}}|||_Wn(ttfj otd|ƒ‚nXdS(NsPyXInputMarker:executeid=%s:isPyXInputMarker expected( s texrunnerstexmessageparsedssplits executeidss1ss2s IndexErrors ValueErrorsTexResultError(sselfs texrunnerss2ss1((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyschecks "(s__name__s __module__s__doc__s _Itexmessages__implements__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageinputmarker‹s s_texmessagepyxboxcBs,tZdZeZeidƒZd„ZRS(svalidates the PyXBox outputs–PyXBox:page=(?P\d+),lt=-?\d*((\d\.?)|(\.?\d))\d*pt,rt=-?\d*((\d\.?)|(\.?\d))\d*pt,ht=-?\d*((\d\.?)|(\.?\d))\d*pt,dp=-?\d*((\d\.?)|(\.?\d))\d*pt:cCsy|ii|iƒ}|o|idƒt|iƒjo+|i|i ƒ |i|i ƒ|_nt d|ƒ‚dS(NspagesPyXBox expected( sselfspatternssearchs texrunnerstexmessageparsedsmsgroupsstrspagesstartsendsTexResultError(sselfs texrunnersm((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheckŸs&+( s__name__s __module__s__doc__s _Itexmessages__implements__srescompilespatternscheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessagepyxbox˜s s_texmessagepyxpageoutcBstZdZeZd„ZRS(sBvalidates the dvi shipout message (writing a page to the dvi file)cCsby3|iid|idƒ\}}|||_Wn(ttfj otd|ƒ‚nXdS(Ns[80.121.88.%s]isPyXPageOutMarker expected( s texrunnerstexmessageparsedssplitspagess1ss2s IndexErrors ValueErrorsTexResultError(sselfs texrunnerss2ss1((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheck¬s "(s__name__s __module__s__doc__s _Itexmessages__implements__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessagepyxpageout§s s_texmessageendcBstZdZeZd„ZRS(svalidates TeX/LaTeX finishcCsXy3|iid|idƒ\}}|||_Wnwttfj oeyB|iidti ti |ifdƒ\}}|||_Wq­ttfj oq­XnXy,|iiddƒ\}}|||_Wnttfj onXt i d|iƒ}|i|iƒ}|iox| otd|ƒ‚n|idƒt|iƒjotd|ƒ‚n|i|iƒ |i|iƒ|_nXy,|iid dƒ\}}|||_Wn(ttfj otd |ƒ‚nXy3|iid |idƒ\}}|||_Wn(ttfj otd |ƒ‚nXdS( Ns(%s.aux)is (%s%s%s.aux)s4(see the transcript file for additional information)s?Output written on %s\.dvi \((?P\d+) pages?, \d+ bytes\)\.sTeX dvifile messages expectedspageswrong number of pages reportedsNo pages of output.sno dvifile expectedsTranscript written on %s.log.sTeX logfile message expected(s texrunnerstexmessageparsedssplits texfilenamess1ss2s IndexErrors ValueErrorsosscurdirssepsrescompiles dvipatternssearchsmspagesTexResultErrorsgroupsstrsstartsend(sselfs texrunnerss2sms dvipatternss1((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheck¹sB""  +"(s__name__s __module__s__doc__s _Itexmessages__implements__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageend´s s_texmessageemptylinescBstZdZeZd„ZRS(s¦validates "*-only" (TeX/LaTeX input marker in interactive mode) and empty lines also clear TeX interactive mode warning (Please type a command or say `\end') cCsd|iiddƒ|_|iiddƒ|_|iiddƒ|_|iiddƒ|_dS(Ns%(Please type a command or say `\end')ss s* s (s texrunnerstexmessageparsedsreplace(sselfs texrunner((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheckìs(s__name__s __module__s__doc__s _Itexmessages__implements__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageemptylinesås s_texmessageloadcBs;tZdZeZeidƒZddd„Zd„Z RS(s¬validates inclusion of arbitrary files - the matched pattern is "( )", where is a readable file and other stuff can be anything - If the filename is enclosed in double quotes, it may contain blank space. - "(" and ")" must be used consistent (otherwise this validator just does nothing) - this is not always wanted, but we just assume that file inclusion is finesX\([\"]?(?P(?:(?[^()]*)\)is()cCs¹d}d}d}x~|D]v}||djo%|d7}||jo |}qUn||jo||7}n||djo|d8}qqW|djo |djo|SndS(s¯strip parts of a string above a given bracket level - return a modified (some parts might be removed) version of the string s where all parts inside brackets with level higher than maxlevel are removed - if brackets do not match (number of left and right brackets is wrong or at some points there were more right brackets than left brackets) just return the unmodified stringisiN(slevels highestlevelsresssscsbracketssmaxlevel(sselfsssmaxlevelsbracketss highestlevelslevelsressc((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys baselevelsÿs    cCs(|i|iƒ}|tj o|ii|ƒ}xð|oÛ|i dƒi ddƒ}y|i dƒ}Wnt j o d}nXti|tiƒp?t|ƒo2|ddjo!ti||iƒdtiƒo"||iƒ ||iƒ}nP|ii|ƒ}q4W||_ndS(Nsfilenames ss additionali(sselfs baselevelss texrunnerstexmessageparsedslowestbracketlevelsNonespatternssearchsmsgroupsreplacesfilenames additionals IndexErrorsossaccesssR_OKslenssplitsstartsend(sselfs texrunners additionalsmsfilenameslowestbracketlevel((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyschecks  X"( s__name__s __module__s__doc__s _Itexmessages__implements__srescompilespatterns baselevelsscheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageloadós s_texmessageloaddefcBs&tZdZeidƒZd„ZRS(s¥validates the inclusion of font description files (fd-files) - works like _texmessageload - filename must end with .def or .fd and no further text is alloweds#\((?P[^)]+(\.fd|\.def))\)cKs|SdS(N(ss(sselfssskwargs((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys baselevels1s(s__name__s __module__s__doc__srescompilespatterns baselevels(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageloaddef*s s_texmessagegraphicsloadcBs&tZdZeidƒZd„ZRS(sÊvalidates the inclusion of files as the graphics packages writes it - works like _texmessageload, but using "<" and ">" as delimiters - filename must end with .eps and no further text is alloweds<(?P[^>]+.eps)>cKs|SdS(N(ss(sselfssskwargs((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys baselevels<s(s__name__s __module__s__doc__srescompilespatterns baselevels(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessagegraphicsload5s s_texmessageignorecBstZdZeZd„ZRS(s$validates any TeX/LaTeX response - this might be used, when the expression is ok, but no suitable texmessage parser is available - PLEASE: - consider writing suitable tex message parsers - share your ideas/problems/solutions with others (use the PyX mailing lists)cCs d|_dS(Ns(s texrunnerstexmessageparsed(sselfs texrunner((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheckIs(s__name__s __module__s__doc__s _Itexmessages__implements__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageignore@s sauxsnavs_texmessageallwarningcBstZdZd„ZRS(s:validates a given pattern 'pattern' as a warning 'warning'cCs/|iotid|iƒnd|_dS(Nsignoring all warnings: %ss(s texrunnerstexmessageparsedswarningsswarn(sselfs texrunner((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheck`s (s__name__s __module__s__doc__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_texmessageallwarning]s stexmessagepatterncBs#tZdZed„Zd„ZRS(s8validates a given pattern and issue a warning (when set)cCs||_||_dS(N(spatternsselfswarning(sselfspatternswarning((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__ks cCs¨|ii|iƒ}xŒ|o„|i|iƒ |i|iƒ|_|io:t i d|i|i |iƒ|iƒ!i ƒfƒn|ii|iƒ}qWdS(Ns%s: %s( sselfspatternssearchs texrunnerstexmessageparsedsmsstartsendswarningswarningsswarnsstringsrstrip(sselfs texrunnersm((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyscheckos' :(s__name__s __module__s__doc__sNones__init__scheck(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pystexmessagepatternhs  s)^LaTeX Font Warning: .*$(\n^\(Font\).*$)*signoring font warnings2^(Overfull|Underfull) \\[hv]box.*$(\n^..*$)*\n^$\ns'ignoring overfull/underfull box warningsY^(LaTeX Warning: Label\(s\) may have changed\. Rerun to get cross-references right\s*\.)$signoring rerun warningsstextattrcBstZdZRS(sFa textattr defines a apply method, which modifies a (La)TeX expression(s__name__s __module__s__doc__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pystextattrƒs s _localattrcBstZRS(N(s__name__s __module__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys _localattr†ss\gdef\PyXFlushHAlign{0}% \def\PyXragged{% \leftskip=0pt plus \PyXFlushHAlign fil% \rightskip=0pt plus 1fil% \advance\rightskip0pt plus -\PyXFlushHAlign fil% \parfillskip=0pt% \pretolerance=9999% \tolerance=9999% \parindent=0pt% \hyphenpenalty=9999% \exhyphenpenalty=9999}% s boxhaligncBstZd„Zd„ZRS(NcCs ||_tii|tƒdS(N(s aboxhalignsselfs boxhalignsattrs exclusiveattrs__init__(sselfs aboxhalign((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__—s cCsd|i|fSdS(Ns\gdef\PyXBoxHAlign{%.5f}%s(sselfs boxhalignsexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapply›s(s__name__s __module__s__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys boxhalign•s if0.5is flushhaligncBstZd„Zd„ZRS(NcCs ||_tii|tƒdS(N(s aflushhalignsselfs flushhalignsattrs exclusiveattrs__init__(sselfs aflushhalign((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__¦s cCsd|i|fSdS(Ns(\gdef\PyXFlushHAlign{%.5f}\PyXragged{}%s(sselfs flushhalignsexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyªs(s__name__s __module__s__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys flushhalign¤s shaligncBstZd„Zd„ZRS(NcCs)||_||_tii|tƒdS(N( s aboxhalignsselfs boxhaligns aflushhaligns flushhalignsattrs exclusiveattrs__init__shalign(sselfs aboxhaligns aflushhalign((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__µs  cCsd|i|i|fSdS(Ns@\gdef\PyXBoxHAlign{%.5f}\gdef\PyXFlushHAlign{%.5f}\PyXragged{}%s(sselfs boxhaligns flushhalignsexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyºs(s__name__s __module__s__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyshalign³s s _mathmodecBstZdZd„ZRS(s math modecCs d|SdS(Ns$\displaystyle{%s}$(sexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyÌs(s__name__s __module__s__doc__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys _mathmodeÉs s_phantomcBstZdZd„ZRS(s phantom textcCs d|SdS(Ns \phantom{%s}(sexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyÖs(s__name__s __module__s__doc__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_phantomÓs s,\newbox\PyXBoxVBox% \newdimen\PyXDimenVBox% s parbox_ptcBs/tZdZdZdZed„Zd„ZRS(NiiicCsB|dtidd|_||_tii|tt gƒdS(Nf72.269999999999996sxiH( swidthsunitsscalesselfsbaselinesattrssortbeforeexclusiveattrs__init__s parbox_pts _localattr(sselfswidthsbaseline((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__ås cCs‰|i|ijod|i|fSn^|i|ijod|i||fSn3|i|ijod|i|fSn tdƒdS(NsF\linewidth=%.5ftruept\vtop{\hsize=\linewidth\textwidth=\linewidth{}%s}s\linewidth=%.5ftruept\setbox\PyXBoxVBox=\hbox{{\vtop{\hsize=\linewidth\textwidth=\linewidth{}%s}}}\PyXDimenVBox=0.5\dp\PyXBoxVBox\setbox\PyXBoxVBox=\hbox{{\vbox{\hsize=\linewidth\textwidth=\linewidth{}%s}}}\advance\PyXDimenVBox by -0.5\dp\PyXBoxVBox\lower\PyXDimenVBox\box\PyXBoxVBoxsF\linewidth=%.5ftruept\vbox{\hsize=\linewidth\textwidth=\linewidth{}%s}sinvalid baseline argument(sselfsbaselinestopswidthsexprsmiddlesbottoms RuntimeError(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyês(s__name__s __module__stopsmiddlesbottoms__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys parbox_ptßs  sparboxcBstZd„ZRS(NcKs ti|ti|ƒ|dS(N(s parbox_pts__init__sselfsunitstoptswidthskwargs(sselfswidthskwargs((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__øs(s__name__s __module__s__init__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysparboxöss0\newbox\PyXBoxVAlign% \newdimen\PyXDimenVAlign% svaligncBstZd„Zd„ZRS(NcCs)||_tii|tttgƒdS(N(savalignsselfsvalignsattrssortbeforeexclusiveattrs__init__s parbox_pts _localattr(sselfsavalign((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__s cCsd|d|i|ifSdS(Nsš\setbox\PyXBoxVAlign=\hbox{{%s}}\PyXDimenVAlign=%.5f\ht\PyXBoxVAlign\advance\PyXDimenVAlign by -%.5f\dp\PyXBoxVAlign\lower\PyXDimenVAlign\box\PyXBoxVAligni(sexprsselfsvalign(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplys(s__name__s __module__s__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysvaligns s\newdimen\PyXDimenVShift% s_vshiftcBstZd„Zd„ZRS(NcCs tii|tttgƒdS(N(sattrssortbeforeattrs__init__sselfsvaligns parbox_pts _localattr(sself((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__scCsd|iƒ|fSdS(Ns/%s\setbox0\hbox{{%s}}\lower\PyXDimenVShift\box0(sselfs setheightexprsexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplys(s__name__s __module__s__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_vshifts svshiftcBs#tZdZdd„Zd„ZRS(s7vertical down shift by a fraction of a character heights0cCs#ti|ƒ||_||_dS(N(s_vshifts__init__sselfs lowerratios heightstr(sselfs lowerratios heightstr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__s  cCsd|i|ifSdS(Ns+\setbox0\hbox{{%s}}\PyXDimenVShift=%.5f\ht0(sselfs heightstrs lowerratio(sself((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys setheightexpr!s(s__name__s __module__s__doc__s__init__s setheightexpr(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysvshifts  s_vshiftmathaxiscBstZdZd„ZRS(s2vertical down shift by the height of the math axiscCsdSdS(Ns>\setbox0\hbox{$\vcenter{\vrule width0pt}$}\PyXDimenVShift=\ht0((sself((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys setheightexpr's(s__name__s __module__s__doc__s setheightexpr(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_vshiftmathaxis$s s normalsizeslargesLargesLARGEshugesHugestinys scriptsizes footnotesizessmallssizecBs)tZdZeeed„Zd„ZRS(s font sizecCsù|tjo |tjp|tj o |tj otdƒ‚ntii|tt gƒ|tj o‚|djo||i tƒjo|||_ qõ|djo|t |ƒ|i tƒjo|||_ qõtdƒ‚n ||_ dS(Ns$either specify sizeindex or sizenameisindex out of sizelist range(s sizeindexsNonessizenames RuntimeErrorsattrssortbeforeattrs__init__sselfs _mathmodes_vshiftssizelistsindexssizeslens IndexError(sselfs sizeindexssizenamessizelist((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__8s4 #-cCsd|i|fSdS(Ns\%s{}%s(sselfssizesexpr(sselfsexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysapplyFs(s__name__s __module__s__doc__sNonesdefaultsizelists__init__sapply(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyssize5s iüÿÿÿiýÿÿÿiþÿÿÿiÿÿÿÿiiiis _readpipecBs tZdZd„Zd„ZRS(s›threaded reader of TeX/LaTeX output - sets an event, when a specific string in the programs output is found - sets an event, when the terminal endscCsatii|ƒ|idƒ||_||_||_||_||_ t |_ |i ƒdS(s%initialize the reader - pipe: file to be read from - expectqueue: keeps the next InputMarker to be wait for - gotevent: the "got InputMarker" event - gotqueue: a queue containing the lines recieved from TeX/LaTeX - quitevent: the "end of terminal" eventiN( s threadingsThreads__init__sselfs setDaemonspipes expectqueuesgoteventsgotqueues quiteventsNonesexpectsstart(sselfspipes expectqueuesgoteventsgotqueues quitevent((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__`s       cCsT|iiƒ}y|iiƒ|_Wntij onXx¼t |ƒo®|i ddƒi ddƒd}|i i |ƒ|it j o|i|iƒdjo|iiƒn|iiƒ}y|iiƒ|_WqAtij oqAXqAW|iiƒ|it j o|iidƒdjotdƒ‚n|iiƒdS(sthread routines ss iÿÿÿÿsPyXInputMarkersTeX/LaTeX finished unexpectedlyN(sselfspipesreadlinesreads expectqueues get_nowaitsexpectsQueuesEmptyslensreplacesgotqueuesputsNonesfindsgoteventssetscloses RuntimeErrors quitevent(sselfsread((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysrunqs* ")  )(s__name__s __module__s__doc__s__init__srun(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys _readpipe[s  stextboxcBsMtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(sbasically a box.rect, but it contains a text created by the texrunner - texrunner._text and texrunner.text return such an object - _textbox instances can be inserted into a canvas - the output is contained in a page of the dvifile available thru the texrunnerc CsÀ||_||_|||_||_||_titidƒi ||ƒ|_ t ii|||||||||d||fƒtii||ƒ||_t|_d|_dS(sž - finishdvi is a method to be called to get the dvicanvas (e.g. the finishdvi calls the setdvicanvas method) - attrs are fillstylessxs abscenteriN(sleftsselfsrightswidthsheightsdepthstrafosscalesunits translatedsxsys texttrafosboxsrects__init__scanvass_canvassattrss finishdvisNones dvicanvassinsertdvicanvas( sselfsxsysleftsrightsheightsdepths finishdvisattrs((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__’s     %8  cGsR|iotdƒ‚ntii||Œx|D]}||i|_q4WdS(Ns7can't apply transformation after dvicanvas was inserted( sselfsinsertdvicanvass RuntimeErrorsboxsrects transformstrafosstrafos texttrafo(sselfstrafosstrafo((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys transform£s  cCs-|itj otdƒ‚n||_dS(Nsmultiple call to setdvicanvas(sselfs dvicanvassNones RuntimeError(sselfs dvicanvas((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys setdvicanvasªscCsm|itjo(|iƒ|itj p td‚n|i o&|i|i|igƒd|_ndS(Nsfinishdvi is brokeni(sselfs dvicanvassNones finishdvisAssertionErrorsinsertdvicanvassinserts texttrafo(sself((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysensuredvicanvas¯s   cCs(|iƒ|ii|ii|ŒSdS(N(sselfsensuredvicanvass texttrafosapplys dvicanvassmarkerssmarker(sselfsmarker((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysmarker·s cCsO|iƒtiƒ}tii||||||ƒ|t ii |ƒ7}dS(N(sselfsensuredvicanvass bboxmodulesemptysabboxscanvass_canvass processPSsfileswriterscontextsregistrysbboxsboxsrect(sselfsfileswriterscontextsregistrysbboxsabbox((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys processPS»s  cCsO|iƒtiƒ}tii||||||ƒ|t ii |ƒ7}dS(N(sselfsensuredvicanvass bboxmodulesemptysabboxscanvass_canvass processPDFsfileswriterscontextsregistrysbboxsboxsrect(sselfsfileswriterscontextsregistrysbboxsabbox((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys processPDFÁs  ( s__name__s __module__s__doc__s__init__s transforms setdvicanvassensuredvicanvassmarkers processPSs processPDF(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pystextbox‹s       cCsu|ioƒ|iitƒ|idjo|iidƒn|iidƒ|iiƒ|i |i ƒ odSnd|_d|_ nxU|i D]J}|idƒ}yti|i|||ƒWq—tj oq—Xq—WxEtid|iƒD]-}yti|ƒWqütj oqüXqüW|itj o4y|iiƒt|_Wqqtj oqqXndS( soget rid of temporary files - function to be registered by atexit - files contained in usefiles are keptslatexs \catcode`\@11\relax\@@end s \end Niis.s%s.*(s texrunnerstexrunss expectqueues put_nowaitsNonesmodestexinputswritescloses waitforevents quiteventstexdonesusefilessusefilesrfindsextpossossrenames texfilenamesOSErrorsglobsfilesunlinkstexdebugsIOError(s texrunnersextpossfilesusefile((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys _cleantmpÈs<         s_unsetcBstZRS(N(s__name__s __module__(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys_unsetêss texrunnercBs¯tZdZeigZeigZeieigZ ei ei ei gZ eigZeieiei eigZdddegeidddƒeidddƒeidd d ƒeidd d ƒed d d ggggggd„Zd„Zd„Zd d„Zd d„Zeeeeeeeeeeeeeeeeeeed„Zgd„Ze i!dƒZ"ggd„Z#d„Z$e i!dƒZ%d„Z&RS(sÏTeX/LaTeX interface - runs TeX/LaTeX expressions instantly - checks TeX/LaTeX response - the instance variable texmessage stores the last TeX response as a string - the instance variable texmessageparsed stores a parsed version of texmessage; it should be empty after texmessage.check was called, otherwise a TexResultError is raised - the instance variable errordebug controls the verbose level of TexResultErrorstexs10ptsarticlestextsfontmapss psfonts.maps waitfortexi<sshowwaitfortexistexipciicCsÄ|iƒ}|djo |djotdƒ‚n||_||_||_||_||_||_||_ ||_ | |_ | t j oA| ddjot| dƒ|_ qßtd| dƒ|_ n t |_ | |_| |_| |_||_||_||_||_||_||_d|_d|_d |_d|_d|_g|_g|_t |_d|_ t!i"}t$i%t!_"t$i&i't!i(ƒƒ|_)|t!_"dS( Nstexslatexsmode "TeX" or "LaTeX" expectediüÿÿÿs.texsws%s.texii(*smodeslowers ValueErrorsselfslfssdocclasssdocoptsusefilessfontmapss waitfortexsshowwaitfortexstexipcstexdebugsNonesopensdvidebugs errordebugs pyxgraphicsstexmessagesstartstexmessagesdocclassstexmessagesbegindocstexmessagesendstexmessagesdefaultpreamblestexmessagesdefaultrunstexrunsstexdones preamblemodes executeidspages preamblessneeddvitextboxessdvifilestextboxesincludedstempfilestempdirs savetempdirsosscurdirspathsbasenamesmktemps texfilename(sselfsmodeslfssdocclasssdocoptsusefilessfontmapss waitfortexsshowwaitfortexstexipcstexdebugsdvidebugs errordebugs pyxgraphicsstexmessagesstartstexmessagesdocclassstexmessagesbegindocstexmessagesendstexmessagesdefaultpreamblestexmessagesdefaultruns savetempdir((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys__init__sN                                cCs|io÷d}d}xà||ijo| oÇ|i||ijo!|i|iƒ||i7}n&|i|i|ƒ||i|7}|iƒ}| oR||ijo$ti d|i ||ifƒqôti d||i fƒqqW|Sn|i|iƒ|iƒSdS(sÄwaits verbosely with an timeout for an event - observes an event while periodly while printing messages - returns the status of the event (isSet) - does not clear the eventis0still waiting for %s after %i (of %i) seconds...s9the timeout of %i seconds expired and %s did not respond.N( sselfsshowwaitfortexswaitedshasevents waitfortexseventswaitsisSetswarningsswarnsmode(sselfseventshaseventswaited((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys waitforevent@s&  $#cCs[|i o€|itj o^|iidtiƒ|iid|iƒ|iidtiti tiƒƒƒƒnxU|i D]J} | i dƒ}yti| |i| |ƒWqƒtj oqƒXqƒWtd|idƒ}|idƒ|iƒ|io d}nd }y8tid |i||ifd d ƒ\|_|_WnDtj o8tid |i||ifd ƒ\|_|_nXtit|ƒtid ƒ|_t i!ƒ|_"tid ƒ|_#t i!ƒ|_$t%|i|i|i"|i#|i$ƒ|_&d |_t'i(|i)i*ƒƒ|_+|i,} d |_,|i.dt/d|i0|i1ƒti2d|iƒ|idjoæ|i3oÁt}t5|i3ƒdjo|i3ddjo |i3}nd|i3}xz|ti7i8t9i:|ƒgD]F}y*t|dƒ} | i=ƒ}| iƒPWqt?j oqXqWd|}nd }|tj oÔt@i@dƒt@i@ti7i8t9i:dƒƒ}g}xX|D]P}y4t|dƒiƒ|iDti7iE|ƒd ƒWq¨t?j oq¨Xq¨W|iFƒt5|ƒot?d||fƒ‚qAt?d|ƒ‚n|i.|gƒ|i.dgƒ|i.dgƒn |idjoù|iGoŒti7i8t9iHdƒ} yt| dƒiƒWnt?j ot?dƒnXti7iJ| ƒiKtiLdƒ} |i.d | d!gƒn|iMtj o.|i.d"|iM|iNf|iO|iPƒq~|i.d#|iN|iO|iPƒn| |_,n|iQd 7_Q|tj oq|iiSd$|iQƒ|i,od%|d&|iQ|_RqU|iTd 7_Td'||iTfd&|iQ|_Rn>|iiSd(|iƒ|idjo d)|_Rn d*|_R|itj o|ii|iRƒn|ii|iRƒ|iU|i"ƒ} |i"iVƒ|tjo| o5d |_d |_W|iiƒ|iU|i$ƒ} ny4d |_Xx$no|iX|i#iYƒ7_Xq WWntiZj onX|iXiKd+d,ƒiKd-d,ƒ|_X|iX|_[| oÆ|tj oCtXi\i]|ƒ|i, o$tXi^i]|ƒtXi_i]|ƒqËnt`ia|ƒ}x|D]}|i]|ƒqáW|i[}tXiei]|ƒt5|i[ƒo||_[tfd.|ƒ‚qWntfd/|ig|ƒ‚d0S(1s[executes expr within TeX/LaTeX - if self.texruns is not yet set, TeX/LaTeX is initialized, self.texruns is set and self.preamblemode is set - the method must not be called, when self.texdone is already set - expr should be a string or None - when expr is None, TeX/LaTeX is stopped, self.texruns is unset and self.texdone becomes set - when self.preamblemode is set, the expr is passed directly to TeX/LaTeX - when self.preamblemode is unset, the expr is passed to \ProcessPyXBox - texmessages is a list of texmessage instancess%% PyX %s texdebug file s %% mode: %s s %% date: %s s.s%s.texsws\relax% s --ipcss%s%s %sstiisÆ\scrollmode \raiseerror% \def\PyX{P\kern-.3em\lower.5ex\hbox{Y}\kern-.18em X}% \gdef\PyXBoxHAlign{0}% \newbox\PyXBox% \newbox\PyXBoxHAligned% \newdimen\PyXDimenHAlignLT% \newdimen\PyXDimenHAlignRT% s^\long\def\ProcessPyXBox#1#2{% \setbox\PyXBox=\hbox{{#1}}% \PyXDimenHAlignLT=\PyXBoxHAlign\wd\PyXBox% \PyXDimenHAlignRT=\wd\PyXBox% \advance\PyXDimenHAlignRT by -\PyXDimenHAlignLT% \gdef\PyXBoxHAlign{0}% \immediate\write16{PyXBox:page=#2,lt=\the\PyXDimenHAlignLT,rt=\the\PyXDimenHAlignRT,ht=\the\ht\PyXBox,dp=\the\dp\PyXBox:}% \setbox\PyXBoxHAligned=\hbox{\kern-\PyXDimenHAlignLT\box\PyXBox}% \ht\PyXBoxHAligned0pt% {\count0=80\count1=121\count2=88\count3=#2\shipout\box\PyXBoxHAligned}}% \def\PyXInput#1{\immediate\write16{PyXInputMarker:executeid=#1:}}% \def\PyXMarker#1{\hskip0pt\special{PyX:marker #1}}%stexiiüÿÿÿs.lfss%s.lfssrs,File '%s' is not available or not readable. s*.lfss-%sAvailable LaTeX font size files (*.lfs): %ssF%sNo LaTeX font size files (*.lfs) available. Check your installation.s \normalsize% s(\newdimen\linewidth\newdimen\textwidth% slatexspyx.defslfile 'pyx.def' is not available or not readable. Check your installation or turn off the pyxgraphics option.s/s^\makeatletter% \let\saveProcessOptions=\ProcessOptions% \def\ProcessOptions{% \def\Gin@driver{sH}% \def\c@lor@namefile{dvipsnam.def}% \saveProcessOptions}% \makeatothers\documentclass[%s]{%s}s\documentclass{%s}sPyXInputMarker:executeid=%i:s%s%% s\PyXInput{%i}%% s\ProcessPyXBox{%s%% }{%i}%% sTranscript written on %s.logs\end{document}% s\end% s s s s*unhandled TeX response (might be an error)sFTeX didn't respond as expected within the timeout period (%i seconds).N(hsselfstexrunsstexdebugsNoneswritesversionsmodestimesasctimes localtimesusefilessusefilesrfindsextpossossrenames texfilenamesOSErrorsopenstexfilesclosestexipcsipcflagspopen4stexinputs texoutputs ValueErrorsatexitsregisters _cleantmpsQueues expectqueues threadingsEventsgoteventsgotqueues quitevents _readpipes readoutputsdvifiles readfontmapsfontmapsssplitsfontmaps preamblemodesoldpreamblemodesexecutes_textattrspreamblesdefaulttexmessagesstartstexmessagesstartsremoveslfsslfserrorslenslfsnamespathsjoins siteconfigslfsdirs fulllfsnameslfsfilesreadslfsdefsIOErrorsglobsallfilesslfsnamessfsappendsbasenamessorts pyxgraphicsssharedirspyxdefsabspathsreplacessepsdocoptsdocclasssdefaulttexmessagesdocclassstexmessagesdocclasss executeidsexprs put_nowaitspages waitforeventsclearstexdones texmessages get_nowaitsEmptystexmessageparseds inputmarkerscheckspyxboxs pyxpageoutsattrs mergeattrss texmessagesstskeeptexmessageparseds emptylinessTexResultErrors waitfortex(sselfsexprs texmessagesslfsdefslfserrors fulllfsnameslfsnamesallfilessipcflagslfsfilespyxdefsoldpreamblemodesusefilesgoteventsfsextposslfsnamesskeeptexmessageparsedstexfilest((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysexecuteZs  0      86*    *      .!    !    %       !$     c Cs |it|i|iƒd|i}|i o’ti||i d|i ƒ|_d}xh|i D]Y}|i|iitdƒtdƒtdƒ|ddddddg ƒƒ|d7}qcWn| o|iitƒtj otdƒ‚nt|_g|_ d S( s{finish TeX/LaTeX and read the dvifile - this method ensures that all textboxes can access their dvicanvass%s.dvisdebugisPsysXisend of dvifile expectedN(sselfsexecutesNonesdefaulttexmessagesendstexmessagesends texfilenames dvifilenamestexipcsdvifilesfontmapsdvidebugspagesneeddvitextboxessboxs setdvicanvassreadpagesords ignoretails RuntimeError(sselfs ignoretailsboxs dvifilenamespage((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys finishdvis  ! I! cCsó|io|iƒn|itj o%|iiddd|ifƒnd|_d|_d|_ |ond|_ x'|i D]\}}|i||ƒq‚W|idjo|id|i|iƒnd|_ ng|_ d|_ dS( sOresets the tex runner to its initial state (upto its record to old dvi file(s))s%s %% preparing restart of %s s%iPiislatexs\begin{document}N(sselfstexrunss finishdvistexdebugsNoneswritesmodes executeidspagestexdonesreinits preamblemodes preamblessexprs texmessagessexecutesdefaulttexmessagesbegindocstexmessagesbegindoc(sselfsreinits texmessagessexpr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysreset!s$ %       cCs±|iotdƒ‚n|tj oC|iƒ}|djo |djotdƒ‚n||_n|tj o ||_n|tj o ||_n|tj o ||_ n|tj o ||_ n|tj o ||_ n|tj o ||_ n|tj o ||_ n| tj o | |_n| tj ob|itj o|iiƒn| ddjot| dƒ|_q©td| dƒ|_n| tj o | |_n| tj o | |_n| tj o | |_n| tj o | |_n|tj o ||_n|tj o ||_n|tj o ||_n|tj o ||_n|tj o ||_n|tj o ||_nd S( sÇprovide a set command for TeX/LaTeX settings - TeX/LaTeX must not yet been started - especially needed for the defaultrunner, where no access to the constructor is availables,set not allowed -- TeX/LaTeX already startedstexslatexsmode "TeX" or "LaTeX" expectediüÿÿÿs.texsws%s.texN(sselfstexrunss RuntimeErrorsmodes_unsetslowers ValueErrorslfssdocclasssdocoptsusefilessfontmapss waitfortexsshowwaitfortexstexipcstexdebugsNonesclosesopensdvidebugs errordebugs pyxgraphicsstexmessagesstartstexmessagesdocclassstexmessagesbegindocstexmessagesendstexmessagesdefaultpreamblestexmessagesdefaultrun(sselfsmodeslfssdocclasssdocoptsusefilessfontmapss waitfortexsshowwaitfortexstexipcstexdebugsdvidebugs errordebugs pyxgraphicsstexmessagesstartstexmessagesdocclassstexmessagesbegindocstexmessagesendstexmessagesdefaultpreamblestexmessagesdefaultrun((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pysset5sd                                        cCsc|ip|i otdƒ‚n|i|i|}|i||ƒ|i i ||fƒdS(sSput something into the TeX/LaTeX preamble - in LaTeX, this is done before the \begin{document} (you might use \AtBeginDocument, when you're in need for) - it is not allowed to call preamble after calling the text method for the first time (for LaTeX this is needed due to \begin{document}; in TeX it is forced for compatibility (you should be able to switch from TeX to LaTeX, if you want, without breaking something) - preamble expressions must not create any dvi output - args might contain texmessage instancess2preamble calls disabled due to previous text callsN( sselfstexdones preamblemodes RuntimeErrors!defaulttexmessagesdefaultpreamblestexmessagesdefaultpreambles texmessagessexecutesexprs preamblessappend(sselfsexprs texmessages((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pyspreambles s¶PyXBox:page=(?P\d+),lt=(?P-?\d*((\d\.?)|(\.?\d))\d*)pt,rt=(?P-?\d*((\d\.?)|(\.?\d))\d*)pt,ht=(?P-?\d*((\d\.?)|(\.?\d))\d*)pt,dp=(?P-?\d*((\d\.?)|(\.?\d))\d*)pt:c Cs&|tjotdƒ‚n|io|iddƒnd}|ioA|idjo|i d|i |i ƒnd|_d}nt i |ƒ}t i|ttitigƒt i|tigƒ} t i|tigƒ}t i|tgƒ}t|ƒ} x/t| ƒD]!}|| d|i|ƒ}qWy"|i ||i|i|ƒWn&t j o|i!ddƒ‚nX|i"o7|o,t#i#d|i$|i%d |i&ƒ|_#qÉn|i'i(|i)ƒ} | pt+| i,d ƒƒ|i-jot d |ƒ‚ngi.}| i,d d ddƒD]%} |t1| ƒddt2i3ƒq8~\}}}} t8|||||| |i!|ƒ}x| D]}|i=|ƒqW|i"oP|i>|i#i?t@dƒt@dƒt@dƒ|i-ddddddg ƒƒn|iAi.|ƒ|SdS(sacreate text by passing expr to TeX/LaTeX - returns a textbox containing the result from running expr thru TeX/LaTeX - the box center is set to x, y - *args may contain attr parameters, namely: - textattr instances - texmessage instances - trafo._trafo instances - style.fillstyle instancessNone expression is invalidsreinitiislatexs\begin{document}s ignoretails%s.dvisdebugspagesbox extents not foundsltsrtshtsdpiHf72.269999999999996sPsysXN(BsexprsNones ValueErrorsselfstexdonesresetsfirsts preamblemodesmodesexecutesdefaulttexmessagesbegindocstexmessagesbegindocsattrs mergeattrss textattrss checkattrsstextattrstrafostrafo_ptsstyles fillstylesgetattrsstrafoss fillstylesslens lentextattrssrangesisapplysdefaulttexmessagesdefaultrunstexmessagesdefaultruns texmessagessTexResultErrors finishdvistexipcsdvifiles texfilenamesfontmapsdvidebugs PyXBoxPatternssearchs texmessagesmatchsintsgroupspagesappends_[1]sxxxsfloatsunitsx_ptsleftsrightsheightsdepthstextboxsxsysboxsts reltransforms setdvicanvassreadpagesordsneeddvitextboxes(sselfsxsysexprs textattrss texmessagessrights fillstylessheights lentextattrssdepthstrafossmatchsxxxsboxsis_[1]stsleftsfirst((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pystext’sP       " 0'Z$ PcOs+|i|ti|ti|||ŽSdS(N( sselfstextsxsunitst_ptsysexprsargsskwargs(sselfsxsysexprsargsskwargs((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pystext_ptÅssNPyXVariableBox:page=(?P\d+),par=(?P\d+),prevgraf=(?P\d+):c CsÁ|i o#|idtigƒd|_ndddti|ddƒddti|ddƒf}|d7}x7|dD]+\}}|dddti|ƒ7}q…W|d 7}|d 7}x7|dD]+\}}|d ddti|ƒ7}qÓW|d 7}d}g} g} d}x–noŽ|i|gƒd i| ƒ}|od |}nd|}|i|gƒddi| ƒ}|i|gƒ|id|tigƒ|io@|itjo,tid|i|id|iƒ|_qn tdƒ‚| }g} | }g} d}d} }|i i!|iƒ}xÅ|o½|d7}t#|i$dƒƒ}||jpt%‚t#|i$dƒƒ} t#|i$dƒƒ}|t'|ƒjo'ddti||ddƒ} n ddti|ddƒ} |t'|ƒjo#ddti||dƒ}n ddti|ddƒ}| | joŠ| i*t+| ƒƒdigi*}t-|ƒD]}|d| ƒq›~ƒ}t'|ƒod|}n| i*d|d||fƒnè||jon×di| di1dƒddd|!ƒ}|i1dƒd}t'|ƒod|}ndigi*}t-||ƒD]}|d| ƒq€~ƒ}t'|ƒod|}nd}d|d|||f| d<| } |}|i3ƒ}|i i!|i|ƒ}qOWg}xOt-|ƒD]A}|i*|ii6|ddddddddddg ƒƒq'W| |jo | |jo|Sn|d7}|d jot7d!t8ƒ‚q'q.WdS("Ns\input textboxes.texis(\hsize=%.5ftruept%% \vsize=%.5ftruept%% f72.269999999999996iHis \lohsizes={% s{\global\hsize=%.5ftruept}%% s {\relax}% }% s \lovsizes={% s{\global\vsize=%.5ftruept}%% s}{s{%s}s\parnos={%s{\relax}}%% s#\parshapes={%% %s%% {\relax}%% }%% s% s¢\global\count0=1%% \global\parno=0%% \global\myprevgraf=0%% \global\showprevgraf=0%% \global\outputtype=0%% \global\leastcost=10000000%% %s%% \vfill\supereject%% s%s.dvisdebugs textboxes currently needs texipciÿÿÿÿspagesparsprevgrafs 0pt s %.5ftruepts{\parshape %i%s 0pt %.5ftruept}s is}s!{\parshape %i%s%s 0pt %.5ftruept}idsToo many loops in textboxes (9sselfstextboxesincludedsexecutes texmessagesloadsunitstopts pageshapesspageshapes_strshsizesvsizespagesparnoss parshapessloopsjoins parnos_strs parshapes_strstextsignorestexipcsdvifilesNones texfilenamesfontmapsdvidebugs RuntimeErrors lastparnoss lastparshapesspagesslastparsprevgrafsPyXVariableBoxPatternssearchsmsintsgroupsAssertionErrorsparslenswidths nextwidthsappendsstrs_[1]srangesisparshapes lastprevgrafssplits oldparshapesendsnextpossresultsreadpagesTexResultErrors texrunner(sselfstexts pageshapess lastparnoss oldparshapeshsizes lastparshapessresults parshapes_strsparslastparsparnosswidths parshapess lastprevgrafsnextpossparshapes nextwidthsprevgrafs parnos_strspagesspageshapes_strsisms_[1]svsizespagesloop((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys textboxesÊs¨  B  #   #     0   '# : " + >   ?  ('s__name__s __module__s__doc__s texmessagesstartsdefaulttexmessagesstartsloadsdefaulttexmessagesdocclasssnoauxsdefaulttexmessagesbegindocsends fontwarnings rerunwarningsdefaulttexmessagesends!defaulttexmessagesdefaultpreamblesloaddefs graphicsloads boxwarningsdefaulttexmessagesdefaultrunsNonesconfigsgetsgetints getbooleans__init__s waitforeventsexecutes finishdvisresets_unsetssetspreamblesrescompiles PyXBoxPatternstextstext_ptsPyXVariableBoxPatterns textboxes(((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys texrunnerís&    ~>  ¶  BJ 3 s s~s$s\$s&s\&s#s\#s_s\_s%s\%s^s\string^s\string~ss{$>$}s{s{$\{$}s}s{$\}$}s\s {$\setminus$}s|s{$\mid$}cCsÄd}x³|t|ƒjoŸdt||ƒjo djn otdƒ‚n||}y||}Wntj o|d7}q X|| |||d}|t|ƒ7}q W|SdS(sEescape all ascii characters such that they are printable by TeX/LaTeXii is0escapestring function handles ascii strings onlyiN( sislensssords ValueErrorscsreplacesrsKeyError(sssreplacescsisr((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys escapestring6s) (‚sglobsoss threadingsQueuesrestempfilesatexitstimeswarningssconfigs siteconfigsunitsboxscanvasstrafosversionsattrsstylesdvifilesbboxs bboxmodules RuntimeErrorsTexResultErrors _Itexmessages texmessages_texmessagestarts_texmessagenofiles_texmessageinputmarkers_texmessagepyxboxs_texmessagepyxpageouts_texmessageends_texmessageemptyliness_texmessageloads_texmessageloaddefs_texmessagegraphicsloads_texmessageignoresstartsnoauxsnonavsendsloadsloaddefs graphicsloadsignores inputmarkerspyxboxs pyxpageouts emptyliness_texmessageallwarnings allwarningstexmessagepatternscompiles MULTILINEs fontwarnings boxwarnings rerunwarnings_textattrspreamblestextattrs _localattrs exclusiveattrs boxhalignsleftscentersrights flushhalignshaligns clearclasssclearsboxlefts boxcentersboxrights flushlefts raggedrights flushcenters raggedcenters flushrights raggedlefts _mathmodesmathmodes clearmathmodes_phantomsphantoms clearphantomssortbeforeexclusiveattrs parbox_ptsparboxsvalignstopsmiddlesbottomsbaselinessortbeforeattrs_vshiftsvshifts_vshiftmathaxiss bottomzeros middlezerostopzerosmathaxissNonesdefaultsizelistssizestinys scriptsizesscripts footnotesizesfootnotessmalls normalsizesnormalslargesLargesLARGEshugesHugesThreads _readpipesrects_canvasstextboxs _cleantmps_unsets texrunnersdefaulttexrunnersresetssetspreamblestextstext_pts escapestring(Dssizesresetsphantomstexts_texmessagegraphicsloads clearmathmodes bboxmodulesatexitssets_texmessagenofilesmathmodesunitstrafos_texmessagepyxpageouts boxhalignscanvass_texmessageinputmarkershalignstempfilespreamblestext_pts_vshiftsdefaulttexrunnersres flushhalignsversionsTexResultErrors_phantomsvalignstextboxsparboxsdefaultsizelistsconfigs texmessages escapestrings_texmessageignores_texmessageendswarningssglobsstyles_texmessageallwarningsQueues _cleantmps _readpipes texrunners_texmessagestarts_texmessagepyxboxs _mathmodes_texmessageloadsboxs_unsets_texmessageloaddefsvshiftsattrstextattrs siteconfigs _localattrs parbox_pts_textattrspreambles threadings_texmessageemptyliness clearphantomsdvifilestimes _Itexmessages_vshiftmathaxissosstexmessagepattern((s</mnt/gmirror/ports/graphics/py-PyX/work/PyX-0.10/pyx/text.pys?sÜQZ !   17             !!!   %             '0= "ÿÿD