-
Notifications
You must be signed in to change notification settings - Fork 4
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
First proposal for ONIX Techniques #223
Conversation
<li>For EPUB Accessibility, WCAG-A: <a href="https://ns.editeur.org/onix/en/196">List: 196</a>; Code: 02: EPUB Accessibility Specification 1.0 A</li> | ||
<li>For EPUB Accessibility, WCAG-AA: <a href="https://ns.editeur.org/onix/en/196">List: 196</a>; Code: 03: EPUB Accessibility Specification 1.0 AA</li> | ||
<li>For EPUB Accessibility, WCAG-AAA: Not available in ONIX.</li> | ||
<li><b>if</b> <var>codelist 196: code 36 (All textual content can be modified)</var> is present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the usability of lists of one element. I would stick with only one level lists.
I'm wondering if the use of DL, DT, DD elements would be more representatives of what we want to achieve here. My only concern is that we are inverting here DD and DT (i.e. we give the definition before the term).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These would be fine left as single sentences. "if codelist 196:
... is present, then ..."
I'd leave using nested lists for cases where there are multiple sub-options to pick from.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I thought about the use of lists to have an indentation that is not only graphical, but also semantic, but we can use other options without problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that if we keep the if statement and the instructions on one line the lines become very long and the readability is not very good: normally in the code the instructions related to an if statement are inserted in the next block and indented... But I have no idea how to solve it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
normally in the code the instructions related to an if statement are inserted in the next block and indented.
I haven't seen that done in specifications. None of the algorithms in publishing specs we've done to date have formatted conditionals this way unless there are nested conditionals within them.
Here are a couple of examples from the infra spec just for variety:
- if with no nested conditions: https://infra.spec.whatwg.org/#example-variable-null
- if with nested conditions: https://infra.spec.whatwg.org/#example-conditional-abort
If you really think it's important, put spans around them and format them as inline blocks with the expected behaviour indented. It should still read as a sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example:
<li>
<span class="condition"><b>if</b> <var>codelist 196: code 36 (All textual content can be modified)</var> is present</span>
<span class="result">then display <code>Appearance can be modified</code>.</span>
</li>
and:
span.condition {
display: inline-block;
}
span.result {
display: inline-block;
margin-left: 2rem;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great start
For big changes like this, it's helpful to add the preview and diff links: (You can copy these links from PR to PR; you just have to change the "gregorio-updates" branch name in the URLs to whatever you're using next. For the other techniques doc, you'd also flip the directory to "epub-metadata".) |
I like Gautier's idea of using a definition list with the DD being the conditions and the display statement in the dt. This seems to be semantically more correct for our purposes. I did test this and received no errors. |
Thank you all for your comments and suggestions. I think the easiest thing is to discuss which way to go in the editors' call, so we can decide how to proceed. |
The techniques document is now made of pseudo-code examples.
Here is a new version with many changes to ONIX techniques, thanks to the team of editors who provided many suggestions and contributions. You can see the preview here. Some of the changes made:
We await feedback from the group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not an ONIX expert and it seems that the word "text" is an important term in ONIX. It is refering to real text that can be enlarged and modified. I think we might make it easier to read if we changed some of the variable names that use the word"text".
For example where it says:
LET onix be the result of calling pre processing given text.
Here perhaps instead of text we might say "ONIX-Record-as-text"
Further down it says:
LET text be the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/PrimaryContentType[text() = "10"] OR the result of calling check for node on onix, /ONIXMessage/Product/DescriptiveDetail/ProductContentType[text() = "10"].
In the above, instead of the variable "text" perhaps it could be "real-text"
I think this is similar to the comment charles made.
Also, typo in the details section: there is an eg and it should be e.g.,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have fixed it, thanks for the feedback!
I have reviewed and it looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great Gregorio.
One suggestion might be in the details for Images of Text you could give an example of a newspaper clipping, to help the reader understand the difference between images of text and text within images a little better.
Question, is this link invalid because we haven't published this yet? This technique relates to Visual adjustments key information. |
Looking at this I am wondering if we should separate the defining of the variables with the LET xyz ... and then a separate Ordered List for the IF/ELSE IF / ELSE section. I think that might make it easier to digest.
|
By separating this into 2 lists you also get the benefit that |
Right |
What is your opinion @mattgarrish ? |
I wonder if we added "is true" or is false" would make it more readable. Also the and / or statements may be emphasised by using the words both or either , such as:
|
@GeorgeKerscher we'll ask the group for a feedback about your proposal, thanks. |
As agreed, I made an initial proposal for the ONIX Techniques, specifically: