/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/formatters/__pycache__
NameSizeModeActions
bbcode.cpython-313.pyc42340644editdlrm
groff.cpython-313.pyc73860644editdlrm
html.cpython-313.pyc413700644editdlrm
img.cpython-313.pyc284800644editdlrm
irc.cpython-313.pyc60570644editdlrm
latex.cpython-313.pyc203110644editdlrm
other.cpython-313.pyc68810644editdlrm
pangomarkup.cpython-313.pyc29940644editdlrm
rtf.cpython-313.pyc138080644editdlrm
svg.cpython-313.pyc91110644editdlrm
terminal.cpython-313.pyc58250644editdlrm
terminal256.cpython-313.pyc154610644editdlrm
_mapping.cpython-313.pyc41890644editdlrm
__init__.cpython-313.pyc68640644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/pygments/formatters/__pycache__/img.cpython-313.pyc (28480B)
j[SrSSKrSSKrSSKJr SSKJrJrJrJ r SSK r SSK J r J r Jr SrSSKr/SQr/S QS S /S /S S/S.rSrSrSr"SS\5r"SS\5r"SS5r"SS\5r"SS\5r"SS\5r"SS \5rg!\a SrNtf=f!\a SSKrN!\a SrNf=ff=f)!z pygments.formatters.img ~~~~~~~~~~~~~~~~~~~~~~~ Formatter for Pixmap output. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. N) Formatter) get_bool_opt get_int_opt get_list_optget_choice_opt)Image ImageDraw ImageFontTF)ImageFormatterGifImageFormatterJpgImageFormatterBmpImageFormatter)RomanBookNormalRegularMediumObliqueItalicBoldz Bold Obliquez Bold Italic)NORMALITALICBOLD BOLDITALICzDejaVu Sans Monoz Courier NewMenloc\rSrSrSrSrg)PilNotAvailable4z,When Python imaging library is not availableN__name__ __module__ __qualname____firstlineno____doc____static_attributes__r J/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/formatters/img.pyrr4s6r(rc\rSrSrSrSrg) FontNotFound8z(When there are no usable fonts specifiedr Nr!r r(r)r+r+8s2r(r+cb\rSrSrSrSSjrSrSrSrSr SSjr S r S r S r S rS rSrg) FontManager<z6 Manages a set of fonts: normal, italic, bold, etc... cXlX l0UlSUlSUl[ US5(d$[ RRU5(aC[R"XR5nSUl[HnX0RU'M g[RRS5(a#U(d [UlUR!5 g[RRS5(a#U(d ["UlUR%5 gU(d [&UlUR)5 g)NFreadTwindarwin) font_name font_sizefontsencodingvariablehasattrospathisfiler truetypeSTYLESsysplatform startswithDEFAULT_FONT_NAME_WIN _create_winDEFAULT_FONT_NAME_MAC _create_macDEFAULT_FONT_NAME_NIX _create_nix)selfr4r5fontstyles r)__init__FontManager.__init__As""   9f % % )B)B%%i@D DM$( 5!   << " "5 ) )!6     \\ $ $X . .!6    !6    r(ct[R"SUSU3S/[RSS9nUR5upEURS:XajUR 5nUHSnUR S5(aMUR5R5RS5nU(dMQUs $ gg)Nzfc-listz:style=file)stdoutstderrrsFontconfig warning::) subprocessPopenPIPE communicate returncode splitlinesrAdecodestrip) rHnamerJprocrO_linesliner;s r)_get_nix_font_pathFontManager._get_nix_font_path\stfGE7,CV L'1tE$$&  ??a %%'E??#9::{{}**,22374K   r(cB[SHQnURURU5nUcM$[R"X R 5UR S' O [SURS35eSHn[UHRnURURU5nUcM$[R"X R 5UR U' M` US:XaUR SUR U'MUR SUR U'M g)NrNo usable fonts named: ""rrrrr)r>r_r4r r=r5r6r+)rHrZr;rJ stylenames r)rGFontManager._create_nixjs8$D**4>>4@D'0'9'9$'O 8$ % !9$..9IKL L5E#E] ..t~~yI#(1(:(:4(PDJJu% + L((, 6(:DJJu%(, 8(>@AAr(c"^0n[RR[R"S5S5SS4H2mUR U4Sj[R "T555 M4 [ SHQnURXRU5nUcM$[R"X0R5URS' O [SURS35eS Hn[ UHRnURXRU5nUcM$[R"X0R5URU' M` US :XaURS URU'MURSURU'M g) NHOMEzLibrary/Fonts/z/Library/Fonts/z/System/Library/Fonts/c3*># UHu pUH{nUR5RS5(dM)[RR U5SR5[RR TU54v M} M g7f))ttfttcrN)rjendswithr:r;splitextjoin).0r\filesffont_dirs r) *FontManager._create_mac..sr7#4KAqA779%%n5L!!!$Q'--/h1JKL#4s 1BABrrbrcrdrr)r:r;rugetenvupdatewalkr>rlr4r r=r5r6r+)rHrkrZr;rJrerys @r)rEFontManager._create_macsObii&79IJ*,DFH OO7#%778#47 7F8$D**8^^TJD'0'9'9$'O 8$ % !9$..9IKL L5E#E] ..xS#(1(:(:4(PDJJu% + L((, 6(:DJJu%(, 8(nSRX&=(a SU-U5n[R"X5upUs s $ MI U(a[ SUSUSS35eg![a Mpf=f)N)rz (TrueType)z{}{}{}rhzFont z (rz) not found in registry)format_winreg QueryValueExOSErrorr+) rHkeybasenamestylesfailsuffixrJvalnamevalr\s r) _lookup_winFontManager._lookup_wins)F&ooh8K#e)VTG$11#?FCJ  *"U8*BvaykAX#YZZ s7A++ A98A9cSn[RS4[RS4[RS4[RS4/nUGH"n[R"U6nUR X@R [ SS5n[R"XPR5URS'SHnUR X@R [ U5nU(a/[R"XPR5URU'M\US:XaURSURU'MURSURU'M [R"U5 g U(aUe[S5e![a nUnSnAOSnAff=f[R"U5 GMn![R"U5 f=f![a GMf=f) Nz2Software\Microsoft\Windows NT\CurrentVersion\Fontsz/Software\Microsoft\Windows\CurrentVersion\FontsrTrdrrz$Can't open Windows font registry key)rHKEY_CURRENT_USERHKEY_LOCAL_MACHINEOpenKeyrr4r>r r=r5r6CloseKeyr+r)rH lookuperrorkeynameskeynamerr;rJerrs r)rCFontManager._create_wins //1fg//1cd002gh002deh G oow/*++CAQSWXD+4+=+=dNN+SDJJx(!A#//^^VE]S090B0B40XDJJu-$ 448JJv4F 5 148JJx4H 5 1"B$$S)' :!!FG G$&"%K&$$S)G$$S)  sOG$C3FG FFF9FF9 G9GG G#"G#c$URS5$)z Get the character size. M) get_text_sizerHs r) get_char_sizeFontManager.get_char_sizes!!#&&r(cURSn[US5(aURU5SS$URU5$)z$ Get the text size (width, height). rgetbbox)r6r9rgetsize)rHtextrIs r)rFontManager.get_text_sizesDzz(# 4 # #<<%a* *<<% %r(cU(a8U(a1UR(aURS5$URS$U(a1UR(aURS5$URS$U(a1UR(aURS5$URS$UR(aURS5$URS$)z. Get the font based on bold and italic flags. rrrr)r8 get_styler6)rHboldobliques r)get_fontFontManager.get_fonts G}}~~l33::l+ + }}~~f--::f% % }}~~h//::h' '}}~~h//::h' 'r(cURUn[UHnURU5 Us $ U$![a M*[a Uss $f=f)ze Get the specified style of the font if it is a variable font. If not found, return the normal font. )r6r>set_variation_by_name ValueErrorr)rHrJrI style_names r)rFontManager.get_styles` zz%  -J **:6 (     s6 A AA)r7r4r5r6r8N))F)r"r#r$r%r&rKr_rGrlrErrCrrrrr'r r(r)r.r.<sA6 =(B=: %HN' &(2r(r.c\rSrSrSrSr/SQrS/rSrSr Sr SS jr S r S r S rS rSrSrSrSrSrSrSrSrSrSrSrSrSrg)r ia# Create a PNG image from source code. This uses the Python Imaging Library to generate a pixmap from the source code. .. versionadded:: 0.10 Additional options accepted: `image_format` An image format to output to that is recognised by PIL, these include: * "PNG" (default) * "JPEG" * "BMP" * "GIF" `line_pad` The extra spacing (in pixels) between each line of text. Default: 2 `font_name` The font name to be used as the base font from which others, such as bold and italic fonts will be generated. This really should be a monospace font to look sane. If a filename or a file-like object is specified, the user must provide different styles of the font. Default: "Courier New" on Windows, "Menlo" on Mac OS, and "DejaVu Sans Mono" on \*nix `font_size` The font size in points to be used. Default: 14 `image_pad` The padding, in pixels to be used at each edge of the resulting image. Default: 10 `line_numbers` Whether line numbers should be shown: True/False Default: True `line_number_start` The line number of the first line. Default: 1 `line_number_step` The step used when printing line numbers. Default: 1 `line_number_bg` The background colour (in "#123456" format) of the line number bar, or None to use the style background color. Default: "#eed" `line_number_fg` The text color of the line numbers (in "#123456"-like format). Default: "#886" `line_number_chars` The number of columns of line numbers allowable in the line number margin. Default: 2 `line_number_bold` Whether line numbers will be bold: True/False Default: False `line_number_italic` Whether line numbers will be italicized: True/False Default: False `line_number_separator` Whether a line will be drawn between the line number area and the source code area: True/False Default: True `line_number_pad` The horizontal padding (in pixels) between the line number margin, and the source code area. Default: 6 `hl_lines` Specify a list of lines to be highlighted. .. versionadded:: 1.2 Default: empty list `hl_color` Specify the color for highlighting lines. .. versionadded:: 1.2 Default: highlight color of the selected style img)rIMGpngz*.pngFrc h[(d [S5e[R"U40UD6 SUl[ UR 5UlUR RcSUlOUR RUl[US/SQURSS9Ul [US S 5Ul [US S 5Ul[US S5n[UR!SS5U5UlUR"R%5uUlUlUR!SS5UlUR!SS5Ul[USS 5Ul[1USS5Ul[1USS5Ul[USS5UlSS5Ul[1USS5Ul[USS5Ul[USS5UlUR8(a/UR&UR.-UR6S --Ul OS Ul /Ul![EUS!/5nUH(nURBRG[IU55 M* UR!S"UR RL5=(d S#Ul'/Ul(g![Ja Muf=f)$z5 See the class docstring for explanation of options. z5Python Imaging Library is required for this formatterlatin1Nz#fff image_format)rjpeggifbmpT)normcase image_pad line_padrr5rr4rline_number_fgz#886line_number_bgz#eedline_number_charsline_number_boldFline_number_italicline_number_pad line_numbersline_number_separatorline_number_stepline_number_startrhl_lineshl_colorz#f90)) pil_availablerrrKr7dictrJrbackground_colorrdefault_image_formatrrrrr.rir6rfontwfonthrrrrrrrrrrrline_number_widthrrappendintrhighlight_colorr drawables)rHoptionsfontsize hl_lines_strr^s r)rKImageFormatter.__init__sv}!GI I4+7+  4::& :: & & .$*D !$(JJ$?$?D !* ^%B  % %6%Wk2>#GZ; w R8 ["!=xH !%!9!9!; DJ%kk*:FC%kk*:FC!,W-@!"E ,W-?!H".w/CU#L*74EqI(.$G%1'2I4&Q" +G5G K!,W6I1!M   &*jj43I3I&I&*&:&:Q&>'?D "&'D " #GZ<  D  $$SY/!  J$(JJ$>$>@JCI    s?$J## J10J1c[S5e)NzWThe -S option is meaningless for the image formatter. Use -O style= instead.)NotImplementedError)rHargs r)get_style_defsImageFormatter.get_style_defss!#QR Rr(c4URUR-$)z Get the height of a line. )rrrs r)_get_line_heightImageFormatter._get_line_heightszzDMM))r(c@XR5-UR-$)z( Get the Y coordinate of a line number. )rrrHlinenos r) _get_line_yImageFormatter._get_line_ys--//$..@@r(cUR$)z Get the width of a character. )rrs r)_get_char_widthImageFormatter._get_char_widthszzr(c8XR-UR-$)z/ Get the X coordinate of a character position. )rr)rH linelengths r) _get_char_xImageFormatter._get_char_xsNN*T-C-CCCr(cFURU5URU54$)z< Get the actual position for a character and line position. )rr)rHrrs r) _get_text_posImageFormatter._get_text_poss% +T-=-=f-EEEr(c<URURU54$)z9 Get the actual position for the start of a line number. )rrrs r)_get_linenumber_pos"ImageFormatter._get_linenumber_poss 0 0 899r(c*USb SUS-nU$SnU$)z5 Get the correct color for the token from the style. color#z#000r )rHrJfills r)_get_text_colorImageFormatter._get_text_colors/ > %w'D D r(c*USb SUS-nU$SnU$)z@ Get the correct background color for the token from the style. bgcolorNrr )rHrJbg_colors r)_get_text_bg_color!ImageFormatter._get_text_bg_colors1   'U9--HHr(cFURRUSUS5$)z% Get the correct font for the style. ritalic)r6r)rHrJs r)_get_style_fontImageFormatter._get_style_fonts#zz""5=%/BBr(cURU5UR-URUS-5UR-4$)z Get the required image size. r)rrr)rH maxlinelength maxlinenos r)_get_image_sizeImageFormatter._get_image_sizesB  /$..@  Q/$..@B Br(cURURU5[U5RUR5UR R URUR5URSS9 g)z1 Remember a line number drawable to paint later. NrItext_fgtext_bg) _draw_textrstrrjustrr6rrrr)rHposnors r)_draw_linenumberImageFormatter._draw_linenumbersj   $ $U + K  d44 5$$T%:%:%)%<%<>''  r(c@URRXX4U45 g)z2 Remember a single drawable tuple to paint later. N)rr)rHposrrIr r s r)rImageFormatter._draw_texts s$ABr(c S=n=p4S=pVUGHDupxXpR;aURnXpR;aMURUn URS5nURS5n [ U 5HupU R S5n U (aUR URXb5U URU 5URU 5URU 5S9 URRU 5upXn- n[XV5nU[U 5- n[XC5nU RS5(dMSnSnUS- nM GMG XPlX@lX lg)z) Create drawables for the token content. rrT r rN)rparent expandtabsrW enumeraterstriprrrrrr6rmaxlenrsr maxcharnor)rH tokensourcercharnorrrttypevaluerJr]ir^temp temp_widthr\s r)_create_drawables ImageFormatter._create_drawablessX'(''%&& 'LE{{* {{*KK&E$$Q'E$$T*E$U+{{4(OO**:>#33E:"&"6"6u"="&"9"9%"@ $%)JJ$<$29L9LI M r(c URU5 UR5 [R"SUR UR UR 5UR5nURU5 [R"U5nUR(aURUR-UR- S-nUR5nUR SU- nURH:nUR#US- 5n UR%XY4XW-X-4/UR&S9 M< UR(HuppnU(aa[+US5(aUR-XS9nOU R/U 5SSnUR%U SU SU SUS-U SUS-/US9 UR1XXS 9 M UR3X R4R755 g) z Format ``tokensource``, an iterable of ``(tokentype, tokenstring)`` tuples and write it into ``outfile``. This implementation calculates where it should draw each token on the pixmap, then calculates the required pixmap size and draws the items. RGBrrr1textsize)rrIrN)rIr)r'r-rnewrrrrr9r r2rrrrrr3rr4rrr9r=rrsaverupper)rHr outfiler5r6xr7r8 linenumberyrr#rIr r  text_sizes r)rImageFormatter.format^s {+ ! YY   !3!3T^^ D  ! !  ""2&~~b! ==!7!77$:N:NNQRRA))+EGGAJNE"mm $$Z!^4AI(>?$(MM3,37.. .Cw4,, $ 5 DI $ U 3AB 7IAAA10Es1vPYZ[P\G\]dkl IIctI :3A **0023r()rrr7rr6rrrrrrrrrrrrrrrrrrrrrN)r)r"r#r$r%r&rZaliases filenames unicodeoutputrrKrrrrrrrrrrrrrr'r-r9rr'r r(r)r r sl^ D#G IM 6pR* A  D F : C B  C & P ,"#4r(r c,\rSrSrSrSrS/rS/rSrSr g)r iz Create a GIF image from source code. This uses the Python Imaging Library to generate a pixmap from the source code. .. versionadded:: 1.0 img_gifrz*.gifr N r"r#r$r%r&rZrGrHrr'r r(r)r r s" DgG I r(r c.\rSrSrSrSrSS/rS/rSrSr g) r iz Create a JPEG image from source code. This uses the Python Imaging Library to generate a pixmap from the source code. .. versionadded:: 1.0 img_jpgjpgrz*.jpgr NrLr r(r)r r s$ DfoG I!r(r c.\rSrSrSrSrSS/rS/rSrSr g) riz Create a bitmap image from source code. This uses the Python Imaging Library to generate a pixmap from the source code. .. versionadded:: 1.0 img_bmprbitmapz*.bmpr NrLr r(r)rrs% DhG I r(r) r&r:r?pygments.formatterr pygments.utilrrrrrRPILrr r r ImportErrorrwinreg__all__r>rFrBrDr Exceptionr+r.r r r rr r(r)rZs (//M  Gh'(!=1  +%7k7393OOds4Ys4r ! ! " " ! !YM  s: BB&B#"B#&C-B33B?;C>B??C