mņ ećøEc@sœdZdZdkZdkZdklZdklZhdddf<dddf<dddf<d dd f<d dd f<d dd f<d dd f<d dd f<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<dddf<d dd!f<d"dd#f<d$d%d$f<d&d%d&f<d'd(d'f<d)d(d)f<d*d(d*f<d+d(d+f<d,d-d.f<d/d0d/f<d1d2d1f<d3d2d3f<d4d2d4f<d5d2d6f<d7d2d8f<d9d2d9f<d:d2d;f<d<d2d<f<d=d2d=f<d>d2d?fRERLR7RORJRTR9RVRMR8R=R((tG/data/zmath/zope/lib/python/docutils/parsers/rst/directives/__init__.pyt directive•sV  $cCs|t|" (without space in between). To be called from directive option conversion functions. s^([0-9.]+) *(%s)$t|is8not a positive measure of one of the following units: %st s"%s"iN( tretmatchRHtunitsR\R<tAssertionErrortfloattgroupR^Rcti(R\RxR|RcRw((RWt get_measure#s=cCst|tdgƒS(NRb(R}R\t length_units(R\((RWtlength_or_unitless5scCst|tddgƒS(Nt%Rb(R}R\R~(R\((RWt length_or_percentage_or_unitless8scCs{|djotdƒ‚n|iƒ}g}xE|D]=}ti|ƒ}|ptd|ƒ‚n|i |ƒq6W|S(s± Convert the argument into a list of ID-compatible strings and return it. (Directive option conversion function.) Raise ``ValueError`` if no argument is found. s#argument required but none supplieds"cannot make "%s" into a class nameN( R\R<R^Rgtnamest class_namesRZtnodestmake_idt class_nameRA(R\RZR†R‚Rƒ((RWt class_option;s  s2(?:0x|x|\\x|U\+?|\\u)([0-9a-f]+)$|&#x([0-9a-f]+);$cCs”yu|iƒott|ƒƒSnQti|ƒ}|o6|idƒp |idƒ}tt|dƒƒSn|SWn%tj o}t d|ƒ‚nXdS(sŒ Convert a Unicode character code to a Unicode character. (Directive option conversion function.) Codes may be decimal numbers, hexadecimal numbers (prefixed by ``0x``, ``x``, ``\x``, ``U+``, ``u``, or ``\u``; e.g. ``U+262E``), or XML-style numeric character entities (e.g. ``☮``). Other text remains as-is. Raise ValueError for illegal Unicode code values. iiiscode too large (%s)N( tcodetisdigittunichrRitunicode_patternRwR{Rjt OverflowErrorRTR^(RˆRjRTRw((RWt unicode_codePs  cCs7t|ƒ}t|ƒdjotd|ƒ‚n|S(sš A single character is returned as-is. Unicode characters codes are converted as in `unicode_code`. (Directive option conversion function.) is8%r invalid; must be a single character or a Unicode codeN(RR\tchartlenR^(R\RŽ((RWtsingle_char_or_unicodehs  cCs>|djo d}n$|djo d}n t|ƒ}|S(s As with `single_char_or_unicode`, but "tab" and "space" are also supported. (Directive option conversion function.) ttabs tspaceRuN(R\RŽR(R\RŽ((RWt$single_char_or_whitespace_or_unicodess     cCs-t|ƒ}|djotdƒ‚n|S(s› Converts the argument into an integer. Raises ValueError for negative, zero, or non-integer values. (Directive option conversion function.) is(negative or zero value; must be positiveN(RiR\RjR^(R\Rj((RWt positive_int€s   cCsQd|jo|idƒ}n |iƒ}g}|D]}|t|ƒq7~S(sÅ Converts a space- or comma-separated list of values into a Python list of integers. (Directive option conversion function.) Raises ValueError for non-positive-integer values. t,N(R\RgtentriesRctentryR”(R\RcR—R–((RWtpositive_int_listŠs   cCs;yti|ƒWn#tj otd|ƒ‚nX|S(sŒ Verfies the encoding argument by lookup. (Directive option conversion function.) Raises ValueError for unknown encodings. sunknown encoding: "%s"N(tcodecstlookupR\t LookupErrorR^(R\((RWtencoding˜s cCswy|iƒiƒ}Wn)tj otdt|ƒƒ‚nX||jo|Sntd|t|ƒfƒ‚dS(s Directive option utility function, supplied to enable options whose argument must be a member of a finite set of possible values (must be lower case). A custom conversion function must be written to use it. For example:: from docutils.parsers.rst import directives def yesno(argument): return directives.choice(argument, ('yes', 'no')) Raise ``ValueError`` if no argument is found or if the argument's value is not valid (not an entry in the supplied list). s'must supply an argument; choose from %ss"%s" unknown; choose from %sN(R\R6R]RjR@R^t format_valuestvalues(R\RžRj((RWtchoice„s cCs>ddig}|d D]}|d|q~ƒ|dfS(Ns %s, or "%s"s, i’’’’s"%s"(RHRcRžRe(RžRcRe((RWRæs($t__doc__t __docformat__RvR™tdocutilsR„tdocutils.parsers.rst.languagestenRDRKRNR:RXR[R_R`RaRfRhRkR~R}RRR‡tcompilet IGNORECASER‹RRR“R”R˜RœRŸR(R‡RœRaR”RRKRR`R}RXR‹RvR“R„R~RkRR˜RŸR_R”RNR™RfR:RDRhR[RR((RWt?SsF    ’’o0 =