I think we need to distinguish between the (1) content of texts and the (2) organization of texts. These are two different things. What Iāve been criticizingāand for the third and final time, it is a quibbleāis (2), not (1). There are legitimate grounds for criticizing (2) as evidenced by the perennial question of newcomers to the suttas asking where in the world they should start.
Iāve posted on Buddhist forums for the past 12 years, with many thousands of posts, and this is the first time someone has impliedāthough perhaps accused would be a more appropriate wordāthat I have disrespect for any Buddhist text (sutta, sutra, commentary, etc.) from any Buddhist school, let alone the texts that are the source of the Dhamma I follow. Sometimes Iām reminded of why I read and post on forums far less frequently than I used to. This is one of those times.
On Suttacentral.net itself (not the above plugin) just press s and start typing like you would in google. Either a citation or sutta name. Then you can click on the sutta in the results right then and there.
I think this is even an improvement over using Google the way you are. For suggestions on the built in SC search, please start a new thread in the Feedback category. The search is still in development and we love to hear about peopleās experience with it. However a plugin isnāt going to be able to change anything about the search, so no point in discussing it here.
Iām not sure if you are talking about those on SC or in general. We have indeed added some awesome keyboard shortcuts. If you donāt know about them, please look here: Experimental Hotkeys
That process is still in progress, so if there are other commands that have broad appeal they can probably be added directly into the site. Otherwise if it is an edge case, a plugin feature might work. My hope for the plugin, as stated in my OP, would be to permit customizing the trigger key for folks who donāt use Latin keyboards.
They are clearly not helpful to you, but we have to be very careful assuming what will be helpful to others.
When I speak to Sri Lankan monks who arenāt dedicated to English translations, they will usually tell me which vagga to look. The 1 to 152 scheme (as in the MN) is completely unheard of in non-English Asian Buddhist communities. And the numbering of suttas used there follows the vagga pattern that is represented on SuttaCentral. So for them that is the only way they would be finding something on the site. For example SN56.11 would there be SN5.12.2.1
Looking at the html, it doesnāt seem that the vaggas in the breadcrumb (which I think are the levels you dislike) have any special class added to them, therefore hiding them with a plugin would be tricky if not impossible.
This is the great downfall of web design. We all think most users are like us.
And to reiterate so everyone in the conversation is clear: This is not a discussion about changing SuttaCentral. Itās about a plugin that could enhance/modify the site for plugin users.
So a list of all suttas in the AN does exist: suttacentral.net/an. So itās no problem to link to that in an alternate design scheme. It might even be possible to modify the AN link in the breadcrum to go there instead of suttacentral.net/pitaka/sutta/numbered/an.
Honestly I think that a page with 1k+ text on it is kind of useless, but it might be useful for you.
Yeah, if the previous change could work, so could this.
And in fact the navigation menu that Ven. @Pasanna is suggesting would make use of these.
As I mentioned above I donāt think this is possible but perhaps someone could figure it out.
Iām happy to hear other ideas you have.
In general for everyone, I recommend not assuming that the way you think the site should work is how everyone (or even most people!) think it should work. Instead please explain what would be helpful for you in an much detail as possible so we can together see if it is something that could be done through an extension/plugin. Even if itās helpful for a handful of people itās possible to add it in as long as it is technically feasible.
Thanks for explaining why people might want to see the vaggas.
I, like mkoll donāt find any use in them and have had people make similar comments, saying how they find them confusing. I propose we could have a vagga-less option in the plugin.
Not too tricky. nth-child in css might work. Or we can split the liās into an array and tell it to keep say the first three, drop everything else or drop where the li contains the word vagga? Iām just thinking about this off the top of my head. I would have to look at the data further. Years ago I tinkered data in this way in js or jquery (I donāt remember).
I have never examined the levels in this regard, but you would need to look at all the various permutations, meaning all the books. Or if not then somehow only limit to the ones you do.
And just as an aside, in the AN especially there are topical groupings at the vagga level despite people only ever claiming that the AN is organized purely by number. And all of these groupings are maintained in the Wisdom editions.
That said, if a plugin can improve peopleās experience Iām all for it.
In the interest of making the navigation friendly for all; would it be useful to be able to toggle this alternate sutta numbering system in the navigation?
Iāve added in some sample vagga titles which people can turn off and on in a yet to be designed setting.
So, where the grey numbers are, this could toggle with PTS or the Sri Lankan numbering system or whatever other system exists.
Iād be more inclined to say make it perfect for your own needs and then if someone wants a different kind then they can design that. Especially since there is already the vagga-wise system as the default SC navigation.
So, for folks who like to experiment, Here is something to play around with. Pick the right one for your browser. Chrome should work for all Chromium base browsers (Brave, Edge, etc)
To install them you will have to unzip and then follow the instructions in this video
This plugin does a few things:
changes the theme to āShamrock Shakeā
on all pages l will copy a link to the current page in a nice markdown format suitable for pasting on this forum, e.g. [DN 1 BrahmajÄlasutta](https://suttacentral.net/dn1/en/sujato)
on text pages c will copy the heading and body of the text (aka sutta) to the clipboard. If the root is visible it will copy that too. If notes are turned on (even on asterisks) that will get copied too.
There is a new hamburger menu on the top right that has just a few links. This is just a proof of concept until Ven. Pasanna finishes the real version.
The new menu is just a mockup. Most links donāt work. Eventually all of these features will have a setting to turn them on and off. Obviously not every will love the green theme as much as I do.
Also, the feature to show the site language will likely have no use for most people. But for development work it can be handy to have it there in the open:
I believe this was something you wanted @srkris. Could you test out and let me know if it works for you?
This is not done through CSS. Iām not sure if itās really possible that way. And if they are switched using css, I donāt think copy/past would work.
Alerts for more translations
If more translations exist in your chosen site language there will be a notification.
This feature is really hinky. I would greatly appreciate bug reports if you find any. Because of the nature of how SC is built, there may at times be a flash of the old notification for a previous page.
Context menu searches
There are now 5 context menu options when selecting text on a page of any website.
Expects a āmodernā citation like SN56.11 and will try to get a suttaplex card. Spaces are ignored.
Expects a āmodernā citation like SN56.11 and will try to go directly to a translation of the text. Spaces are ignored.
Expects a PTS citation and will do a search on SuttaCentral.net prepended with volpage:
@stu This seems like something you might use, so testing would be much appreciated.
If you are able I would greatly appreciate having people test them out. Once we get a working version of Ven. Pasannaās alternate menu scheme I will publish to the respective app stores so you wonāt have to deal with unzipping and side loading.
To install them you will have to unzip and then follow the instructions in this video. The chrome version should work for Brave, Edge, etc. Safari will have to wait a bit since they require an additional step to create and an Apple ID to publish.
I welcome all kinds of feedback.
PS: You can easily pin the extension icon to the toolbar. Then clicking on the icon will give you all the features:
any chance we can get the root text in black and the translation in grey as an option, currently my focus is on the Pali and I want that to be what my eye is drawn to.
Absolutely. That was my first thought after implementing. However until a settings/options interface is built, every new feature is mandatory; so I didnāt want to force that on everyone.
I highly, highly recommend installing the browser extension Stylus. It lets you override css/styling. Once you start using it you will likely find all sorts of cool ways to customize the sites you use most often. If you canāt figure it out drop me a DM.
You are seeing an ever newer version, but itās still just a proof of concept. I think Ven. P has been busy lately. But as a non-Pali user they might like to hear your ideas about just how it could end up working. Feel free to discuss here.
PS: Thanks for testing it out! Iām happy to entertain feature suggestions.
Yeah, the reason you can do that is because the script actually swaps the two āphysicallyā, instead of just using css.
The down side is that doing a sutta like DN16 made it hang for a bit. Itās supposed to do it in chunks so that doesnāt happen. Please report back any problems.
And if anyone is interested, you can see all the scripts in this folder:
The PTS bit works nicely. Iām sure āenhancementsā will become apparent when I use it in a real situation. It would be cool if when the settings get implemented, I could set it so itās the top level rather than having to go into SCEE sub menu:
So at the same level as āSave selection to Keepā in my menu
Pop up blurb:
I have links to SC like this:
It is made up of this:
<a href="https://suttacentral.net/dn16/"><img>DN 16<span class="nomobile"> on SuttaCentral</span></a>
It works on the main anchor text (i.e. āDN 16ā) and it works on the ::after (i.e. the little box with the arrow to the right). But it doesnāt work on the img or span (i.e.SC icon and āon SuttaCentralā)