feat: notes on temperatures, ^{160°C}(fan) #169
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!169
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/temperature-note"
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?
Summary
A temperature can carry a note in parentheses glued to its closing brace:
^{160°C}(fan),^oven{180°C}(grill),^{63°C}(internal),^{high heat}(covered). Plan:.notes/v1.5/plan-temperature-note-1.5.md(revised 2026-11-16).Changes
Temperaturebecomes the lexical ruletemperature, so only a parenthesis touching}is a note;^{180°C} (prose)keeps its parenthesis in the sentence. NewgluedNoterule, on one line (an unclosed(is prose, never a note running to the next)further down), meant to be shared with the sensory checkpoints.TemperatureAST.note, left out when absent or empty.^ {180°C}and^four {180°C}read as before. TextMate colors the note like a preparation.ProcessedTemperature.note, left out when absent: no existing compiled output changes.TemperatureDeltabounds carrynote(newTemperatureValuetype);gram diffreports an added, removed or changed note.formatTemperature(exported, the value only, mirror offormatTimerDuration) shared byelement.tsandgram cook. The note is always in the sentence (HTML, Markdown, text, print). In HTML it sits outside the pill in atemp-groupspan (newclasses.temperatureGroup), so the line may break before it despite.gram-nobr; the note reusesclasses.prepText(.prep), already styled in the recipe view. A temperature without a note keeps its exact DOM.gram cookshows temperatures like the views (180 °C, temperatures in words too) with their note;gram diffprints the note; thegram importprompt keeps the oven mode as a note.indexOfafter{, notlastIndexOf, so a}inside a note is not taken for it.047-temperature-note(glued, named, in words, spaced, empty, unclosed);legacy-1.3.0ignoresnoteon temperatures; the audit knowsTemperature:hasNote.<Since v="1.5.0" />and a caution on the glued rule), cheatsheet, AI generation notes,llms-full.txt.Checks
bun run build,bun run typecheck,bun run lint,bun run deprecations:check.bun test: 3221 pass, no snapshot regenerated.bun run conformance: 121 cases, no existing golden changed;legacy-1.3.0digests unchanged.Temperature:hasNote.temperature-note.md(parser, kitchen, analyzer, renderer, cli, minor).