Re: [docbook-apps] Change Label text of Chapter in PDF Bookmarks
Dne 21.2.2017 v 10:12 Peter Fleck napsal(a): > Hi, > > I have a customization that changes the "Chapter" label to "Lesson" > using the below: > > http://docbook.sourceforge.net/xmlns/l10n/1.0;> > > > > > > > This works fine for the content of the PDF etc. but it stays as > "Chapter" in the PDF Bookmarks. > > Is it possible to change in the PDF as well as the body? Of course, you just need to customize the context-specific templates as well, like this: http://docbook.sourceforge.net/xmlns/l10n/1.0;> ... See the default L10N file for complete list of contexts which you need to customize. Regards, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] why doesn't DB have an element for context breaks?
Dne 18.2.2017 v 23:23 Robert Nagle napsal(a): > I am posting this here because -- well, I don't subscribe to other > db mailing lists. > > I publish a lot of literary titles as epubs using docbook. One thing > I encounter frequently (10+ times a publication usually) are > narrative breaks in the middle of a chapter. Sometimes it's extra > space to denote the passage of time or maybe a change in point of > view. Sometimes it means adding decorative things (asterisks etc) in > this space. I personally don't use these things a lot when writing > content, but a lot of prose authors do. Docbook templates could use a lot of improvements, not just more features but also refactoring for easier customization. Here's how I've solved the same problem. I've added a small template which will generate a separator at the beginning of every section with no title: *** Don't forget to set appropriate margins and text centering in your CSS style sheet and then simply wrap the text following the desired narrative break in the tag. Regards, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] Xsltproc with XInclude (Docbook 5)
Dne 2.5.2016 v 08:36 Dave Pawson napsal(a): > Edit: Emacs. > Validate: Jing > to PDF: One of the two commercial XSL-FO tools, Antenna House or > XEP > RTF: Steve? I can't find it (GIYF) > PS: Don't know. > HTML: Standard Docbook transforms. Apache FOP supports conversion from XSL-FO to PDF, PS, RTF and several other formats as well. But some XSL-FO features are not implemented in it yet. http://xmlgraphics.apache.org/fop/ Regards, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] embedding fonts in epub? (and docbook for publishers -- hurrah!)
Dne 30.11.2015 v 09:32 Robert Nagle napsal(a): > I'm at the final stages of making an epub file, and I was wondering > if there's an easy way to declare a font file for embedding. Simply add a template like this to your custom XSL file for epub: some-unique-id path/to/font.ttf application/x-font-ttf some-unique-id2 path/to/font2.otf application/x-font-ttf Attribute "id" can contain any string you like, it just needs to be unique within the manifest file. Attribute "href" is the path to the font file relative to the manifest file. Attribute "media-type" is MIME type of the font file. Make sure to set the value correctly if you use other font formats than TTF. If you'd like to see an example of Epub with embedded fonts: https://swarmwise.pirati.cz/swarmwise.epub Regards, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] Output order of elements contained in
Dne 28.10.2015 v 03:16 Karl O. Pinc napsal(a): > Elements contained in can come in any order within a > document but they are not output in the order input. Right now they > are always output in the order > . (At least from inside an element.) > > This fixed output order is not suitable in the general case. Better > would be to output in the order input, as with para. The template for in XSL stylesheet package indeed processes subelements in fixed order. To process them in document order instead, simply put the following template definition into your customized XSL file (assuming the usual namespace aliases for XSL and DocBook): Regards, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] Show off what you've done with Docbook
Dne 11.9.2015 v 18:56 Katie Welles napsal(a): > Have any of you PDF + HTML output with Docbook? If anyone has such a > project and will be willing to show it off, send some URLs! I've used Docbook to translate a book and generate print-quality PDF, HTML and EPUB. Download links including Docbook/XSL sources are in the small box on the right on the official project website (in Czech): http://swarmwise.pirati.cz/ Regrads, Martin Doucha signature.asc Description: OpenPGP digital signature
Re: [docbook-apps] Solution: Page numbers not aligned in TOC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 9.4.2015 v 13:44 Kallauch, Benjamin (EEIN) napsal(a): Dear group! I noticed a fuzzy looking TOC some time ago with my FO-results from FOP 1.1 and DocBook-XSL 1.78.1. The page numbers seemed to be misaligned slightly. They ought to be aligned on the right side, but they were not. The reason for that lies in the toc.line named template in fo/autotoc.xsl. Between the dotted line there is a leading and trailing space: xsl:text /xsl:text. At least this causes FOP (maybe in combination with only some font types and sizes) to render misaligned page numbers. It's a bug in FOP. I've reported it some time ago and made a patch for SVN version of FOP. You can find the specific conditions which trigger the bug in my bugreport: https://issues.apache.org/jira/browse/FOP-2438 Regards, Martin Doucha -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBAgAGBQJVJqVMAAoJEETC23Hm5VDd4swH/1RxBRTUKTJo/K7iimHxyYzH zKTwuUE7LWQyTonB2BZBDdJJpd135pKO6ggZ9kmvl8opRrh6rRvWoBfNTgaMxfHe VRFDk0m67zP6AD/jx2TUht6ZfWOK8wCScWPYryFoWG0ppaOJOgqjqPujS/jMRMWO 2QmaDuuKhU0NZIYlM1poYJ8f/rABWyMkRjKY5oUpvjXhekKnkUXpbE+r2wGFHebh Pf/EpCF93JDlt4MOvonoSzzrz4rve0pjK7NJMkG7l+xXXY1l0dah+VOby403meFW J7jWmZ3Lt0w+SQBHrRe9yzeBuYl0N378q8hIIglEZYECjucYGrJZy+dd7rGAhhU= =9cd+ -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Using custom fonts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 11.3.2015 v 17:39 Alan Oehler napsal(a): Any other ideas about what might be wrong here? I've Googled a bunch and I find some places where people had trouble with HTML output not being italic or bold when expected, but pretty much reached a dead end on fop PDF output. Let's check if FOP can really see the fonts you need. Copy your /usr/bin/fop somewhere and open it with a text editor. On Gentoo, it looks like this: #!/bin/bash gjl_package=fop gjl_main=org.apache.fop.cli.Main source /usr/share/java-config-2/launcher/launcher.bash gjl_main is the name of entry point class: org.apache.fop.cli.Main Whatever your script looks like, search for that string (without quotation marks) and change it to this: org.apache.fop.tools.fontlist.FontListMain Now run the modified launcher script like this: ./fop -c your/config/file.xml fontlist.pdf The output file (fontlist.pdf) will contain samples of all fonts known to FOP, one font per page. -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBAgAGBQJVAIRVAAoJEETC23Hm5VDdyjcIAJWMGGeMKubiC2NfMVrtZi2M pECGePSgYHS3fc6VPrvfKr7HRZs+iG4+Y+ylTlY8iOsWjooJ+Ov+RPVPBp6VlxBM 5RtISHZWjpk87nxjRsAaUDoYp88rrqp0/Xolv52lEfl8ldqYh+XtbQmLJGF5ktxU Cn9YYssVAJR6nJudgcYyEpW6uWNZUXqJPPC1aWdeeJi16aZ4HVBAlLY6YsWsPQkh f/92Ovm6Mq/Gx+XUE3/gtIHJ+OsmJApr0vZZhua+73BVLZqEiV7c/HakITRg4shZ ZyPFmwypBvjHR5yJIlIj84mgVbMTlmPY3hrXDM8nHvgCUqz2P0RpLeN6hA3A2dY= =Lpim -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Problem customizing appendix title (for PDF)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 8.3.2015 v 22:29 Erik Leunissen napsal(a): Below, you find a minimal docbook xml source. Also a minimal docbook xsl file, analogous to the above customization in English, which I applied using xsltproc. Finally, I used fop to generate the final PDF (which seems to me irrelevant to the issue). I fail to produce output that has *any* text prepended to the appendix's number (i.e. even regardless the Dutch language). Does anybody see what I'm doing wrong? Put the l:i18n section into a separate XML file (e.g. l10n-data.xml) and link to it using the local.l10n.xml parameter like this: xsl:param name=local.l10n.xml select=document('l10n-data.xml')/ -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBAgAGBQJU/MINAAoJEETC23Hm5VDdLXIIAKgWlX0GA5/9leh0pNLnWuUo zA+zHatwuuikmSYzQvJJ09/TT7dwTSiNwz1UqXSiifBP+3bK4ba+H1ZmMpUaSf25 pxCHoDq3xuLe1vOyAXsyp3Fd5zabdK0mu97Z2slqwmkvbVDyPAObDn0CkXaVbZsy salwSyRMZNgILblZ6beQ8aDEonKOXuy/+aHUI+nSbdvqfaTMxWDLdxv9FYsJDq0E fnBy4j5499zud6/y/pZ6v5W5oNc8T5eq0/4i64E9MSHq4fAMhIAun09eaTp+Lnv7 jl+BebEq1Daw8dxVlBeAd+j/2OocaszP6P/M93pnJ+LCtY1Ag2+jZuKoFDNovKs= =JFdG -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Page Numbers of chapters with parts left indented
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 26.1.2015 v 13:04 Peter Fleck napsal(a): Hi all, I have been using the docbook-xsl-ns-1.78.1 with a few customizations with no problems. However I have made my first PDF with part's rather than just chapter's. In the outputted TOC the top level page numbers (parts and preface) are in line but the chapter page numbers that are under a part are a tiny fraction left. Its far enough to notice but not far enough to show a distinction in the levels. Is there somewhere that I need to tweak this to make sure they are all in a line? I haven't customized the default TOC settings that I know of. My crystal ball says that you've generated that PDF with FOP and titles of your parts/chapters contain non-breaking spaces. That's a bug in FOP. You can either remove the non-breaking spaces or get development version of FOP and apply the patch from this bugreport: https://issues.apache.org/jira/browse/FOP-2438 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBAgAGBQJUxmpyAAoJEETC23Hm5VDdMDsH/i4uCB5QTIzwsPJZB8YcdpUh taJMo+LzC5/cKg4qUC9Qo5cONYtndb3ijyBPrroqx/kno+8bR8HY2KfL97rlNA7b QJcjeUNkkSazUfaA1S3/JqzDHJ4h+da34K4ZbiejlqFU92eKUUrOWyPKemSQwFwA gpcw1u8HJIXa+vJ7zsksojKQAA1mCAm+vxgFnwPjrWgWe8AnNHhWwcjcVpSm4flz k6nG2Mb3sPHklszQbXEFPTldAU74s0yXBryn9ZiIRRArcezrdvTnkwVpa8D/zBcx ZwkMLe3V6OdHLDGAg4mnTqvwr37wxfdTWaW6zT02D7cmidrH82ZxAezRJxJoJcs= =IwZm -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Epub chunking customization
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dne 26.1.2015 v 17:59 Bob Stayton napsal(a): Hi Martin, I suspect this is an issue of keeping import precedence straight, a process complicated by the fact that epub3 imports stylesheet files. Try this description of customizing epub3 and let me know if you have better results. I've copied the two example files verbatim and added my custom chunk template to custom-epub3-chunk.xsl (along with those three param entries to force the ToC chunk where I want it) right before /xsl:stylesheet. Result: same test messages and same I/O errors as before. That doesn't surprise me in the slightest, considering that custom-epub3-elements.xsl imports the exact same files in the exact same way and order as the catalog file http://docbook.sourceforge.net/release/xsl-ns/current/epub3/docbook.xsl which has been referenced at the same place in the XSL file from my original question. Regards, Martin Doucha -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBAgAGBQJUxqjkAAoJEETC23Hm5VDdv8EH/01v2WueMl3sWSLR8q0TW9H4 aV6UKX+l/rKSXLTF1P8ucLfDP20QT0JX0ZrLUF3t26HLRyGqsELdQ9kZTFnS2dd8 Qd4TN7BoZGxYZ/wbyciFiFsBKx22rbiVwlh1B/ptJmD3mnOZVLbVvKPsDZpd5x58 FOipvohl97l2U6EEtvR5QgJPi+Efnx7MPkg5IxZgN/AsOIyvD1PEJXdeXtyFK43n T5rdDwdrzQTexaV9OzqgqG8tdvSQfX64qFIzGwr2GHDuZVwn4sMqGWPIc0XkGke+ Lebkk7fXkhY1ltK6wROZK7N75fVZokKZWyOHMMzBGqZkNV/VM9UYR363g2oWJJI= =ciQJ -END PGP SIGNATURE- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] Epub chunking customization
? Regards, Martin Doucha - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org