Hi Dave
On 23/12/11 06:37, David Rogers wrote:
I have two projects basically the same question, how to underline
text?
I have been using AsciiDoc to create html files at work for 100-200
page document. I am able get all of what I needed but one thing. How
do you get text underlined? I have tried many things and nothing.
Also I have a home project that has about 2000 articles (individual
php files) that I want to convert to AsciiDoc than to WordPress. I am
writing a Python script to do this. A major need is being able to
underline text, this is a must have. Can it be done using the
WordPress backend? And what is the proper syntax for underlining.
The xhtml11 backend can generate underline with the 'underline' role attribute
e.g. [underline]#underlined text#
This won't work out of the box with the wordpress bckend because it doesn't use
CSS, instead you would need to to define a quotes syntax for underlining e.g.
putting this in the document header will work:
:quotes._: underline
:tags.underline: <u>|</u>
Now you can underline with e.g. _some underlined text_
Here I've overridden the alternate emphasis syntax, though you can define your
own unique quotes. There is no standard AsciiDoc syntax for underlines because
DocBook has no standard mechanism for underlines (one of AsciiDoc's goals is to
support DocBook).
If you want to apply it to all files processed using the wordpress backend you
could create a custom ~/.asciidoc/wordpress.conf file and put this in it:
[quotes]
_=underline
[tags]
underline=<u>|</u>
Cheers, Stuart
Thank you for your help
Dave Rogers
--
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.