[publican-list] Bug to do with spaces in document name in Windows

Misty misty.sj at gmail.com
Sun Jan 31 23:55:41 UTC 2010


I touched on this bug in an earlier email, but I have narrowed the issue
down. Here is the result of creating and building books with different
names, on Publican 1.4 in Windows. No files were renamed or modified from
the original ones created when the book was created.

C:\Users\misty\docbook>publican create --name="Configuration Guide"
        Processing file en-US/Author_Group.xml
        Processing file en-US/Book_Info.xml
        Processing file en-US/Chapter.xml
        *Processing file en-US/Configuration Guide.xml*
        Processing file en-US/Preface.xml
        Processing file en-US/Revision_History.xml

C:\Users\misty\docbook\Configuration Guide>publican build --formats=html
--lang=
en-US
Setting up en-US
        Processing file tmp/en-US/xml/Common_Content/Conventions.xml
        Processing file tmp/en-US/xml/Common_Content/Feedback.xml
        Processing file tmp/en-US/xml/Common_Content/Legal_Notice.xml
        Processing file tmp/en-US/xml_tmp/Author_Group.xml
        Processing file tmp/en-US/xml_tmp/Book_Info.xml
        Processing file tmp/en-US/xml_tmp/Chapter.xml
        Processing file tmp/en-US/xml_tmp/Configuration Guide.xml
        Processing file tmp/en-US/xml_tmp/Preface.xml
        Processing file tmp/en-US/xml_tmp/Revision_History.xml
Beginning work on en-US
Cannot locate main XML file: 'Configuration_Guide.xml' at script/publican
line 4
77

The problem seems to be that the main XML file for the book does not get
renamed with underscores. I have bolded the output that is relevant.

Originally, I had thought the problem was dots (.) in the filename. However,
Publican in Windows handles dots just fine.

C:\Users\misty\docbook>publican create --name="Configuration.Guide"
        Processing file en-US/Author_Group.xml
        Processing file en-US/Book_Info.xml
        Processing file en-US/Chapter.xml
        Processing file en-US/Configuration.Guide.xml
        Processing file en-US/Preface.xml
        Processing file en-US/Revision_History.xml

C:\Users\misty\docbook>cd Configuration.Guide

C:\Users\misty\docbook\Configuration.Guide>publican build --formats=html
--lang=
en-US
Setting up en-US
        Processing file tmp/en-US/xml/Common_Content/Conventions.xml
        Processing file tmp/en-US/xml/Common_Content/Feedback.xml
        Processing file tmp/en-US/xml/Common_Content/Legal_Notice.xml
        Processing file tmp/en-US/xml_tmp/Author_Group.xml
        Processing file tmp/en-US/xml_tmp/Book_Info.xml
        Processing file tmp/en-US/xml_tmp/Chapter.xml
        Processing file tmp/en-US/xml_tmp/Configuration.Guide.xml
        Processing file tmp/en-US/xml_tmp/Preface.xml
        Processing file tmp/en-US/xml_tmp/Revision_History.xml
Beginning work on en-US
        Starting html
        Using XML::LibXSLT on C:/Program Files/Publican/xsl/html.xsl
Writing pr01s02.html for section
Writing pref-Configuration.Guide-Preface.html for
preface(pref-Configuration.Gui
de-Preface)
Writing sect-Configuration.Guide-Test_Chapter-Test_Section_2.html for
section(se
ct-Configuration.Guide-Test_Chapter-Test_Section_2)
Writing chap-Configuration.Guide-Test_Chapter.html for
chapter(chap-Configuratio
n.Guide-Test_Chapter)
Writing appe-Configuration.Guide-Revision_History.html for
appendix(appe-Configu
ration.Guide-Revision_History)
Writing ix01.html for index
Writing index.html for book
        Finished html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/publican-list/attachments/20100201/88d0f069/attachment.htm>


More information about the publican-list mailing list