ó ‹5Yc@s’ddlZdd d„ƒYZdefd„ƒYZdefd„ƒYZedkrŽd ZeƒZeƒZejeƒGHejeƒGHndS( iÿÿÿÿNt HyphenatorcBseZdd„Zd„ZRS(cCsdS(N((tselftcodec((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyt__init__scCs|S(N((Rttext((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyt hyphenate sN(t__name__t __module__tNoneRR(((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyRs tBasicHyphenatorcBs#eZdZdd„Zd„ZRS(sV Hyphenates basically by putting an hyphenation point between each character. cCs||_d|_dS(Ns\-(Rt hyphenchar(RR((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyRs cCs|jr|jj|ƒ}ndjt|ƒƒ}|jrQ|jj|ƒ}ntjdd|ƒ}|jd|jƒ}|S(Nss? ?t ( RtdecodetjointlisttencodetretsubtreplaceR (RRtntext((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyRs  N(RRt__doc__RRR(((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyR s t UrlHyphenatorcBs8eZdZdddddd„Zd„Zd„ZRS(sx Hyphenates so that cutting is easier on URL separators. The hyphen chars are expected to be void to prevent from spurious characters in displayed filenames or URLs. The pathname words can be cut only after the first characters and before the characters to avoid a cut just after one or two chars. Tip: the inter-chars can be defined with macros \HO and \HL, to be shorter like: \def\HL{\penalty9999} (h_char="\HL") \def\HO{\penalty5000} (h_sep="\HO") By default these shortcuts are not used to avoid some macro declaration in existing latex styles. s \penalty0{}s\penalty5000{}icCsB||_d|_||_||_|d|_|d|_dS(Ns :/\@=?#;-.i(Rtsepsth_septh_charth_startth_stop(RRRRRR((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyR3s      cCs!|jr|jj|ƒS|SdS(N(RR(RR((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyt _translate=s c Csh|jr|jj|ƒ}ng}dtj|jƒ}tj||ƒ}x|D]þ}|seqSn||jkr”|j|j|ƒ|jƒqS||j |j !}t |ƒdkrÓ|j|j|ƒƒqS||j }|dj t |ƒƒ7}|||j 7}|j|ƒ}tjdd|ƒ}|jd|jƒ}|j|ƒqSWdj |ƒ}|S(Ns([%s])iss? ?R t(RR RtescapeRtsplittappendRRRRtlenR RRRR( RRtvtexttptwordstwthwordtnwR((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyRCs,    N(RRRRRRR(((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyR s  t__main__s-http://www.fg/foobar fun#fght/fkkkf.tz?id=123(( RRR RRturlth1th2R(((s=/usr/lib/python2.7/dist-packages/dbtexmf/dblatex/texhyphen.pyts ?