Hello,
thank you for the gmane.org hint ! Sorry, I'm not familiar with SF and
your development techniques - I'm just a USER.
And I think there's no use to make a diff to my pretty old version of
LedgerSMB 1.2.12. That's why I prepared a fully working example, which
simulates LedgerSMB's Form.pm with minimal function.
It reads in a LaTeX template and replaces only my new
<?lsmb barcode parameters ?> placeholders. It's much easier to play
around with this in contrast to the fully working LedgerSMB Web
Interface.
Try the following:
./Formtest.pl test_template.tex > output.tex
If you like it, have a look at the source code and insert subroutine and
the parser into your Form.pm
Feel free to distribute it in the mailing list.
--
Suyo atentamente / Mit freundlichen Grüßen / With kindest regards
------Gerd Nennemann------------------------------
EMail: ..hidden..
SnailMail: Ifach Yacht Service S.L.
La Canuta, Buzón 1079
E-03710 Calpe
Spain
Phone: +34 660 639 447
--------------------------------------------------
Attachment:
Formtest.pl
Description: Perl program
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\makeatletter
\providecommand{\tabularnewline}{\\}
\makeatother
\begin{document}
\begin{tabular}{cc}
\hline
EAN13&
<?lsmb barcode invnumber ean13 40x20 ?>\tabularnewline
\hline
EAN8&
\vspace{20mm}
\unitlength1mm
\begin{picture}(0,0)(20,12)
<?lsmb barcode 1234567 ean8 no-pic ?>
\linethickness{1mm}
\put(13,-4){\mbox{1 2 3 4 5 6 7}}
\end{picture}\tabularnewline
\hline
i25&
<?lsmb barcode 1234567 rotate 25x10-75 ?>\tabularnewline
\hline
code128&
<?lsmb barcode Hello\_World! code128 60x20 ?>\tabularnewline
\hline
ISBN&
<?lsmb barcode 3-89721-122-X 06900 isbn 50x20 ?>\tabularnewline
\hline
code39&
<?lsmb barcode A1234B code39 40x20 ?>\tabularnewline
\hline
\end{tabular}
\end{document}