[docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Thomas Schraitle
Hi, currently, I'm trying to understand some design decisions around the EPUB2 stylesheets: 1. base.dir HTML files are generated relative to base.dir, but the OEBPS and META-INF directories are _not_ created relative to base.dir but rather relative to the current working directory (if

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Carlos Araya
Thomas, Is there any reason why not to use the epub3 stylesheets? As far as I can tell epub2 stylesheets are not being actively maintained. Bob has done an awesome job with epub3 and thy should be readable by older devices out of the box. Carlos Sent from my iPad On Apr 9, 2013, at 4:37

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Thomas Schraitle
Hi Carlos, On Tue, 9 Apr 2013 05:10:52 -0700 Carlos Araya carlos.ar...@gmail.com wrote: Is there any reason why not to use the epub3 stylesheets? Thanks for your answer Carlos. Well, I'm not sure if EPUB3 is that widespread than EPUB2. Older EPUB readers does probably not support EPUB3, so I

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Christian Brugeron
EPUB3 is not read fully by any player on the market. Better use EPUB2 for then moment. cb Le 9 avr. 2013 à 14:23, Thomas Schraitle a écrit : Hi Carlos, On Tue, 9 Apr 2013 05:10:52 -0700 Carlos Araya carlos.ar...@gmail.com wrote: Is there any reason why not to use the epub3 stylesheets?

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Thomas Schraitle
Hi, On Tue, 9 Apr 2013 13:37:23 +0200 Thomas Schraitle tom_s...@web.de wrote: currently, I'm trying to understand some design decisions around the EPUB2 stylesheets: [...] By the way, I've started to improve/fix some of the issues that annoys me. :) It's not finished yet, but you can find

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Carlos Araya
Christian How do you define read fully? How do you ensure forward compatibility so that the readers that support epub3 will get a similar reading experience? Sent from my iPad On Apr 9, 2013, at 5:30 AM, Christian Brugeron christian.bruge...@gmail.com wrote: EPUB3 is not read fully by any

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Jirka Kosek
On 9.4.2013 14:30, Christian Brugeron wrote: EPUB3 is not read fully by any player on the market. Better use EPUB2 for then moment. I think that EPUB3 stylesheets emits a lot of code which guarantees good functionality in older readers. I have no problems with EPUB3 output generated from

[docbook-apps] EPUB3: how to use base.dir ?

2013-04-09 Thread Thomas Schraitle
Hi, this is a follow-up from my last mail about EPUB2*, however in regards to the EPUB3 stylesheets (version 1.78.1). Maybe I miss something important. Anyway, here is the situation: 1. Using EPUB3 Stylesheets with default values Running xsltproc without any customization nor parameters:

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Christian Brugeron
In my experience with Hachette books, the kobo readers do not display the EPUB3 files (mybe not docbook's, but generaly speaking) So we got back to epub2 I have the IDPF test files that I run from time to time on the IPAD, the closest EPUB3 compatible mobile reader, and a lot files are

Re: [docbook-apps] Gentext for performance=optional?

2013-04-09 Thread Bob Stayton
Hi Eric, The line break after your Optional text happens because the para element processed by the xsl:apply-templates generates its own nested fo:block, which starts on a new line. The trick here is to get the optional text inside the block of the first para of the step, which can be

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Carlos Araya
Christian: I run docbook-generated epub3 with multimedia added and hand-built epub3 content in my iPad without a problem. For books generataed by others that work in my iPad use the following links: http://www.elizabethcastro.com/epub/examples/epub3jp/jp24bis6.epub(vertical Japanese text, right

Re: [docbook-apps] GSoC Project Idea: integrated LaTeX output support for the stylesheets

2013-04-09 Thread Stefan Hinz
Hi Jirka, The chunked HTML output of the MySQL Reference Manual (see e.g. http://dev.mysql.com/doc/refman/5.6/en/index.html) took about 12 hours to build, as opposed to the single-file output which takes just about 3 hours. The remaining 9 hours were entirely spent on chunking the HTML with

Re: [docbook-apps] EPUB3: how to use base.dir ?

2013-04-09 Thread Bob Stayton
Hi, Try setting base.dir to foo/OEBPS/. That will put META-INF, mimetype, and OEBPS in foo/, which is what I think you want. As you know, the stylesheets write HTML output to $base.dir. The default setting for base.dir in epub3 is OEBPS/. For the other epub files that are not in the HTML

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Christian Brugeron
some of those files won't read. http://code.google.com/p/epub-samples/wiki/SamplesListing I remember of sous le vent, sample media handler, trees (bad rectangles) , some mangas... HTH Le 9 avr. 2013 à 17:57, Carlos Araya a écrit : Christian: I run docbook-generated epub3 with multimedia

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Bob Stayton
Hi, I was concerned about epub2 readers when writing the epub3 stylesheets. The EPUB3 standard includes provisions for backwards compatibility with epub2 readers, such as including the .ncx file and various metadata items. The DocBook epub3 stylesheet tries to use all those features, so most

Re: [docbook-apps] Conceptual Questions and Customizations Regarding EPUB2 Stylesheets

2013-04-09 Thread Christian Brugeron
Le 9 avr. 2013 à 18:45, Bob Stayton a écrit : The article also says that Hachette announced that by March 2013 all of its new books would be in EPUB 3 format. yes, but not! do not believe the press ;-)) cb

Re: [docbook-apps] GSoC Project Idea: integrated LaTeX output support for the stylesheets

2013-04-09 Thread Jirka Kosek
On 9.4.2013 18:27, Stefan Hinz wrote: Which XSLT procesor you have used? Plain old xsltproc. That's not surprising. On larger documents Saxon usually scales much better. First, I would give it try using Saxon (using Sun/Oracle JVM, not gjc :-). Jirka --

Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output

2013-04-09 Thread Bob Stayton
HI Shlomi, Your .xslt file is trying to do two things at once, and it won't work as written. It seems you need to preprocess the XML to alter the legalnotice, but you should do that step *before* processing it to generate epub output. 1. Run an XSLT process with xsltproc or saxon with your

Re: [docbook-apps] GSoC Project Idea: integrated LaTeX output support for the stylesheets

2013-04-09 Thread Stefan Hinz
Hi Jirka, Which XSLT procesor you have used? Plain old xsltproc. That's not surprising. On larger documents Saxon usually scales much better. First, I would give it try using Saxon (using Sun/Oracle JVM, not gjc :-). Thanks for the hint! I'll give Saxon a try if I can convince my team to

Re: [docbook-apps] xrefs to title elements don't work

2013-04-09 Thread Bob Stayton
Hi Eric, The page numbers are not handled by the simple.xlink template, but by the template in fo/xref.xsl that matches on xref. xsl:apply-templates select=$target mode=page.citation It is trying to process the title element (the value of $target) in mode=page.citation. It generates

Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output

2013-04-09 Thread Shlomi Fish
Hi Bob, On Tue, 9 Apr 2013 10:04:13 -0700 Bob Stayton b...@sagehill.net wrote: HI Shlomi, Your .xslt file is trying to do two things at once, and it won't work as written. It seems you need to preprocess the XML to alter the legalnotice, but you should do that step *before* processing it

Re: [docbook-apps] [HELP] How can I get rid of the output of the revhistory / tag in the EPUB output

2013-04-09 Thread Shlomi Fish
Hi all, On Tue, 9 Apr 2013 23:05:18 +0300 Shlomi Fish shlo...@shlomifish.org wrote: Hi Bob, On Tue, 9 Apr 2013 10:04:13 -0700 Bob Stayton b...@sagehill.net wrote: after some tinkering here is what allowed me to fix the problem eventually: