Bug in eopubmaker for ..pgfooter:: ?

I've been using the epubmaker website to experiment with RST and so far everything works well except for the .. pgfooter tag. If I put it in I get this: unzipping /htdocs/epubmaker/cache/20120405084734/BP.zip Input file: AStudyOfTheBhagavataPurana.rst EpubMaker version 0.3.19b4 <string>:11826: (ERROR/3) Unexpected indentation. <string>:11827: (WARNING/2) Block quote ends without a blank line; unexpected unindent. :66: (SEVERE/4) Title level inconsistent: Section 1. General Terms of Use & Redistributing Project Gutenberg\u2122 electronic works ```````````````````````````````````````````````````````````````````````````````````` Traceback (most recent call last): File "/usr/local/bin/epubmaker", line 9, in <module> load_entry_point('epubmaker==0.3.19b4', 'console_scripts', 'epubmaker')() File "/usr/local/lib/python2.6/dist-packages/epubmaker-0.3.19b4-py2.6.egg/epubmaker/EpubMaker.py", line 369, in main exception ("%s" % what) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 109: ordinal not in range(128) If I leave it off everything works but of course I don't have the footer. You can check out what I'm doing here: http://epubmaker.pglaf.org/cache/20120405084734/ James Simmons

James, the problem is somewhere in your file. No idea where, though. As a control, I reprocessed an RST-based project of my own (http://www.gutenberg.org/ebooks/39387), posted earlier today. It worked OK. I then processed your file, and got the same results as you. Al -----Original Message----- From: gutvol-d-bounces@lists.pglaf.org [mailto:gutvol-d-bounces@lists.pglaf.org] On Behalf Of James Simmons Sent: Thursday, April 05, 2012 9:01 PM To: Gutenberg Volunteers Subject: [gutvol-d] Bug in eopubmaker for ..pgfooter:: ? I've been using the epubmaker website to experiment with RST and so far everything works well except for the .. pgfooter tag. If I put it in I get this: unzipping /htdocs/epubmaker/cache/20120405084734/BP.zip Input file: AStudyOfTheBhagavataPurana.rst EpubMaker version 0.3.19b4 <string>:11826: (ERROR/3) Unexpected indentation. <string>:11827: (WARNING/2) Block quote ends without a blank line; unexpected unindent. :66: (SEVERE/4) Title level inconsistent: Section 1. General Terms of Use & Redistributing Project Gutenberg\u2122 electronic works `````````````````````````````````````````````````````````````````````` `````````````` Traceback (most recent call last): File "/usr/local/bin/epubmaker", line 9, in <module> load_entry_point('epubmaker==0.3.19b4', 'console_scripts', 'epubmaker')() File "/usr/local/lib/python2.6/dist-packages/epubmaker-0.3.19b4-py2.6.egg/e pubmaker/EpubMaker.py", line 369, in main exception ("%s" % what) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 109: ordinal not in range(128) If I leave it off everything works but of course I don't have the footer. You can check out what I'm doing here: http://epubmaker.pglaf.org/cache/20120405084734/ James Simmons

On 04/06/2012 06:00 AM, James Simmons wrote:
I've been using the epubmaker website to experiment with RST and so far everything works well except for the .. pgfooter tag. If I put it in I get this:
unzipping /htdocs/epubmaker/cache/20120405084734/BP.zip
Input file: AStudyOfTheBhagavataPurana.rst EpubMaker version 0.3.19b4 <string>:11826: (ERROR/3) Unexpected indentation. <string>:11827: (WARNING/2) Block quote ends without a blank line; unexpected unindent. :66: (SEVERE/4) Title level inconsistent:
Section 1. General Terms of Use& Redistributing Project Gutenberg\u2122 electronic works ```````````````````````````````````````````````````````````````````````````````````` Traceback (most recent call last): File "/usr/local/bin/epubmaker", line 9, in<module> load_entry_point('epubmaker==0.3.19b4', 'console_scripts', 'epubmaker')() File "/usr/local/lib/python2.6/dist-packages/epubmaker-0.3.19b4-py2.6.egg/epubmaker/EpubMaker.py", line 369, in main exception ("%s" % what) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 109: ordinal not in range(128)
In your file have to use these underlining characters for titles: Title 1 ======= Title 2 ------- Title 3 ``````` -- Marcello Perathoner webmaster@gutenberg.org

Marcello, Yeah, that was the problem. The docs suggest you can use any characters to underline the section headings as long as they are consistent but that does not account for the PG footer. James Simmons On Fri, Apr 6, 2012 at 3:14 AM, Marcello Perathoner <marcello@perathoner.de>wrote:
On 04/06/2012 06:00 AM, James Simmons wrote:
I've been using the epubmaker website to experiment with RST and so
far everything works well except for the .. pgfooter tag. If I put it in I get this:
unzipping /htdocs/epubmaker/cache/**20120405084734/BP.zip
Input file: AStudyOfTheBhagavataPurana.rst EpubMaker version 0.3.19b4 <string>:11826: (ERROR/3) Unexpected indentation. <string>:11827: (WARNING/2) Block quote ends without a blank line; unexpected unindent. :66: (SEVERE/4) Title level inconsistent:
Section 1. General Terms of Use& Redistributing Project
Gutenberg\u2122 electronic works ``````````````````````````````**``````````````````````````````** ```````````````````````` Traceback (most recent call last): File "/usr/local/bin/epubmaker", line 9, in<module> load_entry_point('epubmaker==**0.3.19b4', 'console_scripts', 'epubmaker')() File "/usr/local/lib/python2.6/**dist-packages/epubmaker-0.3.** 19b4-py2.6.egg/epubmaker/**EpubMaker.py", line 369, in main exception ("%s" % what) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 109: ordinal not in range(128)
In your file have to use these underlining characters for titles:
Title 1 =======
Title 2 -------
Title 3 ```````
-- Marcello Perathoner webmaster@gutenberg.org ______________________________**_________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/**mailman/listinfo/gutvol-d<http://lists.pglaf.org/mailman/listinfo/gutvol-d>
participants (3)
-
Al Haines
-
James Simmons
-
Marcello Perathoner