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

Feature request: Index maker #1807

Open
5e-Cleric opened this issue Nov 6, 2021 · 7 comments
Open

Feature request: Index maker #1807

5e-Cleric opened this issue Nov 6, 2021 · 7 comments

Comments

@5e-Cleric
Copy link
Member

So when i say index people thinks of the ToC, but i am talking about the actual index on the PHB:
image

Could something like this be implemented? something simmilar to the ToC, just getting a few keywords, maybe the ones with the class=index? or the ones we target with **** or -word-?

I feel it is the last bit to add for hb to really look like the PHB, though i get no more than a few people have brews that large as to need one of those.

@ericscheid
Copy link
Collaborator

Collecting a list of words and compiling a concordance isn't too hard, but also isn't very helpful.

A good index will have things like concept groups (casting a spell has sub-entries of area of effect, attack roll, etc), and cross references (like carrying capacity: see under lifting and carrying).

Indexing is difficult.

@calculuschild
Copy link
Member

Yeah, I think making an autogenerator for an index is going to be very tricky to pull off.

However we can definitely add a snippet for an index with the necessary styling and some example text inside.

@5e-Cleric
Copy link
Member Author

oh man... my brew is 70+ pages long, it is a pain to track words, lucky we still have chrome's search for words

@ericscheid
Copy link
Collaborator

ericscheid commented Nov 11, 2021

As a thought .. we might be able to leverage {{curly-spans}} here, at least as a means of marking up spans of text with a class and some attributes.

Every character has six {{index ability scores}}. These can be {{index,topic="ability score",entry="rolling" rolled}} or pulled from a {{index,topic="ability score" standard array}}, and these can be modified by {{index,entry="ability score",entry="increase",see="racial traits" racial traits}}.

Looks messy though.

Could be workable with a subset of all that complexity. {{index words as they appear in the index}} and {{index,topic="topic heading" words as they appear in the index}}.

@Gazook89
Copy link
Collaborator

@ericscheid I think you want to be sure you have double brackets on those spans e.g. {{index ability scores}} otherwise you have got the injector syntax.

@5e-Cleric
Copy link
Member Author

5e-Cleric commented Apr 22, 2023

This issue is closed, as might never be done, instead a template snippet will be done, as tracked in #1096

@ericscheid
Copy link
Collaborator

Re-opening as PR #3113 is making a brave attempt.

@ericscheid ericscheid reopened this Mar 20, 2024
@dbolack-ab dbolack-ab self-assigned this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants