Hi folks,

I'm currently building documentation framework based on asciidoc as my
hobby project. Basically it uses asciidoc as backend to translate text
documentation files to html, pdf etc..

For building pdf I used asciidoc -> docbook way which worked for me
very well in 8.5.3. To be independent from installed asciidoc I use my
own version of configuration files, but problem is not related to
config files per se.

Sometimes between 8.5.3 and 8.6.4 support for -e in asciidoc.py was
broken. Currently I'm not able to produce correct docbook document if
I use multiple config files.  See bellow

## Command line to build book.txt
./asciidoc-8.6.4/asciidoc.py -f asciidoc-8.6.4/asciidoc.conf -f
asciidoc-8.6.4/docbook45.conf -f asciidoc-8.6.4/lang-en.conf -f
asciidoc-8.6.4/filters/code/code-filter.conf -f asciidoc-8.6.4/filters/
source/source-highlight-filter.conf -f asciidoc-8.6.4/filters/graphviz/
graphviz-filter.conf -d book -b docbook -o b.xml -ev ./book.txt
asciidoc: reading: asciidoc-8.6.4/asciidoc.conf
asciidoc: reading: asciidoc-8.6.4/docbook45.conf
asciidoc: reading: asciidoc-8.6.4/lang-en.conf
asciidoc: reading: asciidoc-8.6.4/filters/code/code-filter.conf
asciidoc: reading: asciidoc-8.6.4/filters/source/source-highlight-
filter.conf
asciidoc: reading: asciidoc-8.6.4/filters/graphviz/graphviz-
filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/book.txt
asciidoc: WARNING: book.txt: line 5: missing section: [sect1]
asciidoc: WARNING: book.txt: line 5: missing section: [sect1]
asciidoc: WARNING: book.txt: line 5: missing section: [sect1]
asciidoc: WARNING: book.txt: line 5: missing section: [sect1]
asciidoc: writing: /home/haad/Desktop/misc/asciidoc/b.xml
asciidoc: WARNING: book.txt: line 5: missing section: [header]
asciidoc: WARNING: book.txt: line 28: missing section: [sect2]
asciidoc: WARNING: book.txt: line 33: missing section: [sect1]
asciidoc: WARNING: book.txt: line 71: missing section: [sect2]
asciidoc: WARNING: book.txt: line 75: missing section: [sect3]
asciidoc: WARNING: book.txt: line 79: missing section: [sect4]
asciidoc: WARNING: book.txt: line 88: missing section: [sect1]
asciidoc: WARNING: book.txt: line 96: missing section: [sect1]
asciidoc: WARNING: book.txt: line 108: missing section: [sect2]
asciidoc: WARNING: book.txt: line 156: missing section: [footer]

## First couple of lines in book.xml 'template::' is definitely wrong.
template::[sect1]
<simpara>Optional dedication.</simpara>
<simpara>This document is an AsciiDoc book skeleton containing briefly
annotated example elements plus a couple of example index entries and
footnotes.</simpara>
<simpara>Books are normally used to generate DocBook markup and the
titles of
the preface, appendix, bibliography, glossary and index sections are
significant (<emphasis>specialsections</emphasis>).</simpara>
<preface id="_example_preface">

Build without -e works correctly, if I dump whole configuration to a
file (-c) and then use -ef to load it, build works fine.

## Works fine

### Single config file
./asciidoc-8.6.4/asciidoc.py -o a.xml -f asciidoc-8.6.4/asciidoc.conf -
f asciidoc-8.6.4/docbook45.conf -f asciidoc-8.6.4/lang-en.conf -f
asciidoc-8.6.4/filters/code/code-filter.conf -f asciidoc-8.6.4/filters/
source/source-highlight-filter.conf -f asciidoc-8.6.4/filters/graphviz/
graphviz-filter.conf -d book -b docbook -cv ./book.txt >a.cnf
./asciidoc-8.6.4/asciidoc.py -f a.cnf -d book -b docbook -o c.xml -
ev ./book.txt
asciidoc: reading: a.cnf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/book.txt
asciidoc: writing: /home/haad/Desktop/misc/asciidoc/c.xml

### Multiple config files
haad@L3-CFY4D:~/Desktop/misc/asciidoc$ ./asciidoc-8.6.4/asciidoc.py -f
asciidoc-8.6.4/asciidoc.conf -f asciidoc-8.6.4/docbook45.conf -f
asciidoc-8.6.4/lang-en.conf -f asciidoc-8.6.4/filters/code/code-
filter.conf -f asciidoc-8.6.4/filters/source/source-highlight-
filter.conf -f asciidoc-8.6.4/filters/graphviz/graphviz-filter.conf -d
book -b docbook -o g.xml -v ./book.txt
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
asciidoc.conf
asciidoc: reading: asciidoc-8.6.4/asciidoc.conf
asciidoc: reading: asciidoc-8.6.4/docbook45.conf
asciidoc: reading: asciidoc-8.6.4/lang-en.conf
asciidoc: reading: asciidoc-8.6.4/filters/code/code-filter.conf
asciidoc: reading: asciidoc-8.6.4/filters/source/source-highlight-
filter.conf
asciidoc: reading: asciidoc-8.6.4/filters/graphviz/graphviz-
filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
asciidoc.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/book.txt
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
docbook45.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
filters/code/code-filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
filters/music/music-filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
filters/latex/latex-filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
filters/graphviz/graphviz-filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
filters/source/source-highlight-filter.conf
asciidoc: reading: /home/haad/Desktop/misc/asciidoc/asciidoc-8.6.4/
lang-en.conf
asciidoc: writing: /home/haad/Desktop/misc/asciidoc/g.xml

I was looking at asciidoc source code but, I have never really touched
python code so it was not working very well. My own gues is that
problem is maybe somewhere in [5570-5625]. There are 2 -e related
paragraphs and only one of them works for -e cases, too. If you have
any hints it would be great.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to