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

Replace uses of rfc2119 keywords in non-normative sections #340

Merged
merged 7 commits into from
Aug 23, 2021

Conversation

padenot
Copy link
Collaborator

@padenot padenot commented Aug 13, 2021

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

@padenot padenot requested review from aboba and chcunningham August 13, 2021 09:01
Copy link
Collaborator

@chcunningham chcunningham left a 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

index.src.html Outdated Show resolved Hide resolved
index.src.html Outdated Show resolved Hide resolved
…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.
@padenot
Copy link
Collaborator Author

padenot commented Aug 20, 2021

I added the <em>, the CSS, addressed the comments, re-wrapped, rebased, and fixed a few instances of RFC2119 words that were in recent patches.

@chcunningham
Copy link
Collaborator

Looks good!

@chcunningham chcunningham merged commit f25d932 into main Aug 23, 2021
@chcunningham chcunningham deleted the rfc2119 branch August 23, 2021 17:21
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Aug 23, 2021
SHA: f25d932
Reason: push, by @chcunningham

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Normative words (must, should, ...) clean up
3 participants