[Po4a-devel] [po4a-Bugs][313322] latex format can not recognize custom environments
po4a-bugs at alioth.debian.org
po4a-bugs at alioth.debian.org
Thu Sep 1 18:20:22 UTC 2011
Bugs item #313322, was changed at 2011-08-31 13:45 by Cristian Consonni
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=410622&aid=313322&group_id=30267
Status: Open
Priority: 3
Submitted By: Cristian Consonni (cristiancantoro-guest)
Assigned to: Nobody (None)
Summary: latex format can not recognize custom environments
Category: None
Group: None
Resolution: None
Initial Comment:
I don't know if this is more a feature request than a bug report, anyway I was creating a po file with po4a-gettextize and got the following
$ po4a-gettextize -f latex -m mbe1intro.tex -p olo.po
mbe1intro.tex:101: (po4a::tex)
ambiente «myVerbatim2» sconosciuto
\begin{myVerbatim2}
[...]
this is the definition of the environment:
\DefineVerbatimEnvironment%
{myVerbatim2}%
{Verbatim}%
{fontfamily=courier,fontseries=b,frame=single,rulecolor=\color{blue}}
The problem was resolved by commenting all the occurrences of the environment.
Cristian
p.s: the original tex file has been downloaded from:
[1]http://www.csulb.edu/~woollett/mbe1intro.tex
----------------------------------------------------------------------
Comment By: Cristian Consonni (cristiancantoro-guest)
Date: 2011-09-01 20:20
Message:
@Nicola François:
adding te followig lines:
% po4a: verbatim environment myVerbatim2
% po4a: verbatim environment myVerbatim2s
% po4a: verbatim environment myVerbatim2f
% po4a: verbatim environment myVerbatim4
% po4a: verbatim environment myVerbatim
% po4a: verbatim environment myVerbatim1
solves the problem.
Anyway the command:
$ po4a-gettextize -f latex -m mbe1intro.tex -p olo.po -o no_wrap="myVerbatim2,myVerbatim2s,myVerbatim4,myVerbatim,myVerbatim1,myVerbatim2f"
gives:
mbe1intro.tex:1143: (po4a::tex)
simbolo "]" solitario in «(((to_atan2(e, y, x), totan(e, v), totan2(e, v), mstate(), mattrib(), mclean(),
fll(x), nyquist(ns, fs), sample(expr, var, ns, dvar), vf(flist, dvar),
current_small(), setsmall(val), _chop_fabsspectrum(glist, nlw, ymax, »
You can also find the original file attached.
----------------------------------------------------------------------
Comment By: David Prévot (taffit)
Date: 2011-08-31 23:10
Message:
Hi,
By the way I already had a few issues using inline comments, and better results declaring customization in an extra file.
e.g.: $ po4a-gettextize -f latex -m mbe1intro.tex -p olo.po -o definitions="custom"
where the custom files contains lines like:
% po4a: environment myVerbatim2
Regards
David
----------------------------------------------------------------------
Comment By: Nicolas FRANÇOIS (nekral-guest)
Date: 2011-08-31 22:50
Message:
Hello,
This is intended to be supported.
Did you try any of the TeX module options? (e.g. -o no_wrap="myVerbatim2")
Or did you try to define the environment in the TeX file for po4a. For example:
% po4a: environment myVerbatim2
or
% po4a: verbatim environment myVerbatim2
(see man Locale::Po4a::TeX for more info)
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=410622&aid=313322&group_id=30267
More information about the Po4a-devel
mailing list