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

should "superscript 2" be handled differently? #168

Closed
pixelzoom opened this issue Dec 28, 2018 · 4 comments
Closed

should "superscript 2" be handled differently? #168

pixelzoom opened this issue Dec 28, 2018 · 4 comments
Assignees

Comments

@pixelzoom
Copy link
Contributor

pixelzoom commented Dec 28, 2018

Noted while I was working on phetsims/scenery-phet#446 (comment) ...

projectile-motion-strings_en.json contains this string:

  "metersPerSecondSquared": {
    "value": "m/s²"
  },

I'm not sure if this pasting the Unicode "superscript 2" directly into the string value is a good idea. A couple of other options: (1) use the Unicode escape "m/s\u00b2", (2) use "m/s2" with RichText.

@zepumph
Copy link
Member

zepumph commented Oct 16, 2019

I think that changing this to use the unicode version seems right to me. I'll do that now.

@zepumph
Copy link
Member

zepumph commented Oct 16, 2019

@pixelzoom does that seem better to you (I also did that for degree).

@pixelzoom
Copy link
Contributor Author

Yes, that seems better. But note that the degrees symbol is in MathSymbols.js, and we haven't been making it translatable in other sims (most recently Vector Addition).

@zepumph
Copy link
Member

zepumph commented Oct 23, 2019

Sounds good. I'll make another issue.

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

No branches or pull requests

2 participants