#573 Measures 2: presentation and parsing per measure, with editor fields
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#573
- issue
- state:closed
Part 2 of #570. Each measure gets a printer and a parser, the analogue of the time presentation. Both are exact and never use binary floating point. - **Modes:** exact (the fraction), fixed decimals with a scale (currency: `$12.34` ↔ `1234` at scale `1/100`, refusing `$12.345`), decimal or scientific with significant digits, SI prefixes, and units (`displayed = stored × scale`, with a label). - **Context:** the printer is given a purpose (value, total, input, tooltip, axis) so a total can be abbreviated where space is short. - **Unchanged text keeps its exact value:** editing a label that was rounded for display doesn't change what's stored. - **Editor:** a field per measure in the moment and duration editors, the timeline settings to declare measures and their presentation, and values shown in the details panel, the reader and hover cards. https://github.com/circagraph/timeline-app/issues/573
Related
- #570 Measures: typed quantities on moments and durations, totalled in every summary
- #577 Measures: declarations, exact values, validation and formats (#572)
- #578 Measures: presentation and parsing per measure, and editor fields (#573)
- #585 Measures: an official library of formats by type; no plugin formats
- Measures: presentation and parsing per measure, and editor fields (#573)
Open #573 Measures 2: presentation and parsing per measure, with editor fields in the timeline