45 Commits
Author SHA1 Message Date
con3 00f9be6e55 Save dialogs: the Save panel's answer is taken, so Save As and exports write their file
* 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.
2026-12-01 16:47:17 -06:00
con3code 4c2ec6d0df Merge remote-tracking branch 'upstream/main' into fix/ja-decimal-inches 2026-11-27 19:32:20 +09:00
con3code df20ab5aac Merge remote-tracking branch 'upstream/main' into fix/ime-ideographic-space 2026-11-27 02:59:47 +09:00
con3code 368315bdb0 i18n: record the Japanese unit names InDesign shows (#1363) 2026-11-11 23:23:55 +09:00
con3code 60e5e81925 i18n: Japanese names Inches Decimal デシマルインチ, as InDesign does (#1363) 2026-11-11 09:23:01 +09:00
con3codeandClaude Opus 5.5 fd04ea2a56 IME: read the macOS input source instead of guessing the Japanese mode
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]>
2026-11-04 09:52:08 +09:00
con3code 2b5d2f093c Merge remote-tracking branch 'upstream/main' into fix/ime-ideographic-space 2026-11-04 09:32:55 +09:00
con3codeandClaude Opus 5.5 2a08c20f34 Mojikumi: name the character classes in the reduction tiers
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]>
2026-11-04 09:20:38 +09:00
con3codeandClaude Opus 5.5 3894566812 Mojikumi: test consecutive punctuation under the one-em line-end set too
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]>
2026-11-04 09:01:20 +09:00
con3codeandClaude Opus 5.5 98b65eff19 Merge upstream/main into fix/ime-ideographic-space
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]>
2026-11-01 17:12:22 +09:00
con3code 206dbe8499 Merge remote-tracking branch 'upstream/main' into fix/effects-panel-units
# Conflicts:
#	crates/ui-egui/src/panels/properties.rs
2026-10-28 02:03:29 +09:00
con3code 2e8455b073 Merge remote-tracking branch 'upstream/main' into fix/ime-ideographic-space
# Conflicts:
#	crates/ui-egui/src/canvas.rs
#	crates/ui-egui/src/lib.rs
2026-10-28 01:37:07 +09:00
con3code 7e3c7bd9b3 Merge remote-tracking branch 'upstream/main' into fix/type-fields-read-units
# Conflicts:
#	crates/ui-egui/src/panels/properties.rs
#	crates/ui-egui/src/widgets.rs
2026-10-28 01:37:05 +09:00
con3codeandClaude Opus 5.5 bf42dee573 Text: a cancelled Japanese composition does not make the next one Japanese
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
2026-10-25 16:24:24 +09:00
con3codeandClaude Opus 5.5 c2ef34f1f5 Text: Shift+Space and a moved caret decide the ideographic space as typed
The Shift held at the space counts, not the one at the frame's end, and a
caret moved earlier in the frame resets Japanese typing before the space is
converted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-25 15:31:57 +09:00
con3code 32725cbe74 Merge remote-tracking branch 'upstream/main' into fix/mojikumi-reduction-order 2026-10-25 12:43:11 +09:00
con3code a4106eafe0 Merge remote-tracking branch 'upstream/main' into fix/mojikumi-consecutive-punctuation 2026-10-25 12:43:11 +09:00
con3code 1605cada6e Merge remote-tracking branch 'upstream/main' into fix/idml-q-unit 2026-10-25 12:43:11 +09:00
con3code 920cf1e310 Merge remote-tracking branch 'upstream/main' into fix/ime-ideographic-space 2026-10-25 12:43:11 +09:00
con3codeandClaude Opus 5.5 2c401cb543 Number fields: every " pt" field reads the unit typed
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
2026-10-25 07:50:15 +09:00
con3code 98af30bbd8 Merge remote-tracking branch 'upstream/main' into fix/type-fields-read-units
# Conflicts:
#	crates/ui-egui/src/widgets.rs
2026-10-24 22:50:12 +09:00
con3code d7168ea46f Merge remote-tracking branch 'upstream/main' into fix/effects-panel-units
# Conflicts:
#	crates/ui-egui/src/panels/properties.rs
2026-10-24 22:50:10 +09:00
con3codeandClaude Opus 5.5 2ea4ac7d45 Effects panel: drop shadow Distance and Size in the document's unit (#1523)
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
2026-10-22 19:32:14 +09:00
con3codeandClaude Opus 5.5 d8b31de862 Type fields read the unit typed (13Q, 5mm), as InDesign's do (#1359)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 21:31:24 +09:00
con3codeandClaude Opus 5.5 92bcf7c1ae IDML: Q ruler units are Q, as InDesign writes them (#1360)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 21:31:22 +09:00
con3codeandClaude Opus 5.5 77184d067a Mojikumi: test the bracket tier with !「, which #1222 leaves alone
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 19:52:41 +09:00
con3codeandClaude Opus 5.5 5248ad683c Mojikumi: a middle dot beside a bracket keeps only its quarter em (JLREQ 3.1.4)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 19:33:13 +09:00
con3codeandClaude Opus 5.5 6bf98c0d20 IME: Japanese typing ends when the caret changes story or leaves the text
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 19:33:13 +09:00
con3codeandClaude Opus 5.5 4db54f5d47 Mojikumi: the reduction tier follows the character classes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-20 19:33:13 +09:00
con3codeandClaude Opus 5.5 91d4c66b24 docs/cjk.md: mojikumi is applied; consecutive punctuation
The status table still said mojikumi tables were kept but not applied,
which #129 changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-18 01:12:41 +09:00
con3codeandClaude Opus 5.5 4b05bb3804 Mojikumi: the JLREQ reduction order in the Japanese sets only
The Chinese sets keep reducing every punctuation blank together, a full
stop's included, as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-17 23:42:21 +09:00
con3codeandClaude Opus 5.5 46596a9d19 Mojikumi: close up consecutive punctuation in the Japanese sets only
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
2026-10-17 23:42:21 +09:00
con3codeandClaude Opus 5.5 6ca6f307b0 Text: only Japanese input methods type the ideographic space on Space
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
2026-10-17 23:28:36 +09:00
con3codeandClaude Opus 5.5 e06f4134d4 Mojikumi: move the consecutive punctuation test clear of #1127's
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-17 23:08:18 +09:00
con3codeandClaude Opus 5.5 4b4c592d2d Mojikumi: reduce middle dots first, never a full stop's space
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
2026-10-17 23:06:34 +09:00
con3codeandClaude Opus 5.5 aa55877b7a Mojikumi: consecutive punctuation closes up
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
2026-10-17 22:51:34 +09:00
con3codeandClaude Opus 5.5 ab2f105dc0 Text: Space types an ideographic space after committed CJK text on macOS
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
2026-10-17 16:53:00 +09:00
con3codeandClaude Opus 5.5 65f0b37920 Fonts: system_fonts_cataloged builds on wasm
`cfg!` doesn't remove the expression, and `cataloged` only exists off
wasm, so `cargo xtask wasm` failed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-11 10:00:17 +09:00
con3codeandClaude Opus 5.5 52ffb3c68a Fonts: a pan-CJK font's family name decides its font menu group
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
2026-10-11 09:50:51 +09:00
con3codeandClaude Opus 5.5 70cfd2d4fa UI: installed CJK faces are read once, without waiting for the font scan
- 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
2026-10-11 08:30:39 +09:00
con3codeandClaude Opus 5.5 cc836fe4df UI: an edit repaints a sampled-down canvas texture whole
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
2026-10-11 08:25:43 +09:00
con3codeandClaude Opus 5.5 6252dc3737 UI: the welcome screen's Discord button clears the text beside it
The community card is wider and its text wraps before the button's
space, so a longer translation of the line under the title no longer
runs under the button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013phQ3ekq6uGBEWD6FjFYG2
2026-10-11 07:49:49 +09:00
con3codeandClaude Opus 5.5 cc12ea576f macOS: the menu bar follows the interface language at once
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
2026-10-11 07:49:21 +09:00
con3codeandClaude Opus 5.5 a62188aa9b UI: CJK interface text from installed fonts, on the Latin baseline
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
2026-10-11 07:47:14 +09:00
con3codeandClaude Opus 5.5 bf173db1de UI: no crash on textures past the GPU limit
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
2026-10-11 07:46:07 +09:00