[liblouis-liblouisxml] Re: Enhancing table handling

  • From: Michael Whapples <mwhapples@xxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Fri, 21 Mar 2014 15:16:19 +0000

So if I understand that correct, only a list or linear format for a table output is going to be possible at the moment if only modifying semantic action files?


It might have been good to have a way of also providing smaller table formatting to be spatial.

Michael Whapples
On 21/03/2014 14:39, John J. Boyer wrote:
A message a few days ago from Brandon quoted a part of the  liblouidutdml 
documentation about using the third column of a semantic action to insert a 
semicolon after each column in a table. This is a
common method of handling tables. A general method will indeed be hard.

John

On Fri, Mar 21, 2014 at 12:27:46PM +0100, Christian Egli wrote:
Hi Michael

very interesting discussion.

Michael Whapples <mwhapples@xxxxxxx> writes:

In the longer term and thinking of when formatting is dealt with by
something new, in a higher level language, may be more advanced
choices can be done, what do we want to do?
Generally I have to say that I like the approach that the Braille
Modules in the DAISY Pipeline 2 take in that the source XML is handled
in XSLT (a language geared for that purpose) with callouts to the
formatter. So all the normalizing of the table (re row and colspan),
flipping or linearizing of it is done in XSLT. The XSLT doesn't know
anything about page dimensions, for that it has to query the formatter.
This will generally give you a much better story when it comes to
transforming the source xml. You could then also handle transcriber
hints as you call them. That way you can separate the task of preparing
a document from the task of formatting a document. This will enable you
to make best use of utdml without having to rewrite the whole thing.

HTH
Christian
--
Christian Egli
Swiss Library for the Blind, Visually Impaired and Print Disabled
Grubenstrasse 12, CH-8045 Zürich, Switzerland

-----
SBS Leser, die neue Hoerbuch-App fuer iPhone und iPad. Mehr Infos unter 
http://online.sbs.ch
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: