OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] adding markup to tables that have none?

[ Lists Home | Date Index | Thread Index ]

DuCharme, Bob (LNG-CHO) wrote:

> This is a tough problem, but it's as old as the use of markup in data 
> files, so I'm sure others have tackled it. When you have a table in 
> which all layout is achieved using spacing (which of course requires 
> the use of a fixed-width font) and you want to add HTML or CALS table 
> markup that identifies row and table entry boundaries, what kinds of 
> tools are out there besides importing to Excel and saving as XML?
> I know that such tools would only work with simpler tables, because 
> spanned entries, wrapped entries, and other fancy table tricks would 
> cause problems, but I thought that there must be something out there, 
> and I can't find anything. Any suggestions?

Topologi Markup Editor has a block mode (control drag) that allows multiple
rectangular sections to be marked up.

1) Open table in editor. Make sure font is monospace.
2) Create pens for table, row, headers and cells.
3) Select cell pen, and control swip each column. Each cell in each line 
will be marked up individually.
4) Ditto for each row.
5) swipe table (not control) to mark it up with table tag.

Using this method, you can mark up a table with 1 drag per column + 2 drags.
Also, autoincrementing ids can be added at the same time. The idea is to 
better editing primitives rather than optical recognition.

(The only gotcha is where the ends of lines are ragged. Rectangular 
selection is limited to
the smallest end-of-line position. If they are ragged, search and 
replace the newline with
a few spaces followed by a newline.)

Rick Jelliffe


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS