Skip to content

Better IDs for dictionary results #185

Description

@sujato

The dictionary result pages define the different dictionaries using #id. Which is fine, except when there are multiple entries from the same dictionary, which happens quite a lot with the DPPN, and perhaps elsewhere. See eg. https://suttacentral.net/define/udaya

I realize no child will go without food and water as a result of this, but still. These are used in the in-definition links, and will break them when there is a clash. Again, not the biggest problem.

In fact, should we not have IDs that actually do what IDs are meant to do? Currently we can link to a page of results, but not to a specific result. But shouldn't I be able to link to the result for a specific entry from a specific dictionary?

One solution would be to add the ID from the <dfn> to that in the <dl>, so we would have, eg. <dl class="person" id="sc_dppn-Udaya1"> and so on. But then, there doesn't really need to be a unique identity for the entry as such, just the headword.

Instead, we could have <dl class="person sc_dppn"> and <dfn id="Udaya1-sc_dppn">. The dfn ID could be selected to provide a link to that specific entry; in fact we could generate appropriate URLs: suttacentral.net/sc_dppn-Udaya1.

One reason for noticing this is that several of the online dictionaries, eg gandhari.org or http://dsal.uchicago.edu/dictionaries/pali/ don't supply proper URLs for terms; we should.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions