On 11/06/12 17:07, Lex Trotman wrote:
On 11 June 2012 14:35, Stuart Rackham<[email protected]>  wrote:


On 11/06/12 15:24, Lex Trotman wrote:

Hi Stuart,

Is there any particular reason why the configuration section
attributes can only replace existing sections not define new ones? See
asciidoc.py:1874

eg

:my-macro-inlinemacro.: whatever


No I don't think so. The ability to substitute entire sections was an
after-thought, the original motivation was to be able to modify section
entries without having to go to the trouble of a conf file. Do you have a
use-case for relaxing things?

Defining little macros as you say without the conf file, eg

:macros.(?su)(?<!\w)[\\]?(?P<name>ix):(?P<target>\S*?)\[(?P<attrlist>.*?)\]:
:ix-inlinemacro.:<!-- ix {target}<{attrlist}>  -->

In this case to save info in a (xml) comment for postprocessing.

The particular case is for multiple indexes in the document, to be
generated as a list of links by a postprocessor because I need an
alphabetical list of types, an alphabetical list of functions and a
two level index of types on level 1 and functions that operate on them
on level 2.

I don't see any other way of doing it, especially one that can work
for all xml outputs, xhtml, docbook and odf.

Ok, this should do the trick:
https://code.google.com/p/asciidoc/source/detail?r=c715f6c964817f8258e81741742e33c84de099d3

Cheers, Stuart


Cheers
Lex




Cheers
Lex


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

Reply via email to