Package: po4a
Version: 0.23-1
Severity: normal

Hi,

I am trying to use po4a on Axiom documentation.  My first attempts have 
shown a weird behavior on some latex list environments (but most do work
properly).  I have gathered all of them in the attached file.

I have not yet been able to understand the key problem (square 
brackets? newlines?) nor to find workarounds.

Here are the commands I have used:
$ po4a-gettextize -f latex -m weird.tex -p weird.fr.po
$ less weird.fr.po
(deliberately no change to the po file)
$ po4a-translate -k 0 -f latex -m weird.tex -p weird.fr.po -l weird.fr.tex
$ latex weird.fr.tex

Thanks for this great tool,
Frederic Lehobey

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages po4a depends on:
ii  gettext                   0.14.5-2       GNU Internationalization utilities
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  perl                      5.8.8-2        Larry Wall's Practical Extraction 
ii  perl-modules              5.8.8-2        Core Perl modules
ii  sp                        1.3.4-1.2.1-47 James Clark's SGML parsing tools

Versions of packages po4a recommends:
ii  liblocale-gettext-perl        1.05-1     Using libc functions for internati
ii  libterm-readkey-perl          2.30-3     A perl module for simple terminal 
ii  libtext-wrapi18n-perl         0.06-4     internationalized substitute of Te

-- no debconf information
\documentclass{book}
\begin{document}
\begin{titlepage}
\center{Exhibit po4a weird behavior on some lists}
\end{titlepage}

\par\noindent{\bf All in one line}
\begin{list}{}
\item {\tt )abbreviation query  [{\it nameOrAbbrev}]}
\item {\tt )abbreviation category  {\it abbrev  fullname} [)quiet]}
\item {\tt )abbreviation domain  {\it abbrev  fullname}   [)quiet]}
\item {\tt )abbreviation package  {\it abbrev  fullname}  [)quiet]}
\item {\tt )abbreviation remove  {\it nameOrAbbrev}}
\end{list}

\par\noindent{\bf Lost spaces}
\begin{list}{}
\item {\tt )boot} {\it bootExpression}
\end{list}

\begin{list}{}
\item {\tt )cd} {\it directory}
\end{list}

\begin{list}{}
\item{\tt )edit} [{\it filename}]
\end{list}

\par\noindent{\bf All in one line}
\begin{list}{}
\item{\tt )frame  new  {\it frameName}}
\item{\tt )frame  drop  [{\it frameName}]}
\item{\tt )frame  next}
\item{\tt )frame  last}
\item{\tt )frame  names}
\item{\tt )frame  import {\it frameName} 
  {\it {\tt [}objectName1 {\tt [}objectName2 ...{\tt]]}}}
\item{\tt )set message frame on | off}
\item{\tt )set message prompt frame}
\end{list}

\par\noindent{\bf All in one line from )change line???}
\begin{list}{}
\item{\tt )history )on}
\item{\tt )history )off}
\item{\tt )history )write} {\it historyInputFileName}
\item{\tt )history )show [{\it n}] [both]}
\item{\tt )history )save} {\it savedHistoryName}
\item{\tt )history )restore} [{\it savedHistoryName}]
\item{\tt )history )reset}
\item{\tt )history )change} {\it n}
\item{\tt )history )memory}
\item{\tt )history )file}
\item{\tt \%}
\item{\tt \%\%({\it n})}
\item{\tt )set history on | off}
\end{list}

\par\noindent{\bf All in one line}
\begin{list}{}
\item{\tt )library {\it libName1  {\tt [}libName2 ...{\tt ]}}}
\item{\tt )library )dir {\it dirName}}
\item{\tt )library )only {\it objName1  {\tt [}objlib2 ...{\tt ]}}}
\item{\tt )library )noexpose}
\end{list}

\par\noindent{\bf Lost spaces}
\begin{list}{}
\item {\tt )lisp} [{\it lispExpression}]
\end{list}

\begin{list}{}
\item {\tt )read}  [{\it fileName}]
\item {\tt )read}  [{\it fileName}] [{\tt )quiet}] [{\tt )ifthere}]
\end{list}

\par\noindent{\bf All in one line}
\begin{list}{}
\item {\tt )show {\it nameOrAbbrev}}
\item {\tt )show {\it nameOrAbbrev} )operations}
\item {\tt )show {\it nameOrAbbrev} )attributes}
\end{list}

\begin{list}{}
\item{\tt )spool} [{\it fileName}]
\item{\tt )spool}
\end{list}

\par\noindent{\bf All in one line from second line???}
\begin{list}{}
\item{\tt )synonym}
\item{\tt )synonym} {\it synonym fullCommand}
\item{\tt )what synonyms}
\end{list}

\par\noindent{\bf Lost spaces}
\begin{list}{}
\item{\tt )system} {\it cmdExpression}
\end{list}

\par\noindent{\bf First two on same line and then lost space}
\begin{list}{}
\item{\tt )trace}
\item{\tt )trace )off}

\item{\tt )trace} {\it function {\tt [}options{\tt ]}}
\item{\tt )trace} {\it constructor {\tt [}options {\tt ]}}
\item{\tt )trace} {\it domainOrPackage {\tt [}options {\tt ]}}
\end{list}

\par\noindent{\bf Both in one line}
\begin{list}{}
\item{\tt )after}
\item{\tt )before}
\end{list}
\end{document}

Reply via email to