Registered by sanya sandor

With the help of the imagemap block processor we can add an html-imagemap to the generated html which is defined in an AsciiDoc document.
See e.g. on : https://www.w3schools.com/html/html_images_imagemap.asp

The areas of the image can point to bookmarks of the asciidoc document helping navigation inside the document.
In case of pdf generator only the image is included by the moment.

AsciiDoc example:

Computer
[imagemap,target="images/workplace.jpg", highlight="yellow,red"]
title="Book" bookmark="bookmark_computer" shape="rect" coords="34,44,270,350"
title="Coffee" bookmark="bookmark_cofee" shape="circle" coords="337,300,44"
title="Phone" bookmark="bookmark_phone" coords="290,172,333,250" shape="rect"
title="Notes" bookmark="bookmark_notes" coords="1,288 35,218 1,207" shape="poly"

Conversion:
> asciidoctor -r ./imagemap-block-processor.rb example.adoc

Project information

Maintainer:
sanya sandor
Driver:
sanya sandor
Licence:
MIT / X / Expat Licence

RDF metadata

View full history Series and milestones

trunk series is the current focus of development.

All code Code

Version control system:
Git
Programming languages:
ruby

Get Involved

  • warning
    Report a bug
  • warning
    Ask a question
  • warning
    Help translate

Downloads

imagemap-block-processor does not have any download files registered with Launchpad.