You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(106) |
May
(215) |
Jun
(104) |
Jul
(290) |
Aug
(351) |
Sep
(245) |
Oct
(289) |
Nov
(184) |
Dec
(113) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(179) |
Feb
(88) |
Mar
(77) |
Apr
(70) |
May
(107) |
Jun
(288) |
Jul
(115) |
Aug
(67) |
Sep
(91) |
Oct
(34) |
Nov
(31) |
Dec
(61) |
2004 |
Jan
(54) |
Feb
(17) |
Mar
(102) |
Apr
(152) |
May
(178) |
Jun
(377) |
Jul
(136) |
Aug
(37) |
Sep
(196) |
Oct
(142) |
Nov
(119) |
Dec
(58) |
2005 |
Jan
(51) |
Feb
(76) |
Mar
(220) |
Apr
(132) |
May
(134) |
Jun
(230) |
Jul
(142) |
Aug
(58) |
Sep
(71) |
Oct
(76) |
Nov
(129) |
Dec
(117) |
2006 |
Jan
(94) |
Feb
(30) |
Mar
(97) |
Apr
(63) |
May
(63) |
Jun
(62) |
Jul
(23) |
Aug
(40) |
Sep
(47) |
Oct
(40) |
Nov
(23) |
Dec
(21) |
2007 |
Jan
(57) |
Feb
(65) |
Mar
(77) |
Apr
(23) |
May
(118) |
Jun
(127) |
Jul
(87) |
Aug
(33) |
Sep
(26) |
Oct
(8) |
Nov
(4) |
Dec
(25) |
2008 |
Jan
(16) |
Feb
(18) |
Mar
(16) |
Apr
(4) |
May
(22) |
Jun
(20) |
Jul
(38) |
Aug
(14) |
Sep
(18) |
Oct
(68) |
Nov
(16) |
Dec
(95) |
2009 |
Jan
(28) |
Feb
(16) |
Mar
(8) |
Apr
(44) |
May
(35) |
Jun
(41) |
Jul
(63) |
Aug
(40) |
Sep
(38) |
Oct
(41) |
Nov
(17) |
Dec
(9) |
2010 |
Jan
(9) |
Feb
(3) |
Mar
(71) |
Apr
(20) |
May
(15) |
Jun
(16) |
Jul
(33) |
Aug
(13) |
Sep
(39) |
Oct
(30) |
Nov
(25) |
Dec
(20) |
2011 |
Jan
(213) |
Feb
(252) |
Mar
(24) |
Apr
(24) |
May
(20) |
Jun
(21) |
Jul
(37) |
Aug
(18) |
Sep
(28) |
Oct
(65) |
Nov
(22) |
Dec
(48) |
2012 |
Jan
(35) |
Feb
(39) |
Mar
(17) |
Apr
(9) |
May
(37) |
Jun
(31) |
Jul
(23) |
Aug
(14) |
Sep
(16) |
Oct
(15) |
Nov
(5) |
Dec
(43) |
2013 |
Jan
(15) |
Feb
(19) |
Mar
(26) |
Apr
(13) |
May
(9) |
Jun
(11) |
Jul
(32) |
Aug
(9) |
Sep
(6) |
Oct
|
Nov
(13) |
Dec
(5) |
2014 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
|
May
(2) |
Jun
(4) |
Jul
(18) |
Aug
|
Sep
|
Oct
(3) |
Nov
(4) |
Dec
(2) |
2015 |
Jan
(3) |
Feb
(25) |
Mar
(49) |
Apr
(28) |
May
(13) |
Jun
(2) |
Jul
(2) |
Aug
(14) |
Sep
(9) |
Oct
(6) |
Nov
|
Dec
(2) |
2016 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
|
May
(12) |
Jun
|
Jul
(17) |
Aug
(7) |
Sep
(3) |
Oct
(2) |
Nov
(5) |
Dec
(28) |
2017 |
Jan
(11) |
Feb
(6) |
Mar
(10) |
Apr
(10) |
May
(34) |
Jun
(32) |
Jul
(15) |
Aug
(28) |
Sep
(8) |
Oct
(10) |
Nov
(14) |
Dec
(2) |
2018 |
Jan
(8) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(7) |
Aug
|
Sep
(1) |
Oct
|
Nov
(15) |
Dec
|
2019 |
Jan
|
Feb
(7) |
Mar
(2) |
Apr
(2) |
May
(2) |
Jun
(2) |
Jul
(48) |
Aug
(73) |
Sep
(22) |
Oct
(8) |
Nov
(16) |
Dec
(26) |
2020 |
Jan
(30) |
Feb
(13) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(12) |
Aug
(18) |
Sep
(18) |
Oct
(5) |
Nov
(9) |
Dec
(16) |
2021 |
Jan
(13) |
Feb
(17) |
Mar
(19) |
Apr
(70) |
May
(43) |
Jun
(27) |
Jul
(18) |
Aug
(15) |
Sep
(16) |
Oct
(37) |
Nov
(38) |
Dec
(11) |
2022 |
Jan
(73) |
Feb
(18) |
Mar
(36) |
Apr
(6) |
May
(8) |
Jun
(33) |
Jul
(22) |
Aug
|
Sep
(6) |
Oct
(71) |
Nov
(91) |
Dec
(26) |
2023 |
Jan
(12) |
Feb
(5) |
Mar
(5) |
Apr
(34) |
May
(29) |
Jun
(27) |
Jul
(3) |
Aug
(17) |
Sep
(11) |
Oct
(4) |
Nov
(34) |
Dec
(7) |
2024 |
Jan
(16) |
Feb
(27) |
Mar
(60) |
Apr
(38) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dr. G. S. <gsc...@us...> - 2003-01-08 22:23:43
|
Update of /cvsroot/docutils/sandbox/gschwant/docfactory In directory sc8-pr-cvs1:/tmp/cvs-serv11268/sandbox/gschwant/docfactory Modified Files: README.txt docfactory.py setup.py Log Message: New release of DocFactory. Check HISTORY.txt for new features. Be sure to upgrade to wxPython 2.3.4.2. Index: README.txt =================================================================== RCS file: /cvsroot/docutils/sandbox/gschwant/docfactory/README.txt,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- README.txt 3 Oct 2002 10:51:09 -0000 1.5 +++ README.txt 8 Jan 2003 22:23:36 -0000 1.6 @@ -1,21 +1,19 @@ ===================== - README: DocFactory_ + DocFactory_ README ===================== :author: Dr. Gunnar Schwant :contact: g.s...@gm... -:date: $Date$ -:version: 0.1.4 +:date: 2003/01/07 +:version: 0.2 :copyright: Copyright (c) 2002 Dr. Gunnar Schwant (g.s...@gm...). All rights reserved. See LICENSE.txt_ for license details. :abstract: This is a short introduction to DocFactory. Hopefully, more documentation will be available soon. -.. _DocFactory: http://docutils.sf.net/sandbox/gschwant/docfactory/ - -.. sectnum:: .. contents:: +.. section-numbering:: What is it? @@ -41,7 +39,7 @@ * Python 2.1.1 or later (http://www.python.org). -* wxPython 2.3.2.1 or later (http://wxpython.org). Be sure to get the +* wxPython 2.3.4.2 or later (http://wxpython.org). Be sure to get the build matching the version of Python you're using. * Docutils 0.2.2 or later (http://docutils.sourceforge.net). Use the @@ -107,7 +105,7 @@ Type ``Ctrl+N`` to create a new text file. You will be asked for a location and title of the new file. Afterwards the file will be -created, added to the tree on the left and loaded it into the editor. +created, added to the tree on the left and loaded it into the editor. As you will notice the title has been inserted at the top of the file. @@ -116,7 +114,17 @@ To open an already existing text file simply type ``Ctrl+O`` and select the file. It will be added to the tree and loaded into -the editor. +the editor. Moreover, you can open a file from the command-line +if you specify the file as first parameter. A command like ``python +[Scripts-directory]/docfactory.py [<file>]`` should launch DocFactory +and open the file for editing. (Of course, this command depends on your +system. For example:: + + C:\>python Python22\Scripts\docfactory.py temp\test.txt + +works on my windows machine. In particular, the Python executable has +to be on your path.) + Publish a file as HTML ~~~~~~~~~~~~~~~~~~~~~~ @@ -126,11 +134,14 @@ The HTML file is created in the directory of your text file and you can customize processing by setting up Docutils configuration files. [2]_ -As soon as the processing is finished the HTML-file will be displayed -in a preview page. Please note that this preview does **not** support -stylesheets. If you want to have a look at the document in your default -webbrowser (which hopefully does support stylesheets) click on "View -In Browser". +As soon as the processing is finished the HTML-file will be displayed on +DocFactory's HTML-viewer page. Please note that this viewer does support +stylesheets on Windows platforms only (including Windows 95, 98, ME, 2000, +NT, XP). On any other platform you will have to check the final layout +with a webbrowser of your choice (which hopefully does support stylesheets). +Click on "View In Browser" to open the file with your system's default +webbrowser. + Projects -------- @@ -169,82 +180,139 @@ Press the "OK"-button to finish the setup. The project appears as part of the tree on the left. +**A note on stylesheets:** You shouldn't worry about the stylesheet. When +you leave the "Project Settings" dialog DocFactory checks if the stylesheet +is present. If the stylesheet can not be found a dialog window will pop up +and ask you if you want that DocFactory creates a stylesheet for you. You +will be offered two different styles ("Classic" and "Modern"). Select one +and press "OK". + + Adding files to a project ~~~~~~~~~~~~~~~~~~~~~~~~~ In order to create a new file within a project or add an existing file to a project simply activate the project's item in the tree on the left -(double-click) and press ``Ctrl+N`` or ``Ctrl+O`` as described above. -The behaviour is like this: If a project is active any file which is -created and/or opened will be added to the active project. (If no -project is active files will be created/opened outside of projects.) +(double-click) and press ``Ctrl+N`` or ``Ctrl+O``. The behaviour is like +this: If a project is active any file which is created and/or opened will +be added to the active project. (If no project is active files will be +created/opened outside of projects.) + + +Editing +------- Keyboard Shortcuts ------------------- +~~~~~~~~~~~~~~~~~~ For rapid development DocFactory features Windows-style keyboard shortcuts: -============================== ====================================== +============================== ======================================= Action Keyboard Shortcut -============================== ====================================== +============================== ======================================= **File Menu** ----------------------------------------------------------------------- +----------------------------------------------------------------------- New File Ctrl+N ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Open File Ctrl+O ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Save File Ctrl+S ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Exit Application Alt+X ------------------------------- -------------------------------------- - +------------------------------ --------------------------------------- +**Edit Menu** +----------------------------------------------------------------------- +Undo Ctrl+Z +------------------------------ --------------------------------------- +Redo Ctrl+Y +------------------------------ --------------------------------------- +Cut Shift+Del, Ctrl+X +------------------------------ --------------------------------------- +Copy Ctrl+Ins, Ctrl+C +------------------------------ --------------------------------------- +Paste Shift+Ins, Ctrl+V +------------------------------ --------------------------------------- +Select all Ctrl+A +------------------------------ --------------------------------------- +Find & Replace Ctrl+F +------------------------------ --------------------------------------- +Goto line Ctrl+G +------------------------------ --------------------------------------- **Process Menu** ----------------------------------------------------------------------- +----------------------------------------------------------------------- To HTML F7 ------------------------------- -------------------------------------- - -**Editing** ----------------------------------------------------------------------- +------------------------------ --------------------------------------- +**Further editing commands** +----------------------------------------------------------------------- Cursor movement Arrow keys or mouse ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Beginning of line Home ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- End of line End ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Beginning of buffer Ctrl+Home ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- End of the buffer Ctrl+End ------------------------------- -------------------------------------- -Select text Hold down Shift while moving the - cursor ------------------------------- -------------------------------------- -Select all text Ctrl+A ------------------------------- -------------------------------------- -Copy Ctrl+Ins, Ctrl+C ------------------------------- -------------------------------------- -Cut Shift+Del, Ctrl+X ------------------------------- -------------------------------------- -Paste Shift+Ins, Ctrl+V ------------------------------- -------------------------------------- -Undo Ctrl+Z ------------------------------- -------------------------------------- -Redo Ctrl+Y ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- +Select text Hold down Shift while moving the cursor +------------------------------ --------------------------------------- Zoom-In Ctrl+L ------------------------------- -------------------------------------- +------------------------------ --------------------------------------- Zoom-Out Ctrl+K -============================== ====================================== +============================== ======================================= Right mouse-click brings up a popup-dialog with most of the above editor commands. Moreover, you can use the mouse to move selected text. -*Now, this should be enough for the beginning. Start playing with -DocFactory, have fun, report bugs, contribute, ... Any kind of -feedback is welcome.* +Find & Replace +~~~~~~~~~~~~~~ + +The "Find & Replace"-dialog was introduced with DocFactory release 0.2 +and is special in the sense that it uses `regular expression syntax`_ +for searching as defined by Python's re-module. This offers a great deal +of flexibility in searching. For example: Searching for ``Fred|Ted`` will +search the file for appearances of ``Fred`` as well as for appearances +of ``Ted``. However, it also requires a certain kind of familiarity with +Python's regular expression syntax. For example: In order to find +appearances of ``C:\temp\test.txt`` you will have to search for +``C:\\temp\\test.txt``. + + +Data storage +============ +DocFactory uses the Python's ConfigParser_-module to store any information +about projects which has to be saved between runs. The storage file has +a ``[docfactory_project: <name of project>]`` section for each project. +(``<name of project>`` is replaced by the project's name.) Each section +header is followed by two ``name=value`` entries: One for all project +files and one for the outputdirectory. For example: The section for +a project called ``project_01`` which consists of two files ``C:\file1.txt``, +``C:\file2.txt`` and whose outputdirectory is ``C:\project1`` looks +like this:: + + [docfactory_project: project_01] + files=C:\file1.txt;C:\file2.txt + outputdirectory=C:\project1 + +As default the data storage file is located in the module's directory +(``os.path.dirname(docutils.factory.__file__)``). The default name of the +file is ``docfactory.dat``. + +You can change the name and location of the data storage file by creating +a file called ``conf.pth`` in the module's directory. This file should +consist of one line only which is the complete data storage path. For +example: If the first line of ``conf.pth`` is + +:: + + /home/fred/.docfactory + +DocFactory will store its data in ``/home/fred/.docfactory``. + Future Directions ================= @@ -255,8 +323,13 @@ * more stylesheets (please contribute!) * preferences dialog -* find & replace dialog -* ... +* [...] + +*Now, this should be enough for the beginning. Start playing with +DocFactory, have fun, report bugs, contribute, ... Any kind of +feedback is welcome.* + +--------- .. Footnotes @@ -269,8 +342,11 @@ .. Hyperlinks -.. _LICENSE.txt: LICENSE.html -.. _reStructuredText: http://docutils.sourceforge.net/rst.html -.. _Python: http://www.python.org -.. _wxPython: http://wxpython.org -.. _Docutils: http://docutils.sourceforge.net +.. _LICENSE.txt: LICENSE.html +.. _reStructuredText: http://docutils.sourceforge.net/rst.html +.. _Python: http://www.python.org +.. _wxPython: http://wxpython.org +.. _Docutils: http://docutils.sourceforge.net +.. _`regular expression syntax`: http://www.python.org/doc/current/lib/re-syntax.html +.. _ConfigParser: http://www.python.org/doc/current/lib/module-ConfigParser.html +.. _DocFactory: http://docutils.sf.net/sandbox/gschwant/docfactory/ Index: docfactory.py =================================================================== RCS file: /cvsroot/docutils/sandbox/gschwant/docfactory/docfactory.py,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- docfactory.py 30 Sep 2002 20:07:54 -0000 1.2 +++ docfactory.py 8 Jan 2003 22:23:36 -0000 1.3 @@ -3,7 +3,7 @@ """ :author: Dr. Gunnar Schwant :contact: g.s...@gm... -:version: 0.1.4 +:version: 0.2 """ from docutils.factory import main Index: setup.py =================================================================== RCS file: /cvsroot/docutils/sandbox/gschwant/docfactory/setup.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- setup.py 30 Sep 2002 18:58:15 -0000 1.3 +++ setup.py 8 Jan 2003 22:23:38 -0000 1.4 @@ -1,5 +1,4 @@ #!/usr/bin/env python -# $Id$ from distutils.core import setup @@ -13,7 +12,7 @@ System requirements: * Python 2.1.1 or later (http://www.python.org). -* wxPython 2.3.2.1 or later (http://wxpython.org). Be sure to get the +* wxPython 2.3.4.2 or later (http://wxpython.org). Be sure to get the build matching the version of Python you're using. * Docutils 0.2.2 or later (http://docutils.sourceforge.net). Use the CVS snapshot. @@ -26,7 +25,7 @@ long_description = LONG_DESCRIPTION, url = ('http://docutils.sourceforge.net/sandbox/gschwant/' 'docfactory/'), - version = '0.1.4', + version = '0.2', author = 'Dr. Gunnar Schwant', author_email = 'g.s...@gm...', license = 'BSD (see LICENSE.txt)', |
From: engelbert g. <gr...@us...> - 2003-01-08 09:00:46
|
Update of /cvsroot/docutils/sandbox/grubert In directory sc8-pr-cvs1:/tmp/cvs-serv16090 Modified Files: latex2e-README.txt Log Message: + paragraphs in tables problem. Index: latex2e-README.txt =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex2e-README.txt,v retrieving revision 1.51 retrieving revision 1.52 diff -u -d -r1.51 -r1.52 --- latex2e-README.txt 7 Jan 2003 09:53:12 -0000 1.51 +++ latex2e-README.txt 8 Jan 2003 09:00:40 -0000 1.52 @@ -4,20 +4,21 @@ for processing tools/test.txt use pdflatex because it will handle png-images. -Rev. 2003-01-07 +Rev. 2003-01-08 To do ~~~~~ -* paragraph separation in tables is hairy. In tools.txt the option tables - right column, there should be some more spacing between the description - and "Default:". +* In tools.txt the option tables right column, there should be some more spacing + between the description and the next paragraph "Default:". + Paragraph separation in tables is hairy. see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=struttab - The strut solution did not work. - setting extrarowheight added ad top of row not between paragraphs in a cell. ALTHOUGH i set it to 2pt because, text is too close to the topline. + - baselineskip/stretch does not help. * two hlines after table head and on table end ? |
From: engelbert g. <gr...@us...> - 2003-01-07 10:01:32
|
Update of /cvsroot/docutils/sandbox/grubert/latex In directory sc8-pr-cvs1:/tmp/cvs-serv26916/latex Modified Files: latex2e.py Log Message: * forgot end of line after addextrarowheight. Index: latex2e.py =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex/latex2e.py,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- latex2e.py 7 Jan 2003 09:53:13 -0000 1.59 +++ latex2e.py 7 Jan 2003 10:01:21 -0000 1.60 @@ -235,7 +235,7 @@ # but ?? # # extra space between text in tables and the line above them - '\\setlength{\\extrarowheight}{2pt}', + '\\setlength{\\extrarowheight}{2pt}\n', '\\usepackage{amsmath}\n', # what fore amsmath. '\\usepackage{graphicx}\n', '\\usepackage{color}\n', |
From: engelbert g. <gr...@us...> - 2003-01-07 09:53:21
|
Update of /cvsroot/docutils/sandbox/grubert In directory sc8-pr-cvs1:/tmp/cvs-serv23760 Modified Files: latex2e-README.txt runtest Log Message: * setlength extrarowheight 2pt too get a little space between text in tables and the lines above them. Index: latex2e-README.txt =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex2e-README.txt,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- latex2e-README.txt 3 Jan 2003 19:14:49 -0000 1.50 +++ latex2e-README.txt 7 Jan 2003 09:53:12 -0000 1.51 @@ -4,18 +4,26 @@ for processing tools/test.txt use pdflatex because it will handle png-images. -Rev. 2003-01-03 +Rev. 2003-01-07 To do ~~~~~ +* paragraph separation in tables is hairy. In tools.txt the option tables + right column, there should be some more spacing between the description + and "Default:". + + see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=struttab + + - The strut solution did not work. + - setting extrarowheight added ad top of row not between paragraphs in + a cell. ALTHOUGH i set it to 2pt because, text is too close to the topline. + * two hlines after table head and on table end ? * doctest blocks is incorrect (python prompt is escaped inside verbatim). -+ table: multicol cells are always {l}. - -* should tables without vertical markup be set without borders ? +* table: multicol cells are always {l}. * pdfbookmark level 4 (and greater) does not work (might be settable but OTOH). @@ -120,6 +128,8 @@ Done ~~~~ +* setlength extrarowheight 2pt too get a little space between text in tables + and the lines above them. * table: multicol rows have no vertical lines. * --use-latex-toc: so we get pagenumbers. * reduce table width to 0.93 of linewidth. Index: runtest =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/runtest,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- runtest 27 Dec 2002 15:05:51 -0000 1.2 +++ runtest 7 Jan 2003 09:53:12 -0000 1.3 @@ -1,6 +1,6 @@ #!/bin/sh -CMD="py22 ./latex.py" +CMD="python2.2 ./latex.py" if [ -z "$1" ] ; then FM="*.txt" |
From: engelbert g. <gr...@us...> - 2003-01-07 09:53:21
|
Update of /cvsroot/docutils/sandbox/grubert/latex In directory sc8-pr-cvs1:/tmp/cvs-serv23760/latex Modified Files: latex2e.py Log Message: * setlength extrarowheight 2pt too get a little space between text in tables and the lines above them. Index: latex2e.py =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex/latex2e.py,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- latex2e.py 3 Jan 2003 19:14:52 -0000 1.58 +++ latex2e.py 7 Jan 2003 09:53:13 -0000 1.59 @@ -199,7 +199,6 @@ generator = '%% generator Docutils: http://docutils.sourceforge.net/\n' # use latex tableofcontents or let docutils do it. - # BUG: not tested. use_latex_toc = 0 # table kind: if 0 tabularx (single page), 1 longtable # maybe should be decided on row count. @@ -233,7 +232,10 @@ # possible other packages. # * fancyhdr # * ltxtable is a combination of tabularx and longtable (pagebreaks). - # but + # but ?? + # + # extra space between text in tables and the line above them + '\\setlength{\\extrarowheight}{2pt}', '\\usepackage{amsmath}\n', # what fore amsmath. '\\usepackage{graphicx}\n', '\\usepackage{color}\n', |
From: Bill B. <bb...@us...> - 2003-01-06 00:54:09
|
Update of /cvsroot/docutils/sandbox/bbum/DocArticle/DocArticle In directory sc8-pr-cvs1:/tmp/cvs-serv8782/DocArticle/DocArticle Modified Files: __init__.py Log Message: DocArticle can now process test.txt. Index: __init__.py =================================================================== RCS file: /cvsroot/docutils/sandbox/bbum/DocArticle/DocArticle/__init__.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- __init__.py 29 Dec 2002 05:07:28 -0000 1.3 +++ __init__.py 6 Jan 2003 00:54:04 -0000 1.4 @@ -24,7 +24,7 @@ from DocArticle import DocArticleText class DocArticleWriter(writers.Writer): - supported = ('html') + supported = ('html',) """Formats this writer supports.""" output = None @@ -74,6 +74,7 @@ self.spewTextContext = [True] self.spewParaTag = [SpewParagraph] self.paraFormat = [(None,None)] + self.colspecs = [] self.body_pre_docinfo = [] self.docinfo = [] @@ -112,6 +113,10 @@ """Cleanse, HTML encode, and return attribute value text.""" return self.encode(whitespace.sub(' ', text)) + def emptytag(self, node, tagname, suffix='\n', **attributes): + """Construct and return an XML-compatible empty tag.""" + return self.starttag(node, tagname, suffix, infix=' /', **attributes) + def visit_Text(self, node): if self.spewTextContext[-1]: self.bodyContent.append(self.encode(node.astext())) @@ -119,11 +124,19 @@ def depart_Text(self, node): pass + def visit_address(self, node): + self.visit_docinfo_item(node, 'address', meta=None) + self.bodyContent.append(self.starttag(node, 'pre')) + + def depart_address(self, node): + self.bodyContent.append('\n</pre>\n') + self.depart_docinfo_item(node) + def visit_admonition(self, node, name): self.bodyContent.append('<hr width="50%" />') self.bodyContent.append('<b>' + self.language.labels[name.lower()] + ':</b><br />\n') - def depart_admonition(self): + def depart_admonition(self, node): self.bodyContent.append('<hr width="50%" />') def visit_author(self, node): @@ -132,11 +145,17 @@ def depart_author(self, node): self.depart_docinfo_item(node) + def visit_authors(self, node): + pass + + def depart_authors(self, node): + pass + def visit_attention(self, node): self.visit_admonition(node, 'attention') def depart_attention(self, node): - self.depart_admonition() + self.depart_admonition(node) def visit_block_quote(self, node): self.bodyContent.append(self.starttag(node, 'blockquote')) @@ -144,6 +163,12 @@ def depart_block_quote(self, node): self.bodyContent.append('</blockquote>\n') + def visit_line_block(self, node): + self.bodyContent.append(self.starttag(node, 'pre')) + + def depart_line_block(self, node): + self.bodyContent.append('\n</pre>\n') + def visit_bullet_list(self, node): self.bodyContent.append(self.starttag(node, 'ul')) self.spewParaTag.append(SpewNothing) @@ -152,6 +177,68 @@ self.bodyContent.append('</ul>\n') self.spewParaTag.pop() + def visit_caption(self, node): + self.bodyContent.append(self.starttag(node, 'p', '')) + + def depart_caption(self, node): + self.bodyContent.append('</p>\n') + + def visit_caution(self, node): + self.visit_admonition(node, 'caution') + + def depart_caution(self, node): + self.depart_admonition(node) + + def visit_citation(self, node): + ##! verify col configuration + self.bodyContent.append(self.starttag(node, 'table')) + self.bodyContent.append('<colgroup><col /><col /></colgroup>\n' + '<col />\n' + '<tbody valign="top">\n' + '<tr>') + self.footnote_backrefs(node) + + def depart_citation(self, node): + self.bodyContent.append('</td></tr>\n' + '</tbody>\n</table>\n') + + def visit_citation_reference(self, node): + href = '' + if node.has_key('refid'): + href = '#' + node['refid'] + elif node.has_key('refname'): + href = '#' + self.document.nameids[node['refname']] + self.bodyContent.append(self.starttag(node, 'a', '[', href=href)) + + def depart_citation_reference(self, node): + self.bodyContent.append(']</a>') + + def visit_classifier(self, node): + pass + + def depart_classifier(self, node): + pass + + def visit_colspec(self, node): + self.colspecs.append(node) + + def depart_colspec(self, node): + pass + + def write_colspecs(self): + ##! verify + width = 0 + for node in self.colspecs: + width += node['colwidth'] + for node in self.colspecs: + colwidth = int(node['colwidth'] * 100.0 / width + 0.5) + self.bodyContent.append(self.emptytag(node, 'col', width='%i%%' % colwidth)) + self.colspecs = [] + + def visit_comment(self, node, sub=re.compile('-(?=-)').sub): + self.bodyContent.append('<!-- %s -->\n' % sub('- ', node.astext())) + raise nodes.SkipNode + def visit_contact(self, node): self.visit_docinfo_item(node, 'Contact') @@ -164,12 +251,49 @@ def depart_copyright(self, node): self.depart_docinfo_item(node) + def visit_danger(self, node): + self.visit_admonition(node, 'danger') + + def depart_danger(self, node): + self.depart_admonition(node) + + def visit_date(self, node): + self.visit_docinfo_item(node, 'date') + + def depart_date(self, node): + self.depart_docinfo_item(node) + def visit_decoration(self, node): pass def depart_decoration(self, node): pass + def visit_definition(self, node): + self.bodyContent.append('</dt>\n') + self.bodyContent.append(self.starttag(node, 'dd', '')) + + def depart_definition(self, node): + self.bodyContent.append('</dd>\n') + + def visit_definition_list(self, node): + self.bodyContent.append(self.starttag(node, 'dl')) + + def depart_definition_list(self, node): + self.bodyContent.append('</dl>\n') + + def visit_definition_list_item(self, node): + pass + + def depart_definition_list_item(self, node): + pass + + def visit_description(self, node): + self.bodyContent.append(self.starttag(node, 'td', '')) + + def depart_description(self, node): + self.bodyContent.append('</td>') + def visit_docinfo(self, node): self.context.append(len(self.bodyContent)) self.bodyContent.append(self.starttag(node, 'table')) @@ -194,6 +318,12 @@ def depart_docinfo_item(self, node): self.bodyContent.append('</td></tr>\n') + def visit_doctest_block(self, node): + self.bodyContent.append(self.starttag(node, 'pre')) + + def depart_doctest_block(self, node): + self.bodyContent.append('\n</pre>\n') + def visit_document(self, node): pass @@ -206,6 +336,24 @@ def depart_emphasis(self, node): self.bodyContent.append('</i>') + def visit_entry(self, node): + if isinstance(node.parent.parent, nodes.thead): + tagname = 'th' + else: + tagname = 'td' + atts = {} + if node.has_key('morerows'): + atts['rowspan'] = node['morerows'] + 1 + if node.has_key('morecols'): + atts['colspan'] = node['morecols'] + 1 + self.bodyContent.append(self.starttag(node, tagname, '', **atts)) + self.context.append('</%s>\n' % tagname.lower()) + if len(node) == 0: # empty cell + self.bodyContent.append(' ') + + def depart_entry(self, node): + self.bodyContent.append(self.context.pop()) + def visit_enumerated_list(self, node): atts = {} if node.has_key('start'): @@ -217,6 +365,12 @@ def depart_enumerated_list(self, node): self.bodyContent.append('</ol>\n') + def visit_error(self, node): + self.visit_admonition(node, 'error') + + def depart_error(self, node): + self.depart_admonition(node) + def visit_field(self, node): self.bodyContent.append(self.starttag(node, 'tr', '')) @@ -251,6 +405,12 @@ self.bodyContent.append(':</th>') self.bodyContent.append(self.context.pop()) + def visit_figure(self, node): + self.bodyContent.append(self.starttag(node, 'div')) + + def depart_figure(self, node): + self.bodyContent.append('</div>\n') + def check_simple_list(self, node): """Check for a simple list that can be rendered compactly.""" visitor = SimpleListChecker(self.document) @@ -320,6 +480,46 @@ self.bodyContent.append(self.context.pop()) self.bodyContent.append('</b>') + def visit_generated(self, node): + pass + + def depart_generated(self, node): + pass + + def visit_hint(self, node): + self.visit_admonition(node, 'hint') + + def depart_hint(self, node): + self.depart_admonition(node) + + def visit_image(self, node): + atts = node.attributes.copy() + atts['src'] = atts['uri'] + del atts['uri'] + if not atts.has_key('alt'): + atts['alt'] = atts['src'] + if isinstance(node.parent, nodes.TextElement): + self.context.append(None) + else: + self.bodyContent.append('<p>') + self.context.append('</p>\n') + self.bodyContent.append(self.emptytag(node, 'img', '', **atts)) + + depart_image = popAndAppend + + def visit_important(self, node): + self.visit_admonition(node, 'important') + + def depart_important(self, node): + self.depart_admonition(node) + + def visit_interpreted(self, node): + ###! no idea what to do here + pass + + def depart_interpreted(self, node): + pass + def visit_label(self, node): self.bodyContent.append(self.starttag(node, 'td', '<b>[%s' % self.context.pop())) @@ -327,6 +527,12 @@ self.paraFormat.append(('<font size=-1><i>', '</i></font>')) self.bodyContent.append('</a>]</b></td><td>%s' % self.context.pop()) + def visit_legend(self, node): + self.bodyContent.append(self.starttag(node, 'div')) + + def depart_legend(self, node): + self.bodyContent.append('</div>\n') + def visit_list_item(self, node): self.bodyContent.append(self.starttag(node, 'li', '')) self.spewParaTag.append(SpewNothingThenPara) @@ -358,11 +564,72 @@ def depart_literal_block(self, node): self.bodyContent.append('\n</pre>\n') + def visit_meta(self, node): + self.headerContent.append(self.emptytag(node, 'meta', **node.attributes)) + + def depart_meta(self, node): + pass + def visit_note(self, node): self.visit_admonition(node, 'note') def depart_note(self, node): - self.depart_admonition() + self.depart_admonition(node) + + def visit_option(self, node): + if self.context[-1]: + self.bodyContent.append(', ') + + def depart_option(self, node): + self.context[-1] += 1 + + def visit_option_argument(self, node): + self.bodyContent.append(node.get('delimiter', ' ')) + self.bodyContent.append(self.starttag(node, 'var', '')) + + def depart_option_argument(self, node): + self.bodyContent.append('</var>') + + def visit_option_group(self, node): + atts = {} + if len(node.astext()) > 14: + atts['colspan'] = 2 + self.context.append('</tr>\n<tr><td> </td>') + else: + self.context.append('') + self.bodyContent.append(self.starttag(node, 'td', **atts)) + self.bodyContent.append('<kbd>') ###! What tag is this? + self.context.append(0) # count number of options + + def depart_option_group(self, node): + self.context.pop() + self.bodyContent.append('</kbd></td>\n') + self.bodyContent.append(self.context.pop()) + + def visit_option_list(self, node): + self.bodyContent.append(self.starttag(node, 'table')) + self.bodyContent.append('<tbody valign="top">\n') + + def depart_option_list(self, node): + self.bodyContent.append('</tbody>\n</table>\n') + + def visit_option_list_item(self, node): + self.bodyContent.append(self.starttag(node, 'tr', '')) + + def depart_option_list_item(self, node): + self.bodyContent.append('</tr>\n') + + def visit_option_string(self, node): + self.bodyContent.append(self.starttag(node, 'span', '')) + + def depart_option_string(self, node): + self.bodyContent.append('</span>') + + def visit_organization(self, node): + self.visit_docinfo_item(node, 'organization') + + def depart_organization(self, node): + self.depart_docinfo_item(node) def visit_paragraph(self, node): currentSpewParaTag = self.spewParaTag[-1] @@ -415,6 +682,18 @@ depart_reference = popAndAppend + def visit_revision(self, node): + self.visit_docinfo_item(node, 'revision') + + def depart_revision(self, node): + self.depart_docinfo_item(node) + + def visit_row(self, node): + self.bodyContent.append(self.starttag(node, 'tr', '')) + + def depart_row(self, node): + self.bodyContent.append('</tr>\n') + def visit_section(self, node): self.section_level += 1 #hTag = 'h%s'% self.section_level @@ -424,27 +703,85 @@ def depart_section(self, node): self.section_level -= 1 + def visit_status(self, node): + self.visit_docinfo_item(node, 'status', meta=None) + + def depart_status(self, node): + self.depart_docinfo_item(node) + def visit_strong(self, node): self.bodyContent.append('<strong>') def depart_strong(self, node): self.bodyContent.append('</strong>') + def visit_substitution_definition(self, node): + raise nodes.SkipNode # internal + + def visit_substitution_reference(self, node): + pass + def visit_subtitle(self, node): self.bodyContent.append(self.starttag(node, 'h3', '')) def depart_subtitle(self, node): self.bodyContent.append('</h3>\n') + def visit_table(self, node): + self.bodyContent.append(self.starttag(node, 'table')) + + def depart_table(self, node): + self.bodyContent.append('</table>\n') + def visit_target(self, node): if not (node.has_key('refuri') or node.has_key('refid') or node.has_key('refname')): - self.bodyContents.append(self.starttag(node, 'a', '')) + self.bodyContent.append(self.starttag(node, 'a', '')) self.context.append('</a>') else: self.context.append(None) depart_target = popAndAppend + def visit_tbody(self, node): + self.write_colspecs() + self.bodyContent.append(self.context.pop()) # '</colgroup>\n' or '' + self.bodyContent.append(self.starttag(node, 'tbody', valign='top')) + + def depart_tbody(self, node): + self.bodyContent.append('</tbody>\n') + + def visit_term(self, node): + self.bodyContent.append(self.starttag(node, 'dt', '')) + + def depart_term(self, node): + pass + + def visit_tgroup(self, node): + ###! verify + # Mozilla needs <colgroup>: + self.bodyContent.append(self.starttag(node, 'colgroup')) + # Appended by thead or tbody: + self.context.append('</colgroup>\n') + + def depart_tgroup(self, node): + pass + + def visit_thead(self, node): + self.write_colspecs() + self.bodyContent.append(self.context.pop()) # '</colgroup>\n' + # There may or may not be a <thead>; this is for <tbody> to use: + self.context.append('') + self.bodyContent.append(self.starttag(node, 'thead', valign='bottom')) + + def depart_thead(self, node): + self.bodyContent.append('</thead>\n') + + def visit_tip(self, node): + self.visit_admonition(node, 'tip') + + def depart_tip(self, node): + self.depart_admonition(node) + def visit_title(self, node): if isinstance(node.parent, nodes.topic): self.bodyContent.append(self.starttag(node, 'p', '')) @@ -482,7 +819,26 @@ def depart_topic(self, node): pass + def visit_transition(self, node): + self.bodyContent.append(self.emptytag(node, 'hr')) + + def depart_transition(self, node): + pass + + def visit_version(self, node): + self.visit_docinfo_item(node, 'version') + + def depart_version(self, node): + self.depart_docinfo_item(node) + + def visit_warning(self, node): + self.visit_admonition(node, 'warning') + + def depart_warning(self, node): + self.depart_admonition(node) + def unknown_visit(self, node): + print 'Node: %s' % node.__class__.__name__ print "Failure processing at line (%s) of node:\n %s" % (node.line, node.pformat()) raise NotImplementedError('visiting unknown node type: %s' % node.__class__.__name__) |
From: Bill B. <bb...@us...> - 2003-01-06 00:54:09
|
Update of /cvsroot/docutils/sandbox/bbum In directory sc8-pr-cvs1:/tmp/cvs-serv8782 Modified Files: ChangeLog Log Message: DocArticle can now process test.txt. Index: ChangeLog =================================================================== RCS file: /cvsroot/docutils/sandbox/bbum/ChangeLog,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ChangeLog 29 Dec 2002 05:07:28 -0000 1.3 +++ ChangeLog 6 Jan 2003 00:54:04 -0000 1.4 @@ -1,3 +1,8 @@ +2003-01-05 Bill Bumgarner <bb...@co...> + + * DocArticle/DocArticle/__init__.py: Can now successfully [I think] + process test.txt. Output is not exactly pretty yet. + 2002-12-28 Bill Bumgarner <bb...@co...> * Added support for subtitle, note, and block_quote. Cleaned up a compile of CSS leftovers. |
From: David G. <go...@us...> - 2003-01-04 15:02:26
|
Update of /cvsroot/docutils/docutils/spec In directory sc8-pr-cvs1:/tmp/cvs-serv15547/docutils/spec Modified Files: docutils.dtd Log Message: added warning Index: docutils.dtd =================================================================== RCS file: /cvsroot/docutils/docutils/spec/docutils.dtd,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- docutils.dtd 3 Oct 2002 22:25:30 -0000 1.15 +++ docutils.dtd 4 Jan 2003 15:02:22 -0000 1.16 @@ -493,6 +493,11 @@ <!ELEMENT strong %text.model;> <!ATTLIST strong %basic.atts;> +<!-- +WARNING: The "interpreted" element is a placeholder for testing +purposes only. Once proper parser support is in place, it will be +removed. +--> <!ELEMENT interpreted %text.model;> <!ATTLIST interpreted %basic.atts; |
From: David G. <go...@us...> - 2003-01-04 01:06:28
|
Update of /cvsroot/docutils/docutils/test In directory sc8-pr-cvs1:/tmp/cvs-serv6284 Modified Files: DocutilsTestSupport.py Log Message: improved test skipping support Index: DocutilsTestSupport.py =================================================================== RCS file: /cvsroot/docutils/docutils/test/DocutilsTestSupport.py,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- DocutilsTestSupport.py 4 Jan 2003 00:18:34 -0000 1.19 +++ DocutilsTestSupport.py 4 Jan 2003 01:06:25 -0000 1.20 @@ -502,18 +502,33 @@ run_in_debugger=run_in_debugger) +class PythonModuleParserTestCase(CustomTestCase): + + def test_parser(self): + if self.run_in_debugger: + pdb.set_trace() + module = moduleparser.parse_module(self.input, 'test data') + output = str(module) + self.compare_output(self.input, output, self.expected) + + def test_token_parser_rhs(self): + if self.run_in_debugger: + pdb.set_trace() + tr = moduleparser.TokenParser(self.input) + output = tr.rhs(1) + self.compare_output(self.input, output, self.expected) + + class PythonModuleParserTestSuite(CustomTestSuite): """ A collection of PythonModuleParserTestCase. """ - if moduleparser: - test_methods = {'test_parser': 'test_parser', - 'test_token_parser_rhs': 'test_token_parser_rhs'} - else: - test_methods = {'test_parser': 'skip_test', - 'test_token_parser_rhs': 'skip_test'} + if moduleparser is None: + PythonModuleParserTestCase.test_parser = CustomTestCase.skip_test + PythonModuleParserTestCase.test_token_parser_rhs = \ + CustomTestCase.skip_test def generateTests(self, dict, dictname='totest', testmethod='test_parser'): @@ -536,28 +551,10 @@ else: continue self.addTestCase( - PythonModuleParserTestCase, - self.test_methods[testmethod], + PythonModuleParserTestCase, testmethod, input=case[0], expected=case[1], id='%s[%r][%s]' % (dictname, name, casenum), run_in_debugger=run_in_debugger) - - -class PythonModuleParserTestCase(CustomTestCase): - - def test_parser(self): - if self.run_in_debugger: - pdb.set_trace() - module = moduleparser.parse_module(self.input, 'test data') - output = str(module) - self.compare_output(self.input, output, self.expected) - - def test_token_parser_rhs(self): - if self.run_in_debugger: - pdb.set_trace() - tr = moduleparser.TokenParser(self.input) - output = tr.rhs(1) - self.compare_output(self.input, output, self.expected) def exception_args(code): |
From: David G. <go...@us...> - 2003-01-04 00:24:53
|
Update of /cvsroot/docutils/docutils/test In directory sc8-pr-cvs1:/tmp/cvs-serv26993/docutils/test Added Files: difflib.py Log Message: Restoring for Python 2.1 compatibility. |
From: David G. <go...@us...> - 2003-01-04 00:19:01
|
Update of /cvsroot/docutils/docutils/docutils/readers/python In directory sc8-pr-cvs1:/tmp/cvs-serv25425/docutils/docutils/readers/python Modified Files: moduleparser.py Log Message: docstring Index: moduleparser.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/readers/python/moduleparser.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- moduleparser.py 29 Dec 2002 18:37:18 -0000 1.8 +++ moduleparser.py 4 Jan 2003 00:18:58 -0000 1.9 @@ -203,6 +203,10 @@ class Node: + """ + Base class for module documentation tree nodes. + """ + def __init__(self, node): self.children = [] """List of child nodes.""" |
From: David G. <go...@us...> - 2003-01-04 00:18:39
|
Update of /cvsroot/docutils/docutils/test In directory sc8-pr-cvs1:/tmp/cvs-serv25296/docutils/test Modified Files: DocutilsTestSupport.py Log Message: Support for skipping tests. Index: DocutilsTestSupport.py =================================================================== RCS file: /cvsroot/docutils/docutils/test/DocutilsTestSupport.py,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- DocutilsTestSupport.py 14 Dec 2002 01:38:58 -0000 1.18 +++ DocutilsTestSupport.py 4 Jan 2003 00:18:34 -0000 1.19 @@ -47,15 +47,20 @@ from docutils.parsers import rst from docutils.parsers.rst import states, tableparser, directives, languages from docutils.readers import standalone, pep, python -from docutils.readers.python import moduleparser from docutils.statemachine import string2lines try: + from docutils.readers.python import moduleparser +except: + moduleparser = None + +try: import mypdb as pdb except: import pdb + class DevNull: """Output sink.""" @@ -194,6 +199,9 @@ output.splitlines(1))) raise + def skip_test(self): + print >>sys.stderr, '%s: Test skipped' % self + class TransformTestSuite(CustomTestSuite): @@ -500,6 +508,13 @@ A collection of PythonModuleParserTestCase. """ + if moduleparser: + test_methods = {'test_parser': 'test_parser', + 'test_token_parser_rhs': 'test_token_parser_rhs'} + else: + test_methods = {'test_parser': 'skip_test', + 'test_token_parser_rhs': 'skip_test'} + def generateTests(self, dict, dictname='totest', testmethod='test_parser'): """ @@ -521,7 +536,8 @@ else: continue self.addTestCase( - PythonModuleParserTestCase, testmethod, + PythonModuleParserTestCase, + self.test_methods[testmethod], input=case[0], expected=case[1], id='%s[%r][%s]' % (dictname, name, casenum), run_in_debugger=run_in_debugger) |
From: David G. <go...@us...> - 2003-01-04 00:18:01
|
Update of /cvsroot/docutils/web In directory sc8-pr-cvs1:/tmp/cvs-serv25119/web Modified Files: index.txt Log Message: Restored 2.1 requirement (with compiler package). Index: index.txt =================================================================== RCS file: /cvsroot/docutils/web/index.txt,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- index.txt 3 Jan 2003 03:48:48 -0000 1.39 +++ index.txt 4 Jan 2003 00:17:57 -0000 1.40 @@ -80,12 +80,16 @@ Requirements ------------ -- Python 2.2 or later must already be installed to run the code and - the test suite. The latest release is recommended (currently +- Python 2.2 or later [#]_ must already be installed to run the code + and the test suite. The latest release is recommended (currently 2.2.2). Python is available from http://www.python.org/. - Docutils uses Greg Ward's Optik_ option processing package. It is now included in the Docutils distribution. + +.. [#] Python 2.1 may be used providing the compiler package is + installed. The compiler package can be found in the Tools/ + directory of Python's source distribution. .. _Optik: http://optik.sourceforge.net/ |
From: David G. <go...@us...> - 2003-01-04 00:17:52
|
Update of /cvsroot/docutils/docutils In directory sc8-pr-cvs1:/tmp/cvs-serv25083/docutils Modified Files: README.txt Log Message: Restored 2.1 requirement (with compiler package). Index: README.txt =================================================================== RCS file: /cvsroot/docutils/docutils/README.txt,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- README.txt 3 Jan 2003 03:48:36 -0000 1.24 +++ README.txt 4 Jan 2003 00:17:49 -0000 1.25 @@ -26,7 +26,7 @@ http://www.python.org/ - Python 2.2 or later is required; Python 2.2.2 or later is + Python 2.2 or later [#py21]_ is required; Python 2.2.2 or later is recommended. 2. Use the latest Docutils code. Get the code from CVS or from the @@ -109,9 +109,13 @@ Requirements ============ -To run the code, Python 2.2 or later must already be installed. The -latest release is recommended (2.2.2 as of this writing). Python is -available from http://www.python.org/. +To run the code, Python 2.2 or later [#py21]_ must already be +installed. The latest release is recommended (2.2.2 as of this +writing). Python is available from http://www.python.org/. + +.. [#py21] Python 2.1 may be used providing the compiler package is + installed. The compiler package can be found in the Tools/ + directory of Python's source distribution. Project Files & Directories |
From: engelbert g. <gr...@us...> - 2003-01-03 19:15:33
|
Update of /cvsroot/docutils/sandbox/grubert/latex In directory sc8-pr-cvs1:/tmp/cvs-serv6286/latex Modified Files: latex2e.py Log Message: + table multicolumn cells need explicit vertical bars. Index: latex2e.py =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex/latex2e.py,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- latex2e.py 27 Dec 2002 15:05:51 -0000 1.57 +++ latex2e.py 3 Jan 2003 19:14:52 -0000 1.58 @@ -611,7 +611,10 @@ def visit_entry(self, node): # cell separation + column_one = 1 if self.context[-1] > 0: + column_one = 0 + if not column_one: self.body.append(' & ') # multi{row,column} @@ -621,11 +624,17 @@ atts = {} if node.has_key('morerows'): count = node['morerows'] + 1 - self.body.append('\\multirow{%s}*{' % count) + self.body.append('\\multirow{%d}*{' % count) self.context.append('}') elif node.has_key('morecols'): + # the vertical bar before column is missing if it is the first column. + # the one after always. + if column_one: + bar = '|' + else: + bar = '' count = node['morecols'] + 1 - self.body.append('\\multicolumn{%s}{l}{' % count) + self.body.append('\\multicolumn{%d}{%sl|}{' % (count, bar)) self.context.append('}') else: self.context.append('') |
From: engelbert g. <gr...@us...> - 2003-01-03 19:15:32
|
Update of /cvsroot/docutils/sandbox/grubert In directory sc8-pr-cvs1:/tmp/cvs-serv6286 Modified Files: latex2e-README.txt Log Message: + table multicolumn cells need explicit vertical bars. Index: latex2e-README.txt =================================================================== RCS file: /cvsroot/docutils/sandbox/grubert/latex2e-README.txt,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- latex2e-README.txt 27 Dec 2002 15:05:51 -0000 1.49 +++ latex2e-README.txt 3 Jan 2003 19:14:49 -0000 1.50 @@ -4,15 +4,16 @@ for processing tools/test.txt use pdflatex because it will handle png-images. -Rev. 2002-12-27 +Rev. 2003-01-03 To do ~~~~~ - * two hlines after table head and on table end ? -* table: multicol rows have now lines. +* doctest blocks is incorrect (python prompt is escaped inside verbatim). + ++ table: multicol cells are always {l}. * should tables without vertical markup be set without borders ? @@ -119,6 +120,7 @@ Done ~~~~ +* table: multicol rows have no vertical lines. * --use-latex-toc: so we get pagenumbers. * reduce table width to 0.93 of linewidth. * decrement pdfbookmark levels. now 0 to 3. |
From: David G. <go...@us...> - 2003-01-03 03:49:35
|
Update of /cvsroot/docutils/docutils/test In directory sc8-pr-cvs1:/tmp/cvs-serv3782/docutils/test Removed Files: difflib.py Log Message: Redundant now that Python 2.2 is required. --- difflib.py DELETED --- |
From: David G. <go...@us...> - 2003-01-03 03:48:51
|
Update of /cvsroot/docutils/web In directory sc8-pr-cvs1:/tmp/cvs-serv3476/web Modified Files: index.txt Log Message: Upgraded minimum Python requirement to 2.2 because of the use of the compiler package (a separate install in 2.1). Index: index.txt =================================================================== RCS file: /cvsroot/docutils/web/index.txt,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- index.txt 7 Dec 2002 03:11:38 -0000 1.38 +++ index.txt 3 Jan 2003 03:48:48 -0000 1.39 @@ -80,9 +80,9 @@ Requirements ------------ -- Python 2.1 or later must already be installed to run the code and - the test suite. The latest release is recommended (currently 2.1.3 - or 2.2.2). Python is available from http://www.python.org/. +- Python 2.2 or later must already be installed to run the code and + the test suite. The latest release is recommended (currently + 2.2.2). Python is available from http://www.python.org/. - Docutils uses Greg Ward's Optik_ option processing package. It is now included in the Docutils distribution. |
From: David G. <go...@us...> - 2003-01-03 03:48:39
|
Update of /cvsroot/docutils/docutils In directory sc8-pr-cvs1:/tmp/cvs-serv3402/docutils Modified Files: README.txt Log Message: Upgraded minimum Python requirement to 2.2 because of the use of the compiler package (a separate install in 2.1). Index: README.txt =================================================================== RCS file: /cvsroot/docutils/docutils/README.txt,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- README.txt 7 Dec 2002 03:10:37 -0000 1.23 +++ README.txt 3 Jan 2003 03:48:36 -0000 1.24 @@ -26,7 +26,7 @@ http://www.python.org/ - Python 2.1.3 or later is required; Python 2.2.2 or later is + Python 2.2 or later is required; Python 2.2.2 or later is recommended. 2. Use the latest Docutils code. Get the code from CVS or from the @@ -109,9 +109,9 @@ Requirements ============ -To run the code, Python 2.1 or later must already be installed. The -latest release is recommended (2.1.3 or 2.2.1 as of this writing). -Python is available from http://www.python.org/. +To run the code, Python 2.2 or later must already be installed. The +latest release is recommended (2.2.2 as of this writing). Python is +available from http://www.python.org/. Project Files & Directories |
From: David G. <go...@us...> - 2003-01-03 00:52:04
|
Update of /cvsroot/docutils/docutils/test In directory sc8-pr-cvs1:/tmp/cvs-serv16088/docutils/test Modified Files: test_nodes.py Log Message: updated Index: test_nodes.py =================================================================== RCS file: /cvsroot/docutils/docutils/test/test_nodes.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- test_nodes.py 9 Oct 2002 00:51:52 -0000 1.8 +++ test_nodes.py 3 Jan 2003 00:52:01 -0000 1.9 @@ -28,11 +28,6 @@ def test_str(self): self.assertEquals(str(self.text), 'Line 1.\nLine 2.') - def test_asdom(self): - dom = self.text.asdom() - self.assertEquals(dom.toxml(), 'Line 1.\nLine 2.') - dom.unlink() - def test_astext(self): self.assertEquals(self.text.astext(), 'Line 1.\nLine 2.') |
From: David G. <go...@us...> - 2003-01-03 00:50:39
|
Update of /cvsroot/docutils/docutils/spec In directory sc8-pr-cvs1:/tmp/cvs-serv14393/docutils/spec Modified Files: notes.txt Log Message: updated Index: notes.txt =================================================================== RCS file: /cvsroot/docutils/docutils/spec/notes.txt,v retrieving revision 1.116 retrieving revision 1.117 diff -u -d -r1.116 -r1.117 --- notes.txt 29 Dec 2002 18:37:43 -0000 1.116 +++ notes.txt 3 Jan 2003 00:50:36 -0000 1.117 @@ -414,6 +414,17 @@ .. _additional docstrings: pep-0258.html#additional-docstrings +* HappyDoc uses an initial comment block to set "parser configuration + values". Do the same thing for Docutils, to set runtime settings on + a per-module basis? I.e.:: + + # Docutils:setting=value + + Could be used to turn on/off function parameter comment recognition + & other marginal features. Could be used as a general mechanism to + augment config files and command-line options (but which takes + precedence?). + * Multi-file output should be divisible at arbitrary level. * Support all forms of ``import`` statements: @@ -507,6 +518,13 @@ exposition in the spec, to make clear what is going on for people with head colds. +* @@@ Add interpreted text support code. + + Ideally and eventually, the "interpreted" element will disappear + from the Docutils doctree. In its place will be a customizable set + of inline elements including "acronym" and "index_entry", directly + created by the parser. + * Alan Jaffray suggested (and I agree) that it would be sensible to: - have a directive and/or command-line option to specify a default @@ -1013,6 +1031,15 @@ Docutils could be made to generate hyperlinks to all known system_messages and add them to the document, perhaps to the end of the "Docutils System Messages" section. + + +Filtering System Messages +````````````````````````` + +Currently the Writer is responsible for filtering out system messages +that are below the current threshold. Should the filtering be in a +separate transform? It would then happen regardless of the writer +used. Perhaps some writers don't want system messages filtered? Others |
From: David G. <go...@us...> - 2003-01-03 00:50:26
|
Update of /cvsroot/docutils/docutils In directory sc8-pr-cvs1:/tmp/cvs-serv14028/docutils Modified Files: HISTORY.txt Log Message: updated Index: HISTORY.txt =================================================================== RCS file: /cvsroot/docutils/docutils/HISTORY.txt,v retrieving revision 1.109 retrieving revision 1.110 diff -u -d -r1.109 -r1.110 --- HISTORY.txt 1 Jan 2003 16:54:20 -0000 1.109 +++ HISTORY.txt 3 Jan 2003 00:50:23 -0000 1.110 @@ -156,6 +156,7 @@ before backslash-escape resolution. - Support for new transform system. - Reworked ``pending`` element. + - Fixed XML DOM bug (SF #660611). * docutils/statemachine.py: @@ -287,6 +288,9 @@ * docutils/parsers/rst/languages/de.py: Added to project; German mappings by Engelbert Gruber. + +* docutils/parsers/rst/languages/fr.py: Placeholder added to project; + awaiting translation. * docutils/parsers/rst/languages/it.py: Added to project; Italian mappings by Nicola Larosa. |
From: David G. <go...@us...> - 2003-01-03 00:49:47
|
Update of /cvsroot/docutils/docutils/docutils/parsers/rst In directory sc8-pr-cvs1:/tmp/cvs-serv12977/docutils/docutils/parsers/rst Modified Files: states.py Log Message: Python 2.3 compatibility fix Index: states.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/parsers/rst/states.py,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- states.py 17 Dec 2002 02:24:45 -0000 1.38 +++ states.py 3 Jan 2003 00:49:44 -0000 1.39 @@ -1910,7 +1910,7 @@ try: options = utils.extract_extension_options(node, option_spec) except KeyError, detail: - return 0, ('unknown option: "%s"' % detail) + return 0, ('unknown option: "%s"' % detail.args[0]) except (ValueError, TypeError), detail: return 0, ('invalid option value: %s' % detail) except utils.ExtensionOptionError, detail: |
From: David G. <go...@us...> - 2003-01-03 00:48:57
|
Update of /cvsroot/docutils/docutils/docutils In directory sc8-pr-cvs1:/tmp/cvs-serv11944/docutils/docutils Modified Files: nodes.py Log Message: Fixed XML DOM bug (SF #660611) and slice subtleties. Index: nodes.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/nodes.py,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- nodes.py 8 Nov 2002 01:28:38 -0000 1.30 +++ nodes.py 3 Jan 2003 00:48:54 -0000 1.31 @@ -57,8 +57,9 @@ return 1 def asdom(self, dom=xml.dom.minidom): - """Return a DOM representation of this Node.""" - return self._dom_node(dom) + """Return a DOM **fragment** representation of this Node.""" + domroot = dom.Document() + return self._dom_node(domroot) def pformat(self, indent=' ', level=0): """Return an indented pseudo-XML representation, for test purposes.""" @@ -180,10 +181,7 @@ data = repr(self.data[:16] + ' ...') return '<%s: %s>' % (self.tagname, data) - def _dom_node(self, dom): - return dom.Text(self.data) - - def _rooted_dom_node(self, domroot): + def _dom_node(self, domroot): return domroot.createTextNode(self.data) def astext(self): @@ -260,22 +258,14 @@ if self.tagname is None: self.tagname = self.__class__.__name__ - def _dom_node(self, dom): - element = dom.Element(self.tagname) - for attribute, value in self.attributes.items(): - element.setAttribute(attribute, str(value)) - for child in self.children: - element.appendChild(child._dom_node(dom)) - return element - - def _rooted_dom_node(self, domroot): + def _dom_node(self, domroot): element = domroot.createElement(self.tagname) for attribute, value in self.attributes.items(): if type(value) is ListType: value = ' '.join(value) element.setAttribute(attribute, str(value)) for child in self.children: - element.appendChild(child._rooted_dom_node(domroot)) + element.appendChild(child._dom_node(domroot)) return element def __repr__(self): @@ -335,7 +325,7 @@ elif isinstance(key, IntType): return self.children[key] elif isinstance(key, SliceType): - assert key.step is None, 'cannot handle slice with stride' + assert key.step in (None, 1), 'cannot handle slice with stride' return self.children[key.start:key.stop] else: raise TypeError, ('element index must be an integer, a slice, or ' @@ -348,7 +338,7 @@ self.setup_child(item) self.children[key] = item elif isinstance(key, SliceType): - assert key.step is None, 'cannot handle slice with stride' + assert key.step in (None, 1), 'cannot handle slice with stride' for node in item: self.setup_child(node) self.children[key.start:key.stop] = item @@ -362,7 +352,7 @@ elif isinstance(key, IntType): del self.children[key] elif isinstance(key, SliceType): - assert key.step is None, 'cannot handle slice with stride' + assert key.step in (None, 1), 'cannot handle slice with stride' del self.children[key.start:key.stop] else: raise TypeError, ('element index must be an integer, a simple ' @@ -701,8 +691,9 @@ self.document = self def asdom(self, dom=xml.dom.minidom): + """Return a DOM representation of this document.""" domroot = dom.Document() - domroot.appendChild(self._rooted_dom_node(domroot)) + domroot.appendChild(self._dom_node(domroot)) return domroot def set_id(self, node, msgnode=None): |
From: David G. <go...@us...> - 2003-01-03 00:47:16
|
Update of /cvsroot/docutils/docutils/docutils/parsers/rst/languages In directory sc8-pr-cvs1:/tmp/cvs-serv9619/docutils/docutils/parsers/rst/languages Modified Files: sv.py Log Message: placeholder translations; awaiting the real thing Index: sv.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/parsers/rst/languages/sv.py,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- sv.py 14 Nov 2002 02:29:30 -0000 1.5 +++ sv.py 3 Jan 2003 00:47:13 -0000 1.6 @@ -13,7 +13,7 @@ directives = { u'observera': 'attention', - u'varning': 'caution', + u'caution (translation required)': 'caution', u'fara': 'danger', u'fel': 'error', u'v\u00e4gledning': 'hint', @@ -21,6 +21,9 @@ u'notera': 'note', u'tips': 'tip', u'varning': 'warning', + u'\u00e4mne': 'topic', + 'line-block (translation required)': 'line-block', + 'parsed-literal (translation required)': 'parsed-literal', # u'fr\u00e5gor': 'questions', # NOTE: A bit long, but recommended by http://www.nada.kth.se/dataterm/: # u'fr\u00e5gor-och-svar': 'questions', @@ -29,10 +32,15 @@ # u'bildkarta': 'imagemap', # FIXME: Translation might be too literal. u'bild': 'image', u'figur': 'figure', + 'include (translation required)': 'include', u'r\u00e5': 'raw', # FIXME: Translation might be too literal. + 'replace (translation required)': 'replace', u'inneh\u00e5ll': 'contents', + 'sectnum (translation required)': 'sectnum', + 'section-numbering (translation required)': 'sectnum', + 'target-notes (translation required)': 'target-notes', # u'fotnoter': 'footnotes', # u'citeringar': 'citations', - u'\u00e4mne': 'topic'} + } """Swedish name to registered (in directives/__init__.py) directive name mapping.""" |