ISBN URL?

Matej Cepl <[email protected]>
Newsgroups gmane.text.docutils.user
Organization <><
Message-ID <[email protected]>
Hi,

I still cannot shake off a bad habit of reading pieces of dead
wood, so I refer in my writing quite often to ISBNs. So, normally
it looks like this:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Phasellus at tellus sollicitudin, pellentesque orci a, ornare
    risus. Vivamus et quam a felis aliquet sollicitudin quis ac
    orci “`Four loves`_”.  Vestibulum pretium dui dolor, ac
    ullamcorper sapien suscipit sed.

    .. _`Four loves`:
        https://en.wikipedia.org/wiki/Special:BookSources?isbn=0156329301

I would prefer to be able either to use the reference like

    .. _`Four loves`:
        isbn:0156329301

and docutils would generate proper URL, or to go all the way to
(how to make docutils role with two parameters?):

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Phasellus at tellus sollicitudin, pellentesque orci a, ornare
    risus. Vivamus et quam a felis aliquet sollicitudin quis ac
    orci isbn::``“Four loves”``,``0156329301``.  Vestibulum
    pretium dui dolor, ac ullamcorper sapien suscipit sed.

Do you know about something like this already made? If I am
reading correctly the documentation_, does it mean that I have to
write some Python? And if yes (I am a Python programmer, so it is
not that big obstacle), could I somehow package it as
a standalone Python package uploadable to PyPI? Are there any
such packages already available on PyPI? I cannot find any.

Thanks for any replies,

Matěj

.. _documentation:
    http://docutils.sourceforge.net/docs/howto/rst-roles.html

-- 
http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
Reality is merely an illusion, albeit a very persistent one.
      -- Albert Einstein

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.