milde | 2 Jun 2009 16:31
Picon

r5967 - in trunk/docutils: HISTORY.txt docs/dev/todo.txt docs/user/docutils-05-compat.sty.txt docutils/writers/latex2e/__init__.py docutils/writers/latex2e/docutils-05-compat.sty test/functional/expected/standalone_rst_latex.tex

Author: milde
Date: 2009-06-02 16:31:39 +0200 (Tue, 02 Jun 2009)
New Revision: 5967

Modified:
   trunk/docutils/HISTORY.txt
   trunk/docutils/docs/dev/todo.txt
   trunk/docutils/docs/user/docutils-05-compat.sty.txt
   trunk/docutils/docutils/writers/latex2e/__init__.py
   trunk/docutils/docutils/writers/latex2e/docutils-05-compat.sty
   trunk/docutils/test/functional/expected/standalone_rst_latex.tex
Log:
latex writer bugfix: Newlines around targets and references 
prevent run-together paragraphs.

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2009-05-29 20:56:50 UTC (rev 5966)
+++ trunk/docutils/HISTORY.txt	2009-06-02 14:31:39 UTC (rev 5967)
 <at>  <at>  -38,7 +38,9  <at>  <at> 

 * reStructuredText:

-  - Allow length units for all length specifications.
+  - Documented Unicode characters allowed as inline markup openers,
+    closers, and delimiters.
+  - Allow units for all length specifications.
   - Allow percent sign in "scale" argument of "figure" and "image" directives.
   - Bugfix: The "figalign" argument of a figure now works as intended
     (aligning the figure, not its contents).
(Continue reading)

milde | 2 Jun 2009 16:44
Picon

r5968 - in trunk/docutils/docutils: parsers/rst/states.py statemachine.py

Author: milde
Date: 2009-06-02 16:44:19 +0200 (Tue, 02 Jun 2009)
New Revision: 5968

Modified:
   trunk/docutils/docutils/parsers/rst/states.py
   trunk/docutils/docutils/statemachine.py
Log:
Using a cache in the parsers state machine.

Patch sent by Naoki INADA to docutils-devel giving around 25 % speedup.

Modified: trunk/docutils/docutils/parsers/rst/states.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/states.py	2009-06-02 14:31:39 UTC (rev 5967)
+++ trunk/docutils/docutils/parsers/rst/states.py	2009-06-02 14:44:19 UTC (rev 5968)
 <at>  <at>  -207,6 +207,7  <at>  <at> 
     """

     nested_sm = NestedStateMachine
+    nested_sm_cache = []

     def __init__(self, state_machine, debug=0):
         self.nested_sm_kwargs = {'state_classes': state_classes,
 <at>  <at>  -255,16 +256,30  <at>  <at> 
         Create a new StateMachine rooted at `node` and run it over the input
         `block`.
         """
+        use_default = 0
         if state_machine_class is None:
(Continue reading)

milde | 4 Jun 2009 12:10
Picon

r5969 - in trunk/docutils: docs/dev/todo.txt docs/user/docutils-05-compat.sty.txt docutils/writers/latex2e/__init__.py test/functional/expected/standalone_rst_latex.tex test/test_writers/test_latex2e.py

Author: milde
Date: 2009-06-04 12:09:57 +0200 (Thu, 04 Jun 2009)
New Revision: 5969

Modified:
   trunk/docutils/docs/dev/todo.txt
   trunk/docutils/docs/user/docutils-05-compat.sty.txt
   trunk/docutils/docutils/writers/latex2e/__init__.py
   trunk/docutils/test/functional/expected/standalone_rst_latex.tex
   trunk/docutils/test/test_writers/test_latex2e.py
Log:
latex2e writer bugfixes:
Newlines around comments, targets and references prevent run-together
paragraphs.
Fixed missing and spurious internal links/targets.
Verbose and linked system messages.

Modified: trunk/docutils/docs/dev/todo.txt
===================================================================
--- trunk/docutils/docs/dev/todo.txt	2009-06-02 14:44:19 UTC (rev 5968)
+++ trunk/docutils/docs/dev/todo.txt	2009-06-04 10:09:57 UTC (rev 5969)
 <at>  <at>  -1918,6 +1918,8  <at>  <at> 
 Generate clean and configurable LaTeX source
 ----------------------------------------------

+* fix newlines (before \DUadmonition, non in depart_list_item(), ...)
+
 * Check the generated source with package `nag`.

 LaTeX macros for Docutils-specific objects
(Continue reading)

milde | 4 Jun 2009 12:32
Picon

r5970 - in trunk/docutils/test/functional: expected/standalone_rst_html4css1.html expected/standalone_rst_latex.tex expected/standalone_rst_pseudoxml.txt input/data/standard.txt

Author: milde
Date: 2009-06-04 12:32:14 +0200 (Thu, 04 Jun 2009)
New Revision: 5970

Modified:
   trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
   trunk/docutils/test/functional/expected/standalone_rst_latex.tex
   trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
   trunk/docutils/test/functional/input/data/standard.txt
Log:
fixed target name clash in the test file standard.txt
(re-numbering of ids causes extensive changes in the test output).

Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html	2009-06-04 10:09:57 UTC (rev 5969)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html	2009-06-04 10:32:14 UTC (rev 5970)
 <at>  <at>  -85,70 +85,70  <at>  <at> 
 <div class="contents topic" id="table-of-contents">
 <p class="topic-title first">Table of Contents</p>
 <ul class="auto-toc simple">
-<li><a class="reference internal" href="#structural-elements" id="id33">1&nbsp;&nbsp;&nbsp;Structural Elements</a><ul class="auto-toc">
-<li><a class="reference internal" href="#section-title" id="id34">1.1&nbsp;&nbsp;&nbsp;Section Title</a></li>
-<li><a class="reference internal" href="#empty-section" id="id35">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></li>
-<li><a class="reference internal" href="#transitions" id="id36">1.3&nbsp;&nbsp;&nbsp;Transitions</a></li>
+<li><a class="reference internal" href="#structural-elements" id="id32">1&nbsp;&nbsp;&nbsp;Structural Elements</a><ul class="auto-toc">
+<li><a class="reference internal" href="#section-title" id="id33">1.1&nbsp;&nbsp;&nbsp;Section Title</a></li>
+<li><a class="reference internal" href="#empty-section" id="id34">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></li>
+<li><a class="reference internal" href="#transitions" id="id35">1.3&nbsp;&nbsp;&nbsp;Transitions</a></li>
 </ul>
(Continue reading)

cliechti | 5 Jun 2009 00:11
Picon

r5971 - in trunk/sandbox/aafigure: README.txt aafigure/aafigure.py

Author: cliechti
Date: 2009-06-05 00:11:13 +0200 (Fri, 05 Jun 2009)
New Revision: 5971

Modified:
   trunk/sandbox/aafigure/README.txt
   trunk/sandbox/aafigure/aafigure/aafigure.py
Log:
- Add support for upper horizontal line using '~~~'. This is similar to lower horizontal lines using '___'.

Thanks to llucax

Modified: trunk/sandbox/aafigure/README.txt
===================================================================
--- trunk/sandbox/aafigure/README.txt	2009-06-04 10:32:14 UTC (rev 5970)
+++ trunk/sandbox/aafigure/README.txt	2009-06-04 22:11:13 UTC (rev 5971)
 <at>  <at>  -122,20 +122,21  <at>  <at> 

 Lines
 -----
-The ``-`` and ``|`` are normally used for lines. ``_`` can also be used. It is a
-slightly longer line than the ``-`` and it's is drawn a bit lower. ``=`` gives
-a thicker line. The later two line types can only be drawn horizontally.
+The ``-`` and ``|`` are normally used for lines. ``_`` and ``~`` can also be
+used. They are slightly longer lines than the ``-``. ``_`` is drawn a bit
+lower and ``~`` a bit upper. ``=`` gives a thicker line. The later three line
+types can only be drawn horizontally.
 ::

-  ---- |         ___ 
(Continue reading)

cliechti | 5 Jun 2009 00:18
Picon

r5972 - in trunk/sandbox/aafigure/aafigure: __init__.py aafigure.py aafigure_directive.py

Author: cliechti
Date: 2009-06-05 00:18:06 +0200 (Fri, 05 Jun 2009)
New Revision: 5972

Modified:
   trunk/sandbox/aafigure/aafigure/__init__.py
   trunk/sandbox/aafigure/aafigure/aafigure.py
   trunk/sandbox/aafigure/aafigure/aafigure_directive.py
Log:
aafigure: Unify rendering code into the new render() function (SF-ID:2799266)
Thanks to llucax

Modified: trunk/sandbox/aafigure/aafigure/__init__.py
===================================================================
--- trunk/sandbox/aafigure/aafigure/__init__.py	2009-06-04 22:11:13 UTC (rev 5971)
+++ trunk/sandbox/aafigure/aafigure/__init__.py	2009-06-04 22:18:06 UTC (rev 5972)
 <at>  <at>  -1,3 +1,6  <at>  <at> 
 """
 AAFigure directive for reStructuredText.
 """
+
+from aafigure import render, UnsupportedFormatError
+

Modified: trunk/sandbox/aafigure/aafigure/aafigure.py
===================================================================
--- trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-04 22:11:13 UTC (rev 5971)
+++ trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-04 22:18:06 UTC (rev 5972)
 <at>  <at>  -16,6 +16,18  <at>  <at> 
 CLASS_JOIN = 'join'
(Continue reading)

cliechti | 5 Jun 2009 00:19
Picon

r5973 - trunk/sandbox/aafigure/README.txt

Author: cliechti
Date: 2009-06-05 00:19:30 +0200 (Fri, 05 Jun 2009)
New Revision: 5973

Modified:
   trunk/sandbox/aafigure/README.txt
Log:
aafigure: Add missing :proportional: option to README.txt (SF-ID: 2799267)
Thanks to llucax

Modified: trunk/sandbox/aafigure/README.txt
===================================================================
--- trunk/sandbox/aafigure/README.txt	2009-06-04 22:18:06 UTC (rev 5972)
+++ trunk/sandbox/aafigure/README.txt	2009-06-04 22:19:30 UTC (rev 5973)
 <at>  <at>  -115,11 +115,14  <at>  <at> 
   However, ``:aspect: 0.5`` looks more like the original ASCII and even smaller
   factors may be useful for timing diagrams and such. But there is a risk that
   text is cropped or is draw over an object beside it.
-  
+
   The stretching is done before drawing arrows or circles, so that they are
   still good looking.

+- ``:proportional: <flag>``  use a proportional font instead of a monospaced
+  one.

+
 Lines
 -----
 The ``-`` and ``|`` are normally used for lines. ``_`` and ``~`` can also be
(Continue reading)

cliechti | 5 Jun 2009 00:20
Picon

r5974 - trunk/sandbox/aafigure/README.txt

Author: cliechti
Date: 2009-06-05 00:20:46 +0200 (Fri, 05 Jun 2009)
New Revision: 5974

Modified:
   trunk/sandbox/aafigure/README.txt
Log:
aafigure: Fix :format: option name in README.txt (SF-ID: 2799268)
Thanks to llucax

Modified: trunk/sandbox/aafigure/README.txt
===================================================================
--- trunk/sandbox/aafigure/README.txt	2009-06-04 22:19:30 UTC (rev 5973)
+++ trunk/sandbox/aafigure/README.txt	2009-06-04 22:20:46 UTC (rev 5974)
 <at>  <at>  -93,7 +93,7  <at>  <at> 

 - ``:line_width: <float>``   change line with (svg only currently)

-- ``:line_format: <str>`` choose backend/output format: 'svg', 'png', all
+- ``:format: <str>`` choose backend/output format: 'svg', 'png', all
   bitmap formats that PIL supports can be used but only few make sense. Line
   drawings have a good compression and better quality when saved as PNG
   rather than a JPEG. The best quality will be achieved with SVG, tough not

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
(Continue reading)

cliechti | 7 Jun 2009 17:54
Picon

r5975 - in trunk/sandbox/aafigure/aafigure: aafigure.py aafigure_directive.py

Author: cliechti
Date: 2009-06-07 17:54:00 +0200 (Sun, 07 Jun 2009)
New Revision: 5975

Modified:
   trunk/sandbox/aafigure/aafigure/aafigure.py
   trunk/sandbox/aafigure/aafigure/aafigure_directive.py
Log:
[PATCH] aafigure: Fix svg output when using the reST directive (SF-ID: 2801751)
thanks llucax

Modified: trunk/sandbox/aafigure/aafigure/aafigure.py
===================================================================
--- trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-04 22:20:46 UTC (rev 5974)
+++ trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-07 15:54:00 UTC (rev 5975)
 <at>  <at>  -874,6 +874,11  <at>  <at> 
     rendered image is saved there. If ``output`` is a file-like object,
     ``output.write()`` is used to save the rendered image.

+    This function returns a tuple ``(visitor, output)``, where ``visitor`` is
+    visitor instance that rendered the image and ``output`` is the image as
+    requested by the ``output`` parameter (a ``str`` if it was ``None``, or
+    a file-like object otherwise, which you should ``close()`` if needed).
+
     ``options`` are... optional. You can provide a dictionary with options.
     Valid keys (and their defaults) are:

 <at>  <at>  -964,18 +969,16  <at>  <at> 
     aaimg.recognize()

(Continue reading)

cliechti | 7 Jun 2009 17:58
Picon

r5977 - trunk/sandbox/aafigure/aafigure/aafigure.py

Author: cliechti
Date: 2009-06-07 17:58:05 +0200 (Sun, 07 Jun 2009)
New Revision: 5977

Modified:
   trunk/sandbox/aafigure/aafigure/aafigure.py
Log:
[PATCH 3/3] aafigure: Fix --output command-line option (Sf-ID: 2802370)
thanks llucax

Modified: trunk/sandbox/aafigure/aafigure/aafigure.py
===================================================================
--- trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-07 15:56:25 UTC (rev 5976)
+++ trunk/sandbox/aafigure/aafigure/aafigure.py	2009-06-07 15:58:05 UTC (rev 5977)
 <at>  <at>  -1177,8 +1177,9  <at>  <at> 
     #~ aav.visit(aaimg)
     #~ print aav

-    if options.output:
+    if hasattr(options, 'output'):
         output = file(options.output, 'wb')
+	delattr(options, 'output')
     else:
         output = sys.stdout

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
(Continue reading)


Gmane