GNOME Bugzilla – Bug 664768
Syntax error in nautilus-actions' es.po
Last modified: 2012-10-17 20:35:19 UTC
When I am building the NACT user's manual to a pdf format, the 'es' translation does not work: dblatex --output es/nautilus-actions-config-tool.pdf ../../docs/nact/es/nautilus-actions-config-tool.xml Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3) =================================================== Processing Revision History No template matches termdef in member. No template matches termdef in member. No template matches termdef in member. Build nautilus-actions-config-tool.pdf This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode pdflatex failed nautilus-actions-config-tool.tex:2305: Paragraph ended before \T1\' was complete. nautilus-actions-config-tool.tex:2305: leading text: \caption{Abrir una terminal aqui\'} Unexpected error occured I think that there is most probably some error in the es.po, as all other translations work fine. Note that the html conversion of the es.po also works fine.
There is an error in the command you have posted. The file "/docs/nact/es/nautilus-actions-config-tool.xml" doesn't exist, so dblatex command fails. This file is located in "/docs/nact/C". Using the folliwng command, I've generated the PDF file without errors: dblatex --output es/nautilus-actions-config-tool.pdf ../../docs/nact/C/nautilus-actions-config-tool.xml (Note that I've changed the XML file's path) In the other hand, msgfmt returns no error in es.po file.
Hi Daniel, I think you've missed the ../../ in the command I posted.. ;) And the error message enough said that the .xml file has actually been found. Nonetheless, if the pdf is correctly generated in your configuration, could you please post the version of the tools you are using ? And the output lines ? I think my configurations (fedora14/fedora16) are up to date, but only from standard repositories... Regards, Pierre
Pierre, the ../../ is not relevant, since I've executed the command inside the docs/nact folder, so I can use relative paths to buid the doc ;). Anyway, command should work with absolute or relative paths. The problem is you are referencing a file that doesn't exists (/es/nautilus-actions-tools.xml). Language folders only contain .po file, not XML files, which are located in the C folder Here are the steps I'm following: 1 - Execute dblatex command (in "nautilus-actions/docs/nact") dblatex --output es/nautilus-actions-config-tool.pdf ../../docs/nact/C/nautilus-actions-config-tool.xml 2 - Here is the output of the command: /usr/share/dblatex/lib/dbtexmf/dblatex/grubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.2.12-4) =================================================== Processing Revision History No template matches termdef in member. No template matches termdef in member. No template matches termdef in member. Build nautilus-actions-config-tool.pdf This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode processing index /tmp/tmpA8tCo7/nautilus-actions-config-tool.idx... This is makeindex, version 2.15 [TeX Live 2009] (kpathsea + Thai support). Scanning style file /usr/share/dblatex/latex/scripts/doc.ist....done (4 attributes redefined, 0 ignored). Scanning input file /tmp/tmpA8tCo7/nautilus-actions-config-tool.idx....done (2 entries accepted, 0 rejected). Sorting entries....done (2 comparisons). Generating output file /tmp/tmpA8tCo7/nautilus-actions-config-tool.ind....done (7 lines written, 0 warnings). Output written in /tmp/tmpA8tCo7/nautilus-actions-config-tool.ind. Transcript written in /tmp/tmpA8tCo7/nautilus-actions-config-tool.ilg. This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) entering extended mode 'nautilus-actions-config-tool.pdf' successfully built 3 - PDF file has been generated in es/nautilus-actions-config-tool.pdf (opened with evince, works properly) I'm using Ubuntu 10.04 LTS (work issues ;-) ) fully updated, with dblatex 0.2.12.4
Daniel, Language folder actually contains exactly what I put in it during the build of the manuals. Hope this is more clear this way: [pierre@kermit es]$ ls -l total 580 drwxr-xr-x 2 pierre users 4096 Nov 25 20:07 ./ drwxr-xr-x 7 pierre users 4096 Nov 25 11:35 ../ -rw-rw-r-- 1 pierre users 49587 Nov 25 11:34 es.mo -rw-rw-r-- 1 pierre users 169907 Nov 24 23:10 es.po lrwxrwxrwx 1 pierre users 12 Nov 25 20:07 figures -> ../C/figures/ -rw-rw-r-- 1 pierre users 187492 Nov 25 11:34 nautilus-actions-config-tool.html -rw-rw-r-- 1 pierre users 152931 Nov 25 11:34 nautilus-actions-config-tool.xml [pierre@kermit es]$ [pierre@kermit es]$ dblatex --output nautilus-actions-config-tool.pdf nautilus-actions-config-tool.xml Build the book set list... Build the listings... XSLT stylesheets DocBook - LaTeX 2e (0.3) =================================================== Processing Revision History No template matches termdef in member. No template matches termdef in member. No template matches termdef in member. Build nautilus-actions-config-tool.pdf This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode pdflatex failed nautilus-actions-config-tool.tex:2305: Paragraph ended before \T1\' was complete. nautilus-actions-config-tool.tex:2305: leading text: \caption{Abrir una terminal aqui\'} Unexpected error occured I think the difference between dblatex (mine is 0.3 while yours is 0.2.12) is not relevant as all seems fine until the "Build nautilus-actions-config-tool.pdf" message. So the issue should come from pdflatex: mine is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) while yours is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian). On Fedora, pdfTeXk is the internal name of the pdftex binary, which is part of texlive-latex-2007-56.fc14.x86_64 package. I have tried to run: dblatex -d nautilus-actions-config-tool.xml in order to keep the temp working directory. I find lot of files in this directory: [pierre@kermit es]$ ll /tmp/tmpCi6v51 total 2080 drwx------ 2 pierre users 4096 Nov 25 21:48 ./ drwxrwxrwt 17 root root 4096 Nov 25 21:48 ../ -rw-rw-r-- 1 pierre users 343 Nov 25 21:48 doclist.xsl -rw-rw-r-- 1 pierre users 88 Nov 25 21:48 env_tex -rw-rw-r-- 1 pierre users 77 Nov 25 21:48 listings.xml -rw-rw-r-- 1 pierre users 21898 Nov 25 21:48 nautilus-actions-config-tool.aux -rw-rw-r-- 1 pierre users 0 Nov 25 21:48 nautilus-actions-config-tool.cb -rw-rw-r-- 1 pierre users 0 Nov 25 21:48 nautilus-actions-config-tool.cb2 -rw-rw-r-- 1 pierre users 0 Nov 25 21:48 nautilus-actions-config-tool.glo -rw-rw-r-- 1 pierre users 80 Nov 25 21:48 nautilus-actions-config-tool.idx -rw-rw-r-- 1 pierre users 3388 Nov 25 21:48 nautilus-actions-config-tool.lof -rw-rw-r-- 1 pierre users 76736 Nov 25 21:48 nautilus-actions-config-tool.log -rw-rw-r-- 1 pierre users 152 Nov 25 21:48 nautilus-actions-config-tool.lot -rw-rw-r-- 1 pierre users 4568 Nov 25 21:48 nautilus-actions-config-tool.out -rw-rw-r-- 1 pierre users 1705840 Nov 25 21:48 nautilus-actions-config-tool.pdf -rw-rw-r-- 1 pierre users 139136 Nov 25 21:48 nautilus-actions-config-tool.rtex -rw-rw-r-- 1 pierre users 129087 Nov 25 21:48 nautilus-actions-config-tool.tex -rw-rw-r-- 1 pierre users 5797 Nov 25 21:48 nautilus-actions-config-tool.toc and, eventually, even a nautilus-actions-config-tool.pdf file which seems fine with evince. What should I do in your opinion ? 1/ ignore the error, just do not distribute es nact pdf manual 2/ take the pdf from the temp directory and cross the fingers 3/ identify a bug somewhere and try to fix it Regards Pierre
Maybe you could ask for help in the gnome-i18n mail list. There are several developers, maintainers and translators suscribed to the list, and someone could help us. If there is any error in the Spanish translation, I will fix it, but at this moment i don't know how to fix it because I don't see any error in the es.po file :(
I can confirm this is not a Spanish translation issue, at least not an issue that Spanish translators can fix. The problem is that "Abrir una terminal aquì" is converted to latex expression "\caption{Abrir una terminal aqui\'}". I think the result should be either "aqu\i`" or "aquì". So the bug is probably somewhere in the xml -> tex -> pdf toolchain.
Sorry, just replace ì by í in my previous comment.
Hi Claude, Thanks for the clarification. Well, in the mean time, there is no reason the es translation suffers from a bug in the toolchain. I am going to choose the option 2/. I keep this bug open, until I have some time to attribute it to the right tool. Regards Pierre
What happened with this bug?
Ping?
I'm not even able to properly run the xml -> tex -> pdf chain without an error, and even with just a single line in the file. So, closing this bug and opening a new one for dblatex. Regards.