David Goodger | 7 Nov 2003 15:48
Picon

docutils/test/test_parsers/test_rst test_substitutions.py,1.16,1.17

Update of /cvsroot/docutils/docutils/test/test_parsers/test_rst
In directory sc8-pr-cvs1:/tmp/cvs-serv8251/test/test_parsers/test_rst

Modified Files:
	test_substitutions.py 
Log Message:
fixed off-by-1 error with extra whitespace after substitution definition directive

Index: test_substitutions.py
===================================================================
RCS file: /cvsroot/docutils/docutils/test/test_parsers/test_rst/test_substitutions.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- test_substitutions.py	20 Sep 2003 17:22:11 -0000	1.16
+++ test_substitutions.py	7 Nov 2003 14:48:26 -0000	1.17
 <at>  <at>  -46,6 +46,19  <at>  <at> 
         <image alt="symbol" uri="symbol.png">
 """],
 ["""\
+Trailing spaces should not be significant:
+
+.. |symbol| image:: \n\
+   symbol.png
+""",
+"""\
+<document source="test data">
+    <paragraph>
+        Trailing spaces should not be significant:
+    <substitution_definition name="symbol">
(Continue reading)

David Goodger | 7 Nov 2003 15:48
Picon

docutils/docutils/parsers/rst states.py,1.57,1.58

Update of /cvsroot/docutils/docutils/docutils/parsers/rst
In directory sc8-pr-cvs1:/tmp/cvs-serv8251/docutils/parsers/rst

Modified Files:
	states.py 
Log Message:
fixed off-by-1 error with extra whitespace after substitution definition directive

Index: states.py
===================================================================
RCS file: /cvsroot/docutils/docutils/docutils/parsers/rst/states.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- states.py	20 Sep 2003 17:22:10 -0000	1.57
+++ states.py	7 Nov 2003 14:48:25 -0000	1.58
 <at>  <at>  -1949,7 +1949,7  <at>  <at> 
                 raise MarkupError('malformed substitution definition.',
                                   lineno)
         del block[:blockindex]          # strip out the substitution marker
-        block[0] = (block[0] + ' ')[subdefmatch.end()-len(escaped)-1:].strip()
+        block[0] = (block[0].strip() + ' ')[subdefmatch.end()-len(escaped)-1:-1]
         if not block[0]:
             del block[0]
             offset += 1

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
(Continue reading)

David Goodger | 7 Nov 2003 15:49
Picon

docutils HISTORY.txt,1.168,1.169

Update of /cvsroot/docutils/docutils
In directory sc8-pr-cvs1:/tmp/cvs-serv8474

Modified Files:
	HISTORY.txt 
Log Message:
updated

Index: HISTORY.txt
===================================================================
RCS file: /cvsroot/docutils/docutils/HISTORY.txt,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -d -r1.168 -r1.169
--- HISTORY.txt	26 Sep 2003 14:05:43 -0000	1.168
+++ HISTORY.txt	7 Nov 2003 14:49:31 -0000	1.169
 <at>  <at>  -135,6 +135,8  <at>  <at> 
   - Added support for <angle-bracketed> complex option arguments
     (option lists).
   - Fixed handling of backslashes in substitution definitions.
+  - Fixed off-by-1 error with extra whitespace after substitution
+    definition directive.

 * docutils/parsers/rst/tableparser.py:

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
(Continue reading)

David Goodger | 11 Nov 2003 18:01
Picon

docutils/docs config.txt,1.6,1.7

Update of /cvsroot/docutils/docutils/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv9432/docs

Modified Files:
	config.txt 
Log Message:
added datestamp examples

Index: config.txt
===================================================================
RCS file: /cvsroot/docutils/docutils/docs/config.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- config.txt	15 Sep 2003 13:16:19 -0000	1.6
+++ config.txt	11 Nov 2003 17:01:24 -0000	1.7
 <at>  <at>  -151,6 +151,19  <at>  <at> 
     Default: None.  Options: ``--date, -d, --time, -t,
     --no-datestamp``.

+    Configuration file entry examples::
+
+        # Equivalent to --date command-line option, results in
+        # ISO 8601 extended format datestamp, e.g. "2001-12-21":
+        datestamp: %Y-%m-%d
+
+        # Equivalent to --time command-line option, results in
+        # date/timestamp like "2001-12-21 18:43 UTC":
+        datestamp: %Y-%m-%d %H:%M UTC
+
(Continue reading)

Cherniavsky Beni | 14 Nov 2003 15:11

sandbox/cben/rolehack imgmathhack.py,1.3,1.4

Update of /cvsroot/docutils/sandbox/cben/rolehack
In directory sc8-pr-cvs1:/tmp/cvs-serv23228

Modified Files:
	imgmathhack.py 
Log Message:
- Added :class: and :alt: attributes.
- Doc fixes.

Index: imgmathhack.py
===================================================================
RCS file: /cvsroot/docutils/sandbox/cben/rolehack/imgmathhack.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- imgmathhack.py	9 Oct 2003 22:04:56 -0000	1.3
+++ imgmathhack.py	14 Nov 2003 14:11:06 -0000	1.4
 <at>  <at>  -8,13 +8,14  <at>  <at> 
     running time when images are not changed and to reuse images for equal
     fomulas, image names are md5 of the formula (hoping that no collisions
     will happen) and images that already exist are not rebuilt.  You should
-    clean the ``imgmath``
+    purge the ``imgmath`` subdirectory manually to get rid of unused formulas.

     You'll need:

-    - ``tex_to_images`` (part of ``festival``, does anybody know a tool that
-      is more commonly availiable?  It's a Perl script which could be asily
-      recoded in Python but I'm too lazy...).  It, in turn, relies upon:
+    - ``tex_to_images``, part of ``speech_tools`` package, last version seems
(Continue reading)

David Goodger | 14 Nov 2003 15:46
Picon

docutils/docs latex.txt,1.27,1.28

Update of /cvsroot/docutils/docutils/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv30552

Modified Files:
	latex.txt 
Log Message:
capitalization

Index: latex.txt
===================================================================
RCS file: /cvsroot/docutils/docutils/docs/latex.txt,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- latex.txt	29 Oct 2003 08:51:13 -0000	1.27
+++ latex.txt	14 Nov 2003 14:46:12 -0000	1.28
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 =======================
- Docutils LaTex Writer
+ Docutils LaTeX Writer
 =======================

 :Author: Engelbert Gruber
 <at>  <at>  -40,7 +40,7  <at>  <at> 
 contains default settings. To allow *overwriting defaults* the stylesheet
 is included at last.

-Run ``rst2LaTeX.py --help`` to see the command-line options, or have look in
+Run ``rst2latex.py --help`` to see the command-line options, or have look in
 config documentytion.
(Continue reading)

David Goodger | 14 Nov 2003 15:52
Picon

docutils/docs config.txt,1.7,1.8

Update of /cvsroot/docutils/docutils/docs
In directory sc8-pr-cvs1:/tmp/cvs-serv31737

Modified Files:
	config.txt 
Log Message:
added section for old-format config files; cross-references

Index: config.txt
===================================================================
RCS file: /cvsroot/docutils/docutils/docs/config.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- config.txt	11 Nov 2003 17:01:24 -0000	1.7
+++ config.txt	14 Nov 2003 14:52:26 -0000	1.8
 <at>  <at>  -419,12 +419,17  <at>  <at> 
 [html4css1 writer]
 ``````````````````

-_`attribution`
+.. _attribution [html4css1 writer]:
+
+attribution
     Format for block quote attributions: one of "dash" (em-dash
-    prefix), "parentheses"/"parens", or "none".
+    prefix), "parentheses"/"parens", or "none".  Also defined for the
+    `LaTeX Writer`__.

     Default: "dash".  Options: ``--attribution``.
(Continue reading)

David Goodger | 14 Nov 2003 16:04
Picon

docutils/docutils frontend.py,1.50,1.51

Update of /cvsroot/docutils/docutils/docutils
In directory sc8-pr-cvs1:/tmp/cvs-serv1687

Modified Files:
	frontend.py 
Log Message:
updated config warning

Index: frontend.py
===================================================================
RCS file: /cvsroot/docutils/docutils/docutils/frontend.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- frontend.py	14 Sep 2003 00:01:38 -0000	1.50
+++ frontend.py	14 Nov 2003 15:04:54 -0000	1.51
 <at>  <at>  -548,8 +548,9  <at>  <at> 

     old_warning = """
 The "[option]" section is deprecated.  Support for old-format configuration
-files will be removed in a future Docutils release.  Please revise your
-configuration files.  See <http://docutils.sf.net/docs/config.html>.
+files may be removed in a future Docutils release.  Please revise your
+configuration files.  See <http://docutils.sf.net/docs/config.html>, section
+"Old-Format Configuration Files".
 """

     def read(self, filenames, option_parser):

-------------------------------------------------------
(Continue reading)

David Goodger | 14 Nov 2003 22:19
Picon

sandbox/cben/rolehack README.txt,NONE,1.1

Update of /cvsroot/docutils/sandbox/cben/rolehack
In directory sc8-pr-cvs1:/tmp/cvs-serv17667

Added Files:
	README.txt 
Log Message:
instructions for mathhack.py

--- NEW FILE: README.txt ---
Mathhack Instructions
=====================

Grab and install all the .py files in
http://docutils.sourceforge.net/sandbox/cben/rolehack/. ::

   Just write :texmath:`formula` or simply `formula` for inline
   formulas; for display formulas use a directive:

   .. texmath:: formula

Now you take this (in file foo.txt) and run::

   mathhack.py foo.txt | rst2latex.py - foo.tex

which converts the roles/directives to ``raw:: latex`` directives or::

   imgmathhack.py foo.txt | html.py - foo.html

which runs TeX (generating images into a subdirectory!) and converts
the roles/directives into ``img::`` directives.  Quick, dirty and
(Continue reading)

David Goodger | 14 Nov 2003 22:20
Picon

docutils FAQ.txt,1.18,1.19

Update of /cvsroot/docutils/docutils
In directory sc8-pr-cvs1:/tmp/cvs-serv17714

Modified Files:
	FAQ.txt 
Log Message:
added math equation Q&A

Index: FAQ.txt
===================================================================
RCS file: /cvsroot/docutils/docutils/FAQ.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- FAQ.txt	6 Oct 2003 02:42:05 -0000	1.18
+++ FAQ.txt	14 Nov 2003 21:20:11 -0000	1.19
 <at>  <at>  -384,6 +384,36  <at>  <at> 
 be indented and that ambiguous cases be escaped.

 
+How can I include mathematical equations in documents?
+------------------------------------------------------
+
+There is no elegant built-in way, yet.  There are several ideas, but
+no obvious winner.  This issue requires a champion to solve the
+technical and aesthetic issues and implement a generic solution.
+
+There are several quick & dirty ways to include equations in
+documents:
+
(Continue reading)


Gmane