goodger | 2 May 2005 05:58
Picon

r3281 - trunk/docutils/docutils/nodes.py

Author: goodger
Date: 2005-05-02 05:58:51 +0200 (Mon, 02 May 2005)
New Revision: 3281

Modified:
   trunk/docutils/docutils/nodes.py
Log:
corrected ``line`` superclass

Modified: trunk/docutils/docutils/nodes.py
===================================================================
--- trunk/docutils/docutils/nodes.py	2005-04-30 16:54:47 UTC (rev 3280)
+++ trunk/docutils/docutils/nodes.py	2005-05-02 03:58:51 UTC (rev 3281)
 <at>  <at>  -1192,7 +1192,7  <at>  <at> 
 class line_block(General, Element): pass

 
-class line(General, TextElement):
+class line(Part, TextElement):

     indent = None

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
goodger | 2 May 2005 05:59
Picon

r3282 - trunk/docutils/docs/ref/doctree.txt

Author: goodger
Date: 2005-05-02 05:59:11 +0200 (Mon, 02 May 2005)
New Revision: 3282

Modified:
   trunk/docutils/docs/ref/doctree.txt
Log:
added ``line`` element; corrected ``line_block`` details

Modified: trunk/docutils/docs/ref/doctree.txt
===================================================================
--- trunk/docutils/docs/ref/doctree.txt	2005-05-02 03:58:51 UTC (rev 3281)
+++ trunk/docutils/docs/ref/doctree.txt	2005-05-02 03:59:11 UTC (rev 3282)
 <at>  <at>  -161,9 +161,8  <at>  <at> 
 that contain text data may also contain inline elements.  Such
 elements therefore have a "mixed content model".

-Category members: comment_, doctest_block_, image_, line_block_,
-literal_block_, paragraph_, pending_, raw_, rubric_,
-substitution_definition_, target_
+Category members: comment_, doctest_block_, image_, literal_block_,
+paragraph_, pending_, raw_, rubric_, substitution_definition_, target_

 
 Compound Body Elements
 <at>  <at>  -175,8 +174,8  <at>  <at> 
 Category members: admonition_, attention_, block_quote_, bullet_list_,
 caution_, citation_, compound_, danger_, definition_list_,
 enumerated_list_, error_, field_list_, figure_, footnote_, hint_,
-important_, note_, option_list_, system_message_, table_, tip_,
(Continue reading)

felixwiemann | 2 May 2005 16:59
Picon

r3283 - trunk/docutils/docs/api/publisher.txt

Author: felixwiemann
Date: 2005-05-02 16:59:57 +0200 (Mon, 02 May 2005)
New Revision: 3283

Modified:
   trunk/docutils/docs/api/publisher.txt
Log:
added motivation for unresolved charset

Modified: trunk/docutils/docs/api/publisher.txt
===================================================================
--- trunk/docutils/docs/api/publisher.txt	2005-05-02 03:59:11 UTC (rev 3282)
+++ trunk/docutils/docs/api/publisher.txt	2005-05-02 14:59:57 UTC (rev 3283)
 <at>  <at>  -132,8 +132,9  <at>  <at> 
 html_head
     ``parts['html_head']`` contains the HTML ``<head>`` content, less
     the stylesheet link and the ``<head>`` and ``</head>`` tags
-    themselves.  The "Content-Type" meta tag's "charset" value is left
-    unresolved, as "%s"::
+    themselves.  Since ``publish_parts`` returns Unicode strings and
+    does not know about the output encoding, the "Content-Type" meta
+    tag's "charset" value is left unresolved, as "%s"::

         <meta http-equiv="Content-Type" content="text/html; charset=%s" />

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
(Continue reading)

goodger | 3 May 2005 02:46
Picon

r3284 - trunk/docutils/docutils/writers/html4css1.py

Author: goodger
Date: 2005-05-03 02:46:17 +0200 (Tue, 03 May 2005)
New Revision: 3284

Modified:
   trunk/docutils/docutils/writers/html4css1.py
Log:
simplification & added test

Modified: trunk/docutils/docutils/writers/html4css1.py
===================================================================
--- trunk/docutils/docutils/writers/html4css1.py	2005-05-02 14:59:57 UTC (rev 3283)
+++ trunk/docutils/docutils/writers/html4css1.py	2005-05-03 00:46:17 UTC (rev 3284)
 <at>  <at>  -118,10 +118,9  <at>  <at> 
         self.translator_class = HTMLTranslator

     def translate(self):
-        visitor = self.translator_class(self.document)
+        self.visitor = visitor = self.translator_class(self.document)
         self.document.walkabout(visitor)
         self.output = visitor.astext()
-        self.visitor = visitor
         for attr in ('head_prefix', 'stylesheet', 'head', 'body_prefix',
                      'body_pre_docinfo', 'docinfo', 'body', 'fragment',
                      'body_suffix'):
 <at>  <at>  -1347,6 +1346,7  <at>  <at> 
             check_id = 1
             close_tag = '</caption>\n'
         elif self.section_level == 0:
+            assert node.parent is self.document
(Continue reading)

felixwiemann | 3 May 2005 13:12
Picon

r3285 - in trunk/docutils/test/functional: expected/dangerous.html expected/restricted.html input/dangerous.txt input/restricted.txt tests/dangerous.py tests/restricted.py

Author: felixwiemann
Date: 2005-05-03 13:12:11 +0200 (Tue, 03 May 2005)
New Revision: 3285

Added:
   trunk/docutils/test/functional/expected/dangerous.html
   trunk/docutils/test/functional/input/dangerous.txt
   trunk/docutils/test/functional/tests/dangerous.py
Removed:
   trunk/docutils/test/functional/expected/restricted.html
   trunk/docutils/test/functional/input/restricted.txt
   trunk/docutils/test/functional/tests/restricted.py
Log:
reverted r3279

Copied: trunk/docutils/test/functional/expected/dangerous.html (from rev 3278, trunk/docutils/test/functional/expected/dangerous.html)

Property changes on: trunk/docutils/test/functional/expected/dangerous.html
___________________________________________________________________
Name: cvs2svn:cvs-rev
   + 1.1
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Deleted: trunk/docutils/test/functional/expected/restricted.html

Copied: trunk/docutils/test/functional/input/dangerous.txt (from rev 3278, trunk/docutils/test/functional/input/dangerous.txt)

(Continue reading)

felixwiemann | 3 May 2005 17:19
Picon

r3286 - trunk/docutils/docutils/writers/newlatex2e.py

Author: felixwiemann
Date: 2005-05-03 17:19:41 +0200 (Tue, 03 May 2005)
New Revision: 3286

Modified:
   trunk/docutils/docutils/writers/newlatex2e.py
Log:
added comment

Modified: trunk/docutils/docutils/writers/newlatex2e.py
===================================================================
--- trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 11:12:11 UTC (rev 3285)
+++ trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 15:19:41 UTC (rev 3286)
 <at>  <at>  -438,6 +438,7  <at>  <at> 
     def visit_enumerated_list(self, node):
         # We create our own enumeration list environment.  This allows
         # to set the style and starting value and unlimited nesting.
+        # Maybe this can be moved to the stylesheet?
         self.enum_counter += 1
         enum_prefix = self.encode(node['prefix'])
         enum_suffix = self.encode(node['suffix'])

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
felixwiemann | 3 May 2005 21:19
Picon

r3287 - in trunk/docutils: docutils/writers/newlatex2e.py tools/stylesheets/latex.tex

Author: felixwiemann
Date: 2005-05-03 21:19:35 +0200 (Tue, 03 May 2005)
New Revision: 3287

Modified:
   trunk/docutils/docutils/writers/newlatex2e.py
   trunk/docutils/tools/stylesheets/latex.tex
Log:
do not enclose document and sections in macro calls, so that TeX
does not run out of memory when processing large documents

Modified: trunk/docutils/docutils/writers/newlatex2e.py
===================================================================
--- trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 15:19:41 UTC (rev 3286)
+++ trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 19:19:35 UTC (rev 3287)
 <at>  <at>  -588,21 +588,28  <at>  <at> 
         if isinstance(node, nodes.Element):
             attlist = node.attlist()
         numatts = 0
+        pass_contents = self.pass_contents(node)
         for key, value in attlist:
             if isinstance(value, ListType):
                 self.append(r'\renewcommand{\Dattrlen}{%s}' % len(value))
                 for i in range(len(value)):
                     self.append(r'\Dattr{%s}{%s}{%s}{%s}{' %
                                 (i+1, key, self.encode(value[i], attval=1),
-                                 node_name))  # for Emacs: }
+                                 node_name))
+                    if not pass_contents:
+                        self.append('}')
(Continue reading)

felixwiemann | 3 May 2005 22:42
Picon

r3288 - trunk/docutils/tools/stylesheets/latex.tex

Author: felixwiemann
Date: 2005-05-03 22:42:45 +0200 (Tue, 03 May 2005)
New Revision: 3288

Modified:
   trunk/docutils/tools/stylesheets/latex.tex
Log:
improved handling of long field names

Modified: trunk/docutils/tools/stylesheets/latex.tex
===================================================================
--- trunk/docutils/tools/stylesheets/latex.tex	2005-05-03 19:19:35 UTC (rev 3287)
+++ trunk/docutils/tools/stylesheets/latex.tex	2005-05-03 20:42:45 UTC (rev 3288)
 <at>  <at>  -450,7 +450,18  <at>  <at> 
 \providecommand{\DNfieldlist}[1]{%
   \Dtwocolumntable{#1}%
 }
-\providecommand{\DNfieldname}[1]{\Dformatfieldname{#1}&}
+\Dprovidelength{\Dmaxfieldnamewidth}{8em}%
+\Dprovidelength{\Dplaceholderfieldnamewidth}{2em}%
+\Dprovidelength{\Dfieldnamewidth}{0pt}%
+\providecommand{\DNfieldname}[1]{%
+  \settowidth{\Dfieldnamewidth}{\Dformatfieldname{#1}}%
+  \ifthenelse{\lengthtest{\Dfieldnamewidth>\Dmaxfieldnamewidth}}{%
+    \makebox[\Dplaceholderfieldnamewidth][l]{\Dformatfieldname{#1}}%
+    &\tabularnewline~&%
+  }{%
+    \Dformatfieldname{#1}&%
+  }%
+}
(Continue reading)

felixwiemann | 3 May 2005 22:48
Picon

r3289 - trunk/docutils/docutils/writers/newlatex2e.py

Author: felixwiemann
Date: 2005-05-03 22:48:15 +0200 (Tue, 03 May 2005)
New Revision: 3289

Modified:
   trunk/docutils/docutils/writers/newlatex2e.py
Log:
added thin space to unicode translation table

Modified: trunk/docutils/docutils/writers/newlatex2e.py
===================================================================
--- trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 20:42:45 UTC (rev 3288)
+++ trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 20:48:15 UTC (rev 3289)
 <at>  <at>  -286,6 +286,7  <at>  <at> 

     unicode_map = {
         u'\u00A0': '~',
+        u'\u2009': '{\\,}',
         u'\u2013': '{--}',
         u'\u2014': '{---}',
         u'\u2018': '`',

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
felixwiemann | 3 May 2005 23:17
Picon

r3290 - trunk/docutils/docutils/writers/newlatex2e.py

Author: felixwiemann
Date: 2005-05-03 23:17:18 +0200 (Tue, 03 May 2005)
New Revision: 3290

Modified:
   trunk/docutils/docutils/writers/newlatex2e.py
Log:
changed config file section

Modified: trunk/docutils/docutils/writers/newlatex2e.py
===================================================================
--- trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 20:48:15 UTC (rev 3289)
+++ trunk/docutils/docutils/writers/newlatex2e.py	2005-05-03 21:17:18 UTC (rev 3290)
 <at>  <at>  -59,7 +59,7  <at>  <at> 

     relative_path_settings = ('stylesheet_path',)

-    config_section = 'latex2e writer'
+    config_section = 'newlatex2e writer'
     config_section_dependencies = ('writers',)

     output = None

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

Gmane