I'm looking for a
s///g construct to transform lines like:
[_CELL_]This is a sentence on one line.
[_CELL_] Cell 1 [_CELL_] Cell 2 [_CELL_] Cell 3
into:
<CELL>This is a sentence on one line.</CELL>
<CELL>Cell 1</CELL><CELL>Cell 2</CELL><CELL>Cell 3</CELL>
and feeling dumb I can't think of one off the top of my head.
Bonus question: Does anyone recognize that format? All I know is it's probably produced by FrameMaker (buggily) and used by O'Reilly for book publishing. It also includes things like:
[_Body_] ... a paragraph on on line ...
... {_XRef#89948_} ...
... [_Fi_]something in italics[_F_] ...
etc. I don't like this format much (at all), so I'm trying to make a tool to convert it into XML and back. And I'd love to hear: "That's FMEZ format! Joe X has a great module for converting it!"