On 2013-03-05, LPP wrote:
> Hello everyboy!
> When I use sphix I come across a question on raw. The
> Environment is :
> Docutils 0.10
> Then I edit the ~/.docutils file add this :
> *[restructuredtext parser]*
> *raw_enabled: 1*
Looks OK (if the * around are just an artifact of some non-standard mailer
or newsreader).
> After install I write a rst.just like this:
> *.. raw:: html*
> * <a href="aa">a</a>*
> the programe report an error:
... *
> */home/lipp/test/source/getting_started.rst:186: ERROR: Content block
> expected for the "raw" directive; none found.*
You need a blank line between directive start and content block. Try ::
.. raw:: html
<a href="aa">a</a>
See
http://docutils.sourceforge.net/docs/ref/rst/directives.html#raw-data-pass-through
for details.
> Another question:
> In my html result, there will be some script like this:
> *
> *
> *<img src="../map/ko00051.png" usemap="#mapdata" border="0" />*
> *<map name="mapdata">*
> *<area shape=circle coords=233,103,4
> href="http://www.kegg.com/dbget-bin/www_bget?C00247" title="C00247
> (L-Sorbose)" />*
> *</map >*
> *
> *
> But the usemap attribure didn't in .. img: and how to add it ?
> could the <area> tag could be implemented by sphinx?
As the "usemap" for an image is HTML specific and not supported by other
output formats, it is not implemented in reStructuredText.
There has been some discussion about this some years ago but no change of
policy.
I recommend using raw HTML.
Günter
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.