;ò 0/MDc@s-dklZd„Zdfd„ƒYZdS((sECMDSPluginErrorcCst|ƒSdS(sReturns a plugin instance.N(sPluginsconfig(sconfig((s$/opt/ecromedos-1.0.1/plugins/text.pys getInstancessPlugincBs,tZd„Zd„Zd„Zd„ZRS(NcCs t|_dS(N(sFalsesselfslstrip(sselfsconfig((s$/opt/ecromedos-1.0.1/plugins/text.pys__init__scCsdS(N((sself((s$/opt/ecromedos-1.0.1/plugins/text.pysflushscCsF|djo1|i|iƒƒ}|o|i|ƒq>n|SdS(s!Prepare @node for target @format.slatexN(sformatsselfsLaTeX_sanitizeStringsnodes getContentsstrings setContent(sselfsnodesformatsstring((s$/opt/ecromedos-1.0.1/plugins/text.pysprocess s  cCsad}d}d}g}t|ƒ}|io‹xY||joK||}|i ƒ ot |_Pn|d7}|djo |}q1q1W||jo|i |||!ƒ|}q¹nxZ||joL||}||jo'||jo|i |||!ƒn|djoÀ|i o|i |ƒt |_n|d7}|}xY||joK||}|i ƒ ot |_Pn|d7}|djo |}qJqJW||jo|i |||!ƒ|}qq|i dtt|ƒƒdƒ|d7}|}q¼|d7}q¼W|djotSn||jo|i |||!ƒndi|ƒSdS( skReplace any character that could have a special meaning in some context in LaTeX with a unicode macro.s[]{}#&_%$\~-:;!?"`'^= iis s {\unichar{s}}sN(s special_charss frame_starts frame_endspartsslensstringslengthsselfslstripschsisspacesFalsesappendsTruesstrsordsNonesjoin(sselfsstringschs special_charss frame_endslengthspartss frame_start((s$/opt/ecromedos-1.0.1/plugins/text.pysLaTeX_sanitizeString,sh                       !    (s__name__s __module__s__init__sflushsprocesssLaTeX_sanitizeString(((s$/opt/ecromedos-1.0.1/plugins/text.pysPlugins   N(serrorsECMDSPluginErrors getInstancesPlugin(sECMDSPluginErrors getInstancesPlugin((s$/opt/ecromedos-1.0.1/plugins/text.pys? s