I'm trying to create a dialog environment that I can use with my
legacy files which look like that:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In varius
convallis nibh ac rutrum. Pellentesque tortor mauris, sagittis ut
adipiscing et, pulvinar quis ante. Fusce suscipit justo et purus
posuere porta. Donec ut libero metus. Nam ultricies, sapien at ornare
dignissim, sapien neque molestie nulla, quis fringilla lectus nisi sit
amet quam.
.John Doe: Etiam in nunc nec risus
.Jane Doe (slowly): tristique vestibulum et condimentum urna
.Jane Doe: Nam tempor, nisi at imperdiet malesuada, elit enim ultrices
est.
Quis dictum tellus mauris eget leo. Quisque scelerisque, dui et
consequat tempus, nisl elit rhoncus purus, eget rutrum arcu enim quis
enim. Vivamus tincidunt, quam at scelerisque rhoncus, sem eros iaculis
quam, ut eleifend leo augue a ligula.
.John Doe: Fusce venenatis fermentum leo nec ultricies.
Donec aliquam tempor volutpat. Donec tincidunt, tellus ac imperdiet
placerat, mi sapien ornare justo, eget facilisis risus neque nec
tellus. Morbi quis leo mattis mauris rutrum laoreet id non est.
Vestibulum eros quam, commodo ac hendrerit ac, vehicula vel tellus.
Etiam nec purus vitae nulla auctor euismod et ut est. Vestibulum quis
purus sapien, sed cursus tellus."
In the result, the dot should be gone, the name of the person should
be bold, the description in italics: *John Doe* _(slowly):_
I created a filter which works perfectly when tested but doesn't play
well with asciidoc. I started with the code-filter and modified it.
The problem is the "-b {basebackend}". Without it, everything works
fine. My next idea was to use lists:
[listdef-dialog]
template::[listdef-glossary]
delimiter=^\.(?P<label>.+):\s(?P<text>.*)$
tags=horizontal
But I don't know how to style them and haven't found a way to keep the
lines separated. The example would end up as:
John Doe: Etiam in nunc nec risus
Jane Doe (slowly): tristique vestibulum et condimentum urna
Jane Doe: Nam tempor, nisi at imperdiet malesuada, elit enim ultrices
est.
Is there some kind of best practice?
--
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.