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

annotations referencing other annotations #39

Open
jefferyshivers opened this issue Jul 28, 2016 · 4 comments
Open

annotations referencing other annotations #39

jefferyshivers opened this issue Jul 28, 2016 · 4 comments
Assignees

Comments

@jefferyshivers
Copy link
Member

jefferyshivers commented Jul 28, 2016

It should be possible to reference annotations, perhaps with labels or some other practical means. This would be useful if one annotation relates to a previous one, just as a section of a text document could refer to another. Since annotation numbers (if used) should always be flexible as new annotations are added or removed, the label could be generated/referenced in relation to instrument and location, like viola.1.1 (meaning viola in measure 1, beat 1).

Annotations would reference others like message = "This is a message. Also see \nameref{viola.1.1} because it relates." which would expand to, for example, This is a message. Also see 7. where "7" would actually link to the referenced annotation (in this case, annotation number 7) as well.

@jefferyshivers
Copy link
Member Author

This will be easily possible with html, and the LaTeX export can be made to interpret whatever ID property this uses as labels / hrefs and apply them that way.

@jefferyshivers jefferyshivers changed the title referencing annotations annotations referencing other annotations Mar 7, 2017
@uliska
Copy link
Contributor

uliska commented Mar 7, 2017

We could consider using explicit labels, like in LaTeX, where you'd also need to specify a label:

\section{First Section}
\label{sec:first-section}

Some text

\section{Second Section}
As described in section \ref{sec:first-section}

I think it's acceptable to require adding a label to make an annotation referencable. Apart from that the location of an annotation isn't fixed either.

@uliska
Copy link
Contributor

uliska commented Mar 7, 2017

\criticalRemark \with {
  label = "vla-1-missing-acc"
  ...
}

@jefferyshivers
Copy link
Member Author

We could use label as a generic hook (where html-export turns it into div id, latex-export into label, etc), or require explicit props for each, like

html-id = "my-html-id" % or just "id = .."
label = "my-latex-label"
...

which I think is what you have in mind. I don't suspect there would be any conflicts in using one prop type for all such labels/id's, but it might be good to separate them just in case (and to remove any possible ambiguity as to where each id goes).

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

2 participants