* Save dialogs: the Save panel's answer is taken, so Save As and exports write their file
craft-dialogs answers a Save panel with Answer::Saved; the handler matched
Answer::Paths for a save, so the answer went to the arm for Cancel and nothing
was written.
* Save dialogs: a Save panel's path that isn't Unicode text writes nothing
The engine takes its paths as text, so such a path would be changed on the way
to a file the dialog never asked about. The save is refused and the status line
says why.
From the review: the mode guessed from the last commit was wrong after
Eisu or a switch to ABC. The app now reads the selected keyboard input
source (NSTextInputContext, no unsafe) before each frame, and Space types
U+3000 while it is a Japanese input method in a full-width mode. The
commit-based state is gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the review: the class numbers in the bracket-or-comma and full-stop
tests get the characters they stand for.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The close-up test checked the half-em line-end set only; the other Japanese
base set closes up the same pairs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps both new canvas tests, and moves the typed-text arm of handle_input
into insert_typed so it stays under the cognitive complexity limit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Kana seen while composing are cleared when a new composition starts, so a
composition cancelled with Escape no longer turns the space after a later
Chinese or accented commit into an ideographic one.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
The Control panel's Font Size, Leading and Baseline Shift and Character •••
Baseline Shift still used NumField::number with " pt", which read 13Q as
13 pt. NumField::number now makes a points field for the " pt" suffix, so
no point field can miss it; with_suffix is gone.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
The panel showed and read them in points while the Effects dialog uses the
document's unit, so a bare 7 typed in the dialog of a picas document was
7 picas (84 pt) and showed as 84 pt in the panel. The panel now uses the
same unit as the dialog, and reads any unit typed (3mm, 5pt).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
The Chinese sets keep the larger blank between two marks, as before:
JLREQ's rule is Japanese, and Chinese styles (Taiwan's centred, full-width
marks among them) set consecutive punctuation their own way.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
Chinese and Korean input methods type plain spaces (Korean separates
words with them), but a space after any committed CJK text became
U+3000. The input method is now taken to be Japanese when its
composition shows kana, as only Japanese ones do: pinyin, zhuyin and
hangul compositions leave the space plain.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
A line taken in (push-in) closed up every punctuation blank at once,
the space after a full stop included. Following JLREQ 3.8.3, the
quarter ems of middle dots now go first, then the half ems of brackets
and commas, and the space after a full stop is not reduced.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
Opening brackets together, and closing brackets, commas and full stops
together, now touch (JLREQ 3.1.4): 」。 and 「『 no longer keep half an
em between them. A closing bracket and an opening one stay half an em
apart, and other neighbours keep the larger blank, as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
On macOS the window layer (winit) drops what the input method inserts
when nothing is being composed and reports the key's own character, so
Space in a Japanese or Chinese input mode typed a plain space instead of
the ideographic one (U+3000) the input method sends.
While the text before it was CJK text the input method committed, a
plain space is now the ideographic one. Shift+Space stays plain, as the
input methods have it; letters typed straight from the keys (the Roman
mode) end that, and accents a Latin input method composes don't start
it. Other systems report what the input method typed and are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
A font of a pan-CJK family lists the code pages of every language it
covers. With no `meta` languages and no CJK family name, the first group
in menu order won, so a Simplified Chinese face such as "… Noto Sans CJK
SC" was listed under Japanese.
When a font lists several CJK code pages, the region tag in its family
name (JP; SC, CN, GB; TC, HK, TW, MO, HC; KR — a whole word in capitals)
now decides, if the font lists that language. Fonts with one CJK code
page, or none, are grouped as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
- install_fonts no longer waits for the system font catalog on the first
frame: the built-in faces are installed at once, the scan runs in the
background, and the installed CJK faces are added when it is done.
- The installed faces are read once and shared: changing the interface
language reorders them without copying the font files into egui again.
- fonts: line_metrics no longer sits between feature's doc comment and
feature.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
patch_texture computed the damaged region in view pixels and wrote it
with set_partial into the canvas texture upload() had sampled down to
the GPU limit: a viewport wider than max_texture_side put the region in
the wrong place or outside the texture (a wgpu validation error on the
first edit). Such a texture is now rendered whole.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
The system menu bar was built once at launch, so Edit › Interface
Language changed the panels but left the menus in the old language
until the next launch. It is rebuilt when the language changes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
Without the craft-fonts build input the interface had no CJK glyphs:
egui can't find system fonts, so Japanese and Chinese menus and labels
drew as boxes, and Korean and Traditional Chinese font names in the
font menus did in every build.
- The first installed UI face of each script (Japanese, Simplified
Chinese, Traditional Chinese, Korean; macOS, Windows and Linux
families) is added as a fallback for the scripts craft-fonts doesn't
cover.
- A fallback face sits on the UI face's baseline: egui centres a
fallback's line height in the primary's, so a CJK face with a taller
ascent or a line gap sat above or below the Latin text beside it.
The tweak is computed from the two faces' line metrics.
- The interface language's script comes first, before the built-in CJK
faces, so Han characters take that language's forms.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
The Glyphs panel drew its whole grid as one texture: up to 1200
characters of a large CJK font in a narrow panel (7 columns x 60 px)
made it 10320 px tall and wgpu panicked past the 8192 px limit. The
grid now stops at the rows the largest texture holds, and every UI
texture goes through widgets::fit_texture / load_texture, which
sample an oversized image down instead of panicking.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2