Skip to content

Conversation

@SonicScrewdriver
Copy link
Contributor

@SonicScrewdriver SonicScrewdriver commented Sep 3, 2025

Summary:

I was working on LEMS-3435 and found myself annoyed that I couldn't quickly test between languages.

While we could catch these things in automated tests, I do like having the ability to manually test locale-specific math, particularly for recreating international bugs!

Screen.Recording.2025-09-03.at.2.32.06.PM.mov

Test plan:

  • New feature allows us to do some in-situ testing of our math parsing logic.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2025

🗄️ Schema Change: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2025

🛠️ Item Splitting: No Changes ✅

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2025

Size Change: 0 B

Total Size: 492 kB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.7 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 5.98 kB
packages/math-input/dist/es/index.js 98.6 kB
packages/math-input/dist/es/strings.js 1.61 kB
packages/perseus-core/dist/es/index.item-splitting.js 13.1 kB
packages/perseus-core/dist/es/index.js 21.7 kB
packages/perseus-editor/dist/es/index.js 94.5 kB
packages/perseus-linter/dist/es/index.js 7.07 kB
packages/perseus-score/dist/es/index.js 9.31 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 202 kB
packages/perseus/dist/es/strings.js 7.56 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.71 kB

compressed-size-action

@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2025

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (f3f8193) and published it to npm. You
can install it using the tag PR2861.

Example:

pnpm add @khanacademy/perseus@PR2861

If you are working in Khan Academy's frontend, you can run the below command.

./dev/tools/bump_perseus_version.ts -t PR2861

If you are working in Khan Academy's webapp, you can run the below command.

./dev/tools/bump_perseus_version.js -t PR2861

…emRendererWithDebugUI to have a locale picker
@SonicScrewdriver SonicScrewdriver marked this pull request as ready for review September 3, 2025 21:43
@SonicScrewdriver SonicScrewdriver marked this pull request as draft September 3, 2025 21:50
SonicScrewdriver added a commit that referenced this pull request Sep 22, 2025
## Summary:
This PR adds support for locales (particularly Ukraine) that use `:` instead of `/` for denoting division in math equations. We're only focusing on the Expression Widget as Numeric Input / Input Number do not support the division symbol. 

We're currently checking with the language advocates about how fractions are written in Ukrainian, but initial research is indicating that the bar `/` is still used in those cases. 

This PR does not update the actual icon on the keypad, as we're still waiting for design. We will update the keypad button (in the appropriate locales) in a future PR, after LEMS-3535 has been completed. 

## Video Example: 
https://github.com/user-attachments/assets/dd358910-ec21-4e76-8cc1-4405f59b5002

Issue: LEMS-3435

## Test plan:
- New tests pass 
- Manual testing using my [draft locale dropdown feature](#2861) 
- No regressions noticed in existing tests

Author: SonicScrewdriver

Reviewers: SonicScrewdriver, nishasy

Required Reviewers:

Approved By: nishasy

Checks: ✅ 10 checks were successful

Pull Request URL: #2862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants