NAME

fix_bullets.pl - Convert MS Word bullets to HTML

SYNOPSIS

fix_bullets.pl input_files > output_file

DESCRIPTION

This program filters stdin to stdout. It creates HTML unordered lists from converted MS Word text.

The expected input looks like this:

o Major bullet point 1
  - Minor point
  - Another minor point
o Major point 2

o Blank line starts another group of points...
o More of second group
  - More minor points
  - Yet another point

The output from the above:

<ul>
  <li>Major bullet point 1
  <ul>
    <li>Minor point</li>
    <li>Another minor point</li>
  </ul>
  </li>
  <li>Major point 2</li>
</ul>
<ul>
  <li>Blank line starts another group of points...</li>
  <li>More of second group
  <ul>
    <li>More minor points</li>
    <li>Yet another point</li>
  </ul>
  </li>
</ul>

Any line starting with whitespace, dash, whitespace is taken to be a minor bullet point. All other lines are assumed to be major points. A leading "o" followed by whitespace is removed.

SEE ALSO

Finite State Machines Using DFA::Simple

COPYRIGHT

Copyright 2004 Bill Ruppert.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Bill Ruppert