Nguyen Vu Hung a ?crit : > In your scripts, you assume that the intput is a odt file whose format is zip? > I don't assume it: it is! :-)
I should (I will) read the ODF official specification to check if it *has* to be or only *may* be Zip. I have to read it to check I did the correct thing anyway... Since this script has been developed on a trial/error basis (but still with a good knowledge of XML)... > I saw no iconv* code in your Python code so where is the real conversion from > TCVN3 to UTF-8? > Finally I find how to get rid of external processing since Python has it all already. Well, almost all... Check the tcvn5712_1.py I had to create (read first lines for installation instructions) to give Python know this encoding. Look for "encode" in the source code... -- Jean Christophe "????" ANDR? ? Responsable technique r?gional Bureau Asie-Pacifique (BAP) ? http://asie-pacifique.auf.org/ Agence universitaire de la Francophonie (AuF) ? http://www.auf.org/ Adresse postale : AUF, 21 L? Th?nh T?ng, T.T. Ho?n Ki?m, H? N?i, Vi?t Nam T?l. : +84 4 9331108 Fax : +84 4 8247383 Mobile : +84 91 3248747 ? Note personnelle : merci d'?viter de m'envoyer des fichiers PowerPoint ? ? ou Word, voir http://www.gnu.org/philosophy/no-word-attachments.fr.html ? -------------- section suivante -------------- Une pi?ce jointe non texte a ?t? nettoy?e... Nom: signature.asc Type: application/pgp-signature Taille: 252 octets Desc: OpenPGP digital signature Url: http://lists.hanoilug.org/pipermail/hanoilug/attachments/20080328/57895001/attachment.pgp
