-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary: `sen` is used instead of `sin` in Portuguese. This change allows the Expression widget to accept both spellings. We simply convert any instances of `sen` to `sin` when evaluating the learner's answer. Issue: https://khanacademy.atlassian.net/browse/LC-290 Test plan: - Start storybook: `yarn storybook`. - Visit `http://localhost:6006/?path=/docs/perseus-widgets-expression--docs`. Enter `sen(x)` in one of the input fields. The word `sen` should be displayed in an upright font, indicating that it is an operator. `sin`, `cos`, `tan` etc. should also be displayed in an upright font. <img width="150" alt="Screen Shot 2024-01-11 at 2 26 02 PM" src="https://github.com/Khan/perseus/assets/693920/5788c5e4-b42b-49b8-b680-773284a7dfb7"> Author: benchristel Reviewers: nedredmond Required Reviewers: Approved By: nedredmond Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage, ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Extract i18n strings (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ gerald Pull Request URL: #921
- Loading branch information
1 parent
50c617d
commit 81b9a56
Showing
5 changed files
with
125 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@khanacademy/math-input": minor | ||
"@khanacademy/perseus": minor | ||
--- | ||
|
||
Make the Expression widget treat `sen` as equivalent to `sin`. The spelling | ||
`sen` is used in Portuguese. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters