[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL:FO approach for facing-page translation
On Fri, Feb 07, 2014 at 01:41:54PM -0800, Martin Holmes scripsit: > I'm beginning to wonder about a far cruder approach: render both > languages and see which is longer, then implement hard page-breaks > in both versions at the point the longer one would break. Then run > XSLT to interleave the two versions to create a continuous document. > Very fragile, of course, and likely to require a lot of tinkering, > but it would work. If you're going crude, maybe do the first pass with a double-length page -- the flow should take arbitrary page lengths just fine -- and issue each original-translation pair of paragraphs inside a block container set to keep-together-within page, so you're sure you're getting things in units of facing pages? Then the second pass takes each double sized page and splits the languages recto-verso onto the proper page size, with the spacing down the page set based on whichever of the two languages was longer? It might be less fragile than all those hard page breaks. -- Graydon
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|