From ff175387b33c92ed344b433b90bbac7a0c3fe6fd Mon Sep 17 00:00:00 2001 From: Andrea Gavana Date: Sat, 7 Apr 2012 21:00:39 +0000 Subject: [PATCH] Phoenix: Add support for documenting wx.lib, wx.py and wx.tools (that's the whole wxPython/Phoenix documentation) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 45 +- docs/sphinx/_downloads/i18nwxapp/app_base.py | 15 +- docs/sphinx/_downloads/i18nwxapp/app_const.py | 16 + .../i18nwxapp/{i18ntools => }/geni18n.py | 28 +- .../i18nwxapp/i18ntools/i18nwxapp.pot | 73 -- .../sphinx/_downloads/i18nwxapp/i18nwxapp.zip | Bin 8916 -> 9062 bytes .../_downloads/i18nwxapp/locale/I18Nwxapp.pot | 73 ++ .../images/overviews/htmlcell_descent.png | Bin 0 -> 1984 bytes .../images/overviews/htmlcontcell_alignv.png | Bin 0 -> 1425 bytes .../images/overviews/htmlcontcell_indent.png | Bin 0 -> 6488 bytes .../images/overviews/htmlwin_border.png | Bin 0 -> 3256 bytes .../images/overviews/overview_html_cont.png | Bin 0 -> 7557 bytes .../overviews/overview_html_contbox.png | Bin 0 -> 3592 bytes .../images/overviews/overview_html_hello.png | Bin 0 -> 1699 bytes docs/sphinx/_templates/main.html | 4 + .../overviews/html_overview.rst | 646 ++++++++++++++++++ .../rest_substitutions/overviews/index.rst | 3 + .../overviews/internationalization.rst | 60 +- .../python/converted/ContextHelp.1.py | 2 + .../HelpControllerBase.SetViewer.1.py | 4 + etgtools/sphinx_generator.py | 4 +- sphinxtools/constants.py | 32 + sphinxtools/librarydescription.py | 229 ++++++- sphinxtools/modulehunter.py | 10 +- 24 files changed, 1105 insertions(+), 139 deletions(-) create mode 100644 docs/sphinx/_downloads/i18nwxapp/app_const.py rename docs/sphinx/_downloads/i18nwxapp/{i18ntools => }/geni18n.py (73%) delete mode 100644 docs/sphinx/_downloads/i18nwxapp/i18ntools/i18nwxapp.pot create mode 100644 docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot create mode 100644 docs/sphinx/_static/images/overviews/htmlcell_descent.png create mode 100644 docs/sphinx/_static/images/overviews/htmlcontcell_alignv.png create mode 100644 docs/sphinx/_static/images/overviews/htmlcontcell_indent.png create mode 100644 docs/sphinx/_static/images/overviews/htmlwin_border.png create mode 100644 docs/sphinx/_static/images/overviews/overview_html_cont.png create mode 100644 docs/sphinx/_static/images/overviews/overview_html_contbox.png create mode 100644 docs/sphinx/_static/images/overviews/overview_html_hello.png create mode 100644 docs/sphinx/rest_substitutions/overviews/html_overview.rst create mode 100644 docs/sphinx/rest_substitutions/snippets/python/converted/ContextHelp.1.py create mode 100644 docs/sphinx/rest_substitutions/snippets/python/converted/HelpControllerBase.SetViewer.1.py diff --git a/build.py b/build.py index 5e8ccd46..baa96d52 100755 --- a/build.py +++ b/build.py @@ -68,8 +68,9 @@ Usage: ./build.py [command(s)] [options] SIP files sphinx Run the documentation building process using Sphinx (this needs to be done after dox and etg) - wxlib Run the documentation building process using Sphinx for - wx.lib (and possibly other pure-Python modules/packages) + wxlib Run the documentation building process using Sphinx for wx.lib + wxpy Run the documentation building process using Sphinx for wx.py + wxtools Run the documentation building process using Sphinx for wx.tools sip Run sip test Run the unit test suite test_* Run just one test module @@ -125,7 +126,7 @@ def main(args): elif cmd in ['dox', 'doxhtml', 'etg', 'sip', 'touch', 'test', 'build_wx', 'build_py', 'setup_py', 'waf_py', 'build', 'bdist', 'clean', 'clean_wx', 'clean_py', 'cleanall', 'clean_sphinx', - 'sphinx', 'wxlib']: + 'sphinx', 'wxlib', 'wxpy', 'wxtools']: function = globals()[cmd] function(options, args) else: @@ -598,7 +599,7 @@ def sphinx(options, args): def wxlib(options, args): from sphinxtools.modulehunter import ModuleHunter - cmdTimer = CommandTimer('wxlib') + cmdTimer = CommandTimer('wx.lib') pwd = pushDir(phoenixDir()) libDir = os.path.join(phoenixDir(), 'wx', 'lib') @@ -612,6 +613,42 @@ def wxlib(options, args): ModuleHunter(init_name, import_name, version) + +def wxpy(options, args): + from sphinxtools.modulehunter import ModuleHunter + + cmdTimer = CommandTimer('wx.py') + pwd = pushDir(phoenixDir()) + + libDir = os.path.join(phoenixDir(), 'wx', 'py') + + if not os.path.isdir(libDir): + raise Exception('Missing wx.py folder in the distribution') + + init_name = os.path.join(libDir, '__init__.py') + import_name = 'py' + version = version3 + + ModuleHunter(init_name, import_name, version) + + +def wxtools(options, args): + from sphinxtools.modulehunter import ModuleHunter + + cmdTimer = CommandTimer('wx.tools') + pwd = pushDir(phoenixDir()) + + libDir = os.path.join(phoenixDir(), 'wx', 'tools') + + if not os.path.isdir(libDir): + raise Exception('Missing wx.tools folder in the distribution') + + init_name = os.path.join(libDir, '__init__.py') + import_name = 'tools' + version = version3 + + ModuleHunter(init_name, import_name, version) + def sip(options, args): cmdTimer = CommandTimer('sip') diff --git a/docs/sphinx/_downloads/i18nwxapp/app_base.py b/docs/sphinx/_downloads/i18nwxapp/app_base.py index d68fb740..567b8284 100644 --- a/docs/sphinx/_downloads/i18nwxapp/app_base.py +++ b/docs/sphinx/_downloads/i18nwxapp/app_base.py @@ -26,6 +26,8 @@ def _displayHook(obj): import __builtin__ __builtin__.__dict__['_'] = wx.GetTranslation +import app_const as appC + from wx.lib.mixins.inspection import InspectionMixin class BaseApp(wx.App, InspectionMixin): @@ -35,13 +37,6 @@ class BaseApp(wx.App, InspectionMixin): sys.displayhook = _displayHook self.appName = "I18N sample application" - # define the translation domain, the name has to match your .mo files - self.langDomain = "I18Nwxapp" - # languages you want to support - self.supLang = {u"en": wx.LANGUAGE_ENGLISH, - u"fr": wx.LANGUAGE_FRENCH, - u"de": wx.LANGUAGE_GERMAN, - } self.doConfig() @@ -89,8 +84,8 @@ class BaseApp(wx.App, InspectionMixin): """ # if an unsupported language is requested default to English - if lang in self.supLang: - selLang = self.supLang[lang] + if lang in appC.supLang: + selLang = appC.supLang[lang] else: selLang = wx.LANGUAGE_ENGLISH @@ -101,7 +96,7 @@ class BaseApp(wx.App, InspectionMixin): # create a locale object for this language self.locale = wx.Locale(selLang) if self.locale.IsOk(): - self.locale.AddCatalog(self.langDomain) + self.locale.AddCatalog(appC.langDomain) else: self.locale = None diff --git a/docs/sphinx/_downloads/i18nwxapp/app_const.py b/docs/sphinx/_downloads/i18nwxapp/app_const.py new file mode 100644 index 00000000..95095afc --- /dev/null +++ b/docs/sphinx/_downloads/i18nwxapp/app_const.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*-# +# +# Author: Werner F. Bruhin +# Purpose: Application constants +# Created: 06/04/2012 + +import wx + +# language domain +langDomain = "I18Nwxapp" +# languages you want to support +supLang = {u"en": wx.LANGUAGE_ENGLISH, + u"fr": wx.LANGUAGE_FRENCH, + u"de": wx.LANGUAGE_GERMAN, + } diff --git a/docs/sphinx/_downloads/i18nwxapp/i18ntools/geni18n.py b/docs/sphinx/_downloads/i18nwxapp/geni18n.py similarity index 73% rename from docs/sphinx/_downloads/i18nwxapp/i18ntools/geni18n.py rename to docs/sphinx/_downloads/i18nwxapp/geni18n.py index 650184d3..449d5668 100644 --- a/docs/sphinx/_downloads/i18nwxapp/i18ntools/geni18n.py +++ b/docs/sphinx/_downloads/i18nwxapp/geni18n.py @@ -1,13 +1,14 @@ # -*- coding: utf-8 -*-# #!/usr/bin/env python """ -This will generate the .pot and .mo files for the application domain and languages defined below. +This will generate the .pot and .mo files for the application domain and +languages defined below. The .po and .mo files are placed as per convention in "appfolder/locale/lang/LC_MESSAGES" -The .pot file is placed in the current folder. +The .pot file is placed in the locale folder. This script or something similar should be added to your build process. @@ -18,16 +19,19 @@ catalog. """ -domainName = 'i18nwxapp' -# define the languages you are supporting and need translation, so if texts -# in your source are English then you don't need 'en' here -supLang = ['fr', 'de'] +import app_const as appC + +# we remove English as source code strings are in English +supportedLang = [] +for l in appC.supLang: + if l != u"en": + supportedLang.append(l) import os import sys import subprocess -appFolder, loc = os.path.split(os.getcwd()) +appFolder = os.getcwd() # setup some stuff to get at Python I18N tools/utilities @@ -37,12 +41,12 @@ pyToolsFolder = os.path.join(pyFolder, 'Tools') pyI18nFolder = os.path.join(pyToolsFolder, 'i18n') pyGettext = os.path.join(pyI18nFolder, 'pygettext.py') pyMsgfmt = os.path.join(pyI18nFolder, 'msgfmt.py') -outFolder = os.getcwd() +outFolder = os.path.join(appFolder, 'locale') # build command for pygettext gtOptions = '-a -d %s -o %s.pot -p %s %s' -tCmd = pyExe + ' ' + pyGettext + ' ' + (gtOptions % (domainName, - domainName, +tCmd = pyExe + ' ' + pyGettext + ' ' + (gtOptions % (appC.langDomain, + appC.langDomain, outFolder, appFolder)) print "Generating the .pot file" @@ -50,10 +54,10 @@ print "cmd: %s" % tCmd rCode = subprocess.call(tCmd) print "return code: %s\n\n" % rCode -for tLang in supLang: +for tLang in supportedLang: # build command for msgfmt langDir = os.path.join(appFolder, ('locale\%s\LC_MESSAGES' % tLang)) - poFile = os.path.join(langDir, domainName + '.po') + poFile = os.path.join(langDir, appC.langDomain + '.po') tCmd = pyExe + ' ' + pyMsgfmt + ' ' + poFile print "Generating the .mo file" diff --git a/docs/sphinx/_downloads/i18nwxapp/i18ntools/i18nwxapp.pot b/docs/sphinx/_downloads/i18nwxapp/i18ntools/i18nwxapp.pot deleted file mode 100644 index 14cb9a8c..00000000 --- a/docs/sphinx/_downloads/i18nwxapp/i18ntools/i18nwxapp.pot +++ /dev/null @@ -1,73 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR ORGANIZATION -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-04-05 12:12+Paris, Madrid (heure d’été)\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=CHARSET\n" -"Content-Transfer-Encoding: ENCODING\n" -"Generated-By: pygettext.py 1.5\n" - - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:17 -msgid "The I18N sample application" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:28 -msgid "Close" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:29 -msgid "Close the application" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:31 -msgid "&File" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:36 -msgid "Edit something" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:37 -msgid "Edit an entry of something" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:40 -msgid "&Edit" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:45 -msgid "&About" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:46 -msgid "About the program" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:48 -msgid "&Help" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:58 -msgid "A nice label for the TextCtrl" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:62 -msgid "a search control" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:68 -msgid "Open a file dialog" -msgstr "" - -#: h:\devProjectsT\PhoenixI18N\i18nwxapp\sampleapp.py:80 -msgid "Choose a file" -msgstr "" - diff --git a/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip b/docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip index 3522adc7d00d0808c05914961b59e8bcb278cc4f..b3f210d67f2c8fea8f19b78b41c8da23762b6359 100644 GIT binary patch delta 3704 zcmZvf2T;>X*TzE#9RwltBA`f30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~|@>!Flhqajlaka4}8QkMkRn$?zxBXl!N0LwA z5Z1-io{e2;Ynp{^f^luUq)pZ!Q{Ayc#&*Ub;FT|_&cV!maO8&e@IsEOoN1#NRcobu zJi~DDv0bI5vm4~#TW8<%n?*MU)pN&vzp+gh%(YlGR9~2S>uR5H-}rKn%l1#cNy?;K(QeF-~3(D8e&16yx)MXf4j#3_^1i1Y)DrKWJw} Ip?+!q0{AOC>Hq)$ diff --git a/docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot b/docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot new file mode 100644 index 00000000..3f37ba07 --- /dev/null +++ b/docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot @@ -0,0 +1,73 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR ORGANIZATION +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2012-04-07 10:49+Paris, Madrid (heure d’été)\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: ENCODING\n" +"Generated-By: pygettext.py 1.5\n" + + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:17 +msgid "The I18N sample application" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:28 +msgid "Close" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:29 +msgid "Close the application" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:31 +msgid "&File" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:36 +msgid "Edit something" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:37 +msgid "Edit an entry of something" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:40 +msgid "&Edit" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:45 +msgid "&About" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:46 +msgid "About the program" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:48 +msgid "&Help" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:58 +msgid "A nice label for the TextCtrl" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:63 +msgid "a search control" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:70 +msgid "Open a file dialog" +msgstr "" + +#: h:\devProjectsT\Phoenix\docs\sphinx\_downloads\i18nwxapp\sampleapp.py:82 +msgid "Choose a file" +msgstr "" + diff --git a/docs/sphinx/_static/images/overviews/htmlcell_descent.png b/docs/sphinx/_static/images/overviews/htmlcell_descent.png new file mode 100644 index 0000000000000000000000000000000000000000..af6278c2c21e429471ab576fc5977577c906a9f8 GIT binary patch literal 1984 zcmV;x2S50UP)Px#Fi=cXMFRr`jg5=V%*~%HKK@p4{{H;@lcN0-H~i4oN=ZpQIXwKZytcHp{6b%F zaB}{4igsA8VgLXKK1oDDRCwC$nn7sWRv5>fK_N9IltK?1I}Cv!>%3DBqj$UM#jF+n zY&DYW%iI)7PL1<2j0p>QNk^KlrHtZGN;(*3w^#)50RzYsU}X~z6n!`V%O!yP41ks; z!vR=*0g#yiC8dzzc>n=wLjahXU9BvYc1v^K1y{U;(l$59>O7x3LNGrlRXQ9a19t7-vKIIx#L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Pj0WX#MSyP$xwAu1Cv2xJ<*KJs%R$rCVy zh!rBw>v^gxc>)Hp|C>60b3)Bmxsb#O7zELN*W6U=JgCde| f0tR%DPZjwW)j6z+jtMk#00000NkvXXu0mjflW~x{ literal 0 HcmV?d00001 diff --git a/docs/sphinx/_static/images/overviews/htmlcontcell_indent.png b/docs/sphinx/_static/images/overviews/htmlcontcell_indent.png new file mode 100644 index 0000000000000000000000000000000000000000..45ff3e774f09f6c1d9a70093d18f3fd6252072a8 GIT binary patch literal 6488 zcmV-e8K>rnP)Px#Fi=cXMK3QcS(UNP*ORuOZWdnXFTCrj4nd*_{d&hLEObI`R$POMJe#YPX*gv{cy=zPn@Q#0re-{7?>X~@KwkNi`Q(gHB_?Snx zQ@iU32Rv@6$Aj*6cY8wog0YWz^mYmvLm)^)`CX7S@)tP4w!54PL-f5KQQY-T%_HA= zdI+vT(@W)r3m_)|zy4Sm1WyPtO9;jJ^9KM;zhD4tA2K#|D8`Y~eV<1?1R%#B<&Lrl z@HK}2@Bx4NQ1JgFS%85W3NlgzOrVtkLnch{mwX5~3z&K9j*rMB7sO7{ilF2)gE$8Q zVz;{=0Yv7fD0ez#ho4Pk%YYyNCFSZ2w!5g*`JSV%4k`%X18Je*K^HJX29R<9^bn}6 z%!=i5xm1SjQn4c5Xp~D|z;>lv=AVi88{%W}#j87qkv2 z(hUJzG7`2@Pm;Z4zS&x-iSIO%z54D}J4s$L@&1oZ@iBitNs_rFsm&zGh1Pq%Q~X+p z0Vskv3vST@3nXd?!!2Q1}+fSFy^I@xbMsmU+!1I={W2|THB0$NW5 zeNvJ5`}3I0w8Ri-wrV^#n#j#uihxPW=>j^qq%t6ffFGf?awLX8pXp}OPT1u|!dUA? z@~qibq{8I|cABl{Ov@D(CKN-#p3cEvg&eS^TakbY2MlFQoGBlIR-?#i;F1rU$)h?; zc9X9YERB|8B*4G@MxXS9Ipiou`M9LT;s$(cA zZd9w)nvxAmoOm+L-`73>BW!;V06P9-8i@FL3V^aWAeB}615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c!Asb4^m~@fR9}nLkw7iSfsnB-eC)=fB$$cS z(_{na1aTztYsBj9$^iMsNTsKQng)#}p6(zoAQ4x|ITc+0Uvi)_uUVg*fqEKD`rZO= O4t2Pu>IdbgsQ&_|Q2s;! literal 0 HcmV?d00001 diff --git a/docs/sphinx/_static/images/overviews/overview_html_contbox.png b/docs/sphinx/_static/images/overviews/overview_html_contbox.png new file mode 100644 index 0000000000000000000000000000000000000000..fb17984c54470edcd1b8b3b8271512e96b6854b2 GIT binary patch literal 3592 zcmY*ccQ_kd+fR+OMyOFEL~TlqR?L(l_NG>2KCKZHwRx_fB=eo}Mop>`7T@XE(9smG<^!2nX001f^0C2&c ziuxS65cBHf_Yh#As|lzc;9WUa7|o0rC}LLrsUgI zuSu{z(~y{|rP(Yk=4y4TE>SWQH|hnl3V+C=))t9lJ)jzcws?0Em1R{6BT zrY$-s<{JmJLqQBWh|vrm!Ns`IBTla)@VDSzKY5f&(nFct8e)5c0|j=z{KbkNCligz zAUk>Yp>iy(Jl=X9G;F6`dAb@r4-5h>Nx!?cM8~U6T^HcC<5D`kC;4Mjm-=F^cyxq% z-2;IbP=3DL>1XI`QI;;Wq5>Pi=;l=oSg`oZimnT--2wL$=@8eE1cU}Wj*rNC$c$A^ zI?AduhjROA)Ms)cMI*TSsd_o^mr2CsC!|OKMG3@p-;n@JWJ0l(JkBZZaWJL+(zkwF zi6qECb}4xQ0o)*U^r?XQa<(r+ADsE%dDH^cd}fk>KPA-yK~kMHg{s`_t!q}wh+YsF zalUDwDx5t28HrFmTMw>ZG?52UFp2x4cEk=BvCUSVlxF524=I%;8mZn2X}ohcJve-> zNdc;u=8pYj4*}=IWJaQptysUOkkv|g70@eqT^ja7C{6Y7ynpKyRukXQMk0;=zdTXz zWw&M1Pu`JsR+s*rJNTk^!EoNvwE-V7u*wGai-+3}S}QEQY8|1bdxc*s>OD(8sHIJiZml}*5*i;!yTzW6hN7b@ zX?+>cqn;|*aS1}76#lp(1_MuYNd4~Fe9IV;{6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TGf#-(?QGnP+QFgUax~8r(4`jK;+7y4(Rf*$xxA z&-*{}8XhvJ7S2k^KbK6DszEg#%sws%J-L5Ea4)#}F0@R=<;c^_vLI3?VbK&>>8{xJ zk3z0_K}I;W6d{B-FOVOF<#(r){$_zMuQ4keN)T?Yhip=xIKFAh(v6zS{}`h3BYIHm WVfxkd%$(m}IDKsst!ho@n12B|`SXJS literal 0 HcmV?d00001 diff --git a/docs/sphinx/_static/images/overviews/overview_html_hello.png b/docs/sphinx/_static/images/overviews/overview_html_hello.png new file mode 100644 index 0000000000000000000000000000000000000000..cd26c48fc3bf9074d0ed1828a9ce174d2ec90dda GIT binary patch literal 1699 zcmah}X*Ao37XK$yEK#kcqV_F`s->BRCmlpeh_xrEBPoMgs+PtUovJkLQKi;|){9d6 zlA$TBrPMZR4O&|~I~{6Tl{pzjMJpcj&O7hSr*}Wx_4nbP-(6BKx!TK0pOyvyK$hTO zO9TMWp$h`U#SRVUN~7md6hpMf0i3sLpAG}lOU@p4*3b=RPF^T+rs-`@Q+v;jwDS%r zse8R`k6F888tjW%-Q)C#rk3L(Yek~(d(?t$3xWUuB(w>(HXb);`3pYR=J09&rA1X7 zd@RghH&plT-KP>GzFQs+-vW@eH{`7pHxMjw$U6@79#+#w+F&N9C*9?7oYlCuzy#hasqzFpQc!#xh^C2n=NE@_;tyn04l0`cs6-HloE)0W7X6NjcpPZ-Jw|Oh@XC{3lqFb^83z_fOvNI=>u=esA!|YhaCy9LnyPU)4Y@THWcmw)Law#qocpa4EU# zAc-bmrNSzZQ!dj7`LQ+XJ|N=xCV`{hiBiVp6U=Y8EeX%6?%~@Hw$Bb#e=UlLZh7+i zbCxDVzzlj7j&!f2^VrU;$0XSxR`{x!GOdtxd?{#h z`uU&vBJ{5bVI{0w`FG7Hr%wqieIW^xU$;zQ!^noE|I%b?7sRiq`|f^ZrI!pNOR z=4S@1cxoWyNzh6+_#Sl%%bApw;s4_ieB_DRRXjdnZj-I+HS#a zeQA{O8&(c`cd?**F~B>HhA%u|6>G9vs<}%U*|Anb_!luIW!!lohOQX~g<=AQlPB`^ z1j;w{o^;mcCzLI3M)tR%)?ly$lv*O_>yno+Z3JAVF(@%ry@fwx|}A8V3S?SeT>zu~lW+0ma6j^y)OP)n;eJ z%4w}k%&ZOpinjCn&EGWUGQ+$ZY%rIraCu;~x~kVNc5~6;{bZ;|4a~Y$%|zcZW*QaI zDFuqeb}3lemSXw6rymzAdXw)tkr%m#QW*BhQyk>q_OmZCk*OIN_h z9jGBVY)pNa$|}!i;;GXqPGu|P#m9%QQ#tMkI==O!GMTxN^1w$c!6}t_e!&Iy88u?1 zU95dwRZ$C(Lyk(9wQPxWP|v->49$2z&(vGFN^j0Z5)|qkcCPJ6fs#Ag900d3Y(5<1 zkrv#3sakhp___6?qLhq`GsjjBO6VB&IN33`T#0%W@2ES2;Dbj(d!aS(hV!-{PBOK8 z9q)qV%k*9kU>m>`NAco*qcJ;=<@G}&-WR8e;4|t!!Aqy8I@5o<@FLW*b;G(*%g?S^ QK1U-V*tyzraDMmx4f+J^ZvX%Q literal 0 HcmV?d00001 diff --git a/docs/sphinx/_templates/main.html b/docs/sphinx/_templates/main.html index 4be5fab7..44192003 100644 --- a/docs/sphinx/_templates/main.html +++ b/docs/sphinx/_templates/main.html @@ -94,6 +94,10 @@ + + diff --git a/docs/sphinx/rest_substitutions/overviews/html_overview.rst b/docs/sphinx/rest_substitutions/overviews/html_overview.rst new file mode 100644 index 00000000..653842c8 --- /dev/null +++ b/docs/sphinx/rest_substitutions/overviews/html_overview.rst @@ -0,0 +1,646 @@ +.. include:: headings.inc + + +.. _html overview: + +================================== +|phoenix_title| **HTML Overview** +================================== + + +The :mod:`html` library provides classes for parsing and displaying HTML. + +It is not intended to be a high-end HTML browser. If you are looking for +something like that try http://www.mozilla.org/. + +:mod:`html` can be used as a generic rich text viewer - for example to display a +nice About Box (like those of GNOME apps) or to display the result of +database searching. There is a :class:`FileSystem` class which allows you to use +your own virtual file systems. + +:class:`~html.HtmlWindow` supports tag handlers. This means that you can easily extend +:mod:`html` library with new, unsupported tags. Not only that, you can even use +your own application-specific tags! + +There is a generic :class:`~html.HtmlParser` class, independent of :class:`~html.HtmlWindow`. + + +.. _html quick start: + +HTML quick start +---------------- + + +Displaying HTML +~~~~~~~~~~~~~~~~ + +Class :class:`~html.HtmlWindow` (derived from :class:`ScrolledWindow`) is used to display +HTML documents. + +It has two important methods: :meth:`~html.HtmlWindow.LoadPage` and +:meth:`~html.HtmlWindow.SetPage`. LoadPage loads and displays HTML file while SetPage +displays directly the passed **string**. See the example:: + + mywin.LoadPage("test.htm") + mywin.SetPage("htmlbody" \ + "h1Error/h1" \ + "Some error occurred :-H)" \ + "/body/hmtl") + + + +Setting up HtmlWindow +~~~~~~~~~~~~~~~~~~~~~~ + +Because :class:`~html.HtmlWindow` is derived from :class:`ScrolledWindow` and not from +:class:`Frame`, it doesn't have visible frame. But the user usually wants to see +the title of HTML page displayed somewhere and the frame's titlebar is the +ideal place for it. + +:class:`~html.HtmlWindow` provides 2 methods in order to handle this: +:meth:`~html.HtmlWindow.SetRelatedFrame` and :meth:`~html.HtmlWindow.SetRelatedStatusBar`. +See the example:: + + html = wx.html.HtmlWindow(self) + html.SetRelatedFrame(self, "HTML : %%s") + html.SetRelatedStatusBar(0) + + +The first command associates the HTML object with its parent frame (this +points to :class:`Frame` object there) and sets the format of the title. Page +title "Hello, world!" will be displayed as "HTML : Hello, world!" in this +example. + +The second command sets which frame's status bar should be used to display +browser's messages (such as "Loading..." or "Done" or hypertext links). + + +Customizing HtmlWindow +~~~~~~~~~~~~~~~~~~~~~~~ + +You can customize :class:`~html.HtmlWindow` by setting font size, font face and borders +(space between border of window and displayed HTML). Related functions: + +- :meth:`~html.HtmlWindow.SetFonts` +- :meth:`~html.HtmlWindow.SetBorders` +- :meth:`~html.HtmlWindow.ReadCustomization` +- :meth:`~html.HtmlWindow.WriteCustomization` + +The last two functions are used to store user customization info :class:`Config` +stuff (for example in the registry under Windows, or in a dotfile under +Unix). + + +HTML Printing +-------------- + +The :mod:`html` library provides printing facilities with several levels of +complexity. The easiest way to print an HTML document is to use the +:class:`~html.HtmlEasyPrinting` class. + +It lets you print HTML documents with only one command and you don't have to +worry about deriving from the :class:`Printout` class at all. It is only a simple +wrapper around the :class:`~html.HtmlPrintout`, normal wxPython printout class. + +And finally there is the low level class :class:`~html.HtmlDCRenderer` which you can +use to render HTML into a rectangular area on any DC. + +It supports rendering into multiple rectangles with the same width. (The most +common use of this is placing one rectangle on each page or printing into two +columns.) + + +.. _help files format: + +Help Files Format +------------------ + +:mod:`html` library can be used to show an help manual to the user; in fact, it +supports natively (through :class:`~html.HtmlHelpController`) a reduced version of MS +HTML Workshop format. + +A **book** consists of three files: the header file, the contents file and +the index file. + +You can make a regular zip archive of these files, plus the HTML and any +image files, for HTML (or helpview) to read; and the ``".zip"`` file can +optionally be renamed to ``".htb"``. + + +Header file (.hhp) +~~~~~~~~~~~~~~~~~~~ + +.. highlight:: rst + + +The header file must contain these lines (and may contain additional lines +which are ignored):: + + Contents file=filename.hhc + Index file=filename.hhk + Title=title of your book + Default topic=default page to be displayed.htm + + +All filenames (including the Default topic) are relative to the location of +the ``".hhp"`` file. + +.. note:: + + For localization, in addition the ``".hhp"`` file may contain the line:: + + Charset=rfc_charset + + which specifies what charset (e.g. "iso8859_1") was used in contents and + index files. Please note that this line is incompatible with MS HTML Help + Workshop and it would either silently remove it or complain with some error. + + +Contents file (.hhc) +~~~~~~~~~~~~~~~~~~~~~ + +.. highlight:: html + + +Contents file has HTML syntax and it can be parsed by regular HTML parser. It +contains exactly one list (``
    `` ... ``
`` statement):: + +
    + +
  • + + + +
  • +
  • + + + +
  • +
+ + +You can modify value attributes of param tags. The *topic name* is name of +chapter/topic as is displayed in contents, *filename.htm* is the HTML page +name (relative to the ``".hhp"`` file) and *numeric_id* is optional - it is +used only when you use :meth:`~html.HtmlHelpController.Display`. + +Items in the list may be nested - one ``
  • `` statement may contain a +``
      `` sub-statement:: + +
        + +
      • + + +
      • +
          +
        • + + +
        • + +
        + +
      • + + +
      • + +
      + + + +Index file (.hhk) +~~~~~~~~~~~~~~~~~~ + +Index files have same format as contents files except that ID params are +ignored and sublists are **not** allowed. + + +Input Filters +-------------- + +The :mod:`html` library provides a mechanism for reading and displaying files of +many different file formats. + +:meth:`~html.HtmlWindow.LoadPage` can load not only HTML files but any known file. To +make a file type known to :class:`~html.HtmlWindow` you must create a :class:`~html.HtmlFilter` +filter and register it using :meth:`~html.HtmlWindow.AddFilter`. + + +Cells and Containers +--------------------- + +This article describes mechanism used by :class:`~html.HtmlWinParser` and +:class:`~html.HtmlWindow` to parse and display HTML documents. + + +Cells +~~~~~~ + +You can divide any text (or HTML) into small fragments. Let's call these +fragments **cells**. Cell is for example one word, horizontal line, image or +any other part of document. Each cell has width and height (except special +"magic" cells with zero dimensions - e.g. colour changers or font changers). +See :class:`~html.HtmlCell`. + + +Containers +~~~~~~~~~~~ + +Container is kind of cell that may contain sub-cells. Its size depends on +number and sizes of its sub-cells (and also depends on width of window). See +:class:`~html.HtmlContainerCell`, :meth:`~html.HtmlCell.Layout`. This image shows the cells and +containers: + +.. image:: _static/images/overviews/overview_html_contbox.png + :alt: overview_html_contbox.png + + + +Using Containers in Tag Handler +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:class:`~html.HtmlWinParser` provides a user-friendly way of managing containers. It is +based on the idea of opening and closing containers. + +Use :meth:`~html.HtmlWinParser.OpenContainer` to open new a container *within* an +already opened container. This new container is a *sub-container* of the old +one. (If you want to create a new container with the same depth level you can +call ``CloseContainer()``; ``OpenContainer()``; ). + +Use :meth:`~html.HtmlWinParser.CloseContainer` to close the container. This doesn't +create a new container with same depth level but it returns "control" to the +parent container. See explanation: + +.. image:: _static/images/overviews/overview_html_cont.png + :alt: overview_html_cont.png + + +There clearly must be same number of calls to OpenContainer as to CloseContainer. + + +Example +:::::::: + +.. highlight:: python + + +This code creates a new paragraph (container at same depth level) with "Hello, world!":: + + myParser.CloseContainer() + c = myParser.OpenContainer() + + myParser.AddText("Hello, ") + myParser.AddText("world!") + + myParser.CloseContainer() + myParser.OpenContainer() + + +and here is image of the situation: + +.. image:: _static/images/overviews/overview_html_hello.png + :alt: overview_html_hello.png + + +You can see that there was an opened container before the code was executed. +We closed it, created our own container, then closed our container and opened +new container. + +The result was that we had *same* depth level after executing. This is +general rule that should be followed by tag handlers: leave depth level of +containers unmodified (in other words, number of OpenContainer and +CloseContainer calls should be same within :meth:`~html.HtmlTagHandler.HandleTag` 's +body). + +.. note:: + + Notice that it would be usually better to use + :meth:`~html.HtmlContainerCell.InsertCell` instead of adding text to the parser + directly. + + +Tag Handlers +------------- + +The :mod:`html` library provides architecture of pluggable *tag* handlers. Tag +handler is class that understands particular HTML tag (or tags) and is able +to interpret it. + +:class:`~html.HtmlWinParser` has a static table of **modules**. Each module contains +one or more tag handlers. Each time a new :class:`~html.HtmlWinParser` object is +constructed all modules are scanned and handlers are added to HtmlParser's +list of available handlers. + + +How it works +~~~~~~~~~~~~~ + +Common tag handler's :meth:`~html.HtmlTagHandler.HandleTag` method works in four +steps: + +- Save state of parent parser into local variables +- Change parser state according to tag's params +- Parse text between the tag and paired ending tag (if present) +- Restore original parser state + +See :class:`~html.HtmlWinParser` for methods for modifying parser's state. In general +you can do things like opening/closing containers, changing colors, fonts etc... + + +Providing own tag handlers +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +See the :mod:`lib.wxpTag` on how to provide your own tag handlers. + + +Tag handlers +~~~~~~~~~~~~~ + +The handler is derived from :class:`~html.HtmlWinTagHandler` (or directly from +:class:`~html.HtmlTagHandler`). + + +Tags supported by :mod:`html` +----------------------------- + +:mod:`html` is not a full implementation of HTML standard. Instead, it supports most +common tags so that it is possible to display *simple* HTML documents with +it. (For example it works fine with pages created in Netscape Composer or +generated by tex2rtf). + +Following tables list all tags known to :mod:`html`, together with supported +parameters. + +A tag has general form of ``tagname`` param_1 param_2 ... param_n where +param_i is either ``paramname="paramvalue"`` or ``paramname=paramvalue`` - +these two are equivalent. Unless stated otherwise, :mod:`html` is case- +insensitive. + + +Table of common parameter values +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +We will use these substitutions in tags descriptions: + ++------------------+---------------------------------------------------------------+ +| [alignment] | CENTER | +| +---------------------------------------------------------------+ +| | LEFT | +| +---------------------------------------------------------------+ +| | RIGHT | +| +---------------------------------------------------------------+ +| | JUSTIFY | ++------------------+---------------------------------------------------------------+ +| [v_alignment] | TOP | +| +---------------------------------------------------------------+ +| | BOTTOM | +| +---------------------------------------------------------------+ +| | CENTER | ++------------------+---------------------------------------------------------------+ +| [color] | HTML 4.0-compliant colour specification | ++------------------+---------------------------------------------------------------+ +| [fontsize] | -2 | +| +---------------------------------------------------------------+ +| | -1 | +| +---------------------------------------------------------------+ +| | +0 | +| +---------------------------------------------------------------+ +| | +1 | +| +---------------------------------------------------------------+ +| | +2 | +| +---------------------------------------------------------------+ +| | +3 | +| +---------------------------------------------------------------+ +| | +4 | +| +---------------------------------------------------------------+ +| | 1 | +| +---------------------------------------------------------------+ +| | 2 | +| +---------------------------------------------------------------+ +| | 3 | +| +---------------------------------------------------------------+ +| | 4 | +| +---------------------------------------------------------------+ +| | 5 | +| +---------------------------------------------------------------+ +| | 6 | +| +---------------------------------------------------------------+ +| | 7 | ++------------------+---------------------------------------------------------------+ +| [pixels] | integer value that represents dimension in pixels | ++------------------+---------------------------------------------------------------+ +| [percent] | i% | +| +---------------------------------------------------------------+ +| | where i is integer | ++------------------+---------------------------------------------------------------+ +| [url] | an URL | ++------------------+---------------------------------------------------------------+ +| [string] | text string | ++------------------+---------------------------------------------------------------+ +| [coords] | c(1),c(2),c(3),...,c(n) | +| +---------------------------------------------------------------+ +| | where c(i) is integer | ++------------------+---------------------------------------------------------------+ + + + +List of supported tags +~~~~~~~~~~~~~~~~~~~~~~~ + ++------------------+---------------------------------------------------------------+ +| A | NAME=[string] | +| +---------------------------------------------------------------+ +| | HREF=[url] | +| +---------------------------------------------------------------+ +| | TARGET=[target window spec] | ++------------------+---------------------------------------------------------------+ +| ADDRESS | | ++------------------+---------------------------------------------------------------+ +| AREA | SHAPE=POLY | +| +---------------------------------------------------------------+ +| | SHAPE=CIRCLE | +| +---------------------------------------------------------------+ +| | SHAPE=RECT | +| +---------------------------------------------------------------+ +| | COORDS=[coords] | +| +---------------------------------------------------------------+ +| | HREF=[url] | ++------------------+---------------------------------------------------------------+ +| BIG | | ++------------------+---------------------------------------------------------------+ +| BLOCKQUOTE | | ++------------------+---------------------------------------------------------------+ +| BODY | TEXT=[color] | +| +---------------------------------------------------------------+ +| | LINK=[color] | +| +---------------------------------------------------------------+ +| | BGCOLOR=[color] | ++------------------+---------------------------------------------------------------+ +| BR | ALIGN=[alignment] | ++------------------+---------------------------------------------------------------+ +| CENTER | | ++------------------+---------------------------------------------------------------+ +| CITE | | ++------------------+---------------------------------------------------------------+ +| CODE | | ++------------------+---------------------------------------------------------------+ +| DD | | ++------------------+---------------------------------------------------------------+ +| DIV | ALIGN=[alignment] | ++------------------+---------------------------------------------------------------+ +| DL | | ++------------------+---------------------------------------------------------------+ +| DT | | ++------------------+---------------------------------------------------------------+ +| EM | | ++------------------+---------------------------------------------------------------+ +| FONT | COLOR=[color] | +| +---------------------------------------------------------------+ +| | SIZE=[fontsize] | +| +---------------------------------------------------------------+ +| | FACE=[comma-separated list of facenames] | ++------------------+---------------------------------------------------------------+ +| HR | ALIGN=[alignment] | +| +---------------------------------------------------------------+ +| | SIZE=[pixels] | +| +---------------------------------------------------------------+ +| | WIDTH=[percent|pixels] | +| +---------------------------------------------------------------+ +| | NOSHADE | ++------------------+---------------------------------------------------------------+ +| H1 | | ++------------------+---------------------------------------------------------------+ +| H2 | | ++------------------+---------------------------------------------------------------+ +| H3 | | ++------------------+---------------------------------------------------------------+ +| H4 | | ++------------------+---------------------------------------------------------------+ +| H5 | | ++------------------+---------------------------------------------------------------+ +| H6 | | ++------------------+---------------------------------------------------------------+ +| I | | ++------------------+---------------------------------------------------------------+ +| IMG | SRC=[url] | +| +---------------------------------------------------------------+ +| | WIDTH=[percent|pixels] | +| +---------------------------------------------------------------+ +| | HEIGHT=[pixels] | +| +---------------------------------------------------------------+ +| | ALIGN=TEXTTOP | +| +---------------------------------------------------------------+ +| | ALIGN=CENTER | +| +---------------------------------------------------------------+ +| | ALIGN=ABSCENTER | +| +---------------------------------------------------------------+ +| | ALIGN=BOTTOM | +| +---------------------------------------------------------------+ +| | USEMAP=[url] | ++------------------+---------------------------------------------------------------+ +| KBD | | ++------------------+---------------------------------------------------------------+ +| LI | | ++------------------+---------------------------------------------------------------+ +| MAP | NAME=[string] | ++------------------+---------------------------------------------------------------+ +| META | HTTP-EQUIV="Content-Type" | +| +---------------------------------------------------------------+ +| | CONTENT=[string] | ++------------------+---------------------------------------------------------------+ +| OL | | ++------------------+---------------------------------------------------------------+ +| P | ALIGN=[alignment] | ++------------------+---------------------------------------------------------------+ +| PRE | | ++------------------+---------------------------------------------------------------+ +| SAMP | | ++------------------+---------------------------------------------------------------+ +| SMALL | | ++------------------+---------------------------------------------------------------+ +| SPAN | | ++------------------+---------------------------------------------------------------+ +| STRIKE | | ++------------------+---------------------------------------------------------------+ +| STRONG | | ++------------------+---------------------------------------------------------------+ +| SUB | | ++------------------+---------------------------------------------------------------+ +| SUP | | ++------------------+---------------------------------------------------------------+ +| TABLE | ALIGN=[alignment] | +| +---------------------------------------------------------------+ +| | WIDTH=[percent|pixels] | +| +---------------------------------------------------------------+ +| | BORDER=[pixels] | +| +---------------------------------------------------------------+ +| | VALIGN=[v_alignment] | +| +---------------------------------------------------------------+ +| | BGCOLOR=[color] | +| +---------------------------------------------------------------+ +| | CELLSPACING=[pixels] | +| +---------------------------------------------------------------+ +| | CELLPADDING=[pixels] | ++------------------+---------------------------------------------------------------+ +| TD | ALIGN=[alignment] | +| +---------------------------------------------------------------+ +| | VALIGN=[v_alignment] | +| +---------------------------------------------------------------+ +| | BGCOLOR=[color] | +| +---------------------------------------------------------------+ +| | WIDTH=[percent|pixels] | +| +---------------------------------------------------------------+ +| | COLSPAN=[pixels] | +| +---------------------------------------------------------------+ +| | ROWSPAN=[pixels] | +| +---------------------------------------------------------------+ +| | NOWRAP | ++------------------+---------------------------------------------------------------+ +| TH | ALIGN=[alignment] | +| +---------------------------------------------------------------+ +| | VALIGN=[v_alignment] | +| +---------------------------------------------------------------+ +| | BGCOLOR=[color] | +| +---------------------------------------------------------------+ +| | WIDTH=[percent|pixels] | +| +---------------------------------------------------------------+ +| | COLSPAN=[pixels] | +| +---------------------------------------------------------------+ +| | ROWSPAN=[pixels] | ++------------------+---------------------------------------------------------------+ +| TITLE | | ++------------------+---------------------------------------------------------------+ +| TR | ALIGN=[alignment] | +| +---------------------------------------------------------------+ +| | VALIGN=[v_alignment] | +| +---------------------------------------------------------------+ +| | BGCOLOR=[color] | ++------------------+---------------------------------------------------------------+ +| TT | | ++------------------+---------------------------------------------------------------+ +| U | | ++------------------+---------------------------------------------------------------+ +| UL | | ++------------------+---------------------------------------------------------------+ + + + +List of supported styles +~~~~~~~~~~~~~~~~~~~~~~~~~ + +:mod:`html` doesn't really have CSS support but it does support a few simple +styles: you can use ``"text-align"``, ``"width"``, ``"vertical-align"`` and +``"background"`` with all elements and for ``SPAN`` elements a few other +styles are additionally recognized: + +- ``color`` +- ``font-family`` +- ``font-size`` (only in point units) +- ``font-style`` (only "oblique", "italic" and "normal" values are supported) +- ``font-weight`` (only "bold" and "normal" values are supported) +- ``text-decoration`` (only "underline" value is supported) + diff --git a/docs/sphinx/rest_substitutions/overviews/index.rst b/docs/sphinx/rest_substitutions/overviews/index.rst index d09d067f..76438c9e 100644 --- a/docs/sphinx/rest_substitutions/overviews/index.rst +++ b/docs/sphinx/rest_substitutions/overviews/index.rst @@ -152,6 +152,7 @@ The new wxPython API documentation is available `in this page `_. filesystem_overview font_encodings font_overview + html_overview internationalization listctrl_overview log_classes_overview @@ -171,6 +172,8 @@ The new wxPython API documentation is available `in this page `_. window_styles_overview dataview.1classindex lib + py + tools Indices and tables diff --git a/docs/sphinx/rest_substitutions/overviews/internationalization.rst b/docs/sphinx/rest_substitutions/overviews/internationalization.rst index 23f7c51a..06659976 100644 --- a/docs/sphinx/rest_substitutions/overviews/internationalization.rst +++ b/docs/sphinx/rest_substitutions/overviews/internationalization.rst @@ -11,7 +11,7 @@ |phoenix_title| **Internationalization Overview** ================================================== -"Internationalization" (often referred to as I18N) is the process to change an +"Internationalization" (often referred to as i18n) is the process to change an application so that all user visible texts are translated to the user selected language and that things like dates, money amounts and numbers in general are shown in a format the user is familiar with/or used to. @@ -25,24 +25,27 @@ Text translation Prepare the source code ----------------------- -Text translation in Python is done using gettext [1]_ , to ensure that all wxPython -labels are also translated we will use :class:`Locale` and :func:`GetTranslation` . +Text translation in Python is done using gettext [1]_ , to ensure that all +wxPython labels are also translated we will use :class:`Locale` and +:func:`GetTranslation` . How to prepare your source code to enable translation of texts:: aString = _(u"This is a string which will be translated") -As you can see it is very simple, you just enclose the text with the translation function "_()", -obviously there is a bit more to it, see below. +As you can see it is very simple, you just enclose the text with the translation +function "_()", obviously there is a bit more to it, see below. -Enabling I18N for a whole application you would do some setup in the application file along the following lines: +Enabling I18N for a whole application you would do some setup in the application +file along the following lines: .. literalinclude:: _downloads/i18nwxapp/app_base.py :lines: 25-27 -Here we setup the "_" translation function and making it available application by adding it to builtin. +Here we setup the "_" translation function and making it available application +by adding it to builtin. The code required to change to a different language is as follows: @@ -53,39 +56,44 @@ The code required to change to a different language is as follows: Do the actual translation work ------------------------------ -You need to extract all the text strings marked by the "_" function, a little script `geni18n.py` is in the -:download:`downloadable zip file <_downloads/i18nwxapp/i18nwxapp.zip>`, it will extract all the strings -and generate a ``.pot`` file. The `geni18n.py` script will also generate the ``.mo`` files for defined languages. +You need to extract all the text strings marked by the "_" function, a little +script `geni18n.py` is in the :download:`downloadable zip file <_downloads/i18nwxapp/i18nwxapp.zip>`, +it will extract all the strings and generate a ``.pot`` file, which is put to +the locale folder. The `geni18n.py` script will also generate the ``.mo`` files +for defined languages. -The ``.pot`` file is then provided to the translators and they use it to generate a ``.po`` file for -the language they translate too or they can also use the ``.pot`` file to merge new/changed text strings -to an existing ``.po`` file. +The ``.pot`` file is then provided to the translators and they use it to +generate a ``.po`` file for the language they translate too or they can also use +the ``.pot`` file to merge new/changed text strings to an existing ``.po`` file. -To do the actual translation we recomment `poEdit` [2]_ , it allows you to create or update a translation -catalog (``.po`` file) from the ``.pot`` file. +To do the actual translation we recomment `poEdit` [2]_ , it allows you to +create or update a translation catalog (``.po`` file) from the ``.pot`` file. Sample application ------------------ -In the :download:`downloadable zip file <_downloads/i18nwxapp/i18nwxapp.zip>` we included a small -sample application showing the above in action. +In the :download:`downloadable zip file <_downloads/i18nwxapp/i18nwxapp.zip>` +we included a small sample application showing the above in action. - `app_base.py` contains the initialization code - `sampleapp.py` is the main frame/application, just run this to see things in action -- `i18ntools/geni18n.py` is the script to generate the ``.pot`` file and it also generates the ``.mo`` files. +- `geni18n.py` is the script to generate the ``.pot`` file and it also generates the ``.mo`` files. .. note:: - The application has a button which displays a file dialog, as wxPython uses a native widget for this the - text are shown in the operating system language and not the language which is selected in `app_base.py`. + The application has a button which displays a file dialog, as wxPython uses + a native widget for this the text are shown in the operating system language + and not the language which is selected in `app_base.py`. Localization overview ===================== -"Localization", often referred to as "L10N", is the process to adapt the display of dates and numbers to local custom. +"Localization", often referred to as "L10n", is the process to adapt the display +of dates and numbers to local custom. -E.g. "4/5/2012" would for an American mean April 5. 2012, but for most Europeans it would be 4. May 2012. +E.g. "4/5/2012" would for an American mean April 5. 2012, but for most Europeans +it would be 4. May 2012. Localize dates @@ -100,6 +108,14 @@ Localize numbers .. todo:: to be written +Additional resources +==================== + +- http://zetcode.com/wxpython/in18/ +- http://wiki.wxpython.org/Internationalization +- http://en.wikipedia.org/wiki/Internationalization_and_localization + + .. rubric:: Footnotes .. [1] gettext - http://docs.python.org/library/gettext.html diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/ContextHelp.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/ContextHelp.1.py new file mode 100644 index 00000000..208fca48 --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/ContextHelp.1.py @@ -0,0 +1,2 @@ + + contextHelp = wx.ContextHelp(myWindow) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/HelpControllerBase.SetViewer.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/HelpControllerBase.SetViewer.1.py new file mode 100644 index 00000000..f99f56fa --- /dev/null +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/HelpControllerBase.SetViewer.1.py @@ -0,0 +1,4 @@ + + self.help.SetViewer("kdehelp") + self.help.SetViewer("gnome-help-browser") + self.help.SetViewer("netscape", wx.HELP_NETSCAPE) diff --git a/etgtools/sphinx_generator.py b/etgtools/sphinx_generator.py index 79f6a591..13f8d453 100644 --- a/etgtools/sphinx_generator.py +++ b/etgtools/sphinx_generator.py @@ -1673,7 +1673,9 @@ class Emphasis(Node): tail = child.element.tail tail = (tail is not None and [tail] or [''])[0] - childText = childText.replace(ConvertToPython(tail), '') + if tail.strip() != ':': + childText = childText.replace(ConvertToPython(tail), '') + fullChildText = child.Join() endPos = text.index(childText) diff --git a/sphinxtools/constants.py b/sphinxtools/constants.py index 30ea011c..1ffecd22 100644 --- a/sphinxtools/constants.py +++ b/sphinxtools/constants.py @@ -209,3 +209,35 @@ MODULE_TO_ICON = [(".py", object_types.PY_MODULE, "Py_Module"), (".pyd", obje (".pyc", object_types.PYC_MODULE, "Pyc_Module"), (".pyw", object_types.PYW_MODULE, "Pyw_Module"), (".so", object_types.PYD_MODULE, "Pyd_Module")] +# wx.tools and other stuff + +DOXY_2_REST = [('@author:', '\n.. moduleauthor:: '), + ('@deprecated:', '\n.. deprecated:: '), + ('@param', ':param'), + ('@var', ':param'), + ('@keyword', ':keyword'), + ('@kwarg', ':keyword'), + ('@note:', '\n.. note:: '), + ('@package:', '\n**Package:** '), + ('@package', '\n**Package:** '), + ('@postcondition:', '\n:postcondition: '), + ('@pre:', '\n:precondition: '), + ('@precondition:', '\n:precondition: '), + ('@requires:', '\n:requires: '), + ('@returns:', '\n:returns: '), + ('@return:', '\n:returns: '), + ('@returns', '\n:returns: '), + ('@return', '\n:returns: '), + ('@rtype:', '\n:rtype: '), + # ('@section', XXX), Deal with this separately + ('@see:', '\n.. seealso:: '), + ('@status:', '\n.. todo:: '), + ('@summary:', '\n**Summary:** '), + ('@throws:', '\n:raise: '), + ('@todo:', '\n.. todo:: '), + ('@verbatim ', ''), # TODO This one + ('@verbatim', ''), # TODO This one + ('@endverbatim ', ''), # TODO This one + ('@endverbatim', ''), # TODO This one + ('@version:', '\n:version: ')] + diff --git a/sphinxtools/librarydescription.py b/sphinxtools/librarydescription.py index 5b3337fc..04d783ed 100644 --- a/sphinxtools/librarydescription.py +++ b/sphinxtools/librarydescription.py @@ -11,12 +11,14 @@ from inspect import getmro, getclasstree, getdoc, getcomments from utilities import MakeSummary, ChopDescription, WriteSphinxOutput from utilities import FindControlImages, PickleClassInfo -from constants import object_types, MODULE_TO_ICON +from constants import object_types, MODULE_TO_ICON, DOXY_2_REST import templates ENOENT = getattr(errno, 'ENOENT', 0) EPIPE = getattr(errno, 'EPIPE', 0) +EPYDOC_PATTERN = re.compile(r'\S+{\S+}', re.DOTALL) + reload(sys) sys.setdefaultencoding("utf-8") @@ -73,7 +75,7 @@ def generic_summary(libraryItem, stream): table = [] for item in sub_list: - if item.is_redundant or item.GetShortName().startswith('__test'): + if item.is_redundant or item.GetShortName().startswith('__test') or '.extern.' in item.name: continue docs = ChopDescription(ReplaceWxDot(item.docs)) @@ -106,9 +108,156 @@ def ReplaceWxDot(text): # Masked is funny... text = text.replace('', '') - return text + space_added = False + for old, new in DOXY_2_REST: + + if old not in text: + continue + + if new in [':keyword', ':param']: + if not space_added: + space_added = True + new_with_newline = '\n%s'%new + text = text.replace(old, new_with_newline, 1) + + text = text.replace(old, new) + lines = text.splitlines(True) + newtext = '' + + for line in lines: + if '@section' not in line: + newtext += line + continue + + # Extract the section header + splitted = line.split() + header = ' '.join(line[2:]) + header = header.strip() + + newtext += header + '\n' + newtext += '-'*len(header) + '\n\n' + + return newtext + + +def GetTopLevelParent(klass): + + parent = klass.parent + + if not parent: + return klass + + parents = [parent] + + while parent: + parent = parent.parent + parents.append(parent) + + return parents[-2] + + +def FindInHierarchy(klass, newlink): + + library = GetTopLevelParent(klass) + return library.FindItem(newlink) + + +def FindBestLink(klass, newlink): + + parent_class = klass.parent + + if klass.kind in range(object_types.FUNCTION, object_types.INSTANCE_METHOD): + if parent_class.GetShortName() == newlink: + return ':class:`%s`'%newlink + else: + child_names = [sub.GetShortName() for sub in parent_class.children] + if newlink in child_names: + index = child_names.index(newlink) + child = parent_class.children[index] + + if child.kind in range(object_types.PACKAGE, object_types.PYW_MODULE+1): + return ':mod:`~%s`'%child.name + elif child.kind in range(object_types.FUNCTION, object_types.INSTANCE_METHOD): + return ':meth:`~%s`'%child.name + else: + return ':class:`~%s`'%child.name + + full_loop = FindInHierarchy(klass, newlink) + + if full_loop: + return full_loop + + return ':ref:`%s`'%newlink + + +def KillEpydoc(klass, newtext): + + epydocs = re.findall(EPYDOC_PATTERN, newtext) + + if not epydocs: + return newtext + + newepydocs = epydocs[:] + + for item in epydocs: + if '#{' in item: + # this is for masked stuff + newepydocs.remove(item) + + if not newepydocs: + return newtext + + for regex in newepydocs: + + start = regex.index('{') + end = regex.index('}') + + if 'U{' in regex: + # Simple link, leave it as it is + newlink = regex[start+1:end] + + elif 'C{' in regex: + # It's an inclined text, but we can attach some + # class reference to it + newlink = regex[start+1:end] + + if 'wx.' in regex or 'wx' in regex: + newlink = newlink.replace('wx.', '') + newlink = newlink.replace('wx', '') + newlink = ':class:`%s`'%newlink.strip() + else: + newlink = '`%s`'%newlink + + elif 'I{' in regex: + # It's an inclined text + newlink = regex[start+1:end] + newlink = ' `%s` '%newlink + + elif 'L{' in regex: + # Some kind of link, but we can't figure it out + # very easily from here... just use :ref: + newlink = regex[start+1:end] + + if newlink.upper() == newlink: + # Use double backticks + newlink = '``%s``'%newlink + else: + # Try and reference it + bestlink = FindBestLink(klass, newlink) + if bestlink: + newlink = bestlink + + else: + # Something else, don't bother for the moment + continue + + newtext = newtext.replace(regex, newlink) + + return newtext + + class ParentBase(object): def __init__(self, name, kind): @@ -275,6 +424,42 @@ class Library(ParentBase): self.Walk(child) + def FindItem(self, newlink, obj=None): + + if obj is None: + obj = self + + # must have at least root folder + children = obj.GetChildren() + bestlink = '' + + if not children: + return bestlink + + # check each name + for child in children: + + if child.is_redundant: + continue + + parts = child.name.split('.') + dotname = '.'.join(parts[-2:]) + if child.name.endswith(newlink) and (child.GetShortName() == newlink or dotname == newlink): + if child.kind in range(object_types.PACKAGE, object_types.PYW_MODULE+1): + return ':mod:`~%s`'%child.name + elif child.kind in range(object_types.FUNCTION, object_types.INSTANCE_METHOD+1): + return ':meth:`~%s`'%child.name + else: + return ':class:`~%s`'%child.name + + bestlink = self.FindItem(newlink, child) + + if bestlink: + return bestlink + + return bestlink + + def GetPythonVersion(self): return self.python_version @@ -288,7 +473,10 @@ class Library(ParentBase): header = templates.TEMPLATE_DESCRIPTION%(self.base_name, self.base_name) stream.write(header) - stream.write(ReplaceWxDot(self.docs) + '\n\n') + newtext = ReplaceWxDot(self.docs) + stream.write(newtext + '\n\n') + + newtext = KillEpydoc(self, newtext) generic_summary(self, stream) WriteSphinxOutput(stream, self.sphinx_file) @@ -320,7 +508,7 @@ class Module(ParentBase): def ToRest(self): - if self.is_redundant or self.GetShortName().startswith('__test'): + if self.is_redundant or self.GetShortName().startswith('__test') or '.extern.' in self.name: return stream = StringIO() @@ -336,7 +524,11 @@ class Module(ParentBase): header = templates.TEMPLATE_DESCRIPTION%(self.name, '%s'%self.GetShortName()) stream.write(header) - stream.write(ReplaceWxDot(self.docs) + '\n\n') + + newtext = ReplaceWxDot(self.docs) + stream.write(newtext + '\n\n') + + newtext = KillEpydoc(self, newtext) spacer = ' '*self.name.count('.') @@ -443,7 +635,7 @@ class Class(ParentBase): def ToRest(self): - if self.is_redundant or self.GetShortName().startswith('__test'): + if self.is_redundant or self.GetShortName().startswith('__test') or '.extern.' in self.name: return stream = StringIO() @@ -455,6 +647,7 @@ class Class(ParentBase): stream.write('.. highlight:: python\n\n') class_docs = ReplaceWxDot(self.docs) + class_docs = KillEpydoc(self, class_docs) header = templates.TEMPLATE_DESCRIPTION%(self.name, self.GetShortName()) stream.write(header) @@ -536,8 +729,11 @@ class Class(ParentBase): index = self.signature.index(' def __init__') self.signature = self.signature[0:index] - self.signature.strip() - + self.signature = self.signature.strip() + + if len(self.signature) < 2: + self.is_redundant = True + class ChildrenBase(object): @@ -641,6 +837,9 @@ class Method(ChildrenBase): if ' def ' in self.signature: index = self.signature.index(' def ') self.signature = self.signature[index+5:].strip() + + if '*' in self.signature: + self.signature = self.signature.replace('*', r'\*') if not self.signature.strip(): self.is_redundant = True @@ -668,12 +867,14 @@ class Method(ChildrenBase): return text = '' - for line in self.docs.splitlines(): - text += indent + ReplaceWxDot(line) + '\n' - - text += '\n\n' - stream.write(text) + newdocs = ReplaceWxDot(self.docs) + for line in newdocs.splitlines(True): + text += indent + line + + text = KillEpydoc(self, text) + text += '\n\n\n' + stream.write(text) class Property(ChildrenBase): diff --git a/sphinxtools/modulehunter.py b/sphinxtools/modulehunter.py index d8035a53..bbaf01e7 100644 --- a/sphinxtools/modulehunter.py +++ b/sphinxtools/modulehunter.py @@ -504,12 +504,12 @@ def FindModuleType(filename): def SubImport(import_string, module, parent_class, ispkg): - + try: submod = __import__(import_string, fromlist=[module]) except: # pubsub and Editra can be funny sometimes... - message = "Unable to import module/package '%s'.\n Exception was: %s"%(module, format_traceback()) + message = "Unable to import module/package '%s.%s'.\n Exception was: %s"%(import_string, module, format_traceback()) print "\nWARNING: %s\n"%message return None, 0 @@ -517,6 +517,10 @@ def SubImport(import_string, module, parent_class, ispkg): return None, 0 filename = getfile(submod) + + subpath = os.path.dirname(filename) + if subpath not in sys.path: + sys.path.append(subpath) if ispkg: kind = object_types.PACKAGE @@ -545,7 +549,7 @@ def SubImport(import_string, module, parent_class, ispkg): def ModuleHunter(init_name, import_name, version): - pickle_file = os.path.join(os.getcwd(), 'docs', 'sphinx', 'wxlib.pkl') + pickle_file = os.path.join(os.getcwd(), 'docs', 'sphinx', 'wx%s.pkl'%import_name) if os.path.isfile(pickle_file): fid = open(pickle_file, 'rb')