
    Mi&                     2    S SK r S SKrSSKJrJrJr  SS jrg)    N   )	HTML2Text__version__configc            
         Sn  " S S5      n[         R                  " 5       nUR                  SS[        R                  SS9  UR                  SS	S
[        R
                  SS9  UR                  SSS[        R                  SS9  UR                  SSS
[        R                  SS9  UR                  SSS
[        R                  SS9  UR                  SSS
[        R                  SS9  UR                  SSS[        R                  SS9  UR                  SSS
[        R                  SS9  UR                  S S
S![        R                  S"S#9  UR                  S$S%S
[        R                  S&S9  UR                  S'S(S
[        R                  S)S9  UR                  S*S+S
[        R                  S,S9  UR                  S-S.S
[        R                   S/S9  UR                  S0S1S
[        R"                  S2S9  UR                  S3S4S
S5S6S7S#9  UR                  S8S9S
S:S6S;S#9  UR                  S<S=S
S>S6S?S#9  UR                  S@SASB[$        [        R&                  SCSD9  UR                  SESFSG[$        [        R(                  SHSD9  UR                  SISJS
SKS6SLS#9  UR                  SMS
SNS6SOS#9  UR                  SPS
SQ[        R*                  SRS#9  UR                  SSS
ST[        R,                  SUS#9  UR                  SVS
SW[        R.                  SXS#9  UR                  SYS
SZ[        R0                  S[S#9  UR                  S\SS][        R2                  S^S#9  UR                  S_SS`[        R4                  SaS#9  UR                  SbS
Sc[        R6                  SdS#9  UR                  SeS
Sf[        R8                  SgS#9  UR                  ShSi[        R:                  SjS9  UR                  SkSl[        R<                  SmS9  UR                  SnSo[        R>                  SpS9  UR                  SqSrSsRA                  [C        [D        [F        5      5      St9  UR                  SuSvSw9  UR                  SxSvSySz9  UR                  S{S|S
[        RH                  S}S9  URK                  5       nURL                  (       a@  URL                  S~:w  a0  [O        URL                  S5       nURQ                  5       nS S S 5        O([R        RT                  RV                  RQ                  5       n WRY                  URZ                  UR\                  5      n[i        U S9n	URj                  (       a  S~U	l6        URn                  (       a  SU	l8        SU	l9        URt                  U	l:        URv                  U	l<        URz                  U	l=        UR|                  U	l>        UR~                  U	l?        UR                  U	l@        UR                  U	lA        UR                  U	lB        UR                  U	lC        UR                  U	lD        UR                  U	lE        UR                  U	lF        UR                  U	lG        UR                  U	lH        UR                  U	lI        UR                  U	lJ        UR                  U	lK        UR                  U	lL        UR                  U	lM        UR                  U	lN        UR                  U	lO        UR                  U	lP        UR                  U	lQ        UR                  U	lR        UR                  U	lS        UR                  U	lT        UR                  U	lU        UR                  U	lV        UR                  U	lW        UR                  U	lX        [R        R                  R                  U	R                  U5      5        g ! , (       d  f       GN= f! [^         aU  nUR`                  S-   URb                  -   nUSURd                  -   -  nUSURb                  -   S-   -  n[g        U5        UeS nAff = f)N c                   4    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rg)main.<locals>.bcolors
   z[95mz[94mz[92mz[93mz[91mz[0mz[1mz[4m N)__name__
__module____qualname____firstlineno__HEADEROKBLUEOKGREENWARNINGFAILENDCBOLD	UNDERLINE__static_attributes__r       p/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/crawl4ai/html2text/cli.pybcolorsr
   
   s*    	r   r   z--default-image-altdefault_image_altz3The default alt string for images with missing ones)destdefaulthelpz--pad-tables
pad_tables
store_truez-pad the cells to equal column width in tables)r   actionr   r    z--no-wrap-links
wrap_linksstore_falsez"don't wrap links during conversionz--wrap-list-itemswrap_list_itemsz!wrap list items during conversionz--wrap-tableswrap_tableszwrap tablesz--ignore-emphasisignore_emphasisz)don't include any formatting for emphasisz--reference-linksinline_linksz1use reference style links instead of inline linksz--ignore-linksignore_linksz&don't include any formatting for linksz--ignore-mailto-linksignore_mailto_linkszdon't include mailto: links)r#   r   r   r    z--protect-linksprotect_linkszCprotect links from line breaks surrounding them with angle bracketsz--ignore-imagesignore_imagesz'don't include any formatting for imagesz--images-as-htmlimages_as_htmlzWAlways write image tags as raw html; preserves `height`, `width` and `alt` if possible.z--images-to-altimages_to_altz&Discard image data, only keep alt textz--images-with-sizeimages_with_sizezMWrite image tags with height and width attrs as raw html to retain dimensionsz-gz--google-doc
google_docFz(convert an html-exported Google Documentz-dz--dash-unordered-listul_style_dashz6use a dash rather than a star for unordered list itemsz-ez--asterisk-emphasisem_style_asteriskz=use an asterisk rather than an underscore for emphasized textz-bz--body-width
body_widthz3number of characters per output line, 0 for no wrap)r   typer   r    z-iz--google-list-indentlist_indentz,number of pixels Google indents nested listsz-sz--hide-strikethroughhide_strikethroughzDhide strike-through text. only relevant when -g is specified as wellz--escape-allescape_snobzbEscape all special characters.  Output is less readable, but avoids corner case formatting issues.z--bypass-tablesbypass_tablesz2Format tables in HTML rather than Markdown syntax.z--ignore-tablesignore_tableszAIgnore table-related tags (table, th, td, tr) while keeping rows.z--single-line-breaksingle_line_breakzhUse a single line break after a block element rather than two line breaks. NOTE: Requires --body-width=0z--unicode-snobunicode_snobzUse unicode throughout documentz--no-automatic-linksuse_automatic_linksz.Do not use automatic links wherever applicablez--no-skip-internal-linksskip_internal_linkszDo not skip internal linksz--links-after-paralinks_each_paragraphz2Put links after each paragraph instead of documentz--mark-code	mark_codez.Mark program code blocks with [code]...[/code]z--decode-errorsdecode_errorszZWhat to do in case of decode errors.'ignore', 'strict' and 'replace' are acceptable valuesz--open-quote
open_quotez!The character used to open quotesz--close-quoteclose_quotez"The character used to close quotesz	--versionversion.)r#   rD   filename?)nargsencodingzutf-8)rH   r   z--include-sup-subinclude_sup_subzInclude the sup and sub tags-rbzWarning:z	 Use the z--decode-errors=ignorez flag.)baseurl*__)\argparseArgumentParseradd_argumentr   DEFAULT_IMAGE_ALT
PAD_TABLES
WRAP_LINKSWRAP_LIST_ITEMSWRAP_TABLESIGNORE_EMPHASISINLINE_LINKSIGNORE_ANCHORSIGNORE_MAILTO_LINKSPROTECT_LINKSIGNORE_IMAGESIMAGES_AS_HTMLIMAGES_TO_ALTIMAGES_WITH_SIZEint
BODY_WIDTHGOOGLE_LIST_INDENTBYPASS_TABLESIGNORE_TABLESSINGLE_LINE_BREAKUNICODE_SNOBUSE_AUTOMATIC_LINKSSKIP_INTERNAL_LINKSLINKS_EACH_PARAGRAPH	MARK_CODEDECODE_ERRORS
OPEN_QUOTECLOSE_QUOTEjoinmapstrr   INCLUDE_SUP_SUB
parse_argsrF   openreadsysstdinbufferdecoderI   rA   UnicodeDecodeErrorr   r   r   printr   r2   ul_item_markr3   emphasis_markstrong_markr4   r6   google_list_indentr(   r*   r+   r,   r-   r.   r/   r0   r1   r7   r8   r9   r:   r;   r)   r<   r=   r>   r?   r@   r$   r&   r'   r!   r   rB   rC   rJ   stdoutwritehandle)
rM   r   pargsfpdatahtmlerrwarninghs
             r   mainr      s>   G  	!ANN ((B	   NN!!<   NN!!1   NN&&0   NN""   NN&&8   NN##@   NN%%5   NN"***   NN$$R   NN$$6   NN%%!  	 NN$$5   NN''  	 NN7   NNE   NN L   NN!!B   NN));   NN!V   NN-  	 NN$$A   NN$$S   NN ((4  	 NN##.   NN"**=   NN""**)   NN#++A   NN  =   NN$$    NN!!0	   NN""1	   NNIsxxC8M/N   NN:SN)NN:S'N:NN&&+   <<>D}}#-$--&"779D '& yy$$&{{4==$*<*<= 	'"A??AL++A,,A&&AN 44A((AO((AO**A((AO..A??AL22A$$AM((AO((AO00A&&AN&&AN 44A 44A!66A..AK??AL,,A$$AM??AL00A??AL$$AM,,AJJQXXd^$k '&  //J.=;00+gll:XEEg	s%   ^&^) 
^&)
`3A``)returnN)rP   rv   r   r   r   r   r   r   r   r   <module>r      s     
 , ,C%r   