Files
intellecton/venv/lib/python3.12/site-packages/pymdownx/__pycache__/smartsymbols.cpython-312.pyc
T

70 lines
7.1 KiB
Plaintext
Raw Normal View History

Ë
j3ãóîdZddlmZddlmZddlmZddlmZdZdZ dZ
d Z d
Z d Z
d d
dfZdddfZdddfZee e
e ee eee
dœ Zddddddddddd d!d"d#d$d%œZd&d'd(d)œZGd*„d+e«ZGd,„d-e«Zd.„Zy/)0a…
Smart Symbols.
pymdownx.smartsymbols
Really simple plugin to add support for:
copyright, trademark, and registered symbols
plus/minus, not equal, arrows via:
copyright = `(c)`
trademark = `(tm)`
registered = `(r)`
plus/minus = `+/-`
care/of = `c/o`
fractions = `1/2` etc.
(only certain available unicode fractions)
arrows:
left = `<--`
right = `-->`
both = `<-->`
not equal = `=/=`
(maybe this could be =/= in the future as this might be more
intuitive to non-programmers)
MIT license.
Copyright (c) 2014 - 2017 Isaac Muse <isaacmuse@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
é)Ú Extension)Útreeprocessors)ÚRegistry)ÚHtmlInlineProcessor)zsmart-trademarkz\(tm\)z&trade;)zsmart-copyrightz\(c\)z&copy;)zsmart-registeredz\(r\)z&reg;)zsmart-plus-minusz\+/-z&plusmn;)zsmart-not-equalz=/=z&ne;)z
smart-care-ofz\bc/o\bz&#8453;zsmart-ordinal-numberszn(?x)
\b
(?P<leading>(?:[1-9][0-9]*)?)
(?P<tail>(?<=1)(?:1|2|3)th|1st|2nd|3rd|[04-9]th)
\b
có´dj|jd«r|jd«nd|jd«dd|jd«dd«S)Nz{}{}<sup>{}</sup>ÚleadingÚÚtailéþÿÿÿé)ÚformatÚgroup©Úms úX/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pymdownx/smartsymbols.pyú<lambda>r=sNÐ!ןg™g iÔ Ô°bØ ˜˜Ð˜aŸg™g f›o¨a¨bÐóz smart-arrowsz-(?P<arrows>\<-{2}\>|(?<!-)-{2}\>|\<-{2}(?!-))có2t|jd«S)arrows)ÚARRrrs rrrEsŒc!—''˜$€rzsmart-fractionszW(?<!\d)(?P<fractions>1/4|1/2|3/4|1/3|2/3|1/5|2/5|3/5|4/5|1/6|5/6|1/8|3/8|5/8|7/8)(?!\d)có2t|jd«S)NÚ fractions)ÚFRACrrs rrrJsŒd1—77˜(€r© Ú trademarkÚ copyrightÚ
registeredÚ plusminusrÚnotequalrÚordinal_numbersÚcare_ofz&frac14;z&frac12;z&frac34;z&#8531;z&#8532;z&#8533;z&#8534;z&#8535;z&#8536;z&#8537;z&#8538;z&#8539;z&#8540;z&#8541;z&#8542;)z1/4z1/2z3/4z1/3z2/3z1/5z2/5z3/5z4/5z1/6z5/6z1/8z3/8z5/8z7/8z&rarr;z&larr;z&harr;)z-->z<--z<-->có(eZdZdZˆfdZdZˆxZS)ÚSmartSymbolsPatternzSmart symbols patterns handler.có4t|||«||_y)zSetup replace pattern.N)ÚsuperÚ__init__Úreplace)ÚselfÚpatternr'ÚmdÚ __class__s €rr&zSmartSymbolsPattern.__init__usø€ô ј "Ôˆ rcó |jjj|jt |j
«r|j |«n |j
««|j
d«|jd«fS)zReplace symbol.r)r*Ú htmlStashÚstoreÚexpandÚcallabler'ÚstartÚend)r(rÚdatas rÚ handleMatchzSmartSymbolsPattern.handleMatch{s`ðw‰w× Ñ ×
H‰H¬°·±Ô(>T—\\ !”_ÀDÇLÁLÓ 
à 7‰71‹:q—uu˜Q“xð ð r)Ú__name__Ú
__module__Ú __qualname__Ú__doc__r&r4Ú
__classcell__©r+s@rr#r#rsø„Ùö  rr#có.eZdZdZˆfdZdZdZˆxZS)ÚSmartSymbolsExtensionzSmart Symbols extension.c
ójddgddgddgddgddgddgddgdd gdd
gd œ |_t||i|¤Žy )
z*Setup config of which symbols are enabled.TÚ TrademarkÚ CopyrightÚ
Registeredz
Plus/MinusÚArrowsz Not EqualÚ FractionszOrdinal NumberszCare/ofrN)Úconfigr%r&)r(ÚargsÚkwargsr+s €rr&zSmartSymbolsExtension.__init__†skø€ð  Р РР ИXИ  Ð,Ø $Ð&7И

ˆŒ ô ј) )rcóf|jjt|d|d|«|dd«y)z$Construct the inline symbol pattern.r éréN)ÚpatternsÚregisterr#)r(rIr*s rÚ add_patternz!SmartSymbolsExtension.add_patterns4ð