m๒ ์ส๖Fc@sždkZdkZdkZdkZdkZdeifd„ƒYZd„Zd„Zd„Z dfd„ƒYZ dfd „ƒYZ d fd „ƒYZ dS( NtOrphanAnnotationcBstZd„Zd„ZRS(NcCsdS(N((tself((tC:\Backup\TMAT\tmat\objects.pyt__init__scCs dGdGHdS(Nts;An annotation pointing to a non-existent token was detected((R((Rt__str__ s(t__name__t __module__RR(((RRs cCs_h}h}xFti|dƒD]2}t|d|d|ƒ}|||<|||( RR%R#R&R RBR1R$R?(R((RtsetTextgs *"  cCs|iS(N(RR!(R((Rt getParsesnscCsC||ijo|ii|ƒn|io|iiƒndS(N(RRR!tappendR$R?(RR((RtaddParseps cCsP|ii|ƒ||ijo|idƒn|io|iiƒndS(N( RR!tremoveRR*R0R#R$R?(RR((Rt removeParsets  cCs|iS(N(RR"(R((RtgetProblemNotesyscCs(||ijo|ii|ƒndS(N(RRR"RE(RR((RtaddProblemNote{scCs|ii|ƒdS(N(RR"RGR(RR((RtremoveProblemNote~scCs|iS(N(RR%(R((RtgetStartOffset€scCs6t|ƒ|_ti|it|ƒƒ|iƒdS(N(tinttsRR%R tSetStartOffsetR RC(RRN((RR2‚scCs|iS(N(RR&(R((Rt getEndOffset†scCs6t|ƒ|_ti|it|ƒƒ|iƒdS(N(RMteRR&R t SetEndOffsetR RC(RRQ((RR3ˆsicCs>|iƒ}|iƒ}|i||ƒ|i||ƒdS(N(RRLRNRPRQR2tdeltaR3(RRSRQRN((RtshiftŒs  cCs’ti|idƒoxti|idƒ}|oXg}|iD]!}|i|jo ||q@q@~}|o|i |dƒqŠqŽndS(Nt SelectedParsei( R R)RR RRt_[1]R!txtmyparsesR0(RRXRVRRW((RtloadCurrentParse‘s 8cCs|iS(N(RR*(R((RtgetCurrentParse˜scCs‰|p d}n||_|o3||ijo#ti|idt|iƒƒnti|iddƒ|i o|i i ƒndS(NRUR( RR#RR*R!R R>R tstrR$R?(RR((RR0šs  # cCs=x6g}|iD] }||q~D]}|iƒq%WdS(N(RVRR!RWRR(RRVRRW((Rt deleteParsesขs%cCsI|idƒ|idƒ|idƒx|iD]}|iƒq1WdS(N(RR2R#R3R0R!Rtclear(RR((RR]ฅs     cCsฤti|iƒ}ti|iƒ}ti|iƒti|ƒti|ƒx6g}|i D] }||q_~D]}|i ƒqsWx6g}|iD] }||q˜~D]}|i ƒqฌWdS(N(R tGetStartAnchorRR tstartt GetEndAnchortendtDeleteAnnotationt DeleteAnchorRVR!RWRRR"(RRaRRVR_RW((RRซs  %%(!RRR#R RR6R8R9R:R;R5R4R@RARBRCRDRFRHRIRJRKRLR2RPR3RTRYRZR0R\R]R(((RR2s:                           RcBs}tZddddddd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z RS( Nic Csา|o@ti|dƒ}ti|dƒ}ti|dƒdj}n7ti|ƒ}ti|ƒ}ti |||dƒ}||_|i |ƒ|i |ƒ|i|ƒd|_|o|i|ƒndS(NtGlosstUnderlyingRepresentationt IsManualParsetYESR(R R RtglosstunderlyingFormtisManualR+R,R-R.R/RtsetGlosstsetUnderlyingFormt setIsManualR#RtsetToken( RR,R RhRiRjRR-R.((RRทs     cCs|iS(N(RRh(R((RtgetGlossศscCsJ||_|o ti|idt|ƒƒnti|iddƒdS(NRdR(tgRRhR R>R R[(RRp((RRkสs  cCs|iS(N(RRi(R((RtgetUnderlyingFormะscCsJ||_|o ti|idt|ƒƒnti|iddƒdS(NReR(tuRRiR R>R R[(RRr((RRlาs  cCs|iS(N(RRj(R((Rt getIsManualุscCsD||_|oti|iddƒnti|iddƒdS(NRfRgtNO(tmRRjR R>R (RRu((RRmฺs cCs|iS(N(RR(R((RtgetTokenเscCsr|io|ii|ƒn||_|o*|i|ƒti|id|iƒnti|iddƒdS(NRR(RRRHRRFR R>R (RR((RRnโs   cCs8|idƒ|itƒ|idƒ|idƒdS(N(RRnR#RmR<RkRl(R((RR]๋s   cCsb|ii|ƒti|iƒ}ti|iƒ}ti |iƒti |ƒti |ƒdS(N( RRRHR R^R R_R`RaRbRc(RR_Ra((RR๐s  (RRR#RRoRkRqRlRsRmRvRnR]R(((RRถs        RcBshtZdddddd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( NcCsด|o:ti|dƒ}ti|dƒ}ti|dƒ}n7ti|ƒ}ti|ƒ}ti |||dƒ}||_d|_|i |ƒ|i|ƒ|i|ƒdS(NR1ttypeRR(R R RR1tpTypeRR+R,R-R.R/RR#RnRCtsetType(RR,R RR1RxR-R.((RR๚s    cCs|iS(N(RR(R((RRv scCsr|io|ii|ƒn||_|o*|i|ƒti|id|iƒnti|iddƒdS(NRR(RRRKRRJR R>R (RR((RRn s   cCs|iS(N(RR1(R((RRBscCsD||_|oti|id|ƒnti|iddƒdS(sNeed to add some escaping here!R1RN(RRR1R R>R (RR((RRCs  cCs|iS(N(RRw(R((RtgetTypescCsD||_|oti|id|ƒnti|iddƒdS(NRwR(RRRwR R>R (RR((RRys cCs+|idƒ|idƒ|idƒdS(N(RRnR#RCRy(R((RR]%s  cCsp|io|ii|ƒnti|iƒ}ti|iƒ}ti |iƒti |ƒti |ƒdS(N( RRRKR R^R R_R`RaRbRc(RR_Ra((RR)s  ( RRR#RRvRnRBRCRzRyR]R(((RR๙s      ( tsystrettypesR t exceptionst ExceptionRRRRRRR( RRRRR RR{R|RRR~R}((Rt?s       „C