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

Editorial: various edits for style and clarity #128

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

takikawa
Copy link
Collaborator

This PR shouldn't make any semantic changes and should be purely editorial. It adjusts markup and rewords prose for consistency, clarity, or more spec-like wording. (the commit message has more details)

It builds on PR #126 so should be rebased & merged after that.

source-map.bs Outdated Show resolved Hide resolved
@jkup
Copy link
Collaborator

jkup commented Sep 18, 2024

I think these all look great! Would you mind resolving the conflicts so I can see a cleaner diff? Sorry I merged 2 things in early today that conflict.

@nicolo-ribaudo nicolo-ribaudo added this to the October 2024 milestone Sep 18, 2024
  * Use consistent wording in various places
    (e.g., "Source Map format")
  * Use more spec-like language where it makes sense
  * Fixed a note to render correctly
  * Link terms more consistently
  * Reworded some prose for clarity
  * Remove <ins> tag
@takikawa
Copy link
Collaborator Author

I think these all look great! Would you mind resolving the conflicts so I can see a cleaner diff? Sorry I merged 2 things in early today that conflict.

Thanks for the review! It should be rebased & conflicts resolved now.

Copy link
Collaborator

@jkup jkup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! One tiny comment about casing

source-map.bs Outdated
* Support source-level debugging allowing bidirectional mapping
* Support server-side stack trace deobfuscation

The original source map format (v1) was created by Joseph Schorr for use by
The original Source Map format (v1) was created by Joseph Schorr for use by
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The casing seems inconsistent. Here we sentence case but then below it's lower case. I'm not sure if we care?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way I understood it is it upper cases "Source Map format" but for concrete real instances of "source maps" we lower-case it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My preference would be to always write it following the case sentence where it's written:

  • "An Introduction to Source Maps"
  • "Source maps are ..."
  • "When we talk about source maps, ..."
  • "The source map specification says that ..."
  • "./decode-source-map.js"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolo-ribaudo so then in this case, according to your preferred format, we should use "The original source map format"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes :)


<h2 class="no-num">Introduction</h2>

This Ecma standard defines the Source Map format, used for mapping transpiled source code back to the original sources.
This Ecma Standard defines the Source Map Format, used for mapping transpiled source code back to the original sources.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made "source map format" generally lowercase now, except in two locations where I think it's really intended as a proper noun as the object that the standard is defining (this spot and one more below).

Also capitalized "Standard" here since it's also done that way below, and in the intro of ES262:

image

I can revise this if we want to make this lowercase too though.

Make casing of "source map format" consistent with English context,
normally lowercase unless it's used as a proper noun.
Copy link
Collaborator

@jkup jkup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jkup jkup merged commit eb86a23 into tc39:main Sep 26, 2024
2 checks passed
github-actions bot added a commit that referenced this pull request Sep 26, 2024
SHA: eb86a23
Reason: push, by jkup

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.

4 participants