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

proper IDs for apparatus parts #294

Closed
thvitt opened this issue Feb 14, 2018 · 4 comments
Closed

proper IDs for apparatus parts #294

thvitt opened this issue Feb 14, 2018 · 4 comments
Assignees
Labels

Comments

@thvitt
Copy link
Member

thvitt commented Feb 14, 2018

@thvitt thvitt added the c:text label Feb 14, 2018
@thvitt thvitt self-assigned this Feb 14, 2018
@thvitt
Copy link
Member Author

thvitt commented Feb 14, 2018

Calculation an ID base for an f:ins (from app*norm.xml) works as follows:

  • value of n attribute of that ins
  • take the first non-empty of:
    • the text value of the f:ins, converted to lower case, removing everything that is neither a letter, a digit or _
    • the value of the place attribute
  • join both with a .
    For <app> elements, we take the base ID of the first f:ins in the app and prefix it with app.. For <seg> elements, we take the base id of the f:ins corresponding to the <seg> and prefix it with seg..

@gerritbruening
Copy link
Contributor

Confused the repos in commit message, sorry.

@thvitt
Copy link
Member Author

thvitt commented Mar 24, 2018

I guess you didn't want to reopen this?

@thvitt thvitt closed this as completed Mar 24, 2018
@gerritbruening
Copy link
Contributor

Ah, now I see that this was legitimatly closed before, sorry!

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

No branches or pull requests

2 participants