On 29 November 2010 02:42, Yves-Alexis Perez <[email protected]> wrote: > On dim., 2010-11-14 at 14:25 +1300, Stuart Rackham wrote: >> This release was intended primarily to fix regressions introduced by >> 8.6.2, but the incubation period was longer than expected and it now >> also includes a number of enhancements an few other bug fixes. >> >> Read the CHANGELOG (http://www.methods.co.nz/asciidoc/CHANGELOG.html) >> for a full list of all additions, changes and bug fixes. > > Hi, > > I've just tried 8.6.3, upgrading from 8.5.2 and it seems that my custom > ~/.asciidoc/docbook.conf is not completely used. > > I've set a custom header to add local tags to the XML file so I can > process them using a custom stylesheet in dblatex. > > It looks like: > > ---- > … > #------------------------- > # article document type > #------------------------- > ifdef::doctype-article[] > > [header] > template::[header-declarations] > > <article lang="{lang=fr}"> > <articleinfo> > template::[docinfo] > </articleinfo> > > <asciidoc> > <auteur>{auteur}</auteur> > <destinataire>{destinataire}</destinataire> > <dest>{dest}</dest> > <organisme>{organisme}</organisme> > <org>{org}</org> > <copie>{copie}</copie> > <version>{version}</version> > <numero>{numero}</numero> > <type>{type}</type> > <reference>{reference}</reference> > <pj>{pj}</pj> > </asciidoc> > > [footer] > </article> > … > ---- > > so I'm basically adding tags into the asciidoc document (like :dest: > foo) and they're turned into latex commands by dblatex which I then use > in the latex style. > > It was working fine under 8.5.2, but now isn't. It's just gone from the > xml file, while other modifications stay (like defaulting to lang=fr > instead of lang=en) so I guess it might be stripped by some kind of > verifier which sees that <asciidoc> is not a valid docbook tag or > something.
No, the problem is that most of the custom asciidoc.conf is no longer read until after the header IIUC so that the input file can set things that control it. But that means that your additional tags won't be defined until its too late to use them. But attributes are read from the asciidoc.conf before the header, so you could try defining the extra content in an attribute which you explicitly use in the header. Cheers Lex > > Any idea to get the old behavior back? > > Regards, > -- > Yves-Alexis > > -- > 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. > > -- 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.
