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

Examples in P5 are unnumbered #1931

Closed
pdurusau opened this issue Oct 1, 2019 · 14 comments
Closed

Examples in P5 are unnumbered #1931

pdurusau opened this issue Oct 1, 2019 · 14 comments
Assignees

Comments

@pdurusau
Copy link
Contributor

pdurusau commented Oct 1, 2019

The examples in P5 are unnumbered. I mention this because I have a comment to make on some but not all of the examples in 16.1.2 Using Pointers and Links, but the only sure reference is to quote each relevant example separately.

Numbering the examples would enable section/sub-section / Example # references. Useful both for teaching as well as reporting errors.

@hcayless
Copy link
Member

hcayless commented Oct 1, 2019

This is a good point. If you're willing to do a little extra legwork, each example should have an ID, meaning you can construct a URL pointing directly to the right example, e.g. https://www.tei-c.org/release/doc/tei-p5-doc/en/html/SA.html#index-egXML-d53e121026

One simple solution might be for us to generate a link for each that can be copied.

@pdurusau
Copy link
Contributor Author

pdurusau commented Oct 1, 2019

Thanks for pointing out the example IDs. Not easy to find in HTML source view.

Not controlling for TEI but the ISO Guidelines, 7th edition, 25 Examples, requires multiple examples in a section/subsection to be numbered, but a single example isn't numbered. Makes reference in a paper or lecture as Section N, Example N easy, as opposed to: https://www.tei-c.org/release/doc/tei-p5-doc/en/html/SA.html#index-egXML-d53e121026.

@tuurma
Copy link
Contributor

tuurma commented Oct 8, 2019

Just a note that since GL are constantly updated, we cannot guarantee that a reference scheme like Section/Example number is going to be stable.

@tuurma tuurma self-assigned this Oct 8, 2019
@pdurusau
Copy link
Contributor Author

pdurusau commented Oct 8, 2019

I suspect stability is a function of the starting point for example numbering.

If Examples are numbered from the start of the GL, sure, likely to change.

If Examples are numbered within sections or say second level divisions, suspect less likely to change.

That is: Section 16, Example 3 is likely to be stable enough for citation in discussions, even papers.

I don't have a sense for what level of the GL are changing or how often but I suspect someone with better Git skills than mine could determine that from the revision history.

@tuurma
Copy link
Contributor

tuurma commented Oct 11, 2019

It's not often but it does happen that chapters are substantially extended or rewritten. This is why for pointing rather than using section number, e.g. 16.1.2 for Using Pointers and Links we use its id, namely 'SAPTEG', thus full link reads https://www.tei-c.org/release/doc/tei-p5-doc/en/html/SA.html#SAPTEG. It does look long but basically we also use chapter (SA, for Segmentation and Alignment) and section id (SAPTEG).

In short, while numbering of examples can be added without much problem, it's likely not good enough as a reference scheme.

@jamescummings
Copy link
Member

In my occasional thinking about examples the problem that @pdurusau raises has occurred to me a number of times and I had the same worry as @tuurma that anything which numbers them, even based on their position in the section is not going to be stable over multiple releases. It may be that this is fine, "TEI P5 Version 3.5.0 Section 16.1.2, Example 4" is then a perfectly fine canonical example. It just doesn't preserve itself in version 3.6.0 or some later version that adds and extra example. (Let's assume we're adding more, not taking them away...)

@hcayless is right that the best way to refer to them is by their xml:id, but @pdurusau rightly points out this is difficult.

Proposal:
At the start of each section in the HTML view of the TEI Guidelines we have a small greyed out pilcrow which becomes blue when hovered on it and provides a link to this section. As one of the people who argued for this (and this character in specific... https://lists.tei-c.org/pipermail/tei-council/2007/008589.html) I think it is invaluable. People now use them on TEI-L and issues here to point to the section they are referring to. Success. What is my proposal then? Do the same thing for all figures and examples. For examples a discreet little pilcrow in the upper-left or bottom right of the box, for figures, just float them left near it. Greyed-out in the same manner as the section links (which we miss-called 'permalinks' when introducing them...ignore that.) That way people have the URL that Hugh suggests should be used at hand in an easy manner. ;-)

@pdurusau
Copy link
Contributor Author

pdurusau commented Oct 13, 2019 via email

@martindholmes
Copy link
Contributor

I can imagine all sorts of problems which follow from the idea that example identifiers should be consistent across versions. Imagine these scenarios:

  • Between one release of the Guidelines and the next, the list of suggested values for an attribute changes very slightly; an example which uses the altered value is updated to reflect the new value. Should its identifier change?

  • Between one release and the next, the definition of an element changes, and the explanation surrounding an example is rewritten, but it turns out that the example itself does not need to be changed. Should it retain the same identifier as before, even though it's now exemplifying something slightly different?

  • Between one release and the next, an example used in Chapter X is moved to Chapter Y, since the explanatory text it supports has been moved as part of a module reorganization, but the example itself remains unchanged. Should it retain the same identifier?

For reasons like this, I don't think the idea of stable identifiers for examples across versions makes sense. Instead, I would simply go for a system where each example is identified by something constructed from the Guidelines version, the chapter id, and the number of the example in the chapter sequence.

@pdurusau
Copy link
Contributor Author

pdurusau commented Oct 13, 2019 via email

@jamescummings
Copy link
Member

Hrmmm. In almost all those cases @martindholmes suggests I think the xml:id of the example stays the same. If it moves to a different module the URL would be different anyway. The identifier is an identifier for the example .... it could change if so different the person editing it thinks it is a new example but I think that is just a matter of policy. The URL would be best to be pointing to the version that is in the Vault in any case, so it is always release specific. (I think we should do that with the existing section pilcrows also.)

@jamescummings
Copy link
Member

(Oh and this doesn't stop us also doing @pdurusau's approach to referencing as well)

@pdurusau
Copy link
Contributor Author

pdurusau commented Oct 17, 2019 via email

@tuurma
Copy link
Contributor

tuurma commented Oct 24, 2020

VF2F Council meeting agrees that it's helpful to have a copiable, direct link to the example that users can easily copy with an informative title. While such links to allow for meaningful citation must point to a specific Guidelines version, twinning them with an alert if a user is viewing an older version of the Guidelines would be helpful.

@martinascholger
Copy link
Member

VF2F Council meeting agrees that this is a good idea. We will close the issue here and open a Stylesheets issue to 1) create a permalink and b) alert the user when looking at old versions.

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

No branches or pull requests

6 participants