From pkovar at redhat.com Thu Oct 2 13:48:03 2014 From: pkovar at redhat.com (Petr Kovar) Date: Thu, 2 Oct 2014 15:48:03 +0200 Subject: [publican-list] Including common content in custom brand Message-ID: <20141002154803.6d4c37ffe208e8aec25be00f@redhat.com> Hi, I'm trying to integrate a Publican book with an existing (Django-based) website [1] and was wondering if there is a way to modify my own Publican brand (or templates) so that I could include parts of the website common content such as footer or header in the html(-single) output generated by Publican. >From what I can gather from skimming through the Publican User Guide, it looks like I can only customize the brand's CSS but not really inject my own HTML. Thanks, pk [1] https://www.softwarecollections.org/en/ From jfearn at redhat.com Thu Oct 2 22:56:06 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Fri, 03 Oct 2014 08:56:06 +1000 Subject: [publican-list] Including common content in custom brand In-Reply-To: <20141002154803.6d4c37ffe208e8aec25be00f@redhat.com> References: <20141002154803.6d4c37ffe208e8aec25be00f@redhat.com> Message-ID: <542DD806.1000904@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/02/2014 11:48 PM, Petr Kovar wrote: > Hi, > > I'm trying to integrate a Publican book with an existing (Django-based) website [1] and was wondering if there is a way to modify my own Publican brand (or templates) so that I could include parts of the website > common content such as footer or header in the html(-single) output generated by Publican. > >> From what I can gather from skimming through the Publican User Guide, it > looks like I can only customize the brand's CSS but not really inject my own HTML. Hi Petr, you can do this in your brand. If you want a site wide footer you can edit the site footer [1]. For different footers per page you need to override the XSL. Basically you add xsl/html-single.xsl to your brand, import the publican html-single xsl in it, and then override one of the footer template. Here is an example of a brand that just changes the toc content for html-single [2]. For the footer content you can probably get away with overriding user.footer.content. You can look at the one in /usr/share/publican/xsl/xhtml-common.xsl for an idea of how it works. For the header you can look at overriding user.header.content, or if you want to really change the page layout then look at overriding '', checkout the version in /usr/share/publican/xsl/html-single.xsl to see how it works. Cheers, Jeff. 1: https://jfearn.fedorapeople.org/en-US/Publican/4.2/html/Users_Guide/Auto_Docs_Configs-Site_option.html#footer 2: https://git.fedorahosted.org/cgit/publican-fedora.git/tree/xsl/html-single.xsl - -- Jeff Fearn Senior Software Engineer GSS Subscriber Platform Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJULdgGAAoJELs3R4zxGZvKYWEH/i7BCyMLM7iAqy6+AANDgLsL oxhBkSJvJt9T7kE71kNVD/Gr281rnqEMFDDwjtI/bC1cc1d4jVUmfwsXQ8xEbiOY dixASKb6vRqsJ9V4upK+XRmXZWk7BIRxKJdSsJ3yx5FU1ud6ExNRSEzJ00CZSMij GQL+lcKGfudP4w+PAwBu5zqjkoN+ZkQa/+nOzmF1X4yvTeJndSLTDIVc8c57Eyr+ dsl3xXFYZIYKFiQdQ0/dInTBOeeGo1txsy8pSzYbqUsJcl69YYNcNdgvaLkbiCDg lvOw6zKk7omwK0NxSwOaBrCfe8W06SFZ7t4ieexxw+JYq//QYK7v+/wpy8j8n/M= =CrEl -----END PGP SIGNATURE----- From jfearn at redhat.com Tue Oct 7 03:17:56 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Tue, 07 Oct 2014 13:17:56 +1000 Subject: [publican-list] Publican 4.2.3 hot fix released Message-ID: <54335B64.3010706@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Publican 4.2.3 has been released with the following changes: - - Fix DocBook4 entity text, BZ #1143060 - - Remove extra white space from non-verbatim msgid's. BZ #1143792 - - Fix PDF build using FOP fails with "No numberLines function available." BZ #1143852 - - Add allow_network option. Defaults OFF. BZ #1144949 - - Add hacks to work around BZ #1144220 Sources in the usual place. Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer GSS Subscriber Platform Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUM1tkAAoJELs3R4zxGZvKM2sH+wcXr825WBWCzKd5ljbw1iIh vt3whzI/CxJbhBKU7jgFU/blwEXn+BzmevHCu46mVoBmwKvDn+jSr77wDV0vNeub o2tUusq8mppnyCdoiVIs31XnJpSDpGFNM/wPZBZxYEL7HEjN4qHkNBfGaSFdcG4k o+JXlBD50lMgUyZ9Cd5AuUETgssq14udRUNbkdR/VL+L5D+3VHwyFRUvQpBV4E5s n8G5xSwzqheBWfK1fBgadtXIUzFxfVSMLuk7cdumNoKjWF4C5DO2WKSvJruLmgM+ QIkrYwR8VPntwwTnvNnka+SDDxYMVAjY7ioz3qPDbI9DukOSIIrEyPcWzzSoQWE= =DDZP -----END PGP SIGNATURE----- From jfearn at redhat.com Tue Oct 7 03:24:40 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Tue, 07 Oct 2014 13:24:40 +1000 Subject: [publican-list] Publican 4.2.3 hot fix released In-Reply-To: <54335B64.3010706@redhat.com> References: <54335B64.3010706@redhat.com> Message-ID: <54335CF8.1030202@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/07/2014 01:17 PM, Jeff Fearn wrote: > Publican 4.2.3 has been released with the following changes: > > - Fix DocBook4 entity text, BZ #1143060 - Remove extra white space from non-verbatim msgid's. BZ #1143792 - Fix PDF build using FOP fails with "No numberLines function available." BZ #1143852 - Add allow_network > option. Defaults OFF. BZ #1144949 - Add hacks to work around BZ #1144220 Unfortunately brief message on that last one :( - - Add hacks publican.spec to work around BZ #1144220 No code hacks! :) Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer GSS Subscriber Platform Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUM1z4AAoJELs3R4zxGZvKFBoH/17xLoWtAt9GNPfPVPAyVoxc fAcDMM2RWKgNkBZiyBZYA9fnFc8vGBMG/WRzaZgTfEIzKl/Ex6YtIp54hEocHVaS K9sbg6uzxXn47m3pEqXh9HNEYu4v+O43YhjyAj0BbFI1eo0yj9jU5u9UQ3uz6e9T qohATkG6AJAJ1cNVC/H6sgipGM9UoEH3vWAlO03OVS4gMZwAXqlqr1bOo0Wd7bL/ 1c8iYWkQcBYtgc/4rx0bEEfkU2R3ghhyF8Yllr675aUdL4eTYQ9X1SCK6IH0cqg/ 1CQ1rQB67ptog3+6BkajMSnSQJav5ADg9CIlm6gJAkyQ2ma40it9AxuhG4gMg08= =lWT3 -----END PGP SIGNATURE----- From jfearn at redhat.com Fri Oct 10 08:27:36 2014 From: jfearn at redhat.com (Jeffrey Fearn) Date: Fri, 10 Oct 2014 04:27:36 -0400 (EDT) Subject: [publican-list] Converting from DocBook 4 to DocBook 5 with Publican In-Reply-To: <1874227737.61334534.1412928289113.JavaMail.zimbra@redhat.com> Message-ID: <1686677794.61342532.1412929656816.JavaMail.zimbra@redhat.com> Have you done it yet? Did you think it was hard? It's not! https://fedorahosted.org/publican/wiki/DocBook4ToDocBook5 Cheers, Jeff. From jfearn at redhat.com Tue Oct 14 06:15:45 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Tue, 14 Oct 2014 16:15:45 +1000 Subject: [publican-list] Publican 4.2.4 hot fix released Message-ID: <543CBF91.1060507@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 More love for translators. - - Allow External_Links.xml to be translated. BZ #1150386 - - Change ja-JP person-name style. BZ #1150866 Sources in the normal place. Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer GSS Subscriber Platform Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUPL+RAAoJELs3R4zxGZvKSFMH/1E24JR4M8beXtcsZJp0DA9E LlFbwXFvfyVW2jrnhyb4Ejtq4ztylhqmYqz9xdezD7L51usEjMei1pKgKnTyZYRo s3gswIfFJZdlLXgjq3rByFjJgcKJrYpiubUjmjH3pDND3Pq9sGW7W/sRs9Dq4cB7 lT17kGbkar7p7068BECl3OhQCfM2gjl9jT4XsC2LwFpkd56lqxczrJE1l+FKtIyt uWi+UxcpiliX/Ev97KMSO829vcYDcpInYn2jk/t50f3LbugIlQ0vTMmbJHN6Z8lh DXPvFUaUgg7tKrCLcFizrjn5hc8s+VOU68LV9SiboL9yLQZdtJVuw7abexnHYhk= =fuPd -----END PGP SIGNATURE----- From jfearn at redhat.com Thu Oct 23 22:08:19 2014 From: jfearn at redhat.com (Jeff Fearn) Date: Fri, 24 Oct 2014 08:08:19 +1000 Subject: [publican-list] Publican 4.2.6 released Message-ID: <54497C53.1060408@redhat.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes 4.2.6 ... I missed sending the email about 4.2.5 :-/ Here are the changes for both of these: 4.2.6 Tue Oct 21 2014 - - Fix External_Links translation not merging. BZ #1153911 4.2.5 Wed Oct 15 2014 - - Fix DocBook4 epub failing for ja-JP. BZ #1152780 Cheers, Jeff. - -- Jeff Fearn Senior Software Engineer Hosted & Shared Services Red Hat Pty Ltd -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUSXxTAAoJELs3R4zxGZvK72QH/jgouHc2tWHrix+lZZFdM4xy VV+rebReRSNJADCdO8P6QEtdNQ3qCJkXn2ivUBgVsTukwzlDhsi5v0nrhbNVMzlu QcUk3P/RSbfogl5TMFs5pHMikkFZfZLWbAH8pUaUhS5UsbLCT7fAHvXpz0E/z9oU fRODowK9/bmPV0AHF6GsRure5qLayvRJ9t326rGt/kboBQSXZDnaai35I9HxwhOw lqkEa8/awe+cxgnaly4antLjTKpGp0o0n/VbHY7+kIw/oJZQp4eAhB6O59VdUvJy GwEW2I/kHwKeGRkU6RmzxEAzzVDc42yLzJ1BH0F3PRBYaskofbBcAoLfzALBUlA= =Nwww -----END PGP SIGNATURE-----