Presentation is loading. Please wait.

Presentation is loading. Please wait.

Logiciels libres sous Ingres Steffen Weigert Union Internationale des Télécommunications

Similar presentations


Presentation on theme: "Logiciels libres sous Ingres Steffen Weigert Union Internationale des Télécommunications"— Presentation transcript:

1 Logiciels libres sous Ingres Steffen Weigert Union Internationale des Télécommunications Steffen.weigert@itu.int

2 Agenda  HTMLDOC  Lout  csv2xls  metasend

3 HTMLDOC  What is HTMLDOC ?  How does it work ?  HTMLDOC help  HTMLDOC supports special HTML comments  HTMLDOC download

4 What is HTMLDOC ?  HTMLDOC converts Hyper-Text Markup Language ("HTML") input files into indexed HTML, Adobe ® PostScript ®, or Adobe Portable Document Format ("PDF") files.  HTMLDOC supports most HTML 3.2 elements, some HTML 4.0 elements, and can generate title and table of contents pages. It does not currently support stylesheets.  HTMLDOC can be used as a standalone application, in a batch document processing environment, or as a web-based report generation application.  HTMLDOC is available both as open source software under the terms of the GNU General Public License and as commercial software under the terms of a traditional commercial End-User License Agreement.

5 How does it work ? Server Unix script (shell commands, sqlexp, awk) Fichier PDF htmldoc --webpage -t pdf14 in.html > out.pdf Fichier HTML Client Web browser HTML PDF

6 HTMLDOC help  htmldoc –help  --batch filename.book  --bodycolor color  --bodyfont {courier,times,helvetica}  --bodyimage filename.{gif,jpg,png}  --book  --bottom margin{in,cm,mm}  --browserwidth pixels  --charset {cp-874...1258,iso-8859-1...8859-15,koi8-r}  --color  --compression[=level]  …

7 HTMLDOC supports special HTML comments  HTMLDOC supports many special HTML comments to initiate page breaks, set the header and footer text, and control the current media options:  –Sets the left footer text; the test is applied to the current page if empty, or the next page otherwise.  –Sets the center footer text; the test is applied to the current page if empty, or the next page otherwise. …..  –Sets the left header text; the test is applied to the current page if empty, or the next page otherwise. …..  –Break to the next page

8 HTMLDOC download  http://www.htmldoc.org/software.php http://www.htmldoc.org/software.php –Source code  http://www.easysw.com/htmldoc/software.php http://www.easysw.com/htmldoc/software.php –Binaries (produit commercial)

9

10

11 Lout  What is Lout ?  How does it work ?  Lout code  Lout download

12 What is Lout ?  Lout is a high-level language for document formatting. It includes facilities for typesetting complex documents containing floating figures, tables, diagrams, rotated and scaled text or graphics, footnotes, running headers, footers, an index, table of contents and bibliography, cross-references, mathematical equations and statistical graphs. Lout's capabilities can be extended with definitions which are easier to write than similar markup languages.  Lout is multilingual, supporting (with hyphenation) Czech, Danish, Dutch, English, Finnish, French, German, Norwegian, Russia, Slovenian, Spanish and Swedish. Some of these languages are available as separate packages because they need more than the 13 standard Adobe fonts. Further languages can be added easily  Lout is free software, distributed under the terms of the GNU General Public License, Version 2. Documents generated by Lout is not subject to GNU GPL. However, if you were to use install and use additional fonts in your documents, please check and comply with their licensing terms.

13 How does it work ? Server Unix script (shell commands, sqlexp, awk, lout code) Fichier PDF GhostScript interpreter to convert PostScript to PDF: gs -q -sDEVICE=pdfwrite - sOutputFile=- - > out.pdf Client Web browser PDF PostScript

14 Lout code  @LLP  {BarCode Base +2p} @Font { *$_addressid* }  @LLP  {*$_addressid* }  @LLP @LLP @CurveBox {  $_addr1 @LLP $_addr2 @LLP $_addr3 }  @PP @LP {Helvetica Bold +1p} @Font { "IMPORTANT:" } @IndentedDisplay { @Lozenge No refund or cancellation possible. @LP @Lozenge Please present this receipt at any visitor registration desk on-site to be issued with an entry pass. Holders of a weekly pass who registered on-line before $ers_reg_beforedate will receive their entry pass by mail. }

15 Lout download  Primary site – ftp://ftp.cs.usyd.edu.au/jeff/lout/ ftp://ftp.cs.usyd.edu.au/jeff/lout/  Secondary site (mirror + archives) –ftp://ftp.ptc.spbu.ru/pub/textproc/lout/ftp://ftp.ptc.spbu.ru/pub/textproc/lout/

16

17 csv2xls  What is csv2xls ?  How does it work ?  code  csv2xls download

18 What is csv2xls ?  Converts text file in delimiter-separated format to Excel binary format  csv2xls is written in perl  csv2xls This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.

19 How does it work ? Server Unix script (shell commands, sqlexp) Fichier xls csv2xls fi.csv fi.xls Client Web browser xls Fichier csv

20 Code  # select data and write csv file  sqlexp $DATABASE $workdir/addr.csv  # convert to Excel  csv2xls $workdir/exh.csv $workdir/addr.xls  # fichier export.sql:  Select '@~@nom@~@','@~@ville@~@‘;  Select '@~@’+nom+’@~@',‘@~@’+ville+’@~@‘ FROM addr;  # fichier addr.csv “nom”,”ville” “Dupont”,”Paris”

21 csv2xls download  http://perlmonks.thepen.com/72985.html http://perlmonks.thepen.com/72985.html  http://search.cpan.org/src/JMCNAMARA/Sprea dsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm http://search.cpan.org/src/JMCNAMARA/Sprea dsheet-WriteExcel- 2.11/lib/Spreadsheet/WriteExcel.pm

22

23 metasend  What is metasend ?  How does it work ?  code  metasend download

24 What is metasend ?  Scripts to send mail with file attachments of different mime-types  From, To, CC can be set

25 How does it work ? Server Unix script (shell commands, sqlexp) Mail with attachments metasend -b -f txt, pdf, html, jpg -m Client Mail client Mail Fichier txt, pdf, html, jpg, …

26 Code HTML, PDF  metasend -b – -e quoted-printable – -f pdf/$taskno.html – -m 'text/html; charset="iso-8859-1"' – -n -e base64 – -f pdf/$taskno.pdf – -S '5242880' – -m 'application/pdf; name="'"$taskno.pdf"'"' – -F ' ' – -t ' ' – -c ' ' – -s "metasend: HTML, PDF; Data Format: $format"

27 Code Text, PDF  metasend -b – -e quoted-printable – -f $taskno.txt – -m 'text/plain; charset="iso-8859-1"' – -n -e base64 – -f pdf/$taskno.pdf – -S '5242880' – -m 'application/pdf; name="'"$taskno.pdf"'"' – -F ' ' – -t ' ' – -c ' ' – -s "metasend: HTML, PDF; Data Format: $format"

28 metasend download  ftp://ftp.research.telcordia.com/pub/nsb/ ftp://ftp.research.telcordia.com/pub/nsb/  http://www.shelldorado.com/articles/mailattach ments.html http://www.shelldorado.com/articles/mailattach ments.html

29

30

31 Questions & Answers  HTMLDOC  Lout  csv2xls  metasend


Download ppt "Logiciels libres sous Ingres Steffen Weigert Union Internationale des Télécommunications"

Similar presentations


Ads by Google