[docbook-apps] OPF file for EPUB is linking to images with different roles

2010-07-14 Thread Glenn McDonald
For Docbook 4.x, I was able to use the following to force PDF's to use SVG and HTML Books to use PNG's: mediaobject imageobject role=fo imagedata fileref=screenshots/wizard_step_1.svg scale=70/ /imageobject imageobject role=html imagedata fileref=screenshots/wizard_step_1.png scale=70/

[docbook-apps] Re: [docbook] website and keyword vs. keywords

2010-07-14 Thread Jochen+oasis-open
Have you agreed by now on whether to support meta name=description … or not? IMHO it's a must. I assume adding description.../description also effect the DTD, and the RNC grammar and so forth. Would you like to share that with us resp. me? J.

[docbook-apps] Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Jochen+oasis-open
Hi, there! During my rather successful (from my point of view) process of converting a couple of web-sites from plain DocBook generated HTML to DocBook Website (HTML) I now ran into a problem with this site: http://Aleph-Soft.com/JHwis/ Maybe you want to have a quick look at it. I know,

[docbook-apps] Re: Website: description.../description

2010-07-14 Thread Jochen+oasis-open
I know …, I should have replace the Subject already in the first place ;-( Have you agreed by now on whether to support meta name=description … or not? IMHO it's a must. I assume adding description.../description also effects the DTD, and the RNC grammar and so forth. Would you like

RE: [docbook-apps] Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Rowland, Larry
Did you try providing a titleabbrev element with the alternate, shorter title. That is normally what is used for providing a title that is shorter than the full title. I am not that familiar with the Website grammar, but I know that is how it works in other contexts. Regards, Larry Rowland

[docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Jochen+oasis-open
Rowland, Larry larry.rowl...@hp.com writes: Did you try providing a titleabbrev element with the alternate, shorter title. Many thanks for the hint, Larry! Tried it, but to no success. Well, within toc-tabular.xsl titleabbrev is taken into account (is that the right place?), but I don't

RE: [docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Rowland, Larry
I have not looked at the code, but from the title it looks like this generates the Table of Contents for the tabular presentation. In the sample posted at: http://docbook.sourceforge.net/release/website/example/custom.html the full title is shown at the top of the page and the titleabbrev is

[docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Jochen+oasis-open
Rowland, Larry writes: Thanks a lot, Larry, for your assistance! I have not looked at the code, but from the title it looks like this generates the Table of Contents for the tabular presentation. In the sample posted at:

[docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Jochen+oasis-open
I uploaded my Website *.xml files to this place: http://Hayek.name/Jochen/tmp/JHwis.tar.bz2 Maybe somebody else recognizes immediately, what my mistake is. But maybe also, there is right now no viable path around for that problem. J.

Re: [docbook-apps] gentext.template eats 1/3 of CPU

2010-07-14 Thread Jirka Kosek
Sam Fischmann wrote: Curiously enough, I don't seem to be getting a predictable speed boost on my tests. I have a huge build that runs every night, so I'll have better number for comparison tomorrow. I'm anxious to see what comes out. It might also depend on XSLT processor you are using. I

Re: [docbook-apps] gentext.template eats 1/3 of CPU

2010-07-14 Thread Sam Fischmann
I am using Saxon, and on my nightly build (which normally takes a good 355 minutes on an old pentium 4), I saw an 8% improvement in the overall time using the patch you provided yesterday. This percentage is far less than the actual improvement in stylesheet processing time, because my system

[docbook-apps] alt text for inlineequation

2010-07-14 Thread Tim Arnold
Hi, I'm using DocBook5 and the docbook-xsl-ns-snapshot from June 9; I want to get the alt text from inlineequation inlinemediaobject remap=math alt$F$/alt imageobject imagedata fileref=images/w.png contentwidth=10px contentdepth=10px

[docbook-apps] re: alt text problem--ignore previous question

2010-07-14 Thread Tim Arnold
Hi, Well this is embarrasing. Please disregard my earlier question about alt text. I was overriding the stylesheets and made no provision for alt text. :( Sorry! --Tim - To unsubscribe, e-mail:

Re: [docbook-apps] gentext.template eats 1/3 of CPU

2010-07-14 Thread deannelson
Jirka, Those changes were pretty significant for me. I am now seeing a 14-15% improvement from the stock 1.75.2 release. I am processing about 950K (in 34 files) of source and it is now down to 12.5 secs verses 15 seconds with the stock release. This is just for the XSL processing down to an

Re: [docbook-apps] Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Denis Bradford
Hi Jochen, In your layout.xml, you can add titles to tocentries, like this: tocentry filename=am-paris.html page=am-paris.xml titleShort title/title /tocentry If you add the optional title element a tocentry, it is displayed in the TOC instead of the title that's in

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Keith Fahlgren
On Tue, Jul 13, 2010 at 4:20 PM, Glenn McDonald gmcdon...@vividas.com wrote: The html files that are generated for .epub have no links to the images themselves. Sorry, would you please clarify what DocBook is producing that HTML and what version of the DocBook-XSL stylesheets your using? (I'm

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Glenn McDonald
Sure thing. I am using the epub/docbook.xsl from the package docbook-xsl-ns-1.75.2.zip Here is an example of my docbook xml: ?xml version=1.0 encoding=iso-8859-1? book xmlns=http://docbook.org/ns/docbook; version=5.0 xml:lang=en info titleBook Title/title pubdate2010/pubdate copyright

Re: [docbook-apps] OPF file for EPUB is linking to images with different roles

2010-07-14 Thread Glenn McDonald
Thanks Bob, I had a play around with the epub/docbook.xsl and managed to get it working. I am not sure if it's 100% correct, but below is my modified custom template for handling mediaobject: xsl:template match=d:mediaobject|d:mediaobjectco|d:inlinemediaobject mode=opf.manifest

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Keith Fahlgren
On Wed, Jul 14, 2010 at 9:21 PM, Glenn McDonald gmcdon...@vividas.com wrote: I am using the epub/docbook.xsl from the package docbook-xsl-ns-1.75.2.zip Are you using a customization layer that sets the admon.graphics parameter to 1? The OPF manifest does not link to any admonition images:

Re: [docbook-apps] OPF file for EPUB is linking to images with different roles

2010-07-14 Thread Keith Fahlgren
On Wed, Jul 14, 2010 at 9:33 PM, Glenn McDonald gmcdon...@vividas.com wrote: I am not sure if it's 100% correct, but below is my modified custom template for handling mediaobject: Thanks for attempting this. I've added similar generic code based on your customization to the docbook.xsl in SVN

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Glenn McDonald
Thanks Keith, Aha - I assumed they would be enabled by default. Interestingly, though, when I set the following: xsl:param name=admon.graphics1/xsl:param xsl:param name=admon.graphics.pathimages/colorsvg//xsl:param xsl:param name=admon.graphics.extension.svg/xsl:param The epub reader (Adobe

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Keith Fahlgren
On Wed, Jul 14, 2010 at 10:25 PM, Glenn McDonald gmcdon...@vividas.com wrote: The epub reader (Adobe Digital Editions in my case) is displaying the admonition graphic indented (as expected) but the admonition text is centered in the page. It should be next to the admonition graphic.

Re: [docbook-apps] Admonitions in .epub documents?

2010-07-14 Thread Glenn McDonald
You are correct - Calibre renders the admonitions and text correctly. Thanks for the heads up on ADE being eccentric! epubcheck doesn't complain about the align attribs, FYI :) Thanks a lot for your help Keith. Glenn On 15/07/2010 3:32 PM, Keith Fahlgren wrote: On Wed, Jul 14, 2010 at