Giter Club home page Giter Club logo

pts-converter's Introduction

PTS to Sutta Converter

Try it!

Features

  • Paste or type PTS references and see the sutta instantly
  • Can "add to home-screen" then use offline

Search

The search tab is a case-insensitive PTS lookup that currently references 33 different books (full list below). It is perfect for copy and pasting or quickly typing Pali Text Society references and reading the sutta online.

The search input accepts two or three whitespace/period seperated values in the format of PTS references (book, division?, page), eg. M i 5, Dhp 34, Bv i. 16, it.80, S.I.42.

You don't need to specify a book edition number, by default the search will return all available editions.

If multiple results appear, it's because the reference you searched for applied to multiple book editions. The earliest edition's reference is always displayed first.

Select

The select tab allows for manual entering of book reference, division and page number.

Available PTS references

  • A
  • Bv (1ed)
  • Bv (2ed)
  • Cp (1ed)
  • Cp (2ed)
  • D
  • Dhp (1ed)
  • Dhp (2ed)
  • Dhs
  • Dt
  • It
  • Ja
  • Kv
  • M
  • Mil
  • Nett
  • Nidd I
  • Nidd II
  • Patis
  • Pe
  • Pp
  • Pv (2ed)
  • S (1ed)
  • S (2ed)
  • Sn
  • Tha-ap
  • Thag
  • Thi-ap
  • Thig
  • Ud
  • Vib
  • Vv (2ed)
  • Ya

About

This project started out as an internal utility function to automatically convert the PTS references in my project The 40 Buddhist Meditation Subjects which is a prettified version of the practical instructions from the Visuddhimagga.

This PTS reference converter was built on top of the great open source work done by olaster, which was built on top of the priceless open source work going on at Sutta Central.

Licence

This work is dedicated to the public domain via Creative Commons Zero (CC0). You are free to copy or modify it as you see fit. Attribution is appreciated but not legally required.

pts-converter's People

Contributors

benmneb avatar dependabot[bot] avatar olastor avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

pts-converter's Issues

Query strings break hash links on suttacentral

It appends ?ref=benmneb.github.io/pts-converter/ to the end of the β€˜Read this sutta’ links, so I might look up S III 109 and it will form the following url (for English): https://suttacentral.net/sn22.84/en/sujato?layout=sidebyside&reference=main/pts&notes=asterisk&highlight=false&script=latin#pts-vp-pli3.109?ref=benmneb.github.io/pts-converter/

But that takes me to the start of SN 22.84

If I remove the ?ref=benmneb.github.io/pts-converter/ from the end of the url, then it scrolls to pts-vp-pli3.109 which is the behaviour that I was actually hoping for.

from https://discourse.suttacentral.net/t/suttacentral-2021-bug-reports-here/19609/215

Merge together?

Hi @benmneb,

first of all thank you for creating this new user interface! For https://pts.dhamma-dana.de/ I was already trying out a couple of months ago on migrating to it to your interface and better data (currently deployed here, with different frontend and data repos, but both are in a sort of "beta" state). I made some changes mostly regarding the data, e.g. updating the data format to a json api, updating the data itself, adding text excerpt preview and adding Dhp-A references to ancient-buddhist-texts.net .

Since we're now both already diverging in the frontend code and especially the data, how about we maintain the frontend repo together? It seems both your deployed version with Github pages and pts.dhamma-dana.de are being used by users, so I think it'd be good to merge in order to avoid confusion and inconsistencies between the two.

Please let me know what you think.

New translations not added (Snp, Ud, Thi, Thag)

I think that the Ud is completely new since you made the ap. Also now there is a complete Pali/English translation of the Snp by Bhante Sujato.

The Thag and Thig are older, so I'm not sure if there is a reason you don't include them.

Wonderful tool!

Abbreviations for dropdown are irregular

I noticed that some of the abbreviations are in lower case. This puts them out of order in the drop down:
image

As well, You have
Th and Thi for what "should" be Thag and Thig and also tha and thi instead of Tha-ap and Thi-ap.

From what I can tell, these values are only used as labels.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.