-
Notifications
You must be signed in to change notification settings - Fork 139
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
Replace uses of rfc2119 keywords in non-normative sections #340
Conversation
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.
LGTM % nits
I'm not sure yet if we want to capitalize the words, maybe we do. This is easily done in any case, because they only appear normatively now.
I'm happy to go ahead with capitalizing (now or later). Seems the style guide is to do this w/ an <em>
and a bit of CSS.
https://www.w3.org/Guide/manual-of-style/#RFC
…agraphs This was done mostly via this scripts: > #!/usr/bin/env python > > # no optional and required because they are webidl keywords and don't > # appear otherwise in the spec > RFC_2119_LIST_LOWER=("must", "must not", "shall", "shall not", "should", "should not", "recommended", "may") > RFC_2119_LIST_UPPER=("MUST", "MUST NOT", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY") > > fin = open("index.src.html", "rt") > fout = open("index-replaced.src.html", "wt") > for line in fin: > replaced = line > for i, word in enumerate(RFC_2119_LIST_LOWER): > replaced = replaced.replace(RFC_2119_LIST_LOWER[i], > "<em class=\"rfc2119\">" + RFC_2119_LIST_UPPER[i] + "</em>") > fout.write(replaced) > fin.close() > fout.close() and then rewrapped in vim.
I added the |
Looks good! |
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: f25d932 Reason: push, by @chcunningham Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This is split in multiple commits for ease of review, but the second commit has most of the actual changes.
There is a single occurrence that I thought was good to make normative (third commit). It's a MAY, so it's not a requirement per se.
Also, three section (background, and recommendation for developers) are non-normative, marked as such, and their prose has been fixed.
I'm not sure yet if we want to capitalize the words, maybe we do. This is easily done in any case, because they only appear normatively now.
This fixes #301.
Preview | Diff