Mike Gleen | 6 Jul 19:50 2011
Picon

Test suite failure

Here is the result of the test:

C:\Download\docutils\tools>cd ..\test

C:\Download\docutils\test>python alltests.py
Testing Docutils 0.8 [snapshot 2011-07-03, r7069] with Python 2.7.1 on 2011-07-
06 at 18:45:58
Working directory: C:\Download\docutils\test
Docutils package: C:\Download\docutils\docutils
F...............................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
........................................
................................................................................
...............................
======================================================================
FAIL: test_sys_argv_decoding (test_command_line.CommandLineEncodingTests)
----------------------------------------------------------------------
(Continue reading)

Guenter Milde | 6 Jul 21:25 2011
Picon

Re: Test suite failure

On 2011-07-06, Mike Gleen wrote:

> Here is the result of the test:

Thanks for reporting!

...

>======================================================================
> FAIL: test_sys_argv_decoding (test_command_line.CommandLineEncodingTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Download\docutils\test\test_command_line.py", line 30, in 
> test_sys_argv_decoding
>     self.assertEqual(publisher.settings.title, u'Dornr├Âschen')
> AssertionError: u'Dornr\xf7schen' != u'Dornr\xf6schen'
> - Dornr\xf7schen
> ?      ^
> + Dornr\xf6schen
> ?      ^

To find out, whether this points to a real problem or is a false positive, 
can you check the output of converting an empty file with ::

  rst2html.py --title=Dornröschen test.txt test.html

? If it goes wrong as the test indicated, the title should have a 

 Character '÷' (247, 0xF7) DIVISION SIGN

(Continue reading)

engelbert gruber | 8 Jul 14:51 2011
Picon
Picon

release 0.8

after one year release 0.8 is out.

Changes in short:

  licensing change, better language support, better math support,
"name" options to directives and xetex-writer.

Changes in all:

  too much to spell out here. see `history`_ for details.

.. _history: http://docutils.sourceforge.net/HISTORY.html

Thanks to all contributors.
All the best for the next year/release
  engelbert

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
Guenter Milde | 8 Jul 15:18 2011
Picon

Re: release 0.8

On 2011-07-08, engelbert gruber wrote:

> after one year release 0.8 is out.

Thanks, Engelbert.

> Changes in short:

>   licensing change, better language support, better math support,

Math is not just improved but a completely new feature (in the core).

> "name" options to directives and xetex-writer.

See also http://docutils.sourceforge.net/RELEASE-NOTES.html for
a summary of changes.

> Changes in all:

>   too much to spell out here. see `history`_ for details.

> .. _history: http://docutils.sourceforge.net/HISTORY.html

Günter

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
(Continue reading)

Aahz | 9 Jul 22:45 2011

Re: release 0.8

On Fri, Jul 08, 2011, engelbert gruber wrote:
>
> after one year release 0.8 is out.

Congrats!
--

-- 
Aahz (aahz <at> pythoncraft.com)           <*>         http://www.pythoncraft.com/

Looking back over the years, after I learned Python I realized that I
never really had enjoyed programming before.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
wonder beyond | 11 Jul 06:41 2011
Picon

rst2html_strict.py execution error on python2.7 and docutils0.8

when I run the command:

rst2html_strict.py --traceback test.txt
I got the following Traceback:

Traceback (most recent call last):
  File "/home/wonder/bin/rst2html_strict.py", line 37, in <module>
    description=description)
  File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 331, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 205, in publish
    output = self.writer.write(self.document, self.destination)
  File "/usr/local/lib/python2.7/dist-packages/docutils/writers/__init__.py", line 76, in write
    self.translate()
  File "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py", line 156, in translate
    self.visitor = visitor = self.translator_class(self.document)
  File "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py", line 257, in __init__
    self.head_prefix_template % (lcode, lcode)])
TypeError: format requires a mapping

How to solve this problem?

Thank you!

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
engelbert gruber | 11 Jul 16:34 2011
Picon

Re: rst2html_strict.py execution error on python2.7 and docutils0.8

from here i would assume
``self.head_prefix_template`` to have some ``%(name)s`` entries or
similar and the call::

  self.head_prefix_template % (lcode, lcode)

does not pass a dictionary but a list.

please check the template.

all the best

On Mon, Jul 11, 2011 at 6:41 AM, wonder beyond <wonderbeyond <at> gmail.com> wrote:
> when I run the command:
> rst2html_strict.py --traceback test.txt
> I got the following Traceback:
>
> Traceback (most recent call last):
>   File "/home/wonder/bin/rst2html_strict.py", line 37, in <module>
>     description=description)
>   File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 331,
> in publish_cmdline
>     config_section=config_section, enable_exit_status=enable_exit_status)
>   File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 205,
> in publish
>     output = self.writer.write(self.document, self.destination)
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/__init__.py", line
> 76, in write
>     self.translate()
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py",
> line 156, in translate
>     self.visitor = visitor = self.translator_class(self.document)
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py",
> line 257, in __init__
>     self.head_prefix_template % (lcode, lcode)])
> TypeError: format requires a mapping
> How to solve this problem?
> Thank you!
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> _______________________________________________
> Docutils-users mailing list
> Docutils-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
> Please use "Reply All" to reply to the list.
>
>

--

-- 
http://darefoot.blogspot.com

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
Catherine Devlin | 18 Jul 00:32 2011
Picon

rst2dz daydreams

Hi, everybody,

Has anybody seen DZSlides yet?  http://paulrouget.com/dzslides/

I think it's a really nice-looking browser-presentation platform, and would *really* like to be able to generate it with reST.  I don't think it would take very intensive hacking of rst2html to make it possible, and I'm willing to take it on... though I think I could use a pointer for finding the source code that decides to emit a section as "<h1>section title</h1>blah blah blah" and change it to "<section><h1>section title</h1>blah blah blah</section>". 

After that it's just a matter of changing the default stylesheet to the DZSlides one.    I also would want to make transition markers define untitled <section>s, too... not being able to (AFAIK) create untitled slides in my rst2s5 presentations has caused me to create some slides with really blah titles, and DZSlides doesn't require sections/slides to be titled.

Failing all else, it wouldn't actually be too hard to transform a finished .html generated by standard rst2html into DZSlides HTML5 by homemade text transformations.  Not very elegant, though.

Advice?  Guidance?

Thanks,
--
- Catherine
http://catherinedevlin.blogspot.com

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
Catherine Devlin | 19 Jul 16:48 2011
Picon

Re: rst2dz daydreams

Hmm, hold that thought.  I hadn't realized that landslide is a HTML5 slideshow tool that already supports reST... thus, there's probably no reason to fuss with .


http://adamzap.com/random/landslide.html

so, all hail landslide, never mind on dz.

On Sun, Jul 17, 2011 at 6:32 PM, Catherine Devlin <catherine.devlin <at> gmail.com> wrote:
Hi, everybody,

Has anybody seen DZSlides yet?  http://paulrouget.com/dzslides/

--
- Catherine
http://catherinedevlin.blogspot.com

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
Guenter Milde | 20 Jul 11:29 2011
Picon

Re: rst2html_strict.py execution error on python2.7 and docutils0.8

On 2011-07-11, wonder beyond wrote:

> [-- Type: text/plain, Encoding:  --]

> when I run the command:
> *rst2html_strict.py --traceback test.txt*
> I got the following Traceback:

> Traceback (most recent call last):
>   File "/home/wonder/bin/rst2html_strict.py", line 37, in <module>
>     description=description)
>   File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 331,
> in publish_cmdline
>     config_section=config_section, enable_exit_status=enable_exit_status)
>   File "/usr/local/lib/python2.7/dist-packages/docutils/core.py", line 205,
> in publish
>     output = self.writer.write(self.document, self.destination)
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/__init__.py", line
> 76, in write
>     self.translate()
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py",
> line 156, in translate
>     self.visitor = visitor = self.translator_class(self.document)
>   File
> "/usr/local/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py",
> line 257, in __init__
>     self.head_prefix_template % (lcode, lcode)])
> TypeError: format requires a mapping

> How to solve this problem?

Looks like a version conflict between the docutils core (html4css1
writer) and the html-strict writer from the sandbox.
(The template now uses a mapping instead of a tuple to allow ::

                                 self.head_prefix_template %
                                 {'lang': self.settings.language_code}])

as replacement for both, ::

    head_prefix_template = ('<html xmlns="http://www.w3.org/1999/xhtml"'
                            ' xml:lang="%(lang)s" lang="%(lang)s">\n<head>\n')

in html4css1 and ::

    head_prefix_template = ('<html xmlns="http://www.w3.org/1999/xhtml"'
                            ' xml:lang="%(lang)s">\n<head>\n')

in html-strict.)

Using an older version of the html-strict writer (available via ViewVCS
on berlios.de) or updating the docutils core should solve this.

Günter

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Docutils-users mailing list
Docutils-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.

Gmane