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

Use HTML custom data attributes for counters, etc. #2082

Closed
sujato opened this issue Mar 16, 2021 · 0 comments
Closed

Use HTML custom data attributes for counters, etc. #2082

sujato opened this issue Mar 16, 2021 · 0 comments

Comments

@sujato
Copy link
Contributor

sujato commented Mar 16, 2021

One of the very few outstanding issues with the Bilara Pali texts is the presence of some small bits of helper information. Namely:

  • counters (found widely)
  • right/wrong view passages in Kathavatthu
  • forward/reverse pasages in Yamaka

I have discussed this and made proposals previously here:

suttacentral/bilara-data#508
suttacentral/bilara-data#230
#1598

This supersedes all previous discussions.

Rather than create a new data directory (heavy!) or use CSS classes (clunky!) let's use HTML data- attributes. That what they're for!

I have added three kinds of attribute:

  • data-counter
  • data-doxy
  • data-direction

And display is activated using .highlight in CSS only (no JS). It works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant