Matej Cepl
2016-07-01 20:11:15 UTC
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
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
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