Tool to link citations in a piece of text

Organisational work, teaching, Sunday school syllabus, charitable work, outreach, sharing of resources, artwork, etc.
Post Reply
BKh
Posts: 604
Joined: Mon May 30, 2011 12:43 am

Tool to link citations in a piece of text

Post by BKh »

New tool to add links for sutta citations in a piece of text:

https://linkup.readingfaithfully.org/

There are three output formats:
  • Markdown, good for many note taking apps as well as Discourse based forums
  • PHPbb, for creating the links that dhammawheel.com etc. uses
  • HTML for everything else
Citations have to be correct for the links to work. Citations for ranges of suttas won't work, but the first valid citation will be linked.

More guidelines can be found in the app.

All of the links point to Bhante Sujato's translations on SuttaCentral.net. That's really the only complete set of suttas that could guarantee universal linking.

Feedback and feature requests are welcome.

So, for example, if you gave it this text:

Code: Select all

MN98: Deeds make the world go on, deeds make the person, deeds make one a wise
MN129: The destiny of the fool and wise.
AN6.64: Seeing all the results of kamma is the domain of the Tathagata
AN6.86: Kamma can be an obstacle for entering the right course
Iti 1.14: Without ignorance samsara stops
Iti 1.15: Tanha as the motor of samsara
it will output this:

Code: Select all

[url=https://suttacentral.net/mn98/en/sujato]MN98[/url]: Deeds make the world go on, deeds make the person, deeds make one a wise
[url=https://suttacentral.net/mn129/en/sujato]MN129[/url]: The destiny of the fool and wise.
[url=https://suttacentral.net/an6.64/en/sujato]AN6.64[/url]: Seeing all the results of kamma is the domain of the Tathagata
[url=https://suttacentral.net/an6.86/en/sujato]AN6.86[/url]: Kamma can be an obstacle for entering the right course
[url=https://suttacentral.net/iti14/en/sujato]Iti 1.14[/url]: Without ignorance samsara stops
[url=https://suttacentral.net/iti15/en/sujato]Iti 1.15[/url]: Tanha as the motor of samsara
Which renders as this:
MN98: Deeds make the world go on, deeds make the person, deeds make one a wise
MN129: The destiny of the fool and wise.
AN6.64: Seeing all the results of kamma is the domain of the Tathagata
AN6.86: Kamma can be an obstacle for entering the right course
Iti 1.14: Without ignorance samsara stops
Iti 1.15: Tanha as the motor of samsara

(link examples are taken from this useful post that inspired the tool)
| One sutta per day to your inbox | ReadingFaithfully.org Support for reading the Suttas | Citation lookup helper | Instant sutta name lookup | Instant PED lookup | Instant DPPN lookup |
Post Reply