smerten | 1 Nov 2010 12:55
Picon

r6464 - in trunk/sandbox/xml2rst: README README.rst tests.tgz

Author: smerten
Date: 2010-11-01 12:55:05 +0100 (Mon, 01 Nov 2010)
New Revision: 6464

Added:
   trunk/sandbox/xml2rst/README
Removed:
   trunk/sandbox/xml2rst/README.rst
   trunk/sandbox/xml2rst/tests.tgz
Log:
Preparations for adding `setup.py`.

Copied: trunk/sandbox/xml2rst/README (from rev 6265, trunk/sandbox/xml2rst/README.rst)
===================================================================
--- trunk/sandbox/xml2rst/README	                        (rev 0)
+++ trunk/sandbox/xml2rst/README	2010-11-01 11:55:05 UTC (rev 6464)
 <at>  <at>  -0,0 +1,118  <at>  <at> 
+=======
+xml2rst
+=======
+
+.. contents::
+
+What is xml2rst?
+================
+
+`xml2rst` is a tool to generate reStructuredText_ syntax back from
+`Docutils XML`_ input. This way one can create XML files using
+`Docutils XML`_ from some other format (such as ODF_) and then
+transform them to reStructuredText_.
(Continue reading)

smerten | 1 Nov 2010 13:05
Picon

r6465 - in trunk/sandbox/xml2rst: . global.log rst/ rst/__init__.py rst/rst_xslt.py rst/xml2rst-noexslt.xsl rst/xml2rst.xsl setup.py tag.log version.py xml2rst-noexslt.xsl xml2rst.py xml2rst.xsl

Author: smerten
Date: 2010-11-01 13:05:38 +0100 (Mon, 01 Nov 2010)
New Revision: 6465

Added:
   trunk/sandbox/xml2rst/global.log
   trunk/sandbox/xml2rst/rst/
   trunk/sandbox/xml2rst/rst/__init__.py
   trunk/sandbox/xml2rst/rst/rst_xslt.py
   trunk/sandbox/xml2rst/rst/xml2rst-noexslt.xsl
   trunk/sandbox/xml2rst/rst/xml2rst.xsl
   trunk/sandbox/xml2rst/setup.py
   trunk/sandbox/xml2rst/tag.log
   trunk/sandbox/xml2rst/version.py
Removed:
   trunk/sandbox/xml2rst/xml2rst-noexslt.xsl
   trunk/sandbox/xml2rst/xml2rst.xsl
Modified:
   trunk/sandbox/xml2rst/
   trunk/sandbox/xml2rst/xml2rst.py
Log:
Added `setup.py`.



Property changes on: trunk/sandbox/xml2rst
___________________________________________________________________
Added: svn:ignore
   + xml2rst.pod
xml2rst.html
(Continue reading)

smerten | 1 Nov 2010 13:18
Picon

r6466 - in trunk/sandbox/xml2rst: tests/ tests/options/ tests/options/expected/ tests/options/expected/adornmentDefault.rst tests/options/expected/adornmentEmacs.rst tests/options/expected/adornmentReverse.rst tests/options/expected/fold20.rst tests/options/expected/fold70.rst tests/options/filterunit.cfg tests/options/input/ tests/options/input/adornmentDefault.opt tests/options/input/adornmentDefault.xml tests/options/input/adornmentDefault.xsltproc tests/options/input/adornmentEmacs.opt tests/options/input/adornmentEmacs.xml tests/options/input/adornmentEmacs.xsltproc tests/options/input/adornmentReverse.opt tests/options/input/adornmentReverse.xml tests/options/input/adornmentReverse.xsltproc tests/options/input/fold20.opt tests/options/input/fold20.xml tests/options/input/fold20.xsltproc tests/options/input/fold70.opt tests/optio ...

Author: smerten
Date: 2010-11-01 13:18:09 +0100 (Mon, 01 Nov 2010)
New Revision: 6466

Added:
   trunk/sandbox/xml2rst/tests.xalan/
   trunk/sandbox/xml2rst/tests.xalan/common.cfg
   trunk/sandbox/xml2rst/tests.xalan/real/
   trunk/sandbox/xml2rst/tests.xalan/real/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xalan/simple/
   trunk/sandbox/xml2rst/tests.xalan/simple/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xalan/synthetic/
   trunk/sandbox/xml2rst/tests.xalan/synthetic/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xsltproc/
   trunk/sandbox/xml2rst/tests.xsltproc/common.cfg
   trunk/sandbox/xml2rst/tests.xsltproc/options/
   trunk/sandbox/xml2rst/tests.xsltproc/options/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xsltproc/real/
   trunk/sandbox/xml2rst/tests.xsltproc/real/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xsltproc/simple/
   trunk/sandbox/xml2rst/tests.xsltproc/simple/filterunit.cfg
   trunk/sandbox/xml2rst/tests.xsltproc/synthetic/
   trunk/sandbox/xml2rst/tests.xsltproc/synthetic/filterunit.cfg
   trunk/sandbox/xml2rst/tests/
   trunk/sandbox/xml2rst/tests/options/
   trunk/sandbox/xml2rst/tests/options/expected/
   trunk/sandbox/xml2rst/tests/options/expected/adornmentDefault.rst
   trunk/sandbox/xml2rst/tests/options/expected/adornmentEmacs.rst
   trunk/sandbox/xml2rst/tests/options/expected/adornmentReverse.rst
   trunk/sandbox/xml2rst/tests/options/expected/fold20.rst
(Continue reading)

smerten | 1 Nov 2010 14:11
Picon

r6467 - in trunk/sandbox/xml2rst: . MANIFEST.in README global.log tag.log version.py

Author: smerten
Date: 2010-11-01 14:11:37 +0100 (Mon, 01 Nov 2010)
New Revision: 6467

Added:
   trunk/sandbox/xml2rst/MANIFEST.in
Modified:
   trunk/sandbox/xml2rst/
   trunk/sandbox/xml2rst/README
   trunk/sandbox/xml2rst/global.log
   trunk/sandbox/xml2rst/tag.log
   trunk/sandbox/xml2rst/version.py
Log:
Final version using `setup.py`.

Property changes on: trunk/sandbox/xml2rst
___________________________________________________________________
Modified: svn:ignore
   - xml2rst.pod
xml2rst.html
tests.tgz
.dist.ok
dist
version.gmk
.tests.ok
.build.ok
.cvsignore
.svnignore
build
MANIFEST
(Continue reading)

smerten | 2 Nov 2010 20:21
Picon

r6468 - trunk/sandbox/rst2beamer/rst2beamer.py

Author: smerten
Date: 2010-11-02 20:21:01 +0100 (Tue, 02 Nov 2010)
New Revision: 6468

Modified:
   trunk/sandbox/rst2beamer/rst2beamer.py
Log:
Adapted to current latex2e implementation.

Modified: trunk/sandbox/rst2beamer/rst2beamer.py
===================================================================
--- trunk/sandbox/rst2beamer/rst2beamer.py	2010-11-01 13:11:37 UTC (rev 6467)
+++ trunk/sandbox/rst2beamer/rst2beamer.py	2010-11-02 19:21:01 UTC (rev 6468)
 <at>  <at>  -824,9 +824,10  <at>  <at> 
         # b) coditional fallback definitions (after style sheet)
         self.fallbacks = self.fallbacks.sortedvalues()
         # c) PDF properties
-        self.pdfsetup.append(PreambleCmds.linking % (self.colorlinks,
-                                                     self.hyperlink_color,
-                                                     self.hyperlink_color))
+        self.pdfsetup.append(PreambleCmds.linking %
+                             ('colorlinks=true,linkcolor=%s,urlcolor=%s' %
+                              (self.hyperlink_color,
+                               self.hyperlink_color)))
         if self.pdfauthor:
             authors = self.author_separator.join(self.pdfauthor)
             self.pdfinfo.append('  pdfauthor={%s}' % authors)

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
(Continue reading)

milde | 5 Nov 2010 11:55
Picon

r6469 - in trunk/docutils: docutils/writers/latex2e/__init__.py test/functional/expected/cyrillic.tex test/functional/expected/standalone_rst_latex.tex test/functional/expected/standalone_rst_xetex.tex test/functional/expected/xetex-cyrillic.tex test/functional/tests/xetex_cyrillic.py test/test_writers/test_latex2e.py

Author: milde
Date: 2010-11-05 11:55:22 +0100 (Fri, 05 Nov 2010)
New Revision: 6469

Modified:
   trunk/docutils/docutils/writers/latex2e/__init__.py
   trunk/docutils/test/functional/expected/cyrillic.tex
   trunk/docutils/test/functional/expected/standalone_rst_latex.tex
   trunk/docutils/test/functional/expected/standalone_rst_xetex.tex
   trunk/docutils/test/functional/expected/xetex-cyrillic.tex
   trunk/docutils/test/functional/tests/xetex_cyrillic.py
   trunk/docutils/test/test_writers/test_latex2e.py
Log:
latexe2 writer fixes:

* move pdf-anchor (\\\\phantomsection) to the start of titles
* load babel package after inputenc and fontenc
* test xetex_cyrillic with hyperref-options="unicode=false"

Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py	2010-11-02 19:21:01 UTC (rev 6468)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py	2010-11-05 10:55:22 UTC (rev 6469)
 <at>  <at>  -388,11 +388,11  <at>  <at> 
             # or prepend r'\def\spanishoptions{es-noshorthands}'
         if (languages[-1] is 'english' and
             'french' in self.otherlanguages.keys()):
-            self.setup.append('%% Prevent side-effects if French hyphenation '
-                              'patterns are not loaded:\n'
-                              '\\frenchbsetup{StandardLayout}\n'
(Continue reading)

milde | 5 Nov 2010 22:46
Picon

r6470 - in trunk/docutils: docutils/writers/html4css1/__init__.py test/functional/expected/standalone_rst_html4css1.html test/functional/expected/standalone_rst_pseudoxml.txt test/functional/input/data/standard.txt

Author: milde
Date: 2010-11-05 22:46:21 +0100 (Fri, 05 Nov 2010)
New Revision: 6470

Modified:
   trunk/docutils/docutils/writers/html4css1/__init__.py
   trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
   trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
   trunk/docutils/test/functional/input/data/standard.txt
Log:
Improve HTML standard compliance.

* avoid empty class argument (class="")
* put french block-quote in a paragraph 

(But how can one give a class argument to all paragraphs of a block-quote?)

Modified: trunk/docutils/docutils/writers/html4css1/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/html4css1/__init__.py	2010-11-05 10:55:22 UTC (rev 6469)
+++ trunk/docutils/docutils/writers/html4css1/__init__.py	2010-11-05 21:46:21 UTC (rev 6470)
 <at>  <at>  -228,8 +228,7  <at>  <at> 
     doctype = (
         '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"'
         ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n')
-    doctype_mathml = ('<!DOCTYPE html PUBLIC '
-    '"-//W3C//DTD XHTML 1.0 Transitional plus MathML 2.0//EN" "">\n')
+    doctype_mathml = doctype

     head_prefix_template = ('<html xmlns="http://www.w3.org/1999/xhtml"'
(Continue reading)

milde | 5 Nov 2010 23:09
Picon

r6471 - in trunk/docutils: HISTORY.txt RELEASE-NOTES.txt docs/dev/todo.txt docs/ref/doctree.txt docs/ref/rst/directives.txt docs/ref/rst/roles.txt docutils/latex2mathml.py docutils/writers/manpage.py docutils/writers/odf_odt/__init__.py test/functional/expected/math.xhtml test/functional/expected/standalone_rst_manpage.man test/functional/input/data/math.txt test/functional/input/standalone_rst_manpage.txt test/functional/tests/html_math.py

Author: milde
Date: 2010-11-05 23:09:32 +0100 (Fri, 05 Nov 2010)
New Revision: 6471

Added:
   trunk/docutils/test/functional/expected/math.xhtml
   trunk/docutils/test/functional/tests/html_math.py
Modified:
   trunk/docutils/HISTORY.txt
   trunk/docutils/RELEASE-NOTES.txt
   trunk/docutils/docs/dev/todo.txt
   trunk/docutils/docs/ref/doctree.txt
   trunk/docutils/docs/ref/rst/directives.txt
   trunk/docutils/docs/ref/rst/roles.txt
   trunk/docutils/docutils/latex2mathml.py
   trunk/docutils/docutils/writers/manpage.py
   trunk/docutils/docutils/writers/odf_odt/__init__.py
   trunk/docutils/test/functional/expected/standalone_rst_manpage.man
   trunk/docutils/test/functional/input/data/math.txt
   trunk/docutils/test/functional/input/standalone_rst_manpage.txt
Log:
Math support: 

documentation, tests, and stubs for manpage and odt writer

Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt	2010-11-05 21:46:21 UTC (rev 6470)
+++ trunk/docutils/HISTORY.txt	2010-11-05 22:09:32 UTC (rev 6471)
 <at>  <at>  -22,6 +22,8  <at>  <at> 
(Continue reading)

milde | 5 Nov 2010 23:11
Picon

r6472 - in trunk/docutils: docutils/writers/latex2e/__init__.py test/functional/expected/cyrillic.tex test/functional/expected/standalone_rst_latex.tex test/functional/expected/standalone_rst_xetex.tex test/functional/expected/xetex-cyrillic.tex test/functional/input/standalone_rst_latex.txt test/test_writers/test_latex2e.py

Author: milde
Date: 2010-11-05 23:11:54 +0100 (Fri, 05 Nov 2010)
New Revision: 6472

Modified:
   trunk/docutils/docutils/writers/latex2e/__init__.py
   trunk/docutils/test/functional/expected/cyrillic.tex
   trunk/docutils/test/functional/expected/standalone_rst_latex.tex
   trunk/docutils/test/functional/expected/standalone_rst_xetex.tex
   trunk/docutils/test/functional/expected/xetex-cyrillic.tex
   trunk/docutils/test/functional/input/standalone_rst_latex.txt
   trunk/docutils/test/test_writers/test_latex2e.py
Log:
latex2e: use \\\\otherlanguage instead of \\\\selectlanguage

Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py	2010-11-05 22:09:32 UTC (rev 6471)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py	2010-11-05 22:11:54 UTC (rev 6472)
 <at>  <at>  -2262,7 +2262,7  <at>  <at> 
             language = self.babel.get_language(language_tags[0][9:])
             if language:
                 self.babel.otherlanguages[language] = True
-                self.out.append(r'{\selectlanguage{%s}' % language)
+                self.out.append(r'\otherlanguage{%s}{' % language)
                 classes.pop(classes.index(language_tags[0]))
         if not classes:
             return

Modified: trunk/docutils/test/functional/expected/cyrillic.tex
(Continue reading)

smerten | 6 Nov 2010 12:23
Picon

r6473 - in trunk/docutils/tools/editors/emacs: rst.el tests/tests-runner.el

Author: smerten
Date: 2010-11-06 12:23:03 +0100 (Sat, 06 Nov 2010)
New Revision: 6473

Modified:
   trunk/docutils/tools/editors/emacs/rst.el
   trunk/docutils/tools/editors/emacs/tests/tests-runner.el
Log:
Improvements in fontification:

* Comments are always fontified correctly
* Line blocks are supported
* `jit-lock-mode` is still not usable
* `rst-font-lock-extend-region` is used as suggested by main Emacs
  developers but needs compilation

Refactorings:

* Replaced some occurences of `current-prefix-arg'
* Removed dead code
* Modified `tests-runner.el` to work as a filter, too

Modified: trunk/docutils/tools/editors/emacs/rst.el
===================================================================
--- trunk/docutils/tools/editors/emacs/rst.el	2010-11-05 22:11:54 UTC (rev 6472)
+++ trunk/docutils/tools/editors/emacs/rst.el	2010-11-06 11:23:03 UTC (rev 6473)
 <at>  <at>  -250,7 +250,6  <at>  <at> 
     (define-key map [(control c) (control h)] 'rst-display-decorations-hierarchy)
     ;; Homogeneize the decorations in the document.
     (define-key map [(control c) (control s)] 'rst-straighten-decorations)
(Continue reading)


Gmane