From: Facundo B. <fac...@gm...> - 2007-10-17 02:18:27
|
Hi! I have a problem in the Python project related to docutils. I wanted to make a change in some Python PEPs. So I checked out the PEPs from the SVN and run "make", and it crashes with the following: SyntaxError: Non-ASCII character '\xc3' in file .../peps/docutils/parsers/rst/directives/images.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details make: *** [pep-0001.html] Error 1 Line 4 of that file says: # Date: $Date: 2005-12-28 22:14:21 -0300 (mi=E9, 28 dic 2005) $ Notice the day name: mi=E9. This is because the $date of the file is translated by SVN, and in Spanish Wednesday is Mi=E9rcoles. The solution to this is to put a "-*- coding:utf8 -*-" line in the beginning of this file and all where happens the same. I'm pretty sure that this file comes from the Docutils project, because in the PEP SVN it makes a checkout from svn.berlios.de, but I actually don't know how this is done, and I'm not finding which files are checked out. If you please point me, I can fix these. The "coding" line won't hurt anybody, and help all those that have non-ASCII characters in the locale day names. Thanks for the help! Regards, --=20 . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ |
From: David G. <go...@py...> - 2007-10-26 13:55:02
|
T24gMTYvMTAvMjAwNywgRmFjdW5kbyBCYXRpc3RhIDxmYWN1bmRvYmF0aXN0YUBnbWFpbC5jb20+ IHdyb3RlOgo+IEkgaGF2ZSBhIHByb2JsZW0gaW4gdGhlIFB5dGhvbiBwcm9qZWN0IHJlbGF0ZWQg dG8gZG9jdXRpbHMuCj4KPiBJIHdhbnRlZCB0byBtYWtlIGEgY2hhbmdlIGluIHNvbWUgUHl0aG9u IFBFUHMuIFNvIEkgY2hlY2tlZCBvdXQgdGhlCj4gUEVQcyBmcm9tIHRoZSBTVk4gYW5kIHJ1biAi bWFrZSIsIGFuZCBpdCBjcmFzaGVzIHdpdGggdGhlIGZvbGxvd2luZzoKPgo+ICAgU3ludGF4RXJy b3I6IE5vbi1BU0NJSSBjaGFyYWN0ZXIgJ1x4YzMnIGluIGZpbGUKPiAgICAgLi4uL3BlcHMvZG9j dXRpbHMvcGFyc2V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Y29t ZXMgZnJvbSB0aGUgRG9jdXRpbHMgcHJvamVjdCwKPiBiZWNhdXNlIGluIHRoZSBQRVAgU1ZOIGl0 IG1ha2VzIGEgY2hlY2tvdXQgZnJvbSBzdm4uYmVybGlvcy5kZSwgYnV0IEkKPiBhY3R1YWxseSBk b24ndCBrbm93IGhvdyB0aGlzIGlzIGRvbmUsIGFuZCBJJ20gbm90IGZpbmRpbmcgd2hpY2ggZmls ZXMKPiBhcmUgY2hlY2tlZCBvdXQuCgpEb2N1dGlscyBpcyBhIGRlcGVuZGVuY3kgY2hlY2tlZCBv dXQgdmlhIGFuIGV4dGVybmFsIGRlZmluaXRpb24gKHN2bjpleHRlcm5hbHMpLgoKPiBJZiB5b3Ug cGxlYXNlIHBvaW50IG1lLCBJIGNhbiBmaXggdGhlc2UuCgpBbHJlYWR5IGZpeGVkIGluIFNWTi4g IFRoZSBQRVAgcmVwb3NpdG9yeSdzIGV4dGVybmFsIERvY3V0aWxzIGlzCnBpbm5lZCBhdCByZXZp c2lvbiA0NDQ3IHJpZ2h0IG5vdzsgaXQgY291bGQgYmUgdXBkYXRlZCB0byByZWZlciB0byBhCmxh dGVyIHJldmlzaW9uLgoKLS0gCkRhdmlkIEdvb2RnZXIgPGh0dHA6Ly9weXRob24ubmV0L35nb29k Z2VyPgo= |
From: Facundo B. <fac...@gm...> - 2007-10-26 14:07:57
|
2007/10/26, David Goodger <go...@py...>: > > The solution to this is to put a "-*- coding:utf8 -*-" line in the > > beginning of this file and all where happens the same. > > Another solution is to replace $Date$ with $Id$. This was done in > revision 4564 on 2006-05-21. Yes, after I found out how this "external thing" was done (learning everyday!), I found that we're checking out from the "PEP project" an old version of docutils... > Already fixed in SVN. The PEP repository's external Docutils is > pinned at revision 4447 right now; it could be updated to refer to a > later revision. Yes, good point: Do you have a recomendation to which version update? Something like the last stable? I could update this, and see if there's no major difference or something in the resulting htmls... Thank you!!! -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ |
From: David G. <go...@py...> - 2007-10-26 14:32:29
|
On 26/10/2007, Facundo Batista <fac...@gm...> wrote: > 2007/10/26, David Goodger <go...@py...>: > > Already fixed in SVN. The PEP repository's external Docutils is > > pinned at revision 4447 right now; it could be updated to refer to a > > later revision. > > Yes, good point: Do you have a recomendation to which version update? > Something like the last stable? There is no such thing currently. The latest version should be fine, but needs to be tested well. I don't have time to test. It may be easier for now to just use "LANG=C svn up". > I could update this, and see if there's no major difference or > something in the resulting htmls... Be sure to run the python.org build as well, since that depends on the same version of Docutils. Ask on the pydotorg at python.org list. -- David Goodger <http://python.net/~goodger> |
From: Facundo B. <fac...@gm...> - 2007-11-07 17:05:42
Attachments:
pep3000_4447_5461.patch
|
2007/10/26, David Goodger <go...@py...>: > The latest version should be fine, but needs to be tested well. I > don't have time to test. If I say to the SVN in the pep branch to get docutils to the version 5461, the problem with Unicode is already fixed. Everything runs smoothly with the newer version. The generated htmls are a bit different, but as far I saw, with small changes that are for better. For example... <div class="section"> <h2><a class="toc-backref" href="#id33" id="numbers" name="numbers">Numbers</a></h2> ...changed for... <div class="section" id="numbers"> <h2><a class="toc-backref" href="#id33">Numbers</a></h2> . This and other change takes all the changes I saw reviewing several files. The other one is that now we don't have 'class ="reference"', but 'class ="reference internal"' or 'class ="reference external"'. Visually, I didn't find any difference in all the files I checked. Here I attach the diff for PEP 3000, as an example. If you don't see any problem, I'll commit the change that makes this branch to get the newer version of docutils. Thanks! -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ |