Compare commits

...
Author SHA1 Message Date
Martin Ball 8f627faed0 Merge remote-tracking branch 'origin/fix/8811-status-ink' into test/overnight-5dec 2026-12-05 08:48:48 +00:00
Martin Ball 8cc1912dc0 test: trial repin to craft-libs test/overnight-5dec (18499ec3) 2026-12-05 08:48:48 +00:00
Martin BallandClaude Opus 5.5 0eda97fe8c #8811: the status bar's muted-ink override returns nothing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 08:48:41 +00:00
Martin Ball db301eb1ba Merge remote-tracking branch 'origin/fix/8980-vertical-ime-preedit' into test/overnight-5dec
; Conflicts:
;	crates/ui-egui/src/canvas/tests.rs
2026-12-05 08:41:38 +00:00
Martin Ball ab05f3f6d4 Merge remote-tracking branch 'origin/fix/8855-touchpad-glide' into test/overnight-5dec
; Conflicts:
;	crates/ui-egui/src/canvas.rs
2026-12-05 08:41:28 +00:00
Martin Ball 440243e3d7 Merge remote-tracking branch 'origin/fix/8969-flatpak-kde-clipboard' into test/overnight-5dec 2026-12-05 08:41:20 +00:00
Martin Ball 18369a756e Merge remote-tracking branch 'origin/fix/8811-status-ink' into test/overnight-5dec 2026-12-05 08:41:20 +00:00
Martin Ball e8b2c87781 Merge remote-tracking branch 'origin/fix/8853-interface-scale' into test/overnight-5dec 2026-12-05 08:41:18 +00:00
Martin Ball bf556a1cd6 Merge remote-tracking branch 'origin/fix/9111-print-preview-sheet-edge' into test/overnight-5dec 2026-12-05 08:41:18 +00:00
Martin Ball 0bcb856280 Merge remote-tracking branch 'origin/fix/8872-vmerge-page-split' into test/overnight-5dec 2026-12-05 08:41:16 +00:00
Martin BallandClaude Sonnet 5.5 c1a23c6a1f #8872: a merge's continuing fill no longer covers the cell's side borders
The continuation fill was pushed after the row's items, so it painted over the inner half of the side and bottom borders. Fills now go first, the opening top rules last.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-05 07:19:01 +00:00
Martin BallandClaude Sonnet 5.5 241bf8c94d #8853: interface size uses the document window's display scale, not the hidden root's
Cause: the zoom is context-wide and divided the display scale read from the root viewport; the windowless root (v0.20.0) has no window, so it reported none (1.0) and a chosen size drew at size x the window's real scale (too large on a scaled display, wrong on mixed DPI). Now read from the active document viewport.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 06:15:17 +00:00
Martin BallandClaude Sonnet 5.5 04a3c76c10 #8872: a merged cell keeps its fill across a column break and a page start
A column change now starts a merge continuation like a page change; closing a page
trims only items this table placed there; a row laid out alone for a page start
still knows the restart fills of earlier rows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-05 06:04:47 +00:00
Martin BallandClaude Opus 5.5 fbe41cca76 #9111: no test for a pixel loop; an empty sheet image is left alone
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 05:55:54 +00:00
Martin BallandClaude Sonnet 5.5 553f0058ee #9111: Print preview shows the sheet's edge, so a portrait page no longer looks like a landscape sheet
The preview pane's background is as white as the paper, so the sheet's own shape was invisible: a portrait sheet centred in a wide pane read as a landscape sheet with the page off to one side. The sheet and orientation logic were correct (Auto keeps the page's own orientation, page centred). The drawn sheet now has a one-pixel grey edge.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 05:50:55 +00:00
Martin BallandClaude Sonnet 5.5 f086af023f #8980: IME composition in vertical text runs down the line at the text size
The composition was drawn horizontally in the interface font whenever the
caret lay in turned text (typing_style and the caret were horizontal-only).
Caret now carries the line's direction and typing_style serves turned text;
the canvas stacks the composition's characters upright down (tbRl) or up
(btLr) the line at the run's size, and reports the column it fills as the
candidate window rect.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 04:35:45 +00:00
Martin BallandClaude Sonnet 5.5 f9ff36d67c #8811: status bar page, word count and language read in the muted ink again
Cause: the craft-ui port drew the readouts in full ink; v0.19.1 used text_dim.
Fix: set AfterInk::Muted around the readouts; craft-libs now honours it on ghost buttons
(depends on the craft-libs PR, builds after the repin).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 04:26:00 +00:00
Martin BallandClaude Sonnet 5.5 ce2b01e005 #8855: touchpad scrolling glides on after the fingers lift again on Linux
The v0.19.1 scroll code synthesised touchpad momentum where the system sends none. The craft-ui port moved wheel handling to craft-libs' canvas, whose touchpad_glide option is off by default and was never enabled. Enable it on the platforms v0.19.1 used (not macOS, Windows, web).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 03:15:27 +00:00
Martin BallandClaude Sonnet 5.5 0739eb7379 #8969: Flatpak on KDE Plasma Wayland can paste again
Cause: KWin has no data-control protocol, arboard falls back to X11, but fallback-x11 gives the sandbox no X11 under Wayland.
Fix: grant --socket=x11 beside wayland so the XWayland clipboard bridge is reachable. Interim: a real wl_data_device clipboard belongs in craft-libs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 02:33:00 +00:00
Martin BallandClaude Sonnet 5.5 17fecc43ec #8872: an unshaded merge does not take the shading of an earlier one
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 01:29:10 +00:00
Martin BallandClaude Sonnet 5.5 1a7b691293 #8872: a merged cell crossing a page break closes at the page end and continues on the next page
Rows are laid out before pagination, so a vertically merged cell had no border where a
page ended and no fill or top border where it went on. Rows now carry the merge's closing
bottom border and its continuation fill and top border; place_table adds them when a page
ends or starts inside a merge, and the cell areas end with the last row on the page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 01:23:40 +00:00
Martin BallandClaude Sonnet 5.5 a6e831e8ca #8872: a merged table cell crossing a page break ends at the page bottom
A restart cell's fill, picture clip and cell box span all merged rows, but rows are
placed page by page, so the box hung past the page edge (gridlines crossed the gap).
Cut those rects at the page's content bottom when the row is placed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 01:13:02 +00:00
15 changed files with 495 additions and 177 deletions
Generated
+98 -97
View File
@@ -1173,7 +1173,7 @@ dependencies = [
[[package]]
name = "craft"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-automation",
"craft-behavior",
@@ -1224,7 +1224,7 @@ dependencies = [
[[package]]
name = "craft-appkit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"block2 0.6.2",
"objc2 0.6.5",
@@ -1236,7 +1236,7 @@ dependencies = [
[[package]]
name = "craft-atomic"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"rustix 1.1.6",
]
@@ -1244,7 +1244,7 @@ dependencies = [
[[package]]
name = "craft-automation"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -1269,11 +1269,12 @@ dependencies = [
[[package]]
name = "craft-behavior"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"accesskit",
"bitflags 2.13.2",
"craft-host",
"craft-i18n",
"craft-keymap",
"craft-theme",
"craft-tracked",
@@ -1287,7 +1288,7 @@ dependencies = [
[[package]]
name = "craft-browse"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-docpath",
@@ -1305,12 +1306,12 @@ dependencies = [
[[package]]
name = "craft-cfb"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "craft-cloud-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"egui",
]
@@ -1318,7 +1319,7 @@ dependencies = [
[[package]]
name = "craft-cms"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"md-5",
"rayon",
@@ -1327,12 +1328,12 @@ dependencies = [
[[package]]
name = "craft-codepage"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "craft-color"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"serde",
]
@@ -1340,7 +1341,7 @@ dependencies = [
[[package]]
name = "craft-color-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-cms",
@@ -1360,7 +1361,7 @@ dependencies = [
[[package]]
name = "craft-control"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-ai-agents",
"craft-atomic",
@@ -1376,7 +1377,7 @@ dependencies = [
[[package]]
name = "craft-control-protocol"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"getrandom 0.3.4",
"serde_json",
@@ -1386,7 +1387,7 @@ dependencies = [
[[package]]
name = "craft-dds"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"rayon",
]
@@ -1394,7 +1395,7 @@ dependencies = [
[[package]]
name = "craft-dialogs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"block2 0.6.2",
"craft-appkit",
@@ -1420,7 +1421,7 @@ dependencies = [
[[package]]
name = "craft-doc-binary"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"chrono",
"craft-cfb",
@@ -1437,7 +1438,7 @@ dependencies = [
[[package]]
name = "craft-docpath"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"serde",
]
@@ -1445,7 +1446,7 @@ dependencies = [
[[package]]
name = "craft-docx"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.23.1",
"chrono",
@@ -1465,7 +1466,7 @@ dependencies = [
[[package]]
name = "craft-draw"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1484,7 +1485,7 @@ dependencies = [
[[package]]
name = "craft-drawingml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"chrono",
"craft-xml",
@@ -1496,7 +1497,7 @@ dependencies = [
[[package]]
name = "craft-flags"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-atomic",
"dirs",
@@ -1506,7 +1507,7 @@ dependencies = [
[[package]]
name = "craft-flow"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-wordmodel",
"image",
@@ -1516,7 +1517,7 @@ dependencies = [
[[package]]
name = "craft-font-catalog"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"fontique",
"harfrust 0.13.3",
@@ -1531,7 +1532,7 @@ dependencies = [
[[package]]
name = "craft-font-manager"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -1550,7 +1551,7 @@ dependencies = [
[[package]]
name = "craft-font-os-windows"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"windows-registry",
"windows-sys 0.61.2",
@@ -1559,7 +1560,7 @@ dependencies = [
[[package]]
name = "craft-font-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"cap-primitives",
"craft-atomic",
@@ -1582,7 +1583,7 @@ dependencies = [
[[package]]
name = "craft-font-subset"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"brotli 9.1.3",
"harfbuzz-subset-sys",
@@ -1595,7 +1596,7 @@ dependencies = [
[[package]]
name = "craft-fonts-build"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-font-subset",
]
@@ -1603,7 +1604,7 @@ dependencies = [
[[package]]
name = "craft-gpu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"egui-wgpu",
"log",
@@ -1615,7 +1616,7 @@ dependencies = [
[[package]]
name = "craft-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"bitflags 2.13.2",
"craft-i18n",
@@ -1628,7 +1629,7 @@ dependencies = [
[[package]]
name = "craft-html"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-codepage",
"craft-flow",
@@ -1641,7 +1642,7 @@ dependencies = [
[[package]]
name = "craft-i18n"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"brotli 9.1.3",
"brotli-decompressor 6.3.1",
@@ -1671,7 +1672,7 @@ dependencies = [
[[package]]
name = "craft-image-codecs"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-dds",
"craft-jpeg",
@@ -1698,7 +1699,7 @@ dependencies = [
[[package]]
name = "craft-imaging"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-color-ui",
@@ -1716,7 +1717,7 @@ dependencies = [
[[package]]
name = "craft-jpeg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"thiserror 2.0.21",
]
@@ -1724,7 +1725,7 @@ dependencies = [
[[package]]
name = "craft-keymap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-host",
"craft-i18n",
@@ -1739,7 +1740,7 @@ dependencies = [
[[package]]
name = "craft-latex"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-flow",
"craft-math",
@@ -1750,7 +1751,7 @@ dependencies = [
[[package]]
name = "craft-markdown"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-flow",
"craft-html",
@@ -1760,7 +1761,7 @@ dependencies = [
[[package]]
name = "craft-math"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-xml",
"roxmltree",
@@ -1770,7 +1771,7 @@ dependencies = [
[[package]]
name = "craft-mcp-server"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"serde_json",
]
@@ -1778,7 +1779,7 @@ dependencies = [
[[package]]
name = "craft-menu"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1796,7 +1797,7 @@ dependencies = [
[[package]]
name = "craft-metadata"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"brotli-decompressor 6.3.1",
"chrono",
@@ -1808,7 +1809,7 @@ dependencies = [
[[package]]
name = "craft-metafile"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"encoding_rs",
"image",
@@ -1819,7 +1820,7 @@ dependencies = [
[[package]]
name = "craft-mime"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"chardetng",
"chrono",
@@ -1830,7 +1831,7 @@ dependencies = [
[[package]]
name = "craft-nightly"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"uds_windows",
"winsafe",
@@ -1839,7 +1840,7 @@ dependencies = [
[[package]]
name = "craft-odf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"aes",
"base64 0.23.1",
@@ -1865,7 +1866,7 @@ dependencies = [
[[package]]
name = "craft-ods"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-odf",
"craft-sheet",
@@ -1876,7 +1877,7 @@ dependencies = [
[[package]]
name = "craft-offcrypto"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"aes",
"base64 0.23.1",
@@ -1893,7 +1894,7 @@ dependencies = [
[[package]]
name = "craft-opc"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-xml",
"craft-zip",
@@ -1904,7 +1905,7 @@ dependencies = [
[[package]]
name = "craft-pages"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -1920,7 +1921,7 @@ dependencies = [
[[package]]
name = "craft-pdf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"krilla",
"serde",
@@ -1930,7 +1931,7 @@ dependencies = [
[[package]]
name = "craft-platform"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"arboard",
"async-channel",
@@ -1968,7 +1969,7 @@ dependencies = [
[[package]]
name = "craft-print"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -1992,7 +1993,7 @@ dependencies = [
[[package]]
name = "craft-proof"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"log",
"miniz_oxide 0.9.1",
@@ -2003,7 +2004,7 @@ dependencies = [
[[package]]
name = "craft-quit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"dispatch2",
"egui",
@@ -2016,7 +2017,7 @@ dependencies = [
[[package]]
name = "craft-review"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.23.1",
"craft-behavior",
@@ -2035,7 +2036,7 @@ dependencies = [
[[package]]
name = "craft-rtf"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-codepage",
"craft-flow",
@@ -2048,7 +2049,7 @@ dependencies = [
[[package]]
name = "craft-settings"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-atomic",
"craft-host",
@@ -2065,17 +2066,17 @@ dependencies = [
[[package]]
name = "craft-sheet"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "craft-ssip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "craft-svg"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-xml",
"flate2",
@@ -2092,7 +2093,7 @@ dependencies = [
[[package]]
name = "craft-table"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2104,7 +2105,7 @@ dependencies = [
[[package]]
name = "craft-text"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2128,7 +2129,7 @@ dependencies = [
[[package]]
name = "craft-theme"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"bitflags 2.13.2",
"craft-tracked",
@@ -2143,7 +2144,7 @@ dependencies = [
[[package]]
name = "craft-theme-store"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-atomic",
"craft-behavior",
@@ -2158,7 +2159,7 @@ dependencies = [
[[package]]
name = "craft-tiff"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2168,7 +2169,7 @@ dependencies = [
[[package]]
name = "craft-time"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"serde",
"thiserror 2.0.21",
@@ -2177,7 +2178,7 @@ dependencies = [
[[package]]
name = "craft-timeline"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-keymap",
@@ -2192,12 +2193,12 @@ dependencies = [
[[package]]
name = "craft-tracked"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "craft-ui"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-cloud-ui",
"craft-ui-canvas",
@@ -2211,7 +2212,7 @@ dependencies = [
[[package]]
name = "craft-ui-canvas"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-font-catalog",
@@ -2228,7 +2229,7 @@ dependencies = [
[[package]]
name = "craft-ui-contract"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"accesskit",
"craft-behavior",
@@ -2266,7 +2267,7 @@ dependencies = [
[[package]]
name = "craft-ui-macros"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"proc-macro-crate",
"proc-macro2",
@@ -2277,7 +2278,7 @@ dependencies = [
[[package]]
name = "craft-ui-panels"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2295,7 +2296,7 @@ dependencies = [
[[package]]
name = "craft-ui-patterns"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2316,7 +2317,7 @@ dependencies = [
[[package]]
name = "craft-ui-shell"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2337,7 +2338,7 @@ dependencies = [
[[package]]
name = "craft-ui-test-kit"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2348,7 +2349,7 @@ dependencies = [
[[package]]
name = "craft-ui-widgets"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-behavior",
"craft-host",
@@ -2367,7 +2368,7 @@ dependencies = [
[[package]]
name = "craft-update"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.22.1",
"chrono",
@@ -2399,7 +2400,7 @@ dependencies = [
[[package]]
name = "craft-web-api"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"js-sys",
"serde_json",
@@ -2410,7 +2411,7 @@ dependencies = [
[[package]]
name = "craft-web-host"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-host",
"craft-platform",
@@ -2422,7 +2423,7 @@ dependencies = [
[[package]]
name = "craft-win32"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"winsafe",
]
@@ -2430,7 +2431,7 @@ dependencies = [
[[package]]
name = "craft-window"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-appkit",
"craft-atomic",
@@ -2462,7 +2463,7 @@ dependencies = [
[[package]]
name = "craft-wordmodel"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.23.1",
"craft-math",
@@ -2476,7 +2477,7 @@ dependencies = [
[[package]]
name = "craft-xls"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-cfb",
"craft-sheet",
@@ -2489,7 +2490,7 @@ dependencies = [
[[package]]
name = "craft-xlsx"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"craft-drawingml",
"craft-opc",
@@ -2501,7 +2502,7 @@ dependencies = [
[[package]]
name = "craft-xml"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"quick-xml 0.41.0",
"serde",
@@ -2511,7 +2512,7 @@ dependencies = [
[[package]]
name = "craft-zip"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"flate2",
"thiserror 2.0.21",
@@ -3904,7 +3905,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a"
[[package]]
name = "hayro-cmap"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"brotli 8.0.4",
"hayro-postscript",
@@ -3913,7 +3914,7 @@ dependencies = [
[[package]]
name = "hayro-interpret"
version = "0.7.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"bitflags 2.13.2",
"hayro-cmap",
@@ -3931,7 +3932,7 @@ dependencies = [
[[package]]
name = "hayro-jbig2"
version = "0.3.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"fearless_simd",
"hayro-ccitt",
@@ -3949,12 +3950,12 @@ dependencies = [
[[package]]
name = "hayro-postscript"
version = "0.1.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
[[package]]
name = "hayro-syntax"
version = "0.7.2"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"flate2",
"hayro-ccitt",
@@ -4683,7 +4684,7 @@ dependencies = [
[[package]]
name = "krilla"
version = "0.8.2"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"base64 0.22.1",
"bumpalo",
@@ -4822,7 +4823,7 @@ checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
[[package]]
name = "linesweeper"
version = "0.5.0"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
dependencies = [
"arrayvec",
"kurbo",
@@ -10093,4 +10094,4 @@ source = "git+https://github.com/storytold/egui.git?rev=399fc6e0ea65059e37de680f
[[patch.unused]]
name = "hayro"
version = "0.7.1"
source = "git+https://github.com/storytold/craft-libs?rev=ad10c35ae545f0fb816364381a1a8154012b2359#ad10c35ae545f0fb816364381a1a8154012b2359"
source = "git+https://github.com/storytold/craft-libs?rev=18499ec3a61f6d7a7d8a70951fa9765e5cf9853c#18499ec3a61f6d7a7d8a70951fa9765e5cf9853c"
+39 -39
View File
@@ -37,22 +37,22 @@ wordcraft-pdf = { path = "crates/pdf" }
# reads the ca-valencia pack), #589 (French elision suggestions first), #497 (flag-based
# compounding), #496 (review follow-ups, en-AU) and the merged #482–#490/#495 stack; the font
# store's `language-pack` kind is #486 (CP4.1).
wordcraft-proof = { package = "craft-proof", git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-ssip = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
wordcraft-proof = { package = "craft-proof", git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-ssip = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
wordcraft-engine = { path = "crates/engine" }
wordcraft-mcp = { path = "crates/mcp" }
wordcraft-zotero = { path = "crates/zotero" }
wordcraft-control-key = { path = "crates/control-key" }
wordcraft-ui-egui = { path = "crates/ui-egui" }
wordcraft-validate = { path = "crates/validate" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", default-features = false }
craft-ui-test-kit = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
craft-codepage = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", default-features = false }
craft-ui-test-kit = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
# foundation
kurbo = { version = "0.13", features = ["serde"] }
@@ -85,28 +85,28 @@ wuff = "0.2.9"
brotli-decompressor = "5"
vello_cpu = "0.2"
image = { version = "0.25", default-features = false }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", default-features = false, features = ["write"] }
craft-image-codecs = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", default-features = false, features = ["write"] }
craft-wordmodel = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-docx = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-mcp-server = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-rtf = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", features = ["doc"] }
craft-doc-binary = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-flow = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-odf = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", features = ["text"] }
craft-markdown = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-html = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", features = ["flow"] }
craft-latex = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-math = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0", features = ["detect"] }
craft-sheet = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-ods = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-xls = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-xlsx = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", version = "=0.1.0" }
craft-wordmodel = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-docx = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-mcp-server = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-rtf = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", features = ["doc"] }
craft-doc-binary = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-flow = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-odf = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", features = ["text"] }
craft-markdown = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-html = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", features = ["flow"] }
craft-latex = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-math = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0", features = ["detect"] }
craft-sheet = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-ods = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-xls = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-xlsx = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", version = "=0.1.0" }
# zlib streams (compressed metafile pictures in `.doc` drawings); already in the lock as a dependency of other crates.
miniz_oxide = "0.9"
cfb = "0.15"
@@ -174,14 +174,14 @@ debug = 0
# The framework's patches, which Cargo does not carry over to dependents: its vendored crates from craft-libs,
# and the egui and winit forks it builds with.
[patch.crates-io]
krilla = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
krilla = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
ecolor = { git = "https://github.com/storytold/egui.git", rev = "399fc6e0ea65059e37de680f11ebbd177bf7d4ff" }
emath = { git = "https://github.com/storytold/egui.git", rev = "399fc6e0ea65059e37de680f11ebbd177bf7d4ff" }
epaint = { git = "https://github.com/storytold/egui.git", rev = "399fc6e0ea65059e37de680f11ebbd177bf7d4ff" }
+6 -8
View File
@@ -12,7 +12,7 @@ use crate::{DocLayout, Page, Placed};
/// Caret geometry on a page: a bar from (`x`, `top`) to (`x + width`, `top + height`). It is
/// upright (`width` 0) except in turned text (a table cell's text direction), where it lies
/// across the page (`height` 0).
/// across the page (`height` 0), and `turn` is the direction its line reads in.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct Caret {
pub page: usize,
@@ -20,6 +20,7 @@ pub struct Caret {
pub top: f32,
pub height: f32,
pub width: f32,
pub turn: TextDirection,
}
/// An equation as [`DocLayout::equation_box`] finds it, in page coordinates: its left edge
@@ -757,7 +758,7 @@ impl DocLayout {
let base = top + (l.baseline - l.top);
let ctop = (base - asc).max(top);
let r = crate::turn_rect(*turn, *x, *y, Rect::new(cx, ctop, 0.0, (base + desc - ctop).max(4.0)));
return Some(Caret { page: pi, x: r.x, top: r.y, height: r.h, width: r.w });
return Some(Caret { page: pi, x: r.x, top: r.y, height: r.h, width: r.w, turn: *turn });
}
None
}
@@ -765,18 +766,15 @@ impl DocLayout {
/// The style run text typed at `pos` would take (the character's before it, or at the start
/// of a paragraph the first character's) and the baseline it sits on, on the page: `pos`'s
/// line's, raised or lowered by the run's shift (superscript, `w:position`). An input method's
/// composition is drawn with them, as Word draws it in the text's own font and size. `None` in
/// turned text, whose lines aren't horizontal.
/// composition is drawn with them, as Word draws it in the text's own font and size. In turned
/// text the baseline is meaningless (the lines aren't horizontal); use the run only.
pub fn typing_style(&self, pos: &Pos, page_hint: usize) -> Option<(StyleRun, f32)> {
for (_, it) in self.pieces(pos.story, &pos.path, page_hint) {
let Placed::Lines { para, l0, l1, y, turn, .. } = it else { continue };
let Placed::Lines { para, l0, l1, y, .. } = it else { continue };
let li = para.line_of(pos.off);
if li < *l0 || li >= *l1 {
continue;
}
if *turn != TextDirection::Horizontal {
return None;
}
let first = para.lines.get(*l0)?;
let line = para.lines.get(li)?;
let at = |off: usize| para.clusters.iter().find(|c| c.start <= off && off < c.end).and_then(|c| para.styles.get(c.style as usize));
+93 -2
View File
@@ -28,6 +28,18 @@ pub struct RowLayout {
pub edge: f32,
/// The row's cells: the items each one owns and where its content ends.
pub cells: Vec<CellPart>,
/// What a vertical merge running over a page break adds to this row.
pub merge: MergeEdges,
}
/// Items of a row for vertical merges crossing a page break (#8872). Rows are laid out before
/// they meet a page, so these are placed only when the row starts or ends one.
#[derive(Default)]
pub struct MergeEdges {
/// When the row is the first on a page: the continuing merge's fill and top border.
pub top: Vec<Placed>,
/// When the row is the last on a page: the closing bottom border of a merge running on.
pub end: Vec<Placed>,
}
/// A cell of a [`RowLayout`].
@@ -899,6 +911,16 @@ fn grow_vertical_merges(rows: &[Vec<CellBox>], heights: &mut [f32]) {
}
}
/// Remember the fill (or none) each restart cell gives its merge's continuation.
fn note_restart_fills(merge_fill: &mut std::collections::HashMap<usize, Rgb>, cells: &[CellBox]) {
for c in cells.iter().filter(|c| c.vmerge == VMerge::Restart) {
match c.fill {
Some(f) => merge_fill.insert(c.g, f),
None => merge_fill.remove(&c.g),
};
}
}
struct TableRows<'a> {
story: StoryRef,
table: &'a Table,
@@ -938,13 +960,17 @@ fn finish_table_rows(ctx: &mut Ctx, input: TableRows<'_>) -> TableLayout {
.collect();
// Second pass: place cells with their row height, fills and borders.
let mut out = Vec::with_capacity(rows.len());
let mut merge_fill: std::collections::HashMap<usize, Rgb> = std::collections::HashMap::new();
for (ri, cells) in rows.into_iter().enumerate() {
if only.is_some_and(|(row, _)| row != ri) {
// The restart fills of earlier rows still shade the continuation of a merge.
note_restart_fills(&mut merge_fill, &cells);
continue;
}
let rh = heights.get(ri).copied().unwrap_or(0.0);
let exact = t.rows.get(ri).is_some_and(|r| r.props.height_rule == HeightRule::Exact && r.props.height.is_some_and(|h| h > 0.0));
let mut items = Vec::new();
let mut merge = MergeEdges::default();
let mut parts = Vec::with_capacity(cells.len());
for (ci, c) in cells.into_iter().enumerate() {
let first = items.len();
@@ -1049,6 +1075,29 @@ fn finish_table_rows(ctx: &mut Ctx, input: TableRows<'_>) -> TableLayout {
if last_of_merge && let Some(e) = b.bottom.filter(Border::is_visible) {
items.push(Placed::Rule { x0: hx0, y0: y1, x1: hx1, y1, border: e });
}
if c.vmerge == VMerge::Restart {
match c.fill {
Some(f) => merge_fill.insert(c.g, f),
None => merge_fill.remove(&c.g),
};
}
if !last_of_merge && let Some(e) = b.bottom.filter(Border::is_visible) {
merge.end.push(Placed::Rule { x0: hx0, y0: y1, x1: hx1, y1, border: e });
}
if c.vmerge == VMerge::Continue {
let mut left = rh;
let mut k = ri + 1;
while cont.get(k).is_some_and(|v| v.contains(&c.g)) {
left += heights.get(k).copied().unwrap_or(0.0);
k += 1;
}
if let Some(color) = merge_fill.get(&c.g) {
merge.top.push(Placed::Fill { rect: Rect::new(c.x, 0.0, c.w, left), color: *color });
}
if let Some(e) = b.top.filter(Border::is_visible) {
merge.top.push(Placed::Rule { x0: hx0, y0, x1: hx1, y1: y0, border: e });
}
}
if let Some(e) = b.left.filter(Border::is_visible) {
items.push(Placed::Rule { x0, y0, x1: x0, y1, border: e });
}
@@ -1075,6 +1124,7 @@ fn finish_table_rows(ctx: &mut Ctx, input: TableRows<'_>) -> TableLayout {
bottom: bottoms.get(ri).copied().unwrap_or(0.0),
edge: edges.get(ri).copied().unwrap_or(0.0),
cells: parts,
merge,
});
}
TableLayout { x, width: total, rows: out }
@@ -1374,11 +1424,52 @@ fn split_row_with(row: &RowLayout, cut: f32, whole_cells: bool) -> Option<(RowLa
}
// The part left on the page is placed and never split again.
Some((
RowLayout { height: cut, items: a, bottom: row.bottom, edge: 0.0, cells: Vec::new() },
RowLayout { height, items: b, bottom: row.bottom, edge: row.edge, cells: parts },
RowLayout {
height: cut,
items: a,
bottom: row.bottom,
edge: 0.0,
cells: Vec::new(),
merge: MergeEdges { top: row.merge.top.clone(), end: at_y(&row.merge.end, cut) },
},
RowLayout {
height,
items: b,
bottom: row.bottom,
edge: row.edge,
cells: parts,
merge: MergeEdges { top: shorter(&row.merge.top, row.height - height), end: at_y(&row.merge.end, height) },
},
))
}
/// Horizontal rules of a merge's edge moved to `y`.
fn at_y(items: &[Placed], y: f32) -> Vec<Placed> {
items
.iter()
.map(
|it| {
if let Placed::Rule { x0, x1, border, .. } = it {
Placed::Rule { x0: *x0, y0: y, x1: *x1, y1: y, border: *border }
} else {
it.clone()
}
},
)
.collect()
}
/// The fills of a merge's top edge for a continuation `by` points shorter than its row.
fn shorter(items: &[Placed], by: f32) -> Vec<Placed> {
items
.iter()
.map(|it| match it {
Placed::Fill { rect, color } => Placed::Fill { rect: Rect::new(rect.x, rect.y, rect.w, (rect.h - by).max(0.0)), color: *color },
other => other.clone(),
})
.collect()
}
type CellItems<'a> = Vec<std::borrow::Cow<'a, [Placed]>>;
/// The items of each cell of a row being split, with each cell's content end, and the cells
+58 -5
View File
@@ -247,18 +247,70 @@ pub(crate) fn place_table(ctx: &mut Ctx, pb: &mut PageBuilder, t: &wordcraft_doc
}
}
let repeated_height: f32 = header_rows.iter().filter_map(|i| tl.rows.get(*i)).map(|r| r.height).sum();
let place = |pb: &mut PageBuilder, row: &table::RowLayout| {
// The page of the last body row placed, and the closing borders of its merges that run on
// (drawn if the next row starts a new page).
let last_page = std::cell::Cell::new((0u32, usize::MAX));
// Where the items of this table's rows on the page and column start; none before a row is placed.
let page_from = std::cell::Cell::new(None::<usize>);
let pending_end: std::cell::RefCell<Vec<Placed>> = std::cell::RefCell::new(Vec::new());
let place = |pb: &mut PageBuilder, row: &table::RowLayout, body: bool| {
let (x, y) = (pb.col_x() + tl.x, pb.y);
let limit = pb.bottom.max(y + row.height);
// A merged cell runs over the pages of its rows: on each its area is the rows there.
let starts_page = body && last_page.get() != (pb.number, pb.col);
if body {
last_page.set((pb.number, pb.col));
*pending_end.borrow_mut() = row
.merge
.end
.iter()
.map(|it| {
let mut it = it.clone();
it.translate(x, y);
it
})
.collect();
}
if let Some(pg) = pb.page() {
for it in &row.items {
if starts_page {
page_from.set(Some(pg.items.len()));
}
// The continuing fill goes under the row's items (their borders), its top rules over them.
let top = if starts_page { row.merge.top.as_slice() } else { &[] };
let (fills, rules) = (top.iter().filter(|i| matches!(i, Placed::Fill { .. })), top.iter().filter(|i| !matches!(i, Placed::Fill { .. })));
for it in fills.chain(&row.items).chain(rules) {
let mut it = it.clone();
it.translate(x, y);
// The area ends at this page's bottom, #8872.
if let Placed::Fill { rect, .. } | Placed::Clip { rect, .. } | Placed::Cell { rect, .. } = &mut it
&& rect.bottom() > limit
{
rect.h = (limit - rect.y).max(0.0);
}
pg.items.push(it);
}
}
pb.y += row.height;
pb.content_bottom = pb.content_bottom.max(pb.y);
};
// The page ends here: close the merges running on to the next one.
let close_merges = |pb: &mut PageBuilder| {
let end = std::mem::take(&mut *pending_end.borrow_mut());
let bottom = pb.y;
if let Some(pg) = pb.page() {
// The merged cells' areas end with the last row on the page.
for it in pg.items.iter_mut().skip(page_from.get().unwrap_or(usize::MAX)) {
if let Placed::Fill { rect, .. } | Placed::Clip { rect, .. } | Placed::Cell { rect, .. } = it
&& rect.y < bottom
&& rect.bottom() > bottom
{
rect.h = bottom - rect.y;
}
}
pg.items.extend(end);
}
page_from.set(None);
};
// Measured in Word: an at-least row's minimum height is reserved, not split. Where less room
// than that is left on a page that already holds something, the row starts the next page
// whole; a row taller than a page then splits from the top of that page.
@@ -350,7 +402,7 @@ pub(crate) fn place_table(ctx: &mut Ctx, pb: &mut PageBuilder, t: &wordcraft_doc
};
match split {
Some((a, b)) => {
place(pb, &a);
place(pb, &a, true);
table_notes(ctx, pb, &a.items);
rest = Some(b);
}
@@ -359,18 +411,19 @@ pub(crate) fn place_table(ctx: &mut Ctx, pb: &mut PageBuilder, t: &wordcraft_doc
None if pb.at_top() || fresh => break,
None => {}
}
close_merges(pb);
pb.advance(block, body_top);
// Repeat header rows, up to the layout's cap.
if ri >= header_rows.len() && ctx.header_repeats.saturating_add(header_cost) <= header_cap {
ctx.header_repeats = ctx.header_repeats.saturating_add(header_cost);
for h in header_rows.iter().filter_map(|hr| tl.rows.get(*hr)) {
place(pb, h);
place(pb, h, false);
}
}
fresh = true;
}
let last = rest.as_ref().or(aligned.as_ref()).unwrap_or(row);
place(pb, last);
place(pb, last, true);
table_notes(ctx, pb, &last.items);
}
// Its own space below (ODT).
+56
View File
@@ -3407,6 +3407,59 @@ fn a_vertical_merge_lays_out_as_one_cell() {
assert_eq!((hit.2, hit.3), (0, 0));
}
/// #8872: a merge running over a page break ends at the page's bottom; the rest is the
/// continuation rows' own.
#[test]
fn a_vertical_merge_across_a_page_break_stays_inside_the_page() {
crate::test_fonts();
use wordcraft_doc::props::{HeightRule, VMerge};
let mut d = Document::new();
let mut t = Table::new(40, 2, 468.0);
for (i, row) in t.rows.iter_mut().enumerate() {
row.props.height = Some(40.0);
row.props.height_rule = HeightRule::Exact;
row.cells[0].props.vmerge = match i {
14 => VMerge::Restart,
15..=18 => VMerge::Continue,
_ => VMerge::None,
};
}
t.rows[14].cells[0].props.shading = Some(wordcraft_doc::props::Rgb(200, 0, 0));
let line = Some(wordcraft_doc::props::Border::single(1.0));
t.props.borders = Some(wordcraft_doc::props::Borders { top: line, left: line, bottom: line, right: line, between: line, inside_v: line });
d.insert_block(StoryRef::Body, &Path::top(0), wordcraft_doc::Block::Table(t)).unwrap();
let l = lay(&d);
let body = l.pages[0].body;
// The merge closes at the end of its first page, and goes on with its fill on the next.
let mut cell0 = None;
let mut closes = false;
for item in &l.pages[0].items {
match item {
Placed::Cell { rect, row: 14, cell: 0, .. } => cell0 = Some(*rect),
Placed::Rule { x0, x1, y0, y1, .. } if y0 == y1 => {
closes |= cell0.is_some_and(|r| *x0 <= r.x + 1.0 && *x1 >= r.x + r.w - 1.0 && *y0 >= r.bottom() - 0.01)
}
_ => {}
}
}
assert!(closes, "a border closes the merged cell on its first page");
let next = l.pages[1].items.iter().find_map(|i| match i {
Placed::Fill { rect, .. } if rect.x < cell0.unwrap().x + 1.0 => Some(*rect),
_ => None,
});
assert!(next.is_some_and(|r| r.y <= l.pages[1].body.y + 0.01 && r.h > 40.0), "the fill goes on at the top of the next page: {next:?}");
let mut spanning = false;
for item in &l.pages[0].items {
if let Placed::Cell { rect, row: 14, cell: 0, .. } = item {
spanning = rect.h > 40.0 * 1.5;
}
if let Placed::Cell { rect, .. } | Placed::Fill { rect, .. } = item {
assert!(rect.bottom() <= body.bottom() + 0.01, "{rect:?} past the page's content area {body:?}");
}
}
assert!(spanning, "the merge still spans the rows left on the page");
}
#[test]
fn a_vertical_merge_aligns_its_text_with_the_first_page() {
crate::test_fonts();
@@ -6472,6 +6525,7 @@ fn split_row_rejects_a_hostile_cut() {
items: vec![line(0.0), line(150.0)],
bottom,
cells: vec![CellPart { top: 2.0, items: 0..2, end: Some(170.0), align: None }],
merge: Default::default(),
};
for cut in [f32::NAN, f32::INFINITY, f32::NEG_INFINITY, 0.0, -1.0, 200.0] {
assert!(split_row(&row(200.0, 4.0), cut).is_none(), "{cut}");
@@ -11977,6 +12031,7 @@ fn a_split_row_moves_shading_below_the_cut_with_it() {
items: vec![line_row(0.0), line_row(150.0), fill(0.0, 200.0), fill(150.0, 50.0)],
bottom: 0.0,
cells: vec![CellPart { top: 2.0, items: 0..4, end: None, align: None }],
merge: Default::default(),
};
let (a, b) = split_row(&row, 100.0).expect("splits");
let fills = |r: &RowLayout| {
@@ -16302,6 +16357,7 @@ fn split_cell_moves_image_frame() {
edge: 0.0,
items: vec![kept, image, frame],
cells: vec![CellPart { top, items: 0..3, end: Some(170.0), align: None }],
merge: Default::default(),
};
let (first, rest) = split_row(&row, 100.0).unwrap();
assert_eq!(first.items.len(), 1);
+2 -2
View File
@@ -17,7 +17,7 @@ craft = { workspace = true, features = [
"text-find", "web-api", "web-host", "window",
] }
craft-html = { workspace = true }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359" }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c" }
wordcraft-geom = { workspace = true, features = ["image"] }
wordcraft-doc = { workspace = true }
wordcraft-fonts = { workspace = true }
@@ -77,7 +77,7 @@ craft-ui-test-kit = { workspace = true }
craft = { workspace = true, features = ["ui-testing"] }
[build-dependencies]
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "ad10c35ae545f0fb816364381a1a8154012b2359", features = ["subset"] }
craft-fonts-build = { git = "https://github.com/storytold/craft-libs", rev = "18499ec3a61f6d7a7d8a70951fa9765e5cf9853c", features = ["subset"] }
serde_json = { workspace = true }
toml = "1"
+6 -2
View File
@@ -271,8 +271,12 @@ impl WordApp {
let roots = self.pass_roots.take();
wordcraft_engine::file_access::confine(roots.as_ref(), || self.run_fired(&ctx, &out));
self.canvas.take_focus_after_pass(&ctx);
self.native_scale = theme::usable_scale(ctx.native_pixels_per_point().unwrap_or(1.0));
if let Some(native) = ctx.native_pixels_per_point()
// The zoom is context-wide but the display scale is per window: read it from the active
// document window. The windowless root has no window, so it reports none (#8853).
let active = self.active_viewport();
let native_now = ctx.input_for(active, |i| i.viewport().native_pixels_per_point).or_else(|| ctx.native_pixels_per_point());
self.native_scale = theme::usable_scale(native_now.unwrap_or(1.0));
if let Some(native) = native_now
&& let Some(old) = self.legacy_interface_size.take()
{
self.ui.interface_size = theme::migrate_legacy_interface_size(old, native);
+3
View File
@@ -664,6 +664,9 @@ fn navigation_options(animations: bool) -> NavigationOptions {
// Browsers report three lines per notch where native platforms report one.
options.wheel_line = if cfg!(target_arch = "wasm32") { crate::scroll::NOTCH_PX / 3.0 } else { crate::scroll::NOTCH_PX };
options.eased_wheel = animations;
// macOS, Windows and the web send their own touchpad momentum; elsewhere (Wayland, X11) the lift ends the scroll
// and the app glides on (#8855).
options.touchpad_glide = !cfg!(any(target_os = "macos", target_os = "ios", target_os = "windows", target_arch = "wasm32"));
options
}
+69 -16
View File
@@ -13,6 +13,7 @@ use craft::ui::primitives::{FaceRun, PaintShape, StrokeWidth, TextRun};
use craft::ui::runtime::env::Label;
use craft::ui::style::{ComponentStyle, DataColor, StyleColor, StyleCx};
use egui::{Color32, Pos2, Rect, Response, Ui, pos2, vec2};
use wordcraft_doc::props::TextDirection;
use wordcraft_layout::DocLayout;
use super::cursor::{caret_color_at, preedit_cursor_chars};
@@ -39,8 +40,13 @@ struct Placement {
/// The selection is collapsed, so a caret is drawn.
collapsed: bool,
/// The face, size and baseline on screen text typed at the caret takes, which a composition is drawn in. `None`
/// in an equation, in turned text and without a style run.
/// in an equation and without a style run. In turned text the baseline is unused.
typing: Option<TypingFace>,
/// The direction the caret's line reads in; turned text has a composition running down or up the page.
turn: TextDirection,
/// Turned text: the caret's top on screen, where the composition starts, and the line's width across the page.
y0: f32,
across: f32,
}
/// The face text typed at the caret asks for, its size and its baseline on screen (`DocLayout::typing_style`).
@@ -76,6 +82,9 @@ fn place(app: &WordApp, doc: &DocLayout, pages: &[PlacedPage]) -> Option<Placeme
in_equation: true,
collapsed: true,
typing: None,
turn: TextDirection::Horizontal,
y0,
across: 0.0,
});
}
let sel = preview_sel(app).unwrap_or(&app.session.sel);
@@ -105,15 +114,17 @@ fn place(app: &WordApp, doc: &DocLayout, pages: &[PlacedPage]) -> Option<Placeme
} else {
[pos2(x.round() + 0.5, y0), pos2(x.round() + 0.5, y1)]
};
// Word draws a composition in the font and size of the text it goes into; not in turned text, whose lines aren't
// horizontal.
let typing = if c.width > 0.0 {
None
} else {
doc.typing_style(&sel.focus, app.session.page_hint)
.filter(|(run, base)| run.size.is_finite() && run.size > 0.0 && base.is_finite())
.map(|(run, base)| TypingFace { face: run.requested_face, size: run.size * scale, baseline: pr.rect.min.y + base * scale })
};
// Word draws a composition in the font and size of the text it goes into, along the line (turned text: down or up
// the page).
let turned = c.width > 0.0;
let typing = doc
.typing_style(&sel.focus, app.session.page_hint)
.filter(|(run, base)| run.size.is_finite() && run.size > 0.0 && (turned || base.is_finite()))
.map(|(run, base)| TypingFace {
face: run.requested_face,
size: run.size * scale,
baseline: if turned { 0.0 } else { pr.rect.min.y + base * scale },
});
Some(Placement {
bar,
page: c.page,
@@ -124,6 +135,9 @@ fn place(app: &WordApp, doc: &DocLayout, pages: &[PlacedPage]) -> Option<Placeme
in_equation: false,
collapsed: sel.is_collapsed(),
typing,
turn: c.turn,
y0,
across: c.width * scale,
})
}
@@ -204,6 +218,9 @@ pub(crate) fn paint_caret(app: &mut WordApp, ui: &mut Ui, pass: &ToolPass, body:
cursor,
color: ink(app),
typing: pl.typing,
turn: pl.turn,
y0: pl.y0,
across: pl.across,
});
} else {
let look = step(app, request(pl.bar, shown));
@@ -224,8 +241,8 @@ pub(crate) fn paint_caret(app: &mut WordApp, ui: &mut Ui, pass: &ToolPass, body:
// them an empty rect that clips their strokes away.
let out = CaretMarks::new(tl!("Text cursor").to_string(), bars, composition).show_at(ui, pass.rect);
// The candidate window sits at the input method's cursor inside the composition, as production placed it.
if let Some(x) = out.composition_caret {
report = Rect::from_min_max(pos2(x, report.min.y), pos2(x + 1.0, report.max.y));
if let Some(r) = out.composition_caret {
report = if pl.turn.is_turned() { r } else { Rect::from_min_max(pos2(r.min.x, report.min.y), pos2(r.min.x + 1.0, report.max.y)) };
}
}
// Reported after the marks, which lay the composition out: this pass's final caret for the input method.
@@ -245,6 +262,11 @@ struct Composition {
color: Color32,
/// The face, size and baseline it is drawn in; without them, the interface font from the caret's bottom.
typing: Option<TypingFace>,
/// The line's direction; turned, the composition's characters stack upright down or up from `y0`, in a column
/// `across` wide starting at `left`.
turn: TextDirection,
y0: f32,
across: f32,
}
/// The style of the caret marks: the composition's ink.
@@ -265,8 +287,9 @@ pub(crate) struct CaretMarks {
common: Common,
bars: Vec<(Bar, Color32)>,
composition: Option<Composition>,
/// Where the paint put the caret inside the composition (screen x), measured from the laid-out text.
composition_caret: Option<f32>,
/// Where the paint put the caret inside the composition (a bar in screen points; turned text: the rect the
/// composition fills), measured from the laid-out text.
composition_caret: Option<Rect>,
}
impl CaretMarks {
@@ -279,7 +302,7 @@ impl CaretMarks {
/// What the marks report: the caret's place inside the composition they drew, for the candidate window.
pub(crate) struct CaretMarksOutput {
response: Response,
composition_caret: Option<f32>,
composition_caret: Option<Rect>,
}
impl Outcome for CaretMarksOutput {
@@ -330,6 +353,12 @@ impl Component for CaretMarks {
}
let Some(c) = &self.composition else { return };
let color = DataColor::new(c.color);
if c.turn.is_turned()
&& let Some(t) = &c.typing
{
self.composition_caret = Some(paint_turned(&draw, c, t, color));
return;
}
let (layout, top, bottom) = match &c.typing {
// In the text's own face and size, its first baseline on the line's, as typed text would sit. Characters the
// face lacks (CJK in a Latin font) come from the interface fonts; a size past the font atlas is capped.
@@ -350,7 +379,7 @@ impl Component for CaretMarks {
draw.stroke(&PaintShape::Path(underline), StrokeWidth::Thin, color);
let x = (c.left + layout.char_x(c.cursor)).round() + 0.5;
draw.stroke(&PaintShape::Path(vec![pos2(x, top), pos2(x, bottom)]), StrokeWidth::Medium, color);
self.composition_caret = Some(x);
self.composition_caret = Some(Rect::from_min_max(pos2(x, top), pos2(x, bottom)));
}
fn access(&self, access: &mut Access, _: &Cx<'_, Self>) {
@@ -361,3 +390,27 @@ impl Component for CaretMarks {
CaretMarksOutput { response: cx.response.clone(), composition_caret: self.composition_caret }
}
}
/// A composition in turned text: its characters upright, each in a cell of the run's size, stacked from the caret down
/// the page (`Down`) or up it (`Up`) in a column across the line, with the underline along the column's left edge and
/// the input method's cursor across it. Returns the rect the composition fills, which the candidate window avoids.
fn paint_turned(draw: &craft::ui::primitives::Draw<'_>, c: &Composition, t: &TypingFace, color: DataColor) -> Rect {
let key = face_key(t.face);
let sign = if c.turn == TextDirection::Up { -1.0 } else { 1.0 };
// The cell's edge `i` characters from the start.
let edge = |i: usize| c.y0 + sign * t.size * i as f32;
let n = c.text.chars().count();
for (i, ch) in c.text.chars().enumerate() {
let mut buf = [0; 4];
let s: &str = ch.encode_utf8(&mut buf);
// Centred in the column as an em-wide ideograph; the baseline sits at 0.86 em in the cell, where its body lies.
let top = edge(i).min(edge(i + 1));
let at = pos2(c.left + (c.across - t.size) / 2.0, top + 0.86 * t.size);
draw.face_run(at, &FaceRun::new(s, &key, t.size, color), || face_bytes(t.face));
}
let end = edge(n);
draw.stroke(&PaintShape::Path(vec![pos2(c.left, c.y0), pos2(c.left, end)]), StrokeWidth::Thin, color);
let at = edge(c.cursor.min(n)).round() + 0.5;
draw.stroke(&PaintShape::Path(vec![pos2(c.left, at), pos2(c.left + c.across, at)]), StrokeWidth::Medium, color);
Rect::from_two_pos(pos2(c.left, c.y0), pos2(c.left + c.across, end))
}
+23
View File
@@ -2965,3 +2965,26 @@ fn mouse_wheel_notch_scrolls_document_line_distance_and_accelerates_on_flick() {
let flicked = h.state().canvas.view.offset.1 - flick_start;
assert!(flicked > 5.0 * eased_notch, "a rapid 5-notch flick ({flicked}) should accelerate past 5 single notches ({})", 5.0 * eased_notch);
}
/// In vertical text the composition runs down the line, upright and at the text's size, and the candidate window
/// reports the column it fills, not a horizontal strip (#8980).
#[test]
fn a_composition_in_vertical_text_runs_down_the_line() {
let mut app = WordApp::new(wordcraft_engine::Session::new(wordcraft_doc::Document::new()), Default::default());
app.run("document.setText", json!({"text": "Hello"})).unwrap();
app.run("layout.textDirection", json!({"value": "tbRl"})).unwrap();
app.run("caret.docEnd", json!({})).unwrap();
let mut h = composing_harness(app);
kana_test_glyphs(&h.ctx);
h.event(egui::Event::Ime(egui::ImeEvent::Preedit { text: "にほん".into(), active_range_chars: None }));
for _ in 0..4 {
h.app_frame();
}
let kana: Vec<_> = ["に", "ほ", "ん"].iter().filter_map(|k| drawn_composition(&h, k)).collect();
assert_eq!(kana.len(), 3, "each kana is drawn on its own");
let at = |i: usize| kana[i].pos;
assert!(at(0).y < at(1).y && at(1).y < at(2).y, "the kana stack down the page");
assert!((at(0).x - at(2).x).abs() < 1.0, "in one column");
let ime = h.output().platform_output.ime.clone().expect("the canvas places the candidate window").cursor_rect;
assert!(ime.height() > ime.width(), "the candidate window sits by the column: {ime:?}");
}
+12 -2
View File
@@ -9,10 +9,11 @@ use craft::theme::ControlSize;
use craft::theme::variant::Variant;
use craft::ui::bars::{Bar, BarKind};
use craft::ui::buttons::{Button, ButtonOutput, IconButton, ToggleButton};
use craft::ui::contract::{Bind, BodyCx, Gap, Props as _, Show as _, ShowContainer as _, TooltipSpec, Trigger};
use craft::ui::contract::{AfterInk, Bind, BodyCx, Gap, Props as _, Show as _, ShowContainer as _, TooltipSpec, Trigger};
use craft::ui::display::{Divider, Text};
use craft::ui::layout_components::Row;
use craft::ui::menu::{Menu, MenuItem};
use craft::ui::runtime::env::with_env;
use craft::ui::value_drag::{Slider, SliderScale};
use egui::Ui;
use serde_json::json;
@@ -45,7 +46,16 @@ pub(crate) fn show(ui: &mut Ui, _cx: &mut BodyCx<'_>, app: &mut WordApp) {
})
.show(ui, |ui, _| {
if let Ok(mut a) = app.try_borrow_mut() {
page.set(Some(readouts(&mut a, ui)));
// The readouts are secondary text, as v0.19.1 drew them (#8811): craft's ghost button takes the muted ink
// where it passes text contrast.
let rect = with_env(
ui,
|o| {
o.values.set(AfterInk::Muted);
},
|ui| readouts(&mut a, ui),
);
page.set(Some(rect));
}
});
if let (Some(page), Some(group), Ok(mut a)) = (page.get(), group.get(), app.try_borrow_mut()) {
+20
View File
@@ -88,10 +88,30 @@ impl ThumbSource<usize> for SheetSource<'_> {
}
}
}
outline_sheet(&mut image);
ThumbRender::Ready(image)
}
}
/// A one-pixel grey edge on the sheet. The pane's well is as white as the paper, so without it the sheet's
/// own shape is invisible and a portrait page looks like a landscape sheet with the page off to one side (#9111).
fn outline_sheet(image: &mut ColorImage) {
// lean: fixed grey, not a theme token: the sheet is paper, white in every theme; a token needs a craft-libs pane overlay.
const EDGE: Color32 = Color32::from_gray(150);
let [w, h] = image.size;
if w == 0 || h == 0 {
return;
}
for x in 0..w {
image.pixels[x] = EDGE;
image.pixels[(h - 1) * w + x] = EDGE;
}
for y in 0..h {
image.pixels[y * w] = EDGE;
image.pixels[y * w + w - 1] = EDGE;
}
}
/// The preview (#1156): the sheet fills the pane, a bar below pages through the sheets and zooms; zoomed in,
/// the sheet pans.
pub(super) fn show(app: &mut WordApp, ui: &mut Ui, lay: &Arc<DocLayout>) {
@@ -20,9 +20,12 @@ finish-args:
# The shared updater inspects and updates this installation via flatpak-spawn --host.
- --talk-name=org.freedesktop.Flatpak
- --filesystem=xdg-data/ArtCraft/versions:ro
# Display: Wayland first; X11 only when no Wayland compositor is running.
# Display: Wayland, plus X11 always. The clipboard (arboard) needs the Wayland data-control
# protocol, which KWin does not offer to apps; it then falls back to the X11 clipboard, which
# XWayland bridges. With fallback-x11 the sandbox has no X11 under Wayland and paste fails
# (#8969, #8868). Remove --socket=x11 once the clipboard uses wl_data_device.
- --socket=wayland
- --socket=fallback-x11
- --socket=x11
# X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails.
- --share=ipc
# GPU access for the wgpu renderer (Vulkan, or GL as a fallback).
@@ -21,9 +21,12 @@ finish-args:
# The shared updater inspects and updates this installation via flatpak-spawn --host.
- --talk-name=org.freedesktop.Flatpak
- --filesystem=xdg-data/ArtCraft/versions:ro
# Display: Wayland first; X11 only when no Wayland compositor is running.
# Display: Wayland, plus X11 always. The clipboard (arboard) needs the Wayland data-control
# protocol, which KWin does not offer to apps; it then falls back to the X11 clipboard, which
# XWayland bridges. With fallback-x11 the sandbox has no X11 under Wayland and paste fails
# (#8969, #8868). Remove --socket=x11 once the clipboard uses wl_data_device.
- --socket=wayland
- --socket=fallback-x11
- --socket=x11
# X11 shared memory (MIT-SHM). Without it the X11 fallback is slow or fails.
- --share=ipc
# GPU access for the wgpu renderer (Vulkan, or GL as a fallback).