freetable-2.3.orig/0040775000175000017500000000000007405337142014057 5ustar barbierbarbierfreetable-2.3.orig/COPYING0100664000175000017500000004311006770226140015105 0ustar barbierbarbier GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. freetable-2.3.orig/Makefile0100664000175000017500000000134007402537266015520 0ustar barbierbarbierOBJ=en.1 fr.1 pl.1 TESTS=testsuite/test01.html testsuite/test02.html testsuite/test03.html testsuite/test04.html \ testsuite/test05.html testsuite/test06.html testsuite/test07.html testsuite/test08.html \ testsuite/test09.html testsuite/test10.html %.1: %.pod ln -sf $< freetable.pod && pod2man --center='Freetable' freetable.pod >$@ rm -f freetable.pod all: $(OBJ) clean: rm -f $(OBJ) $(TESTS) tests: $(TESTS) testsuite/%.html: testsuite/%.in ./freetable ./freetable <$< >$@ testsuite/test07.html: testsuite/test07.in ./freetable ./freetable -l -m <$< >$@ testsuite/test08.html: testsuite/test08.in ./freetable ./freetable -l -m <$< >$@ testsuite/test10.html: testsuite/test10.in ./freetable ./freetable -l <$< >$@ freetable-2.3.orig/TESTS0100664000175000017500000000104007402537115014673 0ustar barbierbarbierTests: test01 default maxcol,maxrow = 1,1 test02 '+','-','=' and ' ' test03 regular expressions,'+N' and '-N' test04 ranges and using mixed `ranges/*' and `ranges/relatives' addresses test05 header cells and header-status-overwrite test06 cell arrtibutes and table caption test07 location tags and postprocessor test08 multi-line entries, table nesting, location tags and preprocessor in nested tables test09 arbitrary perl code addresses and mixed 'code/relative' and 'code/*' addresses test10 colspan and rowspan freetable-2.3.orig/en.pod0100664000175000017500000001464107402512062015161 0ustar barbierbarbier=head1 NAME B - tool for making HTML tables generation easier =head1 VERSION This manpage describes version 2.3 of B. It might be not 100% accurate if you use different version. =head1 SYNOPSIS B I<[options]> I or B I<[options]> Possible options are : I<-h>, I<--help> Print usage info and exit I<-V>, I<--version> Print version information and exit I<-c>, I<--comment> Insert comment before every cell to point its location I<-b>, I<--no-nbsp> Do not insert I< > to empty cells for lowered-3D apperance I<-w>, I<--warning> Print a warning before each generated table that you should not change it. You should change its source. I<-l>, I<--location> Substitute IrowE> and IcolE> flags inside table with correct cell's location I<-m>, I<--macro> I<[program]> Use macro procesor to proces cells content (default: B) =head1 WARNING DO NOT USE MACRO PROCESSOR OVER UNSURE SOURCE M4 MAY BE USED TO COMPROMISE YOUR SECURITY FOR MORE INFORMATION ON THIS EXEC : I =head1 DESCRIPTION This is free replacement of B HTML is great language, but have one horrible flaw : tables. I spent many hours looking at HTML source I just written and trying to guess which cell in source is which in browser. If this also describes you, then read this manpage and your pain will stop. Program read HTML source from either I or file. Then it searches for line starting table: Then it analyzes table, put correct HTML table in this place and continue searching for the next table. =head1 TABLE SYNTAX It is very easy: wwwtable : [preamble] [cell] [cell] ... wwwtable_options will be passed to ItableE> tags. There is no magic inside preamble. It can be any HTML text. It will be simply put in front of table. cell is either normal_cell (ItdE> tag) or header_cell (IthE> tag). At least it was this way in freetable 1.x. See the next section for alternative cell address syntax. normal_cell : (row,col) cell_options cell_content header_cell : ((row,col)) cell_options cell_content cell_options will be passed to cell tag. There is magic inside I and I keys are parsed to make correct table. cell_content can be anything. It may contain text, tags, and even nested wwwtables. If you use I<-m> (or I<--macro>) option, it will be passed thru m4(1), with and set to adress of curent cell row and col are either numbers locating cells, expressions relative to previous cell or regular expresions to match few of them. Unlike B, B can use regular expresions for header cells. Also I<*> can be used, and it mean I<.*> really. Relative expressions are : I<=> or empty means : the same as previous I<+> or I<+X> means : one and X more than previous I<-> or I<-X> means : one and X less than previous If many definisions adress the same cell all options and contents are concatenated in order of apperance. If you want to use only regular expresions you must tell program about the last cell : (*,1) these are colums 1 (1,*) these are rows 1 (4,4) =head1 ALTERNATIVE CELL ADDRESS SYNTAX It is inconvenient to specify cell address as regular expression. So in B 2.0 two new methods were introduced. Both can be used to either normal or header cells. Full bakward compatibility is preserved. To preserve it, new syntax had to be introduced. Unfortunatelly, you can't specify row address using one method, and column address using another. To come around this, both new methods are very liberal and allow you to use I<=>, I<+>, I<->, I<+X> I<-X> and null string with the same meaning as they have in old addressing method. Unlike regular expression method, new methods will find out the last cell automatically. =head2 EXPLICIT RANGES (rowrange;colrange) cell_options cell_content Syntax for both rowrange and colrange is like: 1-2,4-7,9,12. Duplicates will be eliminated. For purpose of relative addresses last given number is used. So if you write (1-100,32;1) foo (+,) bar Cell (33,1) will contain `foobar' and all others only `foo'. =head2 ARBITRARY PERL CODE ({code for rows},{code for tables}) cell_options cell_content You can use arbitrary Perl one-liner as long as it matches our not very intelligent regular expressions and evaluates to list. Unfortunatelly there isn't any regular expression for Perl code, but as long as it doesn't contain I<},{> and I<})> it should work. Example: ({grep {$_%3 == 1} 1..100},{1..2,4}) foo Will evaluate to 100 rows x 4 columns table with `foo' in every 1st, 2nd and 4th column of every row with number equal 1 modulo 3. If you want to use "arbitrary code" in one part of address and explicit range in the other, change I<-> into I<..> in defenition of range, and put in between I<{> and I<}>. If you want to use "arbitrary code" in one part of address and regular expression in the other, you have to write I<{grep {/expression/} from..to}>. Unfortunatelly, in this case you have to specify size of the table explicitely. =head1 INCOMPATIBILITIES WITH WWWTABLE If you was formerly user of B and want to change your tool, you should read this. Most of this is about regexps handling. Notice also that B couldnt do location tags substitution nor macroprocesing. Option I<-w> has completely oposite meaning. We dont print warnings by default, and I<-w> or I<--warning> is used to force warnings. Table header fields can be specified by regexps ex : ((1,*)) It was impossible in B. Axis counters are 100% orthogonal. This mean that code : (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,=) Foo Foo will appear in 3rd column. If you wanted it to be in 1st you should write : (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,1) Foo or (*,) width=30 (*,+) width=35 (*,+) width=40 (=,1) Foo In B 2.0 two new methods o specifying cell address were introduced. They are completely incompatible with B. =head1 BUGS "Arbitrary Perl Code" cell address will fail on very complex Perl code. =head1 SEE ALSO B =head1 AUTHOR Tomasz Wegrzanowski =cut freetable-2.3.orig/fr.pod0100664000175000017500000001331407374220257015174 0ustar barbierbarbierfreetable 0.11 Tomasz Węgrzanowski French Documentation 0.11-1 Denis Barbier =head1 NAME freetable - outil de génération automatique de tableaux HTML =head1 VERSION Cette documentation décrit l'utilisation de freetable 1.1. Si vous utilisez une autre version, certaines différences peuvent apparaitre. =head1 SYNOPSIS B I<[options]> F Options: I<-h>, I<--help> Print usage info and exit I<-V>, I<--version> Affiche seulement le numéro de version de F I<-c>, I<--comment> Affiche un commentaire avant chaque cellule pour indiquer son emplacement I<-b>, I<--no-nbsp> N'ajoute pas C< > dans les cellules vides pour modifier le rendu 3D I<-w>, I<--warning> Affiche un commentaire avant chaque tableau, indiquant que le tableau est généré automatiquement et ne doit pas ętre édité I<-l>, I<--location> Remplace les indicateurs CrowE> (ligne) et CcolE> (colonne) ŕ l'intérieur des tableaux par la position de la cellule courante. I<-m>, I<--macro> Avec cette option, le contenu des cellules est passé ŕ un pré-processeur, qui est F par défaut =head1 AVERTISSEMENT SUR LA SECURITE N'UTILISEZ PAS DE MACRO PROCESSEUR SUR UN FICHIER SOURCE DONT VOUS N'ETES PAS SUR. CELA POURRAIT COMPROMETTRE LA SECURITE DE VOTRE SYSTEME Plus d'informations dans la documentation de F, en particulier la commande I. =head1 DESCRIPTION Ce programme est un logiciel libre qui remplace F. HTML est un langage agréable, mais avec un énorme défaut : les tableaux. J'ai passé de nombreuses heures ŕ lire le code source que j'avais tout juste écrit pour essayer de comprendre quelle cellule dans le code source correspond ŕ ce qui est affiché dans le navigateur. Si cela vous rappelle une expérience similaire, alors lisez cette documentation et votre peine ne sera plus qu'un mauvais souvenir. Le programme reçoit en entrée du code HTML provenant soit de l'entrée standard, soit d'un fichier. Il recherche alors les caractčres suivants, qui annoncent l'ouverture d'un tableau: Il analyse le contenu jusqu'ŕ détecter la fin du tableau, affiche le code HTML correspondant puis continue le traitement avec les tableaux suivants. =head1 SYNTAXE La syntaxe est trčs simple: wwwtable: [preambule] [cellule] [cellule] ... La chaine optionnelle wwwtable_options est passée telle quelle comme attribut de la balise CTABLEE>. Le préambule n'est pas traité, il peux contenir n'importe quel code HTML, il sera inséré au début du tableau. Les cellules sont soit des cellules normales (balise CTDE>), soit des cellules d'en-tęte (balise CTHE>). cellule normale: (ligne,colonne) cellule_options contenu_cellule cellule en-tęte: ((ligne,colonne)) cellule_options contenu_cellule Le texte contenu dans cellule_options est passé comme attribut de la balise de la cellule. Les mots-clés C et C sont interprétés pour générer des tableaux corrects. Le contenu des cellules (contenu_cellule) est quelconque, il peut męme contenir d'autres wwwtables ! Si vous utilisez l'option I<-m>, le contenu des cellules sera passé comme entrée standard de la commande F(1), aprčs avoir remplacé les chaines de caractčres BrowE> (resp. BcolE>) par le numéro de ligne (resp. colonne) de la cellule. Les indices de ligne et colonne sont soit des nombres, soit une expression réguličre qui désigne un ensemble de cellules. Ŕ la différence de F, F peut aussi utiliser des expressions réguličres dans les cellules d'en-tęte. Un autre ajout est la possiblité d'utiliser C<*> ŕ la place de C<.*>. Les expressions réguličres suivantes sont reconnues dans les indices de lignes et colonnes: I<=> ou vide : męme indice que la cellule précédente I<+> ou I<+X> : incrémente l'indice de I (défaut: 1) I<-> ou I<-X> : décrémente l'indice de I (défaut: 1) Lorsqu'une cellule est désignée par plusieurs expressions réguličres, ŕ la fois les options et le contenu de chaque cellule sont ajoutés. Si vous n'utilisez que des expressions réguličres, il faut indiquer au programme la position de la derničre cellule. (*,1) cellules de la colonne 1 (1,*) cellules de la ligne 1 (4,4) =head1 INCOMPATIBILITES AVEC WWWTABLE Les utilisateurs de F qui décident de passer ŕ F devraient lire cette section. La majorité des incompatibilités proviennent du traitement des expressions réguličres. Il faut aussi noter que F ne permettait ni le remplacement automatiques des numéros de lignes et de colonnes, ni l'utilisation d'un pré-processeur. Les cellules d'en-tęte peuvent ętre définies avec des expressions réguličres, par exemple ((1,*)) align=right ce qui était impossible avec F. Les indices des axes sont 100% orthogonaux, ce qui signifie qu'avec le code suivant (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,=) Foo C va apparaitre en 3e colonne, et si vous vouliez qu'il soit en 1e position, il faut écrire (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,1) Foo ou (*,) width=30 (*,+) width=35 (*,+) width=40 (=,1) Foo =head1 VOIR AUSSI B =head1 AUTEUR Tomasz Wegrzanowski Traduction française de la documentation: Denis Barbier =cut freetable-2.3.orig/freetable0100775000175000017500000002231607402537275015745 0ustar barbierbarbier#!/usr/bin/perl -w # Freetable html tables generator # Copyright (c) 1999, 2000, 2001 Tomasz Wegrzanowski # # Freetable is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Thanks to Denis Barbier for contribution # # On Debian GNU/Linux systems, the complete text of the GNU General # Public License can be found in `/usr/share/common-licenses/GPL'. $version = '2.3'; $warning = ' '; $help = 'Usage: freetable [options] filename Options: -h, --help Print this message -V, --version Just print version information and exit -c, --comment Do comment before every cell to point its location -b, --no-nbsp Do not insert   to empty cells to make lowered 3D apperance -w, --warning Print a warning before each generated table that you should not change generated file, but source. -l, --location Location tags substitution -m, --macro [program] Use macro processor for cells content (default: m4) '; use Getopt::Long; $Getopt::Long::bundling=1; my (@opts) = ("b|no-nbsp","c|comment","w|warning","h|help","V|version","m|macro:s","l|location"); $opt_h=$opt_V=$opt_b=$opt_c=$opt_w=$opt_m=$opt_l=0; GetOptions(@opts); if ($opt_m eq "") { $opt_m = 'm4' } if ($opt_h) { print $help; exit 0 } if ($opt_V) { print "Freetable $version\n"; exit 0 } $defaultcell = ($opt_b)?'':' '; ($min_row,$min_col) = (1,1); $tablewarn = ($opt_w)?$warning:''; while (<>) { if ( //i ) { table_parse($1,0) } else { print } } sub table_parse { my ( $table_open_data, $level ) = @_; my ( $table_close_data, $table_started ) = ( '', 0 ); my ( %cell,%entry ); my @Seq_data = (1,1,1,1); # max_row, max_col, cur_row, cur_col while (<>) { if ( //i ) { table_entry_content_append_block (\%entry,table_parse($1, $level+1)); } elsif ( /<\/wwwtable(.*)>/i ) { $table_close_data = $1; last } elsif ( /^\s*\(\(\s*\{(.*?)\}\s*,\s*\{(.*?)\}\s*\)\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data, $1,$2,$3,'c',1); $table_started = 1; } elsif ( /^\s*\(\(\s*(.*?)\s*;\s*(.*?)\s*\)\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data,$1,$2,$3,'r',1); $table_started = 1; } elsif ( /^\s*\(\(\s*(.*?)\s*,\s*(.*?)\s*\)\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data,$1,$2,$3,'t',1); $table_started = 1; } elsif ( /^\s*\(\s*\{(.*?)\}\s*,\s*\{(.*?)\}\s*\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data,$1,$2,$3,'c',0); $table_started = 1; } elsif ( /^\s*\(\s*(.*?)\s*;\s*(.*?)\s*\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data,$1,$2,$3,'r',0); $table_started = 1; } elsif ( /^\s*\(\s*(.*?)\s*,\s*(.*?)\s*\)(.*)$/ ) { table_entry_new (\%entry,\@Seq_data,$1,$2,$3,'t',0); $table_started = 1; } elsif ( $table_started ) { table_entry_content_append_line (\%entry,$_) } else { print } } expand_rx (\%entry, $Seq_data[0], $Seq_data[1]); entries2table (\%entry,\%cell,$Seq_data[0],$Seq_data[1]); complete_table (\%cell,$Seq_data[0],$Seq_data[1]); return table_render ($level,\%cell,$Seq_data[0],$Seq_data[1],$table_open_data,$table_close_data); } sub early_seq { my ($str, $addr_type, $max, $cur) = @_; my (@a, %h); if ($str eq '*') { $address = '.*'; $addr_type='x'; } elsif ($str eq '=' or $str eq '') { $address = [$cur]; $addr_type='a'; } elsif ($str =~ /^([\+-])(\d*)$/) { $cur += ((($1 eq '+')?1:-1) * (($2 eq '')?1:$2)); $address = [$cur]; $addr_type='a'; } elsif ($addr_type eq 'c') { eval "\@a=($str)"; $cur = $a[-1]; @h{@a} = 1; @a = sort {$a <=> $b} keys %h; $address = \@a; $addr_type = 'a' } elsif ($addr_type eq 'r') { foreach my $r(split /\s*,\s*/,$str) { if ($r =~ /(\d+)-(\d+)/) { push @a, $1..$2 } else { push @a, $r } } $cur = $a[-1]; @h{@a} = 1; @a = sort {$a <=> $b} keys %h; $address = \@a; $addr_type = 'a' } elsif ($str =~ /^\d+$/) { $cur = $str; $address = [$cur]; $addr_type = 'a'; } else { $address = $str; $addr_type = 'x'; } if ($addr_type eq 'a' and $address->[-1] > $max) { $max = $address->[-1] } # $addr_type.in ::= 't', 'r', 'c' # $addr_type.out ::= 'x', 'a' return ($addr_type, $address, $max, $cur); } sub expand_rx { my %entries = %{$_[0]}; my ($max_row, $max_col) = ($_[1], $_[2]); my $len = $#{$entries{head}}; for $entrynr(0..$len) { if ( ${$entries{at_c}}[$entrynr] eq 'x' ) { my $rx = '^'.${$entries{col}}[$entrynr].'$'; $rx = qr/$rx/; my @a = grep { /$rx/ } 1..$max_col; ${$entries{col}}[$entrynr] = \@a; ${$entries{at_c}}[$entrynr] = 'a'; } if ( ${$entries{at_r}}[$entrynr] eq 'x' ) { my $rx = '^'.${$entries{row}}[$entrynr].'$'; $rx = qr/$rx/; my @a = grep { /$rx/ } 1..$max_row; ${$entries{row}}[$entrynr] = \@a; ${$entries{at_r}}[$entrynr] = 'a'; } } } sub table_entry_new { my ($entry,$Seq_data,$row,$col,$data,$addr_type,$is_header) = @_; my ($at_r, $ar, $at_c, $ac); ($at_r, $ar, $Seq_data->[0], $Seq_data->[2]) = early_seq($row, $addr_type, $Seq_data->[0], $Seq_data->[2]); ($at_c, $ac, $Seq_data->[1], $Seq_data->[3]) = early_seq($col, $addr_type, $Seq_data->[1], $Seq_data->[3]); push @{$$entry{at_r}},$at_r; push @{$$entry{at_c}},$at_c; push @{$$entry{row}},$ar; push @{$$entry{col}},$ac; push @{$$entry{head}},$data; push @{$$entry{is_h}},$is_header; push @{$$entry{cont}},''; } sub table_entry_content_append_line { my ( $entry, $data ) = @_; $data =~ /^\s*(.*)$/; $$entry{cont}[-1] .= (($$entry{cont}[-1] and $1)?"\n":'').$1; } sub table_entry_content_append_block { my ( $entry, $data ) = @_; $$entry{cont}[-1] .= "\n".$data; } sub table_render { my ( $level,$cell,$max_row,$max_col,$table_open_data,$table_close_data ) = @_; my ( $table_text,$processed_text ); $table_text .= $tablewarn; $table_text .= "\n"; foreach my $row ($min_row..$max_row) { $table_text .= " \n"; foreach my $col ($min_col..$max_col) { $table_text .= " \n" if ($opt_c); location_tags_substitute (\$$cell{content}[$row][$col],$row,$col) if ($opt_l); $table_text .= " $$cell{content}[$row][$col]\n" unless ($$cell{void}[$row][$col]) } $table_text .= " \n" } $table_text.= "\n"; if ( $opt_m ) { if ( $level ) { use IPC::Open2; pipe MACROR,MACROW; open2 \*MACROR,\*MACROW,$opt_m; print MACROW $table_text; close MACROW; foreach () { $processed_text.=$_ } close MACROR; return $processed_text; } else { open MACROW,"|$opt_m"; print MACROW $table_text; close MACROW; } } else { if ( $level ) { return $table_text } else { print $table_text } } } sub location_tags_substitute { my ( $cell,$row,$col ) = @_; $$cell =~ s//$row/gi; $$cell =~ s//$col/gi; } sub entries2table { my ($entryref,$cellref,$max_row,$max_col) = @_; my %entry = %$entryref; my $len = $#{$entry{head}};; ## row-P ? foreach my $entrynr (0..$len) { my @rowmask = @{${$entry{row}}[$entrynr]}; my @colmask = @{${$entry{col}}[$entrynr]}; foreach my $row (@rowmask) { foreach my $col (@colmask) { complete_cell ($entryref,$cellref,$row,$col,$entrynr) } } } } sub complete_cell { my ( $entry,$cell,$row,$col,$entrynr ) = @_; my ( $colspan,$rowspan ) = (0,0); $$cell{header} [$row][$col] .= $$entry{head}[$entrynr]; $$cell{content}[$row][$col] .= (($$cell{content}[$row][$col] and $$entry{cont}[$entrynr])?' ':'').$$entry{cont}[$entrynr]; $$cell{type} [$row][$col] = $$entry{is_h}[$entrynr]; $colspan = $1 if ($$entry{head}[$entrynr] =~ /colspan\s*=\s*(\S+)/i); $rowspan = $1 if ($$entry{head}[$entrynr] =~ /rowspan\s*=\s*(\S+)/i); if ($colspan) { if ($rowspan) { foreach my $void_col(($col+1)..($col+$colspan-1)) {$$cell{void}[$row][$void_col] = 1} foreach my $void_row(($row+1)..($row+$rowspan-1)) { foreach my $void_col(($col)..($col+$colspan-1)) { $$cell{void}[$void_row][$void_col] = 1 } } } else { foreach my $void_col(($col+1)..($col+$colspan-1)) { $$cell{void}[$row][$void_col] = 1 } } } elsif ($rowspan) { foreach my $void_row(($row+1)..($row+$rowspan-1)) { $$cell{void}[$void_row][$col] = 1 } } } sub complete_table { my ( $cell,$max_row,$max_col ) = @_; foreach my $row ($min_row..$max_row) { foreach my $col ($min_col..$max_col) { $$cell{type}[$row][$col] = $$cell{type} [$row][$col] ? 'h':'d'; # header-set-once or overwrite ? $$cell{header}[$row][$col] = '' unless ($$cell{header}[$row][$col]); $$cell{content}[$row][$col] = $defaultcell unless ($$cell{content}[$row][$col]); } } } freetable-2.3.orig/pl.pod0100664000175000017500000001521307402512066015172 0ustar barbierbarbier=head1 NAME B - program ułatwiający tworzenie HTML-owych tabeli =head1 WERSJA Ten dokument opisuje B w wersji 2.3. Może być nie w pełni prawidłowy jeśli używasz innej wersji. =head1 SYNOPSIS B I<[opcje]> I lub B I<[opcje]> Dostępne opcje to : I<-h>, I<--help> Program wydrukuje informację o sposobie użycia i skończy I<-V>, I<--version> Program wydrukuje numer wersji i skończy I<-c>, I<--comment> Program wstawi przed każdą komórką komentarz o jej pozycji I<-b>, I<--no-nbsp> Program nie wstawi I< > do pustych komórek celem wizualnego ich obniżenia na graficznych przeglądarkach I<-w>, I<--warning> Program wstawi ostrzeżenie że powinnaś raczej zmieniać źródło niż tabelę przed każdą tabelą, którą stworzy. I<-l>, I<--location> Program zamieni tagi lokacyjne IrowE> i IcolE> wewnątrz tabeli na pozycję komórki, w której wystąpią. I<-m>, I<--macro> I<[program]> Program przepuści tabelę przez makroprocesor (domyślnie: B) =head1 OSTRZEŻENIE NIE UŻYWAJ MAKROPROCESORA NA NIEPEWNYM ŹRÓDLE M4 MOŻE ZOSTAĆ UŻYTE DO NARUSZENIA TWEGO BEZPIECZEŃSTWA WIĘCEJ INFORMACJI ZNAJDZIESZ URUCHAMIAJĄC : I =head1 DESCRIPTION Ten program jest wyzwolonym (wolnodostępnym) następcą B. HTML to świetny język, ale ma straszną niedoróbę : tabele. Spędziłem wiele czasu wpatrując się w HTMLowy kod i próbując zgadnąć, która komórka kodu odpowiada której w przeglądarce. Jeśli również miałeś ten problem, to być może za chwilę zostanie rozwiązany. Program czyta z pliku lub ze I. Szuka linii zaczynającej opis tabeli : Analizuje ten opis, wstawia poprawną HTML-ową tabelę i szuka następnego opis, aż plik się skończy. =head1 SKŁADNIA TABELI Jest bardzo prosta : wwwtable [preambuła] [komórka] [komórka] ... opcje będą przekazane do taga ItableE>. Preambuła to dowolny HTML-owy text. Będzie umieszczony bezpośrednio przed tabelą. komórka to albo normalna_komórka (tag ItdE>) albo nagłówkowa_komórka (tag IthE>). Tak przynajmniej było w starszych wersjach freetable. W następnej sekcji są opisane nowe metody adresowania komórek. normalna_komórka : (rząd,kolumna) opcje zawartość nagłówkowa_komórka : ((rząd,kolumna)) opcje zawartość opcje będą przekazane do komórkowego taga. Atrybuty I i I są uwzględniane podczas tworzenia tabeli. zawartość maże zawierać text, tagi a nawet osadzoną tabelę. Jeśli używasz opcji I<-m> (lub I<--macro>), zawartość będzie przerobiona przez m4(1), z i ustawionymi na adres aktualnej komórki rząd i kolumna mogą być zarówno liczbami, wyrażeniami względnymi, albo regex'ami. W przeciwieństwie do B, z B możesz używać regex'ów również dla komórek nagłówka. Możesz również używać I<*>, co znaczy dokładnie tyle co I<.*>. Wyrażenia względne to : I<=> albo pusta znaczy : tyle samo co w poprzedniej komórce I<+> albo I<+X> znaczy : o 1 lub X więcej niż w poprzedniej komórce I<-> albo I<-X> znaczy : o 1 lub X więcej niż w poprzedniej komórce Jeśli wiele definicji adresuje tą samą komórkę zarówno opcje jak i zawartość są doklejane w kolejności wystąpienia. Jeśli chcesz używać tylko regex'ów musisz powiedzieć programowi o adresie ostatniej komórki : (*,1) to są piewsze kolumny (1,*) to są piewsze rzędy (4,4) =head1 ALTERNATYWNE ADRESY KOMÓREK Adresowanie komórek za pomocą wyrażeń regularnych jest bardzo niewygodne. Z tego powodu, w B 2.0 zostały wprowadzone dwie nowe metody. Obie mogą być użyte zarówno do komórek normalnych jak i nagłówkowych. Zachowana jest pełna wsteczna kompatybilność. W tym celu została wprowadzona nowa składnia. Niestety, nie możesz adresować rzędu i kolumny używając odmiennych metod. Żeby obejść ten problem, obie nowe metody są bardzo tolerancyjne i pozwalają na użycie I<=>, I<+>, I<->, I<+X> I<-X> oraz pustego łańcucha z tym samym znaczeniem, jakie mają one w starej metodzie. Nowe metody potrafią samodzielnie ustalić rozmiar tabeli. =head2 ZASIĘGI (zasięg rzędów;zasięg kolumn) opcje zawartość Składnia wygląda jak: 1-2,4-7,9,12. Zduplikowane adresy zostają wyeliminowane. Dla potrzeb adresowania relatywnego, użyty jest ostatni podany numer. A więc jeśli napiszesz (1-100,32;1) foo (+,) bar Komórka (33,1) będzie zawierać `foobar' a wszystkie pozostałe tylko `foo'. =head2 DOWOLNY KOD PERL ({kod dla rzędów},{kod dla kolumn}) opcje zawartość Możesz używać dowolnego kodu Perl o ile zmieści się w jednej linijce, pasuje do naszego wyrażenia regularnego i da w wyniku listę. Niestety, nie istnieje wyrażenie regularne pasujące do dowolnego kodu Perl, ale dopóki twój kod nie zawiera I<},{> ani I<})>, powinno działać. Przykład: ({grep {$_%3 == 1} 1..100},{1..2,4}) foo Da tabele 100 rzędów x 4 kolumny z `foo' w każdej 1wszej, 2giej i 4tej kolumnie każdego rzędu o numerze dającym reszte 1 w dzieleniu przez 3. Jeśli chcesz użyć "dowolnego kodu" w jednej częsci adresu a zasięgu w drugiej zastąp w definicji zasięgu I<-> przez I<..> i włóż zasięg między I<{> i I<}>. Jeśli chcesz użyć "dowolnego kodu" w jednej częsci adresu a wyrażenia regulernego w drugiej, musisz napisać I<{grep {/wyrażenie/} od..do}>. Niestety, w tym wypadku musisz podać rozmiar tablicy. =head1 NIEZGODNOŚCI Z WWWTABLE Jeśli poprzednio używałeś B, a teraz chcesz się przesiąść, powinieneś przeczytać ten rozdział. Większość jest o regex'ach. Zauważ również, że B nie mógł używać podstawiania tagów lokacyjnych ani makroprocesora. Opcja I<-w> ma przeciwne znaczenie. Domyślnie żadne ostrzeżenie nie jest drukowane, a I<-w> albo I<--warning> służą wymuszeniu takiego ostrzażenia. Komórki nagłówkowe mogą być zdefiniowane za pomocą regex'ów : ((1,*)) Nie było to możliwe z B. Liczniki pozycji na osiach są 100%-owo niezależne. Wynika z tego że kod : (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,=) Cośś umieści Cośś w 3ciej kolumnie. Jeśli chcesz, by było w 1wszej, napisz : (*,1) width=30 (*,2) width=35 (*,3) width=40 (=,1) Cośś albo (*,) width=30 (*,+) width=35 (*,+) width=40 (=,1) Cośś W B 2.0 zostały wprowadzone dwie nowe metody adresowania komórek. Są całkowicie niezgodne z B. =head1 BUGS Adres typu "Dowolny Kod Perl" może nie działać ze skomplikowanym kodem. =head1 ZOBACZ RÓWNIEŻ B =head1 AUTOR Tomasz Wegrzanowski (zarówno angielska jak i polska wersja) =cut freetable-2.3.orig/debian/0040775000175000017500000000000007405337142015301 5ustar barbierbarbierfreetable-2.3.orig/debian/changelog0100664000175000017500000000340207402536736017156 0ustar barbierbarbierfreetable (2.3) unstable; urgency=low * Rewrite of sequencing code -early sequencing algorithm * Added a test suite * Added COPYING to source package * Added TESTS file - list of tests * Fixed mail addresses in changelog, I hope it won't make too much mess -- Tomasz Wegrzanowski Mon Dec 3 00:20:44 CET 2001 freetable (2.1) unstable; urgency=low * Fix cell jumping code -- Tomasz Wegrzanowski Fri, 20 Jul 2001 21:44:44 +0200 freetable (2.0) unstable; urgency=low * Range or arbitrary Perl code as cell address -- Tomasz Wegrzanowski Sun, 15 Apr 2001 22:51:21 +0200 freetable (1.1) unstable; urgency=low * Minor fix for ecmascript in nested tables -- Tomasz Wegrzanowski Sat, 13 May 2000 11:06:21 +0200 freetable (1.0) frozen unstable; urgency=low * Updated French manpage -- Tomasz Wegrzanowski Sun, 30 Jan 2000 21:57:00 +0100 freetable (0.11) unstable; urgency=low * New upstream version -- Tomasz Wegrzanowski Thu, 27 Jan 2000 01:27:00 +0100 freetable (0.5) unstable; urgency=low * Adding one part to manual * Solving bug when equal sign appeared immediately after regexp * Correcting Denis' adress -- Tomasz Wegrzanowski Fri, 31 Dec 1999 11:02:00 +0100 freetable (0.2) unstable; urgency=low * Sponsoring package for Tomasz Wegrzanowski * Uncommented call to dh_installdocs -- Elie Rosenblum Thu, 9 Dec 1999 16:52:18 -0500 freetable (0.1) unstable; urgency=low * Initial Release -- Tomasz Wegrzanowski Wed, 8 Dec 1999 22:00:00 +0100 Local variables: mode: debian-changelog add-log-mailing-address: "taw@users.sf.net" End: freetable-2.3.orig/debian/control0100664000175000017500000000223307342427414016703 0ustar barbierbarbierSource: freetable Section: web Priority: optional Maintainer: Elie Rosenblum Standards-Version: 3.1.0 Package: freetable Architecture: all Depends: ${perl:Depends} Description: A Perl script that facilitates the production of HTML tables Freetable is a perl script that aims to make the production of HTML tables a little easier. This script works as a filter, reading stdin and writing to stdout. . The input syntax is as roughly follows: . initial text (e.g. ... ). (X, Y) options for cell (X, Y) text for cell (X,Y)... ((X,Y)) options for header cell X,Y text for header cell (X,Y)... . Rows and cells may be specified in any order, numbering starts at 1. X and/or Y may be replaced by regular expression, explicit range or even arbitrary Perl code to indicate rows or columns. Options or text (or both) may be omitted for cells. Cells may be omitted completely if they are empty or fall under the rowspan/colspan specifications of another cell. Cells may contain arbitrary HTML text, including other freetable tables. freetable-2.3.orig/debian/copyright0100664000175000017500000000074107374220621017231 0ustar barbierbarbierFreetable html tables generator Copyright (c) 1999, 2000, 2001 Tomasz Wegrzanowski Freetable is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. freetable-2.3.orig/debian/rules0100775000175000017500000000250307342427414016360 0ustar barbierbarbier#!/usr/bin/make -f # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # This version is for packages that are architecure independant. package = freetable SHELL = /bin/sh # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. make touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. make clean dh_clean # Build architecture-independent files here. binary-indep: build dh_testdir dh_testroot dh_clean -k dh_installdirs usr/bin usr/share/man/man1 usr/share/man/fr/man1 usr/share/man/pl/man1 cp -av freetable debian/tmp/usr/bin/ gzip -v debian/tmp/usr/share/man/man1/freetable.1.gz gzip -v debian/tmp/usr/share/man/fr/man1/freetable.1.gz gzip -v debian/tmp/usr/share/man/pl/man1/freetable.1.gz dh_installdocs dh_installchangelogs # dh_compress dh_fixperms dh_suidregister dh_installdeb dh_perl dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build # We have nothing to do by default. source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary freetable-2.3.orig/testsuite/0040775000175000017500000000000007405337142016110 5ustar barbierbarbierfreetable-2.3.orig/testsuite/test01.in0100664000175000017500000000020607402534405017551 0ustar barbierbarbier This table should have size 1x1 and 1 entry (*,*) [row 1, column 1] freetable-2.3.orig/testsuite/test02.in0100664000175000017500000000033207402534410017546 0ustar barbierbarbier This table should have size 4x4 and 4 entries (,) [row 1, column 1] (+,) [row 2, column 1] (=,+) [row 2, columnt 2] (-,=) [row 1, column 2] freetable-2.3.orig/testsuite/test03.in0100664000175000017500000000042607402534450017557 0ustar barbierbarbier This table should have size 5x5 and 36 entries (*,*) [any row, any column] (+,*) [row 2, any column] (.*[13579],+1) [odd row, column 2] (-1,.*[24680]) [row 1, even column] (5,5) [row 5, column 5] freetable-2.3.orig/testsuite/test04.in0100664000175000017500000000033607402534455017565 0ustar barbierbarbier This table should have size 5x3 and 21 entries (*,*) [any row, any column] (1-5,2;+2) [rows 1-5, column 3] (,) [Cursor finished in row 2, column 3] freetable-2.3.orig/testsuite/test05.in0100664000175000017500000000043107402534461017557 0ustar barbierbarbier This table should have size 2x2 and 7 entries. 2 cells: (1,2) and (2,1) should be header cells. ((1,*)) [row 1, any column] (*,1) [any row, column 1] ((2,*)) [row 2, any column] (2,2) [row 2, column 2] freetable-2.3.orig/testsuite/test06.in0100664000175000017500000000050107402537246017562 0ustar barbierbarbier This table should have size 2x2, 3 normal entries and a table caption entry.

[Table Caption text - this should appear before table] (1,*) bgcolor=green [row 1, any column - green background] (*,1) align=center [any row, column 1 - centered] (2,2) freetable-2.3.orig/testsuite/test07.in0100664000175000017500000000031007402534466017562 0ustar barbierbarbier This table should have size 5x2 and 10 entries. (*,1) [row , column ] (*,2) [square of is eval(*)] (5,) freetable-2.3.orig/testsuite/test08.in0100664000175000017500000000145707402537230017570 0ustar barbierbarbier This table should have size 2x1, 3 entries in cell (1,1) and a nested table in cell (2,1). Nested table should have size 2x2, 4 entries in with 4 entries, and nested table in cell (2,2). Twice-nested table should have size 2x2 and 4 entries. Every entry should contain 2+2=4 text (1,1) [row , column - 1st entry, 2+2=eval(2+2)] [row , column - 2nd entry, 2+2=eval(2+2)] [row , column - 3rd entry, 2+2=eval(2+2)] (2,1) (1-2;1-2) [nested table, row , collumn , 2+2=eval(2+2)] (2,2) (1-2;1-2) [twice-nested table, row , collumn , 2+2=eval(2+2)] freetable-2.3.orig/testsuite/test09.in0100664000175000017500000000050207402534752017565 0ustar barbierbarbier This table should have size 10x3 and 22 entries. ({1},{1}) [row 1, column 1] ({+},{}) [row 2, column 1] ({*},{+2}) [all rows, column 3] ({3,5,6},{1}) [rows 3, 5 and 6, column 1] ({grep {$_%3} 1..10},{2}) [rows 1,2,4,5,7,8 and 10, column 2] freetable-2.3.orig/testsuite/test10.in0100664000175000017500000000051407402536322017553 0ustar barbierbarbier This table should have size 4x4 (some cells merged with others), and 9 entries. (2-4;1) [row ] (1;2-4) [col ] (2,2) rowspan=2 [row (2+3), column 2] (2,3) colspan=2 [row (2), column (3+4)] (3,3) colspan=2 rowspan=2 [row (3+4), column (3+4)]