On Mar 1, 11:59 am, Lex Trotman <[email protected]> wrote:
> On 1 March 2011 20:25, haad <[email protected]> wrote:
>
>
>
> > On Mar 1, 11:02 am, Lex Trotman <[email protected]> wrote:
> >> Ok, try putting -b and -d before all the -f options so that the
> >> backend and doctype are defined when they are loaded.
>
> > Same problem
>
> Oh well, worth a try.
>
> The problem is that the definitions of the missing sections are inside
> ifdef::doctype-book[] tests.  The change has nothing to do with -e,
> the change was to not define the doctype and backend until after the
> local config files and the header of the txt file have been parsed so
> that these attributes can be set by those sources without conflicting
> with command line options.
>
> What we need to do is figure out how to set them early enough.

Ok seems like reasonable description question is why, is this problem
visible only in when I use -e and otherwise it works.



>
>
>
>
>
>
>
>
> > haad@L3-CFY4D:~/Desktop/misc/asciidoc$ ./asciidoc-8.6.4/asciidoc.py -d
> > book -b docbook -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 -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]
>
> >> Cheers
> >> Lex
>
> >> On 1 March 2011 19:37, haad <[email protected]> wrote:
>
> >> > Hi,
>
> >> > On Mar 1, 2:24 am, Lex Trotman <[email protected]> wrote:
> >> >> On 28 February 2011 23:54, haad <[email protected]> wrote:
>
> >> >> > 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
>
> >> >> No it was fixed in 8.6.3
>
> >> >> > ## 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]
>
> >> >> Clearly you have some definitions missing in your conf files.
>
> >> > I used original configuration files in all my examples. There is no
> >> > difference there.
> >> > You can see this problem if you load all distribution conf. files with
> >> > -f parameters. And missing
> >> > parts are defined in docbook45.conf which was loaded.
>
> >> >> > ## 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
>
> >> >> The command above loads the standard conf files as well, which must
> >> >> fill in the definitions you are missing.
>
> >> > Standard conf files are same as mine.
>
> >> >> > ./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
>
> >> >> See all of these were also loaded, but were not loaded in your first 
> >> >> example
>
> >> > If you remove filters which doesn't have to do anything with this
> >> > build, then you
> >> > are left with files which were already loaded by hand and that means
> >> > that there
> >> > must be some bug/regression there.
>
> >> > --
> >> > 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...
>
> read more »

-- 
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