[publican-list] Publican 4 - brands problems

Jeff Fearn jfearn at redhat.com
Sun Feb 23 23:18:46 UTC 2014


On 02/04/2014 07:37 AM, Norman Dunbar wrote:
> Evening all,
> 
> I have created a default book as a test with the following:
> 
> $ publican create --type=book --name=Book_001 --langs=en-US
> 
> And built it as follows:
> 
> $ publican build --langs=en-US --formats=pdf
> 
> And all is well.
> 
> I then created a brand called jms:
> 
> $ publican create_brand --name=jms --lang=en-US
> 
> I added my images, updated the xml files etc, and published it:
> 
> $ publican build --formats=xml --langs-en-US --publish
> 
> And installed it:
> 
> $ sudo publican install_brand --path=/usr/share/publican/Common_Content
> 
> And everything was fine. I then changed the brand in the publican.cfg for my test book from
> 
> brand: common
> 
> to
> 
> brand: jms
> 
> 
> Now when I run the build command, I get this one line:
> 
> Failed to load brand overrides.cfg file at /usr/local/bin/publican line 797.

This is a known issue: https://bugzilla.redhat.com/show_bug.cgi?id=1037037

Workaround is to delete the empty conf file.


> And $?=255 immediately afterwards.
> 
> I can see overrides.cfg is present in the installed brand directory:
> 
> $ ll /usr/share/publican/Common_Content/jms/
> total 16
> -rw-r--r-- 1 root root  137 Feb  3 21:18 defaults.cfg
> drwxr-xr-x 4 root root 4096 Jan 28 19:14 en-US/
> -rw-r--r-- 1 root root   51 Feb  3 21:18 overrides.cfg
> -rw-r--r-- 1 root root  107 Feb  3 21:18 publican.cfg
> 
> It's all a bit strange! The file is present, but can't be found. Is there a way to turn on some form of debugging to show exactly what publican is doing and where it is looking for this file?
> 
> 
> My second problem, I love the html-desktop format when generating a book, article etc. It appears to have gone in some of the later versions of Publican. Is it coming back again at some point? It really is the nicest html output format.
> 
> When I try to build with that format, I get html-single instead, I can see it being substituted in the output from the build:
> 
> 
> $ publican build --langs=en-US --formats=html-desktop
> Setting up en-US
> ...
> Beginning work on en-US
> DTD Validation OK
>         Starting html-desktop
>         Using XML::LibXSLT on /usr/share/publican/xsl/html-single.xsl
>         Finished html-desktop
> 

This is correct, that XSL file takes a parameter to switch behaviour. Is the output broken?

Cheers, Jeff.


-- 
Jeff Fearn <jfearn at redhat.com>
Senior Software Engineer
Software Engineering & Development
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0




More information about the publican-list mailing list