Re: [docbook-apps] Multiplatform toolchain for outputting "nice" PDF

2024-01-24 Thread Richard Hamilton
There is a section in Chapter 1 of The Definitive Guide titled "What's New in DocBook V5.0" that covers 4.5 to 5.0. I don't know of anything that extends that to 5.1 or beyond. Best regards, DIck Hamilton hamil...@xmlpress.net On Tue, Jan 23, 2024 at 2:51 AM Norm Tovey-Walsh wrote: > > If I'm

Re: [docbook-apps] TOC placement in pdf

2023-02-20 Thread Richard Hamilton
Hello, The element I’ve used to put things before the toc is , which allows a lot more elements than you might expect, including paragraphs and tables. It is an abuse of the tag, (I’ve used it only for a dedication in our books), but in a pinch, it might do what you need. I’m sure others on

[docbook-apps] LCCN in ePub metadata

2023-02-01 Thread Richard Hamilton
Has anyone figured out how to represent an LCCN (Library of Congress Control Number) in the metadata of an ePub? It’s easy enough to represent it in DocBook source, using biblioid with class=“libraryofcongress”, and to display it on the ePub copyright page, but I can’t find any reference on

Re: [docbook-apps] Do different xslt processors and parsers really make a difference for pdf output?

2022-10-31 Thread Richard Hamilton
Hi Norm, I’m resurrecting this thread to see if your thoughts on sticking with Saxon 6.5 for XSLT 1.0 have changed now that Saxon 11 is out. Thanks, Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On Jul 7, 2021, at 02:06, Norm Tovey-Walsh

Re: [docbook-apps] Creating Styles for an Attribute

2021-09-10 Thread Richard Hamilton
Hi Beth, With XSLT, you can match on just the attribute. For example: ….. You may need to select different actions (for example if the element is a block vs. an inline element), but you probably won’t need to duplicate the code for every element. You can also match multiple elements with

Re: [docbook-apps] Header and footer alignment for center cell

2021-07-19 Thread Richard Hamilton
Hi Kevin, XSL-FO 1.1 has the values inside and outside for text-align, which should do the job. Those values are supported in renderx (xep), but I think FOP doesn’t support them. I’m not sure about Antenna House (but I’ll bet they do). I hope that helps. Best regards, Dick Hamilton ---

Re: [docbook-apps] Hypenation in titles

2021-04-07 Thread Richard Hamilton
Hello Philo, The attribute you need is hyphenate, which needs to be set to “false” to turn off hyphenation. There are a bunch of attribute sets with names like XXX.title.properties, where XXX refers to the particular title, for example section, part, etc. You can put this attribute into the

Re: [docbook-apps] Designations in docbook for conversion to ePub

2021-03-24 Thread Richard Hamilton
Hi Philo, Regarding your first question, if you put a role attribute on a phrase (contents), the value of that role will be carried to the HTML (e.g., contents) You can then apply css normally. Regarding your second question, I’m not so sure what’s the best thing to do, but you might try the

Re: [docbook-apps] Docbook stylesheet for papers

2020-11-23 Thread Richard Hamilton
Hi Ismael, A (long) while ago I created a DocBook stylesheet customization that converted a DocBook article into a PDF in what was (at that time) the IEEE conference paper format. Your request prompted me to upload this customization to github at this URL:

Re: [docbook-apps] gentext.template.exists -- possible bug

2020-09-15 Thread Richard Hamilton
, way to fix this bug, I can make the changes and put in a pull request. Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On Aug 26, 2020, at 15:08, Richard Hamilton wrote: > > Hi Bob, > > Thanks. I just filed this as an

Re: [docbook-apps] gentext.template.exists -- possible bug

2020-08-26 Thread Richard Hamilton
is a bug, because there are perhaps legitimate > reasons for the text attribute of a particular gentext template to be empty > in some languages. > Bob Stayton > > b...@sagehill.net > On 8/11/2020 6:06 PM, Richard Hamilton wrote: >> The template gentext.template.exists in

[docbook-apps] Update on biblioentry proposal

2020-08-12 Thread Richard Hamilton
This is an update on the work I’ve been doing on biblioentry styles. I just posted an updated proposal for conventions for biblioentry elements at: https://rlhamilton.net/biblioentry/ You can see a PDF at: https://rlhamilton.net/biblioentry/bib-article.pdf The objective is to create a set of

[docbook-apps] gentext.template.exists -- possible bug

2020-08-11 Thread Richard Hamilton
The template gentext.template.exists in the 1.0 stylesheets has what may be a bug. This template says that it returns 1 if a gentext template exists for a particular context and name and 0 if the template doesn’t exist. However, if a gentext template does exist, but it has a text value that

Re: [docbook-apps] Validating against Schematron

2020-07-30 Thread Richard Hamilton
Communicators http://xmlpress.net hamil...@xmlpress.net > On Jul 29, 2020, at 23:59, Norman Tovey-Walsh wrote: > > Richard Hamilton writes: >> Running it using docbook.sch, I get a namespace error on db:, which is >> strange, since db is properly declared in the Sc

Re: [docbook-apps] Validating against Schematron

2020-07-29 Thread Richard Hamilton
--- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On Jul 28, 2020, at 23:49, Dave Pawson wrote: > > On Tue, 28 Jul 2020 at 22:55, Richard Hamilton wrote: >> >> This is a question for the group. >> >> What do you cur

[docbook-apps] Validating against Schematron

2020-07-28 Thread Richard Hamilton
This is a question for the group. What do you currently use for validating DocBook agains both RelaxNG and Schematron? I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones)

[docbook-apps] Draft of a proposal for conventions for biblioentry element

2020-07-25 Thread Richard Hamilton
I just posted a draft proposal for conventions for the biblioentry element. You can find it at: https://rlhamilton.net/biblioentry/ The idea is to provide conventions that would allow a writer to create biblioentry elements that can be reliably rendered in various styles (Chicago, MLA, etc.).

[docbook-apps] Biblioentry markup standards -- identifying the type of entry

2020-06-10 Thread Richard Hamilton
I’m posting this to the DocBook mailing list, but double posting do DocBook-apps because the discussion started on that list. Background: I’ve been using bibliomixed for XML Press publications. I would like to move to using biblioentry, so I can cover more than one output style. We primarily

Re: [docbook-apps] Bibliographic styling

2020-05-25 Thread Richard Hamilton
. If you, or anyone on the mailing list, have examples that I could add, I’ll be glad to take them. Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On May 25, 2020, at 01:05, Norman Tovey-Walsh wrote: > > Richard Hamilto

Re: [docbook-apps] Bibliographic styling

2020-05-24 Thread Richard Hamilton
> Peter > > On Sat, 23 May 2020 at 12:43, Norman Tovey-Walsh wrote: > Richard Hamilton writes: > > I’m thinking of taking on the task of creating a docbook > > customization, similar to the iso690 customization, to process > > bibliographic information in the Chicago

Re: [docbook-apps] Bibliographic styling

2020-05-24 Thread Richard Hamilton
ote: > > Richard Hamilton writes: >> I’m thinking of taking on the task of creating a docbook >> customization, similar to the iso690 customization, to process >> bibliographic information in the Chicago Manual of Style format. >> >> Before I dive in head first, I

[docbook-apps] Bibliographic styling

2020-05-22 Thread Richard Hamilton
I’m thinking of taking on the task of creating a docbook customization, similar to the iso690 customization, to process bibliographic information in the Chicago Manual of Style format. Before I dive in head first, I thought I’d check with the group to see if anyone has already done that.

Re: [docbook-apps] Converting Docbook epub to Kindle shows warnings

2020-03-20 Thread Richard Hamilton
s ago), the index rendered fine on Kindle. - although in that ebook, >> it used page numbers for an ebook. >> >> (In my projects, I used > select="1"> and > select="0"> ) >> (I could provide an ebook example if you need) >> >

Re: [docbook-apps] Converting Docbook epub to Kindle shows warnings

2020-03-19 Thread Richard Hamilton
Hi Lars, I know this is from a long time ago, but I just ran into the same problem with a file that nests variable lists using the list-presentation=“blocks” processing instruction. In that case, the XHTML5 (this is with 1.79.2, building an epub3) is valid, but kindlegen doesn’t like the

Re: [docbook-apps] No indent on the first paragraph of a page

2017-12-04 Thread Richard Hamilton
Hi Peter, I suspect that this is going to be very difficult, if not impossible, because pagination happens in the FO processor, and the stylesheets don’t know where the FO processor will do page breaks. Therefore, the stylesheets can’t identify which paragraphs will appear at the top of a

Re: [docbook-apps] using curly quotes for epubs -- best practices?

2017-11-30 Thread Richard Hamilton
Hi Robert, I avoid the issue entirely by using the DocBook element. The element gives you language appropriate quotation marks, and it will also handle quotes within quotes, which is a nice touch. I don’t know of any automated smart quote processing in the DocBook stylesheets (in fact, I’m

Re: [docbook-apps] Documenting code

2017-03-14 Thread Richard Hamilton
It is an interesting book (I got the chance to review an early copy), but it isn’t particularly about documenting code. Rather it is about creating docs using the development methods and tools (e.g., git) that programmers use. Dick --- XML Press XML for Technical Communicators

Re: [docbook-apps] Assemblies

2017-02-28 Thread Richard Hamilton
Hi Simon, I would use the issue mechanism first, especially if you’ve fixed a bug. If you’re doing an enhancement, you might also want to discuss it on this mailing list. FYI, since you’re talking about assemble.xsl, this is not a question for the DocBook TC. However, you did post it to the

Re: [docbook-apps] does not number...

2017-02-10 Thread Richard Hamilton
Hi, Here is the link to the part of Bob’s book that covers the Saxon processor: http://sagehill.net/docbookxsl/InstallingAProcessor.html#InstallSaxon I think you can keep the xmllint processing as is (I use it for XInclude processing, too), and just swap in saxon for xsltproc, using Bob’s

Re: [docbook-apps] Odd Characters in UTF-8, Docbook 5.1

2017-02-01 Thread Richard Hamilton
on). > > Am I missing another file to edit, or am I simply using the wrong syntax for > my addition of DejaVuSans? > > Thanks! > > - Original Message - > From: Richard Hamilton <hamil...@xmlpress.net> > To: stim...@comcast.net > Cc: Docbook

Re: [docbook-apps] Odd Characters in UTF-8, Docbook 5.1

2017-02-01 Thread Richard Hamilton
Hi, There are two steps to the font assignment process: 1) configuring fop’s fonts and 2) setting DocBook parameters to call the fonts you have configured in fop. In this case, the mapping between serif and Times (and sans-serif and Helvetica) happens in the fop configuration file, fop.xconf.

[docbook-apps] DocBook TC meeting agenda for 21 December 2016 (TODAY)

2016-12-21 Thread Richard Hamilton
Here is the agenda for today’s meeting. I apologize for the delay in getting it to you. Talk with you in an hour. Best regards, Dick DocBook Technical Committee Meeting Agenda: 21 December 2016 = The DocBook Technical Committee will

Re: [docbook-apps] [ANN] XSL Coverage scripts

2016-11-12 Thread Richard Hamilton
gt; the stylesheets used are in a coverage index file. > > An example of such a report is here: > https://marsgui.github.io/xslcoverage/example/traces/coverage_index.html > > Regards, > BG > > On Fri, 11 Nov 2016 20:35:37 +0100, Richard Hamilton <hamil...@xmlpress.net

Re: [docbook-apps] [ANN] XSL Coverage scripts

2016-11-11 Thread Richard Hamilton
Hi Ben, This looks interesting, but I’ve got a basic (dumb:-) question. What do you mean by coverage? Do you mean test coverage, that is, calculating how much a given test xml file exercises the stylesheets, or do you mean something else? Thanks, Dick Hamilton --- XML Press XML for

[docbook-apps] Decimal align labels in a print TOC

2016-04-27 Thread Richard Hamilton
By default, the chapter number in a TOC line is left aligned, as shown here: 1. Title of chapter 1 1 2. Title of chapter 2 5 ... 100. Title of chapter 100 X I'm trying to figure out the best way to have the chapter numbers right align, so the separator (in this case

Re: [docbook-apps] [OT] DocBook XSL license

2016-03-19 Thread Richard Hamilton
://xmlpress.net hamil...@xmlpress.net On Mar 13, 2016, at 15:37, Richard Hamilton <hamil...@xmlpress.net> wrote: > Hi Jan, > > I'm forwarding this to the DocBook TC. I don't know the answer to your > question, but there are people on the TC who probably do know. > >

Re: [docbook-apps] Preserving entities and language translation

2016-01-18 Thread Richard Hamilton
Hi Warren, I'm not sure if I can come up with a standard, or truly elegant way of doing this, but here are a few possibilities: 1) If the only entities in your files are the ones that shouldn't be translated, just don't have xmllint resolve the entities when you normalize the file, then use

Re: [docbook-apps] Indexterms with one or more See elements

2016-01-11 Thread Richard Hamilton
I think the reference to "at least one entry" is probably a typo, because the grammar only allows one element in an indexterm. It should be possible (but maybe not too easy) to get the Chicago Manual style with a stylesheet customization that looks for multiple indexterms with the same

Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

2015-11-04 Thread Richard Hamilton
; > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > On 10/21/2015 5:52 PM, Richard Hamilton wrote: >> Hi Bob, >> >> As a followup, it looks like this is a problem that existed in >> 1.78.1. Looking back at my files and email, I see that th

Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

2015-10-21 Thread Richard Hamilton
at 17:15, Richard Hamilton <hamil...@xmlpress.net> wrote: > Hi Bob, > > I built one of our books using the fo stylesheets, and it came out clean. Not > an extensive test, but it does build a book with an index, a glossary, and a > fair number of customizations. > &

Re: [docbook-apps] any problems with DocBook XSL 1.79.0?

2015-10-21 Thread Richard Hamilton
Hi Bob, I built one of our books using the fo stylesheets, and it came out clean. Not an extensive test, but it does build a book with an index, a glossary, and a fair number of customizations. I built an epub using the epub2 stylesheets and got the following message from epubcheck (both

[docbook-apps] Kindle TOCs

2015-10-06 Thread Richard Hamilton
Back about 2 years ago, there was a thread concerning a problem with Kindle TOCs. If you use the html element for toc.list.type (as recommended for Kindle) and the CSS style "list-style-type: none" to suppress the numbers, some devices work fine, but others, including older Kindle devices and

Re: [docbook-apps] Show off what you've done with Docbook

2015-09-14 Thread Richard Hamilton
, S1000D) to be significantly different from the others, as long as you have good tools and good training. Best regards, Richard Hamilton --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Sep 11, 2015, at 9:56, Katie Welles <ka...@inkwelle.com>

Re: [docbook-apps] should become in another book

2015-08-31 Thread Richard Hamilton
aybe you or > someone else have a solution for working with Xalan/Xerces and XPointer. (Or > maybe I have to switch to a more sophisticated XSLT processor / XML parser > combination some time.) > > best regards > Benjamin > > -Ursprüngliche Nachricht- >

Re: [docbook-apps] part should become appendix in another book

2015-08-21 Thread Richard Hamilton
I think that thread should get you headed in the right direction. I still use the method I described in a post on that thread. Some might call it inelegant, but it works for me:-). The only thing that I don't know about is how to integrate it into an Ant script. I'm an old fogey who still uses

Re: [docbook-apps] Linking to an HTML file

2015-07-10 Thread Richard Hamilton
Hi Gabriela, I don't know the specific software you're using (i.e., Python Notebook and QtAssistant). However, if the software handles HTML like a browser, the xlink:href attribute can contain a variety of things in addition to a web URL. For example, you can use a relative path. For example,

Re: [docbook-apps] Page numbering and volumes

2015-07-08 Thread Richard Hamilton
Hi Gabriela, I don't think there is a single parameter that controls the starting number. However, there is a template in the stylesheets called initial.page.number, which I think you can customize to do this. Here is the description of that template in the online version of Bob Stayton's

Re: [docbook-apps] Linking to an HTML file

2015-07-08 Thread Richard Hamilton
Hi Gabriela, The following will do the job: link xlink:href=http://URL-TO-HTML-FILE;text/link You do need to declare the xlink namespace, which you can do on the root element, like this: article xmlns=http://docbook.org/ns/docbook; version=5.0 xml:lang=en

Re: [docbook-apps] ANNOUNCE: new solar book produced using Docbook

2015-07-07 Thread Richard Hamilton
Hi Bob, Congratulations. I have a couple of thoughts regarding, mostly, the DocBook portion. However, I have to congratulate you on getting a Kirkus review; they aren't the easiest folks to get a review from. Regarding DocBook, where did you run into CSS problems? We have been doing epub2

Re: [docbook-apps] xi:include publisher

2015-06-26 Thread Richard Hamilton
Hi Peter, What error did you get and what software were you using to do the includes? Best regards, Richard Hamilton --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Jun 26, 2015, at 11:24, Peter Fleck peterfl...@gmail.com wrote: HI, I moved

Re: [docbook-apps] xi:include publisher

2015-06-26 Thread Richard Hamilton
://.../publisher.xml; xi:fallbackPublisher Missing/xi:fallback /xi:include Thanks, Peter On 26/06/15 20:30, Richard Hamilton wrote: Hi Peter, What error did you get and what software were you using to do the includes? Best regards, Richard Hamilton --- XML Press XML

Re: [docbook-apps] linked on tag element

2015-05-19 Thread Richard Hamilton
templates. If you could file a bug report, then this issue will get tracked and fixed. Bob Stayton Sagehill Enterprises b...@sagehill.net On 5/19/2015 12:23 PM, Richard Hamilton wrote: I'm running into something curious with the stylesheets. Consider these two snippets: tag class

[docbook-apps] linked on tag element

2015-05-19 Thread Richard Hamilton
I'm running into something curious with the stylesheets. Consider these two snippets: tag class=attribute linkend=gloss.hrefhref/tag tag class=starttag linkend=gloss.htmlhtml/tag If I generate PDF that contains these two cases, the first tag will link correctly (it is hot and points to the

Re: [docbook-apps] Edge case with dbfo-need

2015-04-02 Thread Richard Hamilton
template is in the snapshot in fo/pi.xsl. Bob Stayton Sagehill Enterprises b...@sagehill.net On 4/1/2015 12:47 PM, Richard Hamilton wrote: I just ran into an interesting edge case when building with dbfo-need when the following conditions are true: 1) You have a dbfo-need processing

Re: [docbook-apps] Edge case with dbfo-need

2015-04-02 Thread Richard Hamilton
recognized by the system, I changed the height value to 8 in to force a page break. This was also successful. No errors or other warnings in my log furthermore. regards, Benjamin -Ursprüngliche Nachricht- Von: Richard Hamilton [mailto:hamil...@xmlpress.net] Gesendet: Mittwoch, 1

Re: [docbook-apps] FO File from DocBook5

2015-04-01 Thread Richard Hamilton
. Richard Hamilton --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Mar 31, 2015, at 3:10, Sascha Manns sascha.ma...@xcom.de wrote: Hi Benjamin, i meant that i want to produce a fo file from DocBook5. In DB4 i can use xsltproc but i don't know

[docbook-apps] Edge case with dbfo-need

2015-04-01 Thread Richard Hamilton
I just ran into an interesting edge case when building with dbfo-need when the following conditions are true: 1) You have a dbfo-need processing instruction above an admonition (warning, tip, etc.) 2) The admonition is the last element in a section (technically, the last block element; an

Re: [docbook-apps] A docbook-xsl parameter bridgehead.renderas

2015-03-13 Thread Richard Hamilton
Hi Erik, I don't see anything wrong with the idea, though I'm not sure it would be widely used (bridgeheads themselves don't seem to be widely used, though they can be really helpful). You can enter Feature Requests at http://sourceforge.net/p/docbook/feature-requests/. You probably need a

[docbook-apps] Re: [docbook] Arabic-Indic numbering in XSL FO output for orderedlist

2015-02-16 Thread Richard Hamilton
Hi Amin, You can do this, but you'll need to customize the stylesheets. The critical piece of code is the template that matches d:orderedlist/d:listitem in mode=item-number in the file common/common.xsl (not in the fo directory of the stylesheets). This template uses the xsl:number function

[docbook-apps] Generating a page list for epub

2015-02-10 Thread Richard Hamilton
Has anyone on the list tackled the challenge of generating a page list for ePub output? A page list is a mapping of print page numbers to locations in the ePub. I don't see any easy way to do it; I suspect it would take some kind of parsing of a PDF version of the book, and post-processing of

Re: [docbook-apps] Generating a page list for epub

2015-02-10 Thread Richard Hamilton
://xmlpress.net hamil...@xmlpress.net On Feb 10, 2015, at 13:51, Peter Eisentraut pete...@gmx.net wrote: On 2/10/15 1:36 PM, Richard Hamilton wrote: Has anyone on the list tackled the challenge of generating a page list for ePub output? A page list is a mapping of print page numbers to locations

Re: [docbook-apps] Generating a page list for epub

2015-02-10 Thread Richard Hamilton
numbers. Bob Stayton Sagehill Enterprises b...@sagehill.net On 2/10/2015 10:36 AM, Richard Hamilton wrote: Has anyone on the list tackled the challenge of generating a page list for ePub output? A page list is a mapping of print page numbers to locations in the ePub. I don't see any

[docbook-apps] Google Summer of Code 2015 -- Last call for participants

2015-02-09 Thread Richard Hamilton
So far, I've only received one message expressing interest in having the DocBook project apply to participate in the Google Summer of Code this year. The applications open today (Feb 9) and close in 10 days (Feb 20), so unless I hear from a few more people, I don't think it will make sense to

[docbook-apps] Re: [docbook] Indexterm in glossterm causes validationexception when using glossseealso

2015-02-02 Thread Richard Hamilton
includes a duplicate marker for the indexterm included in the glossterm. The fix is easy, but could someone please file a bug report on Sourceforge so this can be tracked. Thanks. Bob Stayton Sagehill Enterprises b...@sagehill.net On 1/30/2015 3:48 PM, Richard Hamilton wrote: You're

[docbook-apps] Re: [docbook] Indexterm in glossterm causes validationexception when using glossseealso

2015-01-30 Thread Richard Hamilton
You're correct that this is valid DocBook, and I can confirm that you do get a duplicate id, which means it looks like there's a bug in the stylesheets. BTW, I see the same thing using the XEP extensions, though RenderX actually doesn't detect the error (or at least doesn't report it) and

[docbook-apps] Re: [docbook] Google Summer of Code 2015

2015-01-22 Thread Richard Hamilton
, so you can browse around and get a sense of what GSOC is all about. Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Jan 21, 2015, at 16:50, Stefan Seefeld ste...@seefeld.name wrote: On 21/01/15 07:44 PM, Richard Hamilton wrote: At today's

[docbook-apps] Google Summer of Code 2015

2015-01-21 Thread Richard Hamilton
At today's DocBook TC meeting, we discussed the possibility of applying to be a mentoring organization for this year's Google Summer of Code. As many of you know, the DocBook project (as distinct from the DocBook TC, though many people participate in both activities) applied to the program

Re: [docbook-apps] epub3 and named entities

2014-10-25 Thread Richard Hamilton
further. Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Oct 22, 2014, at 13:41, Jirka Kosek ji...@kosek.cz wrote: On 22.10.2014 18:48, Richard Hamilton wrote: It looks as though the next version of epubcheck may reject epub3 files that use

Re: [docbook-apps] epub3 and named entities

2014-10-24 Thread Richard Hamilton
...@kosek.cz wrote: On 22.10.2014 18:48, Richard Hamilton wrote: It looks as though the next version of epubcheck may reject epub3 files that use named character entities (amp;, etc.). Any source for this information? It's hard to believe that amp; will be refused as it can't be written directly

[docbook-apps] epub3 and named entities

2014-10-22 Thread Richard Hamilton
It looks as though the next version of epubcheck may reject epub3 files that use named character entities (amp;, etc.). Right now, the stylesheets will generate at least some of these, even if you use the numeric equivalent (e.g., if you use #38; for ampersand in your source, the output will

Re: [docbook-apps] Bad DOCTYPE on toc.ncx in epub2 stylesheets snapshot

2014-10-02 Thread Richard Hamilton
or so. Best regards, Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Oct 2, 2014, at 1:35, Jirka Kosek ji...@kosek.cz wrote: On 2.10.2014 2:22, Richard Hamilton wrote: !DOCTYPE ncx PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR

[docbook-apps] Bad DOCTYPE on toc.ncx in epub2 stylesheets snapshot

2014-10-01 Thread Richard Hamilton
The subject line says nearly everything. If I try to create an epub2 file using a recent snapshot (Sept. 28), toc.ncx gets written correctly, except it has a DOCTYPE for an xhtml file: !DOCTYPE ncx PUBLIC -//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd; There is a

[docbook-apps] Question on header.table template in fo stylesheets

2014-09-25 Thread Richard Hamilton
I noticed something curious in the header.table template in pagesetup.xsl in the fo stylesheets. The first thing this template does is set the margin-left (or margin-right for right-to-left languages) attribute to 0pt. It doesn't change the other margin. I noticed because I set the margin in

[docbook-apps] Colophon doesn't reset footnote numbering

2014-09-16 Thread Richard Hamilton
I just ran into a bug in the fo stylesheets. If a colophon has a footnote (or a link and you've set ulink.footnotes) and the preceding chapter, appendix, etc., also has a footnote, then the footnote numbering in the colophon will not start from 1; it will start from where the preceding section

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Richard Hamilton
I have had success using xmllint to access nodes using xpath. I can't tell you how well it supports xpath, but I am able to do things like the example below, which turns a chapter into a preface and changes the title. preface titlePreface/title xi:include href=ebook-intro.xml

Re: [docbook-apps] support for xpointer

2014-09-14 Thread Richard Hamilton
XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Sep 14, 2014, at 13:01, Stefan Seefeld ste...@seefeld.name wrote: On 09/14/2014 02:02 PM, Richard Hamilton wrote: Regarding the question of pulling the second listitem from a section with a particular id, I think

[docbook-apps] Numbered paragraphs

2014-08-01 Thread Richard Hamilton
Before I dive into a customization, has anyone ever customized the fo stylesheets to generate paragraph numbers? That is, sequentially numbering every paragraph in a book from the beginning to the end. The ideal would be to put them into the margin, but I'd be happy with any method that

Re: [docbook-apps] Numbered paragraphs

2014-08-01 Thread Richard Hamilton
Communicators http://xmlpress.net hamil...@xmlpress.net On Aug 1, 2014, at 3:56 PM, Stefan Seefeld ste...@seefeld.name wrote: On 08/01/2014 06:47 PM, Richard Hamilton wrote: Before I dive into a customization, has anyone ever customized the fo stylesheets to generate paragraph numbers

Re: [docbook-apps] Possible to render footnotes on the same page as the reference?

2014-07-07 Thread Richard Hamilton
Hi David, My very limited understanding of Flying Saucer and iText is that it works with xhtml content, so I presume you are using the xhtml stylesheets. The DocBook html/xhtml stylesheets put footnotes at the end of the component (typically chapter or appendix) that the footnote appears in.

Re: [docbook-apps] I have a title page - how about a back page ?

2014-06-06 Thread Richard Hamilton
Hi Richard, I'd use colophon. A colophon doesn't normally create a TOC entry, and it is normally placed at the end of the book. You'll probably need to do some customizing of the stylesheets to get it to look like you want, but you'd need to do that regardless. Best regards, Dick Hamilton

[docbook-apps] Re: [docbook] centring a picture

2014-05-28 Thread Richard Hamilton
Hi Alex, Try align=center on the imagedata element. I would also suggest checking out Bob Stayton's book, which has a lot of information about image placement and scaling, a topic that can get hairy. You can find the book online at http://sagehill.net and I recommend getting the print version

Re: [docbook-apps] Problems with sect1 when using 5.1CR2

2014-04-30 Thread Richard Hamilton
Hi Carlos, Looks like that's a bug in the schema. (I'm copying this post to the DocBook TC, since the TC will need to look into this). When I look in the 5.1CR2 schema, I see the following for sect1: define name=db.sect1 element name=sect1 --- ref

[docbook-apps] ePub structure has TOC before inside title page

2014-02-18 Thread Richard Hamilton
When I generate an epub2, I get the TOC before the inside title page, rather than the other way around, which would seem to be the more natural order. Does anyone have any idea why that might be happening, and is there a way to get a more traditional ordering? Thanks, Dick Hamilton --- XML

[docbook-apps] Possible problem with typed indexes

2013-11-04 Thread Richard Hamilton
I just tried to use the type facility with indexes for the first time, and I got a strange result. I have indexterms with type=author and indexterms with no type attribute. E.g., indexterm type=authorprimaryShakespeare, William/primary/indexterm I inserted two index tags, one with type=author

[docbook-apps] Indexes in mobi

2013-10-30 Thread Richard Hamilton
I'm running into something strange with indexes when I convert from epub to mobi using kindlegen. I use the epub3 transform and set kindle.extensions=1, then use kindlegen to get a .mobi file. The index comes out fine for ePub, but for .mobi, some devices (Paperwhite and Kindle Fire on the

[docbook-apps] Continued lines in index

2013-09-27 Thread Richard Hamilton
Has anyone implemented a way to get a continued line in a printed index? That is, when a primary term that has a lot of secondaries breaks across a page boundary, many indexes will include a line like this at the top of the new page: Bieber, Justin (continued) greatest hits ... Right

Re: [docbook-apps] Continued lines in index

2013-09-27 Thread Richard Hamilton
the code from that client. Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Richard Hamilton hamil...@xmlpress.net Sent: Friday, September 27, 2013 10:49 AM To: apps docbook docbook-apps@lists.oasis-open.org Subject: [docbook-apps

Re: [docbook-apps] attribute sets -- what possible attributes can I use?

2013-09-14 Thread Richard Hamilton
Hi Robert, Regarding your questions: 1) Yes, you can add other attributes. It's worth trying any attribute in Dave's book that you think might be useful. 2) I don't know of a list of allowable attributes for the DocBook attribute sets. I think a better way to approach things is to look at the

Re: [docbook-apps] DocBook 5 samples for tests

2013-08-21 Thread Richard Hamilton
Hi Camille, I don't think there is a comprehensive set of DB5 examples. However, in testing changes to the db4 to db5 stylesheet (db4-upgrade.xsl), I converted all of the db4 samples to db5. There were a few files that for various reasons didn't convert successfully (five total), but the rest

Re: [docbook-apps] A little XML-to-XML handholding?

2013-07-30 Thread Richard Hamilton
bug in its port file. I'll report that via the MacPorts trouble ticket procedure. Best, Mike Crawford li...@warplife.com http://www.warplife.com/ On Mon, Jul 29, 2013 at 6:25 PM, Richard Hamilton hamil...@xmlpress.net wrote: Hi Mike, I have had very good luck with Herold (http

Re: [docbook-apps] Generating e-pub and html indexes

2013-07-30 Thread Richard Hamilton
changed any of that coding in the meantime. Dave On 23-07-13 11:49 AM, Richard Hamilton wrote: Hi Paul, Dave Gardiner put together an index customization that I've used to generate index entries that point to numbered sections. That is, if you have section numbering turned on, and you

Re: [docbook-apps] A little XML-to-XML handholding?

2013-07-29 Thread Richard Hamilton
Hi Mike, I have had very good luck with Herold (http://www.michael-a-fuchs.de). I'm usually not fortunate enough to have strict xhtml, so we do some pre-processing (usually on well-behaved, but idiosyncratic, html), tidy it up into xhtml, then run Herold. You may find that you need to do some

Re: [docbook-apps] Generating e-pub and html indexes

2013-07-22 Thread Richard Hamilton
Hi Paul, Dave Gardiner put together an index customization that I've used to generate index entries that point to numbered sections. That is, if you have section numbering turned on, and you use this customization, the index will use the section number instead of the title. So you get index

Re: [docbook-apps] converting DocBook to Confluence

2013-04-29 Thread Richard Hamilton
Hi Robert, Confluence has a supported DocBook export, and an experimental DocBook import. Here is a link to a blog entry about this capability: http://ffeathers.wordpress.com/2012/02/19/docbook-export-and-import-round-trip-with-confluence-wiki/ As you will see in the blog entry, the export was

Re: [docbook-apps] a inside li adds white space in Firefox and IE?

2013-04-25 Thread Richard Hamilton
Hi Bob, Would you also recommend setting the same parameter for ePub (either 2 or 3)? Thanks, Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net On Apr 25, 2013, at 10:10 AM, Bob Stayton wrote: Hi Eric, You can ditch the named anchors by

Re: [docbook-apps] a inside li adds white space in Firefox and IE?

2013-04-25 Thread Richard Hamilton
-- From: Richard Hamilton hamil...@xmlpress.net Sent: Thursday, April 25, 2013 10:15 AM To: Bob Stayton b...@sagehill.net Cc: Eric Nordlund nordl...@cray.com; docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] a inside li adds white space

Re: [docbook-apps] Epub and Saxon: DOCTYPE revisited

2013-04-11 Thread Richard Hamilton
= the same as a missing attribute, and does nothing with it. This is a Saxon 6 quirk. Bob Stayton Sagehill Enterprises b...@sagehill.net -- From: Richard Hamilton d...@rlhamilton.net Sent: Wednesday, April 10, 2013 2:59 PM To: docbook-apps

[docbook-apps] Epub and Saxon: DOCTYPE revisited

2013-04-10 Thread Richard Hamilton
Regarding Bob Stayton's message from a few days ago concerning Saxon not allowing a customization to override a DOCTYPE: Actually, once a doctype has been set by an xsl:output statement, a customization cannot reset it to nothing in Saxon. That's a quirk of Saxon, confirmed by Michael Kay.

[docbook-apps] GSoC Application

2013-04-08 Thread Richard Hamilton
Looks like odd-numbered years are not good for DocBook at GSoC. Our application for this year's GSoC program was rejected. Thanks to everyone who volunteered to be a mentor and for the interest from prospective students. I hope that some of the ideas generated for this year's program can get

Re: [docbook-apps] Specify FO output font size in xml element?

2013-04-05 Thread Richard Hamilton
Hi Eric, Take a look at the monospace.verbatim.properties attribute set. I know you can set the font there. You may also be able to adjust the margins (I haven't tried that in this context). Generally, I always look for attribute sets first when doing a customization, because if you can get

  1   2   >