> Hi Stuart,
> The article lang attribute in the XML file, yes. Commercial
> localization vendors, tools and workflows require XML files, so that
> is the reason we don't send them AsciiDoc source.
> So the bottom line is, how do I set a specific lang attribute on a
> specific section or para already in the Asciidoc source?
You could set the en by default in the docbook.conf headers (this was the
previous behavior) e.g.
Then undefine the default lang attribute either:
- on command-line with -a lang!
- preceeding header in document with :lang!:
- in $HOME/.asciidoc/asciidoc.conf with lang!
The problem now is that you'll get the error: 'language attribute (lang) is not
defined'. There needs to be an additional change to asciidoc.py for this to work.
Actually it turned out to be quite tricky to restore the old default behavior
and it uncovered a subtle lang attribute precedent bug. I've committed a
changeset that should work:
Give it a whirl.