Re: po4a et BibTeX
by Nicolas François
Hello Jean-Yves,
Moving the discussion to the po4a mailing list, so that I can announce the
new BibTeX module.
On Tue, Aug 29, 2006 at 11:39:58PM +0200, Martin Quinson wrote:
>
> j'ai fais chier le mainteneur actuel de po4a, et il l'a fait. Y'a un proto
> dans le CVS du projet, et le mieux serait que tu passes nous voir un soir
> sur le canal #po4a du serveur irc.oftc.net. Nicolas (nekral) n'est pas tres
> dispo de jour car il bosse, mais les soirs, c'est différent.
>
> Comme ca, on pourra discuter de ce qui existe déjà, et de ce que tu
> souhaites vraiment avoir.
The module basically works (attached, the PO and the generated file when
the PO is not translated, for a bibliography given by Martin:
http://graal.ens-lyon.fr/biblio/Biblio/complete-bibliography.bib)
First there are some questions about the validity of the module.
* Something like:
| title = {foo bar ... baz},
Could generate:
| title = {foo bar ...
| ... baz},
Is it still valid, or should I ensure that it stay in one line?
* Same question for:
| title = "foo bar ... baz",
and
| title = foo bar ... baz,
* What does:
| month = {3-8} # apr,
means? Is it a comment?
Is it the same for the next line?
| month = apr # "4",
There is also some possible future improvements:
* Mark some fields as not translatable (e.g. the 'key' field, 'page' in
some languages, 'ISBN' and 'ISSN', etc.)
* Add an input or output character translation table (e.g. to avoid stuff
like {\'e} in the PO's msgid, or to allow users to use accentuated
characters in the PO's msgstr while still generating escaped chars
Kind Regards,
--
Nekral
18 years, 2 months
Re: po4a module for INI files
by Nicolas François
Hello,
On Mon, Aug 21, 2006 at 05:58:57PM +0300, Costin Stroie wrote:
>
> I don't know how to submit you patches, so I have chosen to send you an
> email.
It works. You can also send them to the po4a-devel mailing list (CCed), so
that somebody else can commit/review it.
> Here is a module for po4a for translating INI files. It lacks a bit
> of documentation.
Committed. Thanks!
> The module extracts the quoted values, so it will ignore key3. The reason
> is to quickly skip filenames or some untranslatable data found in the ini
> file, but it far from a consistent method. Maybe a parameter will be
> better.
I will add the parameter if an user wants it.
> Anyway, it works for me and I like to offer it to the open source
> community, but you might need to have a look on it before including it
> in the package.
It's scheduled for the next release. I don't know when since we just made
a release. If you have any requirement for that, just say so.
Regarding the module:
* I will commit the attached patch (I don't think Pod::Parser is used).
* Is it possible to have multilines strings in .INI files?
Kind Regards,
--
Nekral
18 years, 3 months
Re: [Translation-i18n] po4a build error
by Nicolas François
On Sat, Aug 19, 2006 at 04:50:53PM +0930, Clytie Siddall wrote:
> Hi :)
>
> I'm unsure where to send this, so I hope either Nicolas or Martin
> will read it here.
I think we both read this list, but po4a-devel(a)lists.alioth.debian.org
is probably more suitable.
> I've recently migrated from powerpc to x86 (Intel-based Macbook
> running Mac OSX 10.4.7, all updates current), and I'm rebuilding my
> software base.
>
> I've tried to install po4a, but on "make", I get this error:
> ___
> Pearl:/po4a-0.27.2 clytie$ sudo make
> perl Build.PL
> Can't locate Module/Build.pm in @INC (@INC contains: /sw/lib/
> perl5/5.8.6/darwin-thread-multi-2level /sw/lib/perl5/5.8.6 /sw/lib/
> perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.6/darwin-thread-
> multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-
> thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/
> Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/
> 5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-
> thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/
> 5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at Build.PL
> line 3.
> BEGIN failed--compilation aborted at Build.PL line 3.
> make: *** [Build] Error 2
> Pearl:/po4a-0.27.2 clytie$
> ___
If you're using fink, there is a module-build-pm package.
I unfortunately destroyed my MacOS installation, so I won't be able to
test soon.
I don't know how to install perl modules on macos.
Module::Build is common module and can be installed with CPAN.
Hope this helps,
--
Nekral
18 years, 3 months
Another issue with po4a-gettextsize: verbatim environments are mangled
by David MENTRE
Hello,
While trying po4a on a more complex Latex document, I faced following
issue.
In my master document ../en/hoo.tex, I have:
% po4a: environment codesample2
% po4a: environment codesample4
In my document hook.tex, I have verbatim-like environments like that :
\begin{codesample2}
[hooks]
commit.example = python:mymodule.submodule.myhook
\end{codesample2}
However, after applying po4a-gettextize:
po4a-gettextize -f latex -m ../en/hook.tex -M utf8 -l hook.tex -L utf8 \
-p hook.po -o verbatim=codesample2 -o verbatim=codesample4
I get following content in hook.po:
# type: codesample2
#: ../en/hook.tex:402
#, fuzzy
msgid "[hooks] commit.example = python:mymodule.submodule.myhook"
msgstr "[hooks] commit.example = python:mymodule.submodule.myhook"
You'll notice that linefeeds and spaces are mangled. Is there a way to
avoid that (while still keep those lines in the .po for eventual
translation)?
Best wishes,
david
--
GPG/PGP key: A3AD7A2A David MENTRE <dmentre(a)linux-france.org>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A
18 years, 3 months
Issue with po4a-gettextize and verbatim option
by David MENTRE
Hello,
I'm trying to apply po4a on a LaTeX document. poa4-gettextize fails to
generate .po files because it does not understand a document-defined
environment, codesample2, even if I use the "-o verbatim=codesample2"
option.
I'm using following command line:
PERLLIB=~/pub/book/po4a-0.27.2/lib ~/pub/book/po4a-0.27.2/po4a-gettextize -f latex -m daily.tex -p daily.po -o verbatim=codesample2
I get following error message:
daily.tex:15: (po4a::tex)
unknown environment: 'codesample2'
Am I using badly the command line?
I attach the failing latex file, daily.tex. For information, the
codesample2 environment is defined in another file of the latex document
as:
\DefineVerbatimEnvironment{codesample2}{Verbatim}{frame=single,gobble=2,numbers=left,commandchars=\\\{\}}
Best wishes,
david
PS: The man page locale::po4a::latex should say that LaTeX modules
inherits options from TeX module.
--
GPG/PGP key: A3AD7A2A David MENTRE <dmentre(a)linux-france.org>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A
18 years, 3 months