Hi,

I've a problem with generating the documentation (Spanish translation
of the tutorial)

I've converted the attachment of ticket #7222 to utf using iconv

iconv -f latin1 -t utf8 < tour_help.rst > tour_help-utf8.rst

and after that

mv tour_help.rst tour_help-utf8.rst

(This seems to be needed, the sage documentation building tools
appears to expect the
files in the utf8 encoding).

When I run

sage -docbuild es/tutorial html

I got an error message

sphinx-build -b html -d
/home/pablo/sage/sage-4.5.3/devel/sage/doc/output/doctrees/es/tutorial
   /home/pablo/sage/sage-4.5.3/devel/sage/doc/es/tutorial
/home/pablo/sage/sage-4.5.3/devel/sage/doc/output/html/es/tutorial
Running Sphinx v0.6.3
loading translations [es]... done
loading pickled environment... done
building [html]: targets for 5 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
preparing documents... done
writing output... [100%] tour_help
Exception occurred:
  File 
"/home/pablo/sage/sage-4.5.3/local/lib/python2.6/site-packages/docutils/nodes.py",
line 331, in __new__
    return reprunicode.__new__(cls, data)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
1697: ordinal not in range(128)
The full traceback has been saved in /tmp/sphinx-err-8XRLfY.log, if
you want to report the issue to the author.
Please also report this if it was a user error, so that a better error
message can be provided next time.
Send reports to sphinx-...@googlegroups.com. Thanks!
Build finished.  The built documents can be found in
/home/pablo/sage/sage-4.5.3/devel/sage/doc/output/html/es/tutorial

However, if I run for example

sage -docbuild es/tutorial pdf

everything works Ok.

I thought at the begining that the problem might be the rather old
docutils version in Sage
so I've tried to upgrade docutils (ticket #10166, please review it!)

However, things didn't work either.

So what might be the cause of trouble?
Perhaps the old version of sphinx in Sage?

please help me!

regards
Pablo

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to