otl2table

  1. Summary

      Converts an outline to a table using one of the available formats. This is useful for putting outline data into spreadsheets and databases.

  1. Usage
       otl2table.py options inputfile > outputfile
       Options
       	-n              Don't include trailing columns.
       	-t type        Specify field separator type.
       				   Types:
       					  tab - separate fields with tabs (default)
       					  csv - separate fields with ,
       					  qcsv - separate fields with ","
       					  bullets - uses HTML tags 
        and
      • -v Print version (RCS) information. output is on STDOUT
  1. Examples

      This example converts an outline to a "," table. Note that 9 fields are supported. They correspond to 9 outline levels.

    1. Before otl2table
      1. Pets
      2. Indoor
        1. Cats
          1. Sophia
          2. Hillary
        2. Rats
          1. Finley
          2. Oliver
        3. Dogs
          1. Kirby
      3. Outdoor
        1. Dogs
          1. Kirby
          2. Hoover
        2. Goats
          1. Primrose
          2. Joey
    2. After otl2table -t qcsv pets.otl
      1. "Pets","","","","","","","","",""
      2. "Indoor","Cats","Sophia","","","","","","",""
      3. "Indoor","Cats","Hillary","","","","","","",""
      4. "Indoor","Rats","Finley","","","","","","",""
      5. "Indoor","Rats","Oliver","","","","","","",""
      6. "Indoor","Dogs","Kirby","","","","","","",""
      7. "Outdoor","Dogs","Kirby","","","","","","",""
      8. "Outdoor","Dogs","Hoover","","","","","","",""
      9. "Outdoor","Goats","Primrose","","","","","","",""
      10. "Outdoor","Goats","Joey","","","","","","",""
    3. After otl2table pets.otl
      1. Pets
      2. Indoor Cats Sophia
      3. Indoor Cats Hillary
      4. Indoor Rats Finley
      5. Indoor Rats Oliver
      6. Indoor Dogs Kirby
      7. Outdoor Dogs Kirby
      8. Outdoor Dogs Hoover
      9. Outdoor Goats Primrose
      10. Outdoor Goats Joey
  1. Downloads
    1. Download ZIP
    2. Download tgz
  1. License

      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.

      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., 675 Mass Ave, Cambridge, MA 02139, USA.

  1. Credits
       Copyright © 2006 Noel Henson					Updated: 2006-02-20
       noel@noels-lab.com