Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve nilakkhana UID to acronym for Vinaya #2415

Open
sujato opened this issue May 8, 2023 · 0 comments
Open

improve nilakkhana UID to acronym for Vinaya #2415

sujato opened this issue May 8, 2023 · 0 comments
Labels
back end enhancement New feature or request small should be a small job

Comments

@sujato
Copy link
Contributor

sujato commented May 8, 2023

For nilakkhana links we use a shorthand:

[mn123:4.5]()

Which is transformed to (more or less):

<a href='https://suttacentral.net/en/sujato/mn123#4.5'>MN 123:4.5</a>

To change the UID mn to the acronym MN we use the following list:

https://github.com/suttacentral/bilara-data/blob/published/.nilakkhana/uid_to_acro.py

Also see:

https://github.com/suttacentral/bilara-data/blob/published/.nilakkhana/test_uid_to_acro.py

However this does not handle the complex cases found in the Vinaya. So we should add and test the following.

"pli-tv-bu-vb-pj": "Bu Pj", 
"pli-tv-bu-vb-ss": "Bu Ss", 
"pli-tv-bu-vb-ay": "Bu Ay", 
"pli-tv-bu-vb-np": "Bu NP", 
"pli-tv-bu-vb-pc": "Bu Pc", 
"pli-tv-bu-vb-pd": "Bu Pd", 
"pli-tv-bu-vb-sk": "Bu Sk", 
"pli-tv-bu-vb-as": "Bu As", 
"pli-tv-bi-vb-pj": "Bi Pj", 
"pli-tv-bi-vb-ss": "Bi Ss", 
"pli-tv-bi-vb-np": "Bi NP", 
"pli-tv-bi-vb-pc": "Bi Pc", 
"pli-tv-bi-vb-pd": "Bi Pd", 
"pli-tv-kd": "Kd", 
"pli-tv-pvr": "Pvr", 
@sujato sujato changed the title improve UID to acronym for Vinaya improve nilakkhana UID to acronym for Vinaya May 8, 2023
@sujato sujato added enhancement New feature or request back end small should be a small job labels May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back end enhancement New feature or request small should be a small job
Projects
None yet
Development

No branches or pull requests

1 participant