ó ö«‰]c@sùdZdZddlZddlZddlZddlZddlmZmZmZddl m Z ddl m Z ej ejjejƒdƒejjejjeƒdƒƒZd „Zd e jfd „ƒYZd e jfd „ƒYZdS(s S5/HTML Slideshow Writer. treStructuredTextiÿÿÿÿN(tfrontendtnodestutils(t html4css1(t directivestdummytthemescCsGtjjt|ƒ}tjj|ƒsCtjd||fƒ‚n|S(Ns(Theme directory not found: %r (path: %r)(tostpathtjointthemes_dir_pathtisdirtdocutilstApplicationError(tnameR ((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyt find_themes tWritercBsleZejjddddgidd6dd6dd6fd d gid d6d d6fd dgidd6ejd6fddgidd6dd6fddgiddgd6dd6dd6fddgidd6ed6ejd6fdd gid!d6dd6fd"d#gidd6ejd6fd$d%gid&d6dd6ff fZid'd(6Zd)Z d-Z d,„Z RS(.sS5 Slideshow Specific OptionssŒFor the S5/HTML writer, the --no-toc-backlinks option (defined in General Docutils Options above) is the default, and should not be changed.sBSpecify an installed S5 theme by name. Overrides --theme-url. The default theme name is "default". The theme files will be copied into a "ui/" directory, in the same directory as the destination file (output HTML). Note that existing theme files will not be overwritten (unless --overwrite-theme-files is used).s--themetdefaultstmetavart theme_urlt overridessSpecify an S5 theme URL. The destination file (output HTML) will link to this theme; nothing will be copied. Overrides --theme.s --theme-urlstthemes{Allow existing theme files in the ``ui/`` directory to be overwritten. The default is not to overwrite theme files.s--overwrite-theme-filest store_truetactiont validatorsfKeep existing theme files in the ``ui/`` directory; do not overwrite any. This is the default.s--keep-theme-filestoverwrite_theme_filestdestt store_falses@Set the initial view mode to "slideshow" [default] or "outline".s --view-modet slideshowtoutlinetchoicesssONormally hide the presentation controls in slideshow mode. This is the default.s--hidden-controlss^Always show the presentation controls in slideshow mode. The default is to hide the controls.s--visible-controlsthidden_controlssMEnable the current slide indicator ("1 / 15"). The default is to disable it.s--current-slides:Disable the current slide indicator. This is the default.s--no-current-slidet current_slideit toc_backlinksss5_html writertwritersshtml4css1 writercCstjj|ƒt|_dS(N(RRt__init__tS5HTMLTranslatorttranslator_class(tself((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR$Xs(R#shtml4css1 writer( t__name__t __module__RRt settings_specRtvalidate_booleantTruetsettings_default_overridestconfig_sectiontconfig_section_dependenciesR$(((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR#sJ     R%cBs¥eZdZdZdZdZdZdZdZeeZ d„Z d„Z d„Z e jdƒZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sœ sA
Rt__base__s slides.csss outline.csss print.csss opera.csss slides.jss s5-core.csss framing.csss pretty.csss blank.gifs iepngfix.htccGsÑtjj||Œd|_|jƒ|jjj}d|jjj }|j j |j i|jd6|d6|d6ƒ|jjj sœ|j j |jƒn|jdƒg|_g|_d|_d|_dS( NtvisiblethiddenR t view_modetcontrol_visibilitys) i(R1R2(RtHTMLTranslatorR$tNonettheme_file_patht setup_themetdocumenttsettingsR3R t stylesheettappendts5_stylesheet_templateR!tdisable_current_slidetadd_metat s5_footert s5_headert section_countttheme_files_copied(R'targsR3R4((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR$˜s         cCsS|jjjr|jƒn3|jjjr@|jjj|_ntjdƒ‚dS(Ns&No theme specified for S5/HTML writer.(R9R:Rt copy_themeRR7R R(R'((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR8¬s  c Cs…|jj}t|jƒ}|g}i|_i}dd|jf|_|jr¡tjj tjj |jƒd|jƒ}tjj |ƒs¥tj |ƒq¥ndSt }xO|rüx]tj|ƒD]L}||jkrßqÄn|j|||ƒrÄ||jkrÄd||s

theaderttitletfooters
tslidetclassestslide0tidstdivs
iÿÿÿÿ( t head_prefixtextendtdoctypethead_prefix_templateR:t language_codet html_prologR<tmetatinsertt content_typetoutput_encodingtheadt math_headert math_outputR;t html_headtfragmenttbodyR RAR@t html_titleRjtlayout_templatet body_prefixtstarttagRBt body_suffixt html_bodytbody_pre_docinfotdocinfo(R'tnodeRzR|R{tlayout((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pytdepart_documents6     '  cCsT|jjƒ}|jjdƒ|jj|j|ƒ|jjdƒ|j|3dS(Ns

s

(tcontexttpopR@R<RƒR‘(R'Rštstart((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyt depart_footer9s cCsW|jjƒ}dg}|j|j|ƒ|jdƒ|j|3|jj|ƒdS(Ns (RRžRƒR‘R<RA(R'RšRŸRz((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyt depart_header@s    cCs”|js|jjdƒn|jd7_|jd7_|jdkrn|jj|j|dddƒƒn"|jj|j|dddƒƒdS(Ns iRtCLASStsectionR}(RBR‘R<t section_levelR•(R'Rš((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyt visit_sectionHs %cCs•t|jtjƒr~|j|jd}|dkr>d}nd|}|jj|j||dƒƒ|j jd|ƒnt j j ||ƒdS(Niish%sRys ( t isinstancetparentRR£R¤tinitial_header_levelR‘R<R•RRR5tvisit_subtitle(R'Rštlevelttag((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR©Ss   cCstjj||ƒdS(N(RR5t visit_title(R'Rš((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR¬^s(s slides.csss outline.csss print.csss opera.csss slides.js(s s5-core.csss framing.csss pretty.csss blank.gifs iepngfix.htc(R(R)R=R>R“RURMtdirect_theme_filestindirect_theme_filesROR$R8REtretcompileRcRNRœR R¡R¥R©R¬(((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyR%]s&    @ "   (t__doc__t __docformat__RoRR¯R RRRtdocutils.writersRtdocutils.parsers.rstRt relative_pathR R tgetcwdRIt__file__R RRR5R%(((sC/tmp/pip-build-Q8jF4w/docutils/docutils/writers/s5_html/__init__.pyts    $ :