Package: po4a
Version: 0.23-1
Severity: wishlist

Hi,

I created this bug as a reminder of possible future support of noweb
(nowebm package in Debian) literate programming style in po4a,
possibly inherited from the LaTeX mode.  Nicolas François has ideas
about it (depending on future features of po4a).  If I can contribute
to it I will, but no estimate on the time line.  :)

I include a typical example file (with questions and examples).

Thanks for your much appreciated work on po4a,
Frédéric 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}
\usepackage{noweb}
\begin{document}
\begin{titlepage}
\center{Consider compatibility of po4a with noweb}
\end{titlepage}

Noweb (Debian package nowebm that has to be installed for this demo to
work) is a literate programming tool used for Axiom documentation.  It
allows mixings commands like below

<<*>>=
PROJECT=noweb
WEAVE=`which noweave`
LATEX=`which latex`

all: 
	${WEAVE} -t8 -delay ${PROJECT}.pamphlet > ${PROJECT}.tex
	${LATEX} ${PROJECT}.tex --interaction batchmode
	${LATEX} ${PROJECT}.tex --interaction batchmode

@
and regular latex commands.

This file is an exemple to see whether it is possible to make po4a
compatible with the noweb chunks.

\par\noindent{\bf Create the Makefile}

\begin{verbatim}
$ notangle -t8 noweb.pamphlet > Makefile.noweb
\end{verbatim}


\par\noindent{\bf Create the LaTeX and dvi file}

\begin{verbatim}
$ make -f Makefile.noweb
\end{verbatim}

\par\noindent{\bf Problems}

Unfortunately calling \texttt{po4a-gettextize} like
\begin{verbatim}
$ po4a-gettextize -f latex -m noweb.pamphlet -p noweb.pamphlet.pot
\end{verbatim}
on \emph{noweb.pamphlet} breaks the noweb chunk formatting.

And calling on the pure \emph{.tex} version like
\begin{verbatim}
$ po4a-gettextize -f latex -m noweb.tex -p noweb.tex.pot
\end{verbatim}
breaks it too as the chunk is not a proper environment.  It uses
commands like
\begin{verbatim}
\\nwfilename{noweb.pamphlet}\\nwbegincode{1}
...
\\nwendcode{}\\nwbegindocs{2}\\nwdocspar
\end{verbatim}
that would have to be understood by po4a.

My idea would have be to have such a chunk to be handled as a verbatim
environment, but is it feasible?
\end{document}

Reply via email to