feat(i18n): recompose from the largest measured fraction, show diffs as bought, and make subtraction by kind clear #162
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!162
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/compound-display-polish"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up of the compound quantities end-to-end check (step 3).
formatTerms, computed mode): the largest unit first takes the largest fraction it measures, not whole units:25.5 tbsp→1 1/2 cup + 1 1/2 tbsp(was1 cup + 9 1/2 tbsp),21 tbsp→1 1/4 cup + 1 tbsp,22 oz→1 1/4 lb + 2 oz. Docs examples unchanged.gram diff:fromText/toTextare written as the shopping list writes them:1 cup + 1 tbsp → 1 cup + 3 tbsp(was17 tbsp → 19 tbsp).minusAcrossFamiliesandnonPositiveTotalmessages give the example that works and the one that does not; the hover of a sum of several kinds shows what each comes to (= 14 tbsp (volume) + 30 g (weight), counted apart: each kind adds up and takes away on its own); docs (EN + FR) explain it iningredients.mdxandwarnings.mdx.language-server.mdxsaidvolume + masswhere the hover saysweight: fixed.compound-quantities.md: thegram diffline updated.Checks: typecheck, lint, 3175 tests + new i18n test, conformance 120/120 + 24/24, check-changesets, docs build (links valid, 1012.2 KB / 1040 KB).