mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-04 22:49:54 +00:00
Compare commits
49
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d98461bbf | ||
|
|
a3cda5823c | ||
|
|
3cbb96df89 | ||
|
|
692c632cff | ||
|
|
1a8c94ef8e | ||
|
|
73808c4f09 | ||
|
|
03d7919e9a | ||
|
|
20a3129bc5 | ||
|
|
aeaba3e180 | ||
|
|
1ebcafb09a | ||
|
|
8e879ccf69 | ||
|
|
7f8c9f1d31 | ||
|
|
e9c8b30dda | ||
|
|
f7491161d7 | ||
|
|
0760638084 | ||
|
|
50a9695d2d | ||
|
|
b40835adfc | ||
|
|
4616d12d84 | ||
|
|
ad310cc031 | ||
|
|
4e96767550 | ||
|
|
5251d0e8c7 | ||
|
|
94a75ff3c8 | ||
|
|
8709724f8e | ||
|
|
722f3c0c3a | ||
|
|
bf9cd48ca5 | ||
|
|
aa0ac44a6d | ||
|
|
ef59c66dd8 | ||
|
|
6200f66817 | ||
|
|
cd9185760e | ||
|
|
0cdd7949b1 | ||
|
|
0c1cf9e1e7 | ||
|
|
8a0155c59d | ||
|
|
85547002bb | ||
|
|
16109fa4bd | ||
|
|
b087513b59 | ||
|
|
0c7546f414 | ||
|
|
18f78039b9 | ||
|
|
07e0f271a4 | ||
|
|
d927d3c03c | ||
|
|
1b4d732f49 | ||
|
|
576755c08b | ||
|
|
ef054ca8c4 | ||
|
|
cfefd93f74 | ||
|
|
b389b12aa8 | ||
|
|
1b29aecc05 | ||
|
|
44cee9a5e3 | ||
|
|
8b0e06339b | ||
|
|
cda278df16 | ||
|
|
aaf03cc166 |
Generated
+115
-115
@@ -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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-automation",
|
||||
"craft-behavior",
|
||||
@@ -1214,7 +1214,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"objc2 0.6.5",
|
||||
@@ -1226,7 +1226,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"rustix 1.1.6",
|
||||
]
|
||||
@@ -1234,7 +1234,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
@@ -1259,7 +1259,7 @@ 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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"bitflags 2.13.2",
|
||||
@@ -1277,7 +1277,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-docpath",
|
||||
@@ -1295,12 +1295,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"egui",
|
||||
]
|
||||
@@ -1308,7 +1308,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"md-5",
|
||||
"rayon",
|
||||
@@ -1317,12 +1317,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
@@ -1330,7 +1330,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-cms",
|
||||
@@ -1350,7 +1350,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-control-protocol",
|
||||
"craft-platform",
|
||||
@@ -1361,7 +1361,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"getrandom 0.3.4",
|
||||
"serde_json",
|
||||
@@ -1371,7 +1371,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"rayon",
|
||||
]
|
||||
@@ -1379,7 +1379,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"block2 0.6.2",
|
||||
"craft-appkit",
|
||||
@@ -1405,7 +1405,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-cfb",
|
||||
@@ -1422,7 +1422,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"serde",
|
||||
]
|
||||
@@ -1430,7 +1430,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"chrono",
|
||||
@@ -1450,7 +1450,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1469,7 +1469,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-xml",
|
||||
@@ -1481,7 +1481,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-wordmodel",
|
||||
"image",
|
||||
@@ -1491,7 +1491,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"fontique",
|
||||
"harfrust 0.13.3",
|
||||
@@ -1506,7 +1506,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-catalog",
|
||||
@@ -1525,7 +1525,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"windows-registry",
|
||||
"windows-sys 0.61.2",
|
||||
@@ -1534,7 +1534,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"cap-primitives",
|
||||
"craft-atomic",
|
||||
@@ -1557,7 +1557,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"brotli 9.1.3",
|
||||
"harfbuzz-subset-sys",
|
||||
@@ -1570,7 +1570,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-font-subset",
|
||||
]
|
||||
@@ -1578,7 +1578,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"egui-wgpu",
|
||||
"log",
|
||||
@@ -1590,7 +1590,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-i18n",
|
||||
@@ -1603,7 +1603,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-codepage",
|
||||
"craft-flow",
|
||||
@@ -1616,7 +1616,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"brotli 9.1.3",
|
||||
"brotli-decompressor 6.3.1",
|
||||
@@ -1646,7 +1646,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-dds",
|
||||
"craft-jpeg",
|
||||
@@ -1673,7 +1673,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-color-ui",
|
||||
@@ -1691,7 +1691,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"thiserror 2.0.21",
|
||||
]
|
||||
@@ -1699,7 +1699,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-host",
|
||||
"craft-i18n",
|
||||
@@ -1714,7 +1714,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-flow",
|
||||
"craft-math",
|
||||
@@ -1725,7 +1725,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-flow",
|
||||
"craft-html",
|
||||
@@ -1735,7 +1735,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-xml",
|
||||
"roxmltree",
|
||||
@@ -1745,7 +1745,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"serde_json",
|
||||
]
|
||||
@@ -1753,7 +1753,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -1771,7 +1771,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"brotli-decompressor 6.3.1",
|
||||
"chrono",
|
||||
@@ -1783,7 +1783,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"encoding_rs",
|
||||
"image",
|
||||
@@ -1794,7 +1794,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"chardetng",
|
||||
"chrono",
|
||||
@@ -1805,7 +1805,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"uds_windows",
|
||||
"winsafe",
|
||||
@@ -1814,7 +1814,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"base64 0.23.1",
|
||||
@@ -1840,7 +1840,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-odf",
|
||||
"craft-sheet",
|
||||
@@ -1851,7 +1851,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"base64 0.23.1",
|
||||
@@ -1868,7 +1868,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-xml",
|
||||
"craft-zip",
|
||||
@@ -1879,7 +1879,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -1895,7 +1895,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"krilla",
|
||||
"serde",
|
||||
@@ -1905,7 +1905,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"arboard",
|
||||
"async-channel",
|
||||
@@ -1943,7 +1943,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -1967,7 +1967,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"log",
|
||||
"miniz_oxide 0.9.1",
|
||||
@@ -1978,7 +1978,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"dispatch2",
|
||||
"egui",
|
||||
@@ -1991,7 +1991,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-behavior",
|
||||
@@ -2010,7 +2010,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-codepage",
|
||||
"craft-flow",
|
||||
@@ -2023,7 +2023,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-host",
|
||||
@@ -2040,17 +2040,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-xml",
|
||||
"flate2",
|
||||
@@ -2067,7 +2067,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -2079,7 +2079,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2103,7 +2103,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"craft-tracked",
|
||||
@@ -2118,7 +2118,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-atomic",
|
||||
"craft-behavior",
|
||||
@@ -2133,7 +2133,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -2143,7 +2143,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"thiserror 2.0.21",
|
||||
@@ -2152,7 +2152,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-keymap",
|
||||
@@ -2167,12 +2167,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-cloud-ui",
|
||||
"craft-ui-canvas",
|
||||
@@ -2186,7 +2186,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-font-catalog",
|
||||
@@ -2203,7 +2203,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"accesskit",
|
||||
"craft-behavior",
|
||||
@@ -2241,7 +2241,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"proc-macro-crate",
|
||||
"proc-macro2",
|
||||
@@ -2252,7 +2252,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2270,7 +2270,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2291,7 +2291,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2312,7 +2312,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2323,7 +2323,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-behavior",
|
||||
"craft-host",
|
||||
@@ -2342,7 +2342,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"chrono",
|
||||
@@ -2374,7 +2374,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"js-sys",
|
||||
"serde_json",
|
||||
@@ -2385,7 +2385,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-host",
|
||||
"craft-platform",
|
||||
@@ -2397,7 +2397,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"winsafe",
|
||||
]
|
||||
@@ -2405,7 +2405,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-appkit",
|
||||
"craft-atomic",
|
||||
@@ -2437,7 +2437,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-math",
|
||||
@@ -2451,7 +2451,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-cfb",
|
||||
"craft-sheet",
|
||||
@@ -2464,7 +2464,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"craft-drawingml",
|
||||
"craft-opc",
|
||||
@@ -2476,7 +2476,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"quick-xml 0.41.0",
|
||||
"serde",
|
||||
@@ -2486,7 +2486,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"thiserror 2.0.21",
|
||||
@@ -3879,7 +3879,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"brotli 8.0.4",
|
||||
"hayro-postscript",
|
||||
@@ -3888,7 +3888,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"bitflags 2.13.2",
|
||||
"hayro-cmap",
|
||||
@@ -3906,7 +3906,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"fearless_simd",
|
||||
"hayro-ccitt",
|
||||
@@ -3924,12 +3924,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
[[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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"hayro-ccitt",
|
||||
@@ -4658,7 +4658,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"bumpalo",
|
||||
@@ -4797,7 +4797,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
dependencies = [
|
||||
"arrayvec",
|
||||
"kurbo",
|
||||
@@ -9131,7 +9131,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft",
|
||||
"craft-nightly",
|
||||
@@ -9158,7 +9158,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-cli"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft-zip",
|
||||
"image",
|
||||
@@ -9176,11 +9176,11 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-control-key"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-doc"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"craft-codepage",
|
||||
@@ -9196,7 +9196,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-docbin"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"cfb",
|
||||
"craft-doc-binary",
|
||||
@@ -9208,7 +9208,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-docx"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"cfb",
|
||||
@@ -9227,7 +9227,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-engine"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"cfb",
|
||||
"chrono",
|
||||
@@ -9265,7 +9265,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-fonts"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"brotli-decompressor 5.0.3",
|
||||
"harfrust 0.15.0",
|
||||
@@ -9280,7 +9280,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-formats"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"chardetng",
|
||||
"chrono",
|
||||
@@ -9310,7 +9310,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-geom"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft-image-codecs",
|
||||
"craft-tiff",
|
||||
@@ -9320,7 +9320,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-layout"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft-metafile",
|
||||
"craft-proof",
|
||||
@@ -9341,7 +9341,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-mcp"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft",
|
||||
"craft-mcp-server",
|
||||
@@ -9355,7 +9355,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-pdf"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"chrono",
|
||||
"craft-metafile",
|
||||
@@ -9376,7 +9376,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-render"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft-metafile",
|
||||
"image",
|
||||
@@ -9390,7 +9390,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-ui-egui"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"cfb",
|
||||
"chrono",
|
||||
@@ -9424,7 +9424,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-validate"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft-image-codecs",
|
||||
"craft-tiff",
|
||||
@@ -9439,7 +9439,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-web"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"craft",
|
||||
"eframe",
|
||||
@@ -9459,7 +9459,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "wordcraft-zotero"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"log",
|
||||
"proptest",
|
||||
@@ -9677,7 +9677,7 @@ checksum = "9440ea3e5aeabb0ac63af70daf835274065238cdd0cec83418f417eae38bacee"
|
||||
|
||||
[[package]]
|
||||
name = "xtask"
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -10067,4 +10067,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=5299d8d97dc04648dff735d1bd6f60bd18f10b35#5299d8d97dc04648dff735d1bd6f60bd18f10b35"
|
||||
|
||||
+40
-40
@@ -13,7 +13,7 @@ run_slots = 3
|
||||
test_threads = 4
|
||||
|
||||
[workspace.package]
|
||||
version = "0.20.1"
|
||||
version = "0.20.0"
|
||||
edition = "2024"
|
||||
license = "MIT OR Apache-2.0"
|
||||
rust-version = "1.95"
|
||||
@@ -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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-font-store = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-font-catalog = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-ssip = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", 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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0", default-features = false }
|
||||
craft-ui-test-kit = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-keymap = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-metafile = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-nightly = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
|
||||
# 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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-tiff = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-pdf = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", 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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-docx = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-mcp-server = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-rtf = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0", features = ["doc"] }
|
||||
craft-doc-binary = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-flow = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-odf = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0", features = ["text"] }
|
||||
craft-markdown = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-html = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0", features = ["flow"] }
|
||||
craft-latex = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-math = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-mime = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0", features = ["detect"] }
|
||||
craft-sheet = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-ods = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-xls = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-xlsx = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-xml = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", version = "=0.1.0" }
|
||||
craft-zip = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", 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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro-interpret = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro-syntax = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro-jbig2 = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro-cmap = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
hayro-postscript = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
linesweeper = { git = "https://github.com/storytold/craft-libs", rev = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
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" }
|
||||
|
||||
@@ -386,12 +386,9 @@ emerge --ask app-office/wordcraft-bin
|
||||
|
||||
### FreeBSD
|
||||
|
||||
Prebuilt FreeBSD release archives target FreeBSD 15.1 or newer; FreeBSD 14.x is not supported by these builds.
|
||||
|
||||
| Build | File |
|
||||
|---|---|
|
||||
| x86_64 | `wordcraft-<ver>-freebsd-x86_64.tar.gz` |
|
||||
| aarch64 | `wordcraft-<ver>-freebsd-aarch64.tar.gz` |
|
||||
|
||||
### Web (WebAssembly)
|
||||
|
||||
|
||||
+1
-4
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
|
||||
use serde_json::Value;
|
||||
use wordcraft_doc::math_edit::MathPos;
|
||||
use wordcraft_doc::para::OBJ;
|
||||
use wordcraft_doc::para::{NBSP, OBJ};
|
||||
use wordcraft_doc::{InlineObject, Paragraph, Path, Pos, StoryRef};
|
||||
use wordcraft_layout::ViewMode;
|
||||
|
||||
@@ -256,18 +256,88 @@ fn step_to_neighbor(s: &Session, from: &Pos, is_left: bool, skip_deleted: bool)
|
||||
Pos { story, path, off }
|
||||
}
|
||||
|
||||
fn word_left(s: &mut Session, p: &Pos) -> Pos {
|
||||
match s.doc.para_at(p) {
|
||||
Some(para) if p.off > 0 => Pos { off: para.word_start(p.off), ..p.clone() },
|
||||
_ => step_to_neighbor(s, p, true, false),
|
||||
fn visible_word_start(para: &Paragraph, off: usize) -> Option<usize> {
|
||||
let off = para.clamp(off);
|
||||
let mut idx = off;
|
||||
let mut seen_word = false;
|
||||
let mut seen_visible = false;
|
||||
let mut end = para.len();
|
||||
for run in para.runs.iter().rev() {
|
||||
let start = end.saturating_sub(run.len);
|
||||
let range_end = end.min(off);
|
||||
end = start;
|
||||
if start >= off || run.props.del.is_some() {
|
||||
continue;
|
||||
}
|
||||
let Some(slice) = para.text.get(start..range_end) else { continue };
|
||||
for (rel, c) in slice.char_indices().rev() {
|
||||
seen_visible = true;
|
||||
if wordcraft_doc::bidi::is_word_char(c) {
|
||||
seen_word = true;
|
||||
idx = start + rel;
|
||||
} else if seen_word {
|
||||
return Some(idx);
|
||||
} else {
|
||||
idx = start + rel;
|
||||
}
|
||||
}
|
||||
}
|
||||
seen_visible.then_some(idx)
|
||||
}
|
||||
|
||||
fn visible_word_end(para: &Paragraph, off: usize) -> Option<usize> {
|
||||
let off = para.clamp(off);
|
||||
let mut first_word = None;
|
||||
let mut in_space = false;
|
||||
let mut last_end = None;
|
||||
for (range, props) in para.run_ranges() {
|
||||
if range.end <= off || props.del.is_some() {
|
||||
continue;
|
||||
}
|
||||
let start = range.start.max(off);
|
||||
let Some(slice) = para.text.get(start..range.end) else { continue };
|
||||
for (rel, c) in slice.char_indices() {
|
||||
let abs = start + rel;
|
||||
last_end = Some(abs + c.len_utf8());
|
||||
let is_first = first_word.is_none();
|
||||
let fw = *first_word.get_or_insert_with(|| wordcraft_doc::bidi::is_word_char(c) && c != '\'');
|
||||
let w = wordcraft_doc::bidi::is_word_char(c);
|
||||
if c == ' ' || c == NBSP {
|
||||
in_space = true;
|
||||
continue;
|
||||
}
|
||||
if in_space || (fw && !w) || (!fw && !is_first) {
|
||||
return Some(abs);
|
||||
}
|
||||
}
|
||||
}
|
||||
last_end
|
||||
}
|
||||
|
||||
fn word_left(s: &mut Session, p: &Pos) -> Pos {
|
||||
if let Some(para) = s.doc.para_at(p) {
|
||||
if !s.view.show_markup {
|
||||
if let Some(off) = visible_word_start(para, p.off) {
|
||||
return Pos { off, ..p.clone() };
|
||||
}
|
||||
} else if p.off > 0 {
|
||||
return Pos { off: para.word_start(p.off), ..p.clone() };
|
||||
}
|
||||
}
|
||||
step_to_neighbor(s, p, true, false)
|
||||
}
|
||||
|
||||
fn word_right(s: &mut Session, p: &Pos) -> Pos {
|
||||
match s.doc.para_at(p) {
|
||||
Some(para) if p.off < para.len() => Pos { off: para.word_end(p.off), ..p.clone() },
|
||||
_ => step_to_neighbor(s, p, false, false),
|
||||
if let Some(para) = s.doc.para_at(p) {
|
||||
if !s.view.show_markup {
|
||||
if let Some(off) = visible_word_end(para, p.off) {
|
||||
return Pos { off, ..p.clone() };
|
||||
}
|
||||
} else if p.off < para.len() {
|
||||
return Pos { off: para.word_end(p.off), ..p.clone() };
|
||||
}
|
||||
}
|
||||
step_to_neighbor(s, p, false, false)
|
||||
}
|
||||
|
||||
fn para_up(s: &mut Session, p: &Pos) -> Pos {
|
||||
|
||||
@@ -5233,6 +5233,81 @@ fn horizontal_caret_skips_hidden_tracked_deletions() {
|
||||
assert_eq!(s.sel.focus, Pos::body(0, "Aé🧪ZU".len()), "Left also skips the later deletion");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn word_caret_skips_hidden_tracked_deletions() {
|
||||
let mut s = s();
|
||||
run(&mut s, "document.setText", json!({"text": "one two three"}));
|
||||
let two_start = Pos::body(0, "one ".len());
|
||||
let two_mid = Pos::body(0, "one tw".len());
|
||||
let three_start = Pos::body(0, "one two ".len());
|
||||
let end = Pos::body(0, "one two three".len());
|
||||
// Keep the deleted word split across two formatting runs.
|
||||
s.doc.format_range(&two_start, &two_mid, &|c| c.bold = Some(true)).unwrap();
|
||||
run(&mut s, "review.trackChanges", json!({"value": true}));
|
||||
run(&mut s, "select.text", json!({"text": "two "}));
|
||||
run(&mut s, "text.delete", json!({}));
|
||||
|
||||
s.sel = crate::Selection::caret(Pos::body(0, 0));
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus, two_start, "visible markup still stops at the deleted word");
|
||||
|
||||
run(&mut s, "review.markup", json!({"value": "noMarkup"}));
|
||||
s.sel = crate::Selection::caret(Pos::body(0, 0));
|
||||
run(&mut s, "caret.wordRight", json!({"extend": true}));
|
||||
assert_eq!(s.sel.anchor, Pos::body(0, 0));
|
||||
assert_eq!(s.sel.focus, three_start, "Ctrl+Right skips the hidden deleted word in one press");
|
||||
|
||||
s.sel = crate::Selection::caret(two_start.clone());
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus, end, "Ctrl+Right from the hidden start moves across the next visible word");
|
||||
|
||||
s.sel = crate::Selection::caret(end.clone());
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, three_start);
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(0, 0), "Ctrl+Left skips the hidden deleted word in one press");
|
||||
|
||||
s.sel = crate::Selection::caret(two_start);
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(0, 0));
|
||||
|
||||
// A deleted space between two visible word fragments joins them into one visible word.
|
||||
let mut s = self::s();
|
||||
run(&mut s, "document.setText", json!({"text": "foot ball next"}));
|
||||
run(&mut s, "review.trackChanges", json!({"value": true}));
|
||||
run(&mut s, "select.text", json!({"text": " "}));
|
||||
run(&mut s, "text.delete", json!({}));
|
||||
run(&mut s, "review.markup", json!({"value": "noMarkup"}));
|
||||
let next_start = Pos::body(0, "foot ball ".len());
|
||||
s.sel = crate::Selection::caret(Pos::body(0, 0));
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus, next_start, "Ctrl+Right crosses a hidden deleted space inside a word");
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(0, 0), "Ctrl+Left crosses back over the joined word");
|
||||
|
||||
// Trailing and leading hidden deletions step to the neighbouring paragraph once no visible text remains.
|
||||
let mut s = self::s();
|
||||
run(&mut s, "document.setText", json!({"text": "alpha beta\ngamma delta"}));
|
||||
run(&mut s, "review.trackChanges", json!({"value": true}));
|
||||
run(&mut s, "select.text", json!({"text": "beta"}));
|
||||
run(&mut s, "text.delete", json!({}));
|
||||
run(&mut s, "select.text", json!({"text": "gamma "}));
|
||||
run(&mut s, "text.delete", json!({}));
|
||||
run(&mut s, "review.markup", json!({"value": "noMarkup"}));
|
||||
|
||||
s.sel = crate::Selection::caret(Pos::body(0, 0));
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(0, "alpha ".len()));
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(1, 0), "Ctrl+Right before a trailing deletion crosses to the next paragraph");
|
||||
|
||||
s.sel = crate::Selection::caret(Pos::body(1, "gamma delta".len()));
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(1, "gamma ".len()));
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus, Pos::body(0, "alpha beta".len()), "Ctrl+Left after a leading deletion crosses to the previous paragraph");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn replace_all_is_tracked() {
|
||||
let mut s = s();
|
||||
|
||||
@@ -274,6 +274,22 @@ fn word_moves_follow_reading_order() {
|
||||
assert_eq!(s.sel.focus.off, 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn word_moves_skip_hidden_deletions_in_rtl_text() {
|
||||
let mut s = session("אב גדה וז", true);
|
||||
run(&mut s, "review.trackChanges", json!({"value": true}));
|
||||
run(&mut s, "select.text", json!({"text": "גדה "}));
|
||||
run(&mut s, "text.delete", json!({}));
|
||||
run(&mut s, "review.markup", json!({"value": "noMarkup"}));
|
||||
|
||||
let third_word = "אב גדה ".len();
|
||||
s.sel = crate::Selection::caret(Pos::body(0, 0));
|
||||
run(&mut s, "caret.wordLeft", json!({}));
|
||||
assert_eq!(s.sel.focus.off, third_word, "Ctrl+Left skips the hidden deleted word in RTL text");
|
||||
run(&mut s, "caret.wordRight", json!({}));
|
||||
assert_eq!(s.sel.focus.off, 0, "Ctrl+Right skips back across the hidden deleted word in RTL text");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn typing_persian_keeps_logical_order() {
|
||||
let mut s = session("", true);
|
||||
|
||||
@@ -157,12 +157,10 @@ impl<'a> Builder<'a> {
|
||||
// A mark is set like the character it belongs to, as for `complex`: in small capitals at
|
||||
// that character's size, even when the run's font already draws the mark, so the two
|
||||
// stay in one shaping run, can compose or position together, and match their cluster
|
||||
// whole (#7865, #8571). Any other character: Small Caps draws lowercase letters, and
|
||||
// the space and ideographic space, at the small-caps size, as Word does; a no-break
|
||||
// space, digits and punctuation keep the full size (#7062).
|
||||
// whole (#7865, #8571).
|
||||
let small = match cur {
|
||||
Some(k) if mark => k.small,
|
||||
_ => rc.small_caps && !rc.caps && (c.is_lowercase() || c == ' ' || c == '\u{3000}'),
|
||||
_ => rc.small_caps && !rc.caps && c.is_lowercase(),
|
||||
};
|
||||
let key = SegKey { face, small, complex, rtl };
|
||||
match cur {
|
||||
@@ -208,9 +206,7 @@ impl<'a> Builder<'a> {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
// Small capitals are set at 80% of the size rounded to the half point, as Word does
|
||||
// (16 pt → 13, 14 → 11, 12 → 9.5, #7062).
|
||||
let size = if small { (rc.draw_size() * 0.8 * 2.0).round() / 2.0 } else { rc.draw_size() };
|
||||
let size = rc.draw_size() * if small { 0.8 } else { 1.0 };
|
||||
// A symbol font that isn't installed, or is installed one em tall (Apple's Symbol), takes
|
||||
// the height Word gives it.
|
||||
let (a, d) = match wordcraft_fonts::word::symbol_line(&rc.font, &r) {
|
||||
@@ -226,9 +222,7 @@ impl<'a> Builder<'a> {
|
||||
}
|
||||
None => wordcraft_fonts::word::line_metrics(&face),
|
||||
};
|
||||
// A small-caps piece is drawn at 80% but measured for the line at the full size: a Small
|
||||
// Caps line is as tall as without Small Caps, as in Word (#7063).
|
||||
let k = rc.draw_size() as f64 / face.upem.max(1.0);
|
||||
let k = size as f64 / face.upem.max(1.0);
|
||||
// A fallback face (letters the requested font lacks) is emboldened or slanted when it has
|
||||
// no bold or italic of its own.
|
||||
let (synth_bold, synth_italic) = match face_override {
|
||||
|
||||
@@ -15807,91 +15807,6 @@ fn caps_draw_sharp_s_as_two_capitals_in_one_cluster() {
|
||||
assert_eq!(cl.iter().map(|c| c.2.len()).sum::<usize>(), 6, "{cl:?}");
|
||||
}
|
||||
|
||||
/// `text` laid out with `f` applied to all of it: its paragraph's layout.
|
||||
fn para_with(text: &str, f: &dyn Fn(&mut wordcraft_doc::props::CharProps)) -> ParaLayout {
|
||||
let mut d = Document::from_text(text);
|
||||
d.format_range(&Pos::body(0, 0), &Pos::body(0, text.len()), f).unwrap();
|
||||
let l = lay(&d);
|
||||
l.pages[0].items.iter().find_map(|it| if let Placed::Lines { para, .. } = it { Some((**para).clone()) } else { None }).expect("a laid-out line")
|
||||
}
|
||||
|
||||
/// Small Caps draws a space (U+0020) at the small-caps size, like a lowercase letter, as Word
|
||||
/// does (measured: 40 spaces in Times New Roman Bold 10 pt are 80% as wide in Small Caps); a
|
||||
/// no-break space keeps its full width, and with All Caps as well the space keeps its full width,
|
||||
/// as All Caps wins (#7062).
|
||||
#[test]
|
||||
fn a_space_in_small_caps_is_as_wide_as_at_the_small_caps_size() {
|
||||
crate::test_fonts();
|
||||
// The gap between the first and the last letter of `text`.
|
||||
let gap = |text: &str, f: &dyn Fn(&mut wordcraft_doc::props::CharProps)| {
|
||||
let pl = para_with(text, f);
|
||||
let line = &pl.lines[0];
|
||||
let x = |start: usize| (line.c0..line.c1).find(|&k| pl.clusters[k].start == start).and_then(|k| line.cl_left(k)).unwrap();
|
||||
x(text.len() - 1) - x(1)
|
||||
};
|
||||
// At 10 pt the small-caps size is exactly 8 pt (80%, no rounding to the half point).
|
||||
let plain: &dyn Fn(&mut wordcraft_doc::props::CharProps) = &|c| c.size = Some(10.0);
|
||||
let small: &dyn Fn(&mut wordcraft_doc::props::CharProps) = &|c| {
|
||||
c.small_caps = Some(true);
|
||||
c.size = Some(10.0);
|
||||
};
|
||||
let both: &dyn Fn(&mut wordcraft_doc::props::CharProps) = &|c| {
|
||||
c.caps = Some(true);
|
||||
c.small_caps = Some(true);
|
||||
c.size = Some(10.0);
|
||||
};
|
||||
let spaces = format!("a{}a", " ".repeat(10));
|
||||
let ratio = gap(&spaces, small) / gap(&spaces, plain);
|
||||
assert!((ratio - 0.8).abs() < 0.01, "Small Caps spaces are 80% as wide: {ratio}");
|
||||
assert!((gap(&spaces, both) - gap(&spaces, plain)).abs() < 0.01, "All Caps wins: full-width spaces");
|
||||
let nbsp = format!("a{}a", "\u{a0}".repeat(10));
|
||||
assert!((gap( , small) - gap( , plain)).abs() < 0.01, "a no-break space keeps its width");
|
||||
}
|
||||
|
||||
/// Word sets small capitals at 80% of the size rounded to the half point, a size the format can
|
||||
/// store, like superscript (measured in Word for Microsoft 365, Times New Roman: 10 pt → 8,
|
||||
/// 11 → 9, 12 → 9.5, 14 → 11, 16 → 13); a Small Caps space takes that size too (#7062).
|
||||
#[test]
|
||||
fn small_caps_take_eighty_percent_of_the_size_rounded_to_the_half_point() {
|
||||
crate::test_fonts();
|
||||
let width = |text: &str, f: &dyn Fn(&mut wordcraft_doc::props::CharProps)| {
|
||||
let pl = para_with(text, f);
|
||||
let line = &pl.lines[0];
|
||||
(line.c0..line.c1).map(|k| pl.clusters[k].adv).sum::<f32>()
|
||||
};
|
||||
for (size, small) in [(16.0_f32, 13.0_f32), (14.0, 11.0), (12.0, 9.5)] {
|
||||
let small_caps = width("xxxxxxxxxx", &|c| {
|
||||
c.small_caps = Some(true);
|
||||
c.size = Some(size);
|
||||
});
|
||||
let capitals = width("XXXXXXXXXX", &|c| c.size = Some(small));
|
||||
assert!((small_caps - capitals).abs() < 0.01, "{size} pt Small Caps draws capitals at {small} pt: {small_caps} vs {capitals}");
|
||||
let spaces = width("x x", &|c| {
|
||||
c.small_caps = Some(true);
|
||||
c.size = Some(size);
|
||||
}) - width("xx", &|c| {
|
||||
c.small_caps = Some(true);
|
||||
c.size = Some(size);
|
||||
});
|
||||
let plain = width("x x", &|c| c.size = Some(small)) - width("xx", &|c| c.size = Some(small));
|
||||
assert!((spaces - plain).abs() < 0.01, "{size} pt Small Caps spaces are {small} pt spaces: {spaces} vs {plain}");
|
||||
}
|
||||
}
|
||||
|
||||
/// A Small Caps line of lowercase letters is as tall as the same line without Small Caps: the
|
||||
/// small capitals are drawn at 80% of the size, but the line is measured at the full size, as in
|
||||
/// Word (#7063).
|
||||
#[test]
|
||||
fn a_small_caps_line_of_lowercase_is_as_tall_as_without_small_caps() {
|
||||
crate::test_fonts();
|
||||
let text = "only lowercase letters here";
|
||||
let line = |f: &dyn Fn(&mut wordcraft_doc::props::CharProps)| para_with(text, f).lines[0].clone();
|
||||
let plain = line(&|c| c.bold = Some(false));
|
||||
let small = line(&|c| c.small_caps = Some(true));
|
||||
assert!((small.height - plain.height).abs() < 0.01, "line height: Small Caps {} vs plain {}", small.height, plain.height);
|
||||
assert!((small.baseline - plain.baseline).abs() < 0.01, "baseline: Small Caps {} vs plain {}", small.baseline, plain.baseline);
|
||||
}
|
||||
|
||||
/// A caps run in a symbol font draws each code as its symbol: ß never becomes two glyphs (#1581).
|
||||
#[test]
|
||||
fn caps_in_a_symbol_font_never_expand_characters() {
|
||||
|
||||
@@ -4005,97 +4005,6 @@ fn header_and_footer_link_annotations_are_tagged_on_every_page() {
|
||||
assert_eq!(top_roles, vec!["Div", "P", "Div", "Div", "P", "Div"], "header link before body, footer link after body");
|
||||
}
|
||||
|
||||
/// Neighbouring table cells carrying the same link URL keep separate Link elements, MCIDs, and
|
||||
/// OBJRs inside their own TD cells (both in RTL tables and when a right-aligned first cell puts
|
||||
/// the two runs within one em of each other).
|
||||
#[test]
|
||||
fn table_cell_links_with_same_target_stay_in_their_own_cells() {
|
||||
use hayro_syntax::object::{Array, Dict, Name, Object};
|
||||
use wordcraft_doc::props::{Align, TableProps};
|
||||
use wordcraft_doc::{Cell, Row, Table};
|
||||
|
||||
let link_props = CharProps { link: Some("https://example.com".into()), ..Default::default() };
|
||||
let make_cell = |text: &str, align: Option<Align>| {
|
||||
let mut p = Paragraph::with_text(text, link_props.clone());
|
||||
p.props.align = align;
|
||||
Cell { blocks: vec![para_block(p)], ..Cell::empty() }
|
||||
};
|
||||
|
||||
for (name, bidi_visual, first_align) in [("rtl", true, None), ("ltr-right-aligned", false, Some(Align::Right))] {
|
||||
let row = Row { cells: vec![make_cell("First", first_align), make_cell("Second", None)], ..Default::default() };
|
||||
let table = Table {
|
||||
props: TableProps { bidi_visual, cell_margins: Some([0.0, 5.4, 0.0, 5.4]), ..Default::default() },
|
||||
grid: vec![120.0, 120.0],
|
||||
rows: vec![row],
|
||||
..Default::default()
|
||||
};
|
||||
let mut d = Document::new();
|
||||
d.body = vec![Arc::new(Block::Table(table))];
|
||||
|
||||
let bytes = export(&d, &PdfOptions { compress: false, tagged: true, ..Default::default() }).unwrap();
|
||||
let pdf = hayro_syntax::Pdf::new(bytes).unwrap();
|
||||
let annots = pdf.pages()[0].raw().get::<Array>(b"Annots").expect("page Annots");
|
||||
let annot_ids: Vec<String> = annots.iter::<Dict>().map(|a| format!("{:?}", a.obj_id().expect("indirect annot"))).collect();
|
||||
assert_eq!(annot_ids.len(), 2, "{name}: expected two link annotations, got {annot_ids:?}");
|
||||
|
||||
let root = pdf.xref().get::<Dict>(pdf.xref().root_id()).unwrap();
|
||||
let struct_tree = root.get::<Dict>(b"StructTreeRoot").expect("StructTreeRoot");
|
||||
|
||||
fn children<'a>(dict: &Dict<'a>) -> Vec<Object<'a>> {
|
||||
match dict.get::<Object>(b"K") {
|
||||
Some(Object::Array(a)) => a.iter::<Object>().collect(),
|
||||
Some(other) => vec![other],
|
||||
None => Vec::new(),
|
||||
}
|
||||
}
|
||||
fn collect_links(d: &Dict, out: &mut Vec<(bool, Option<String>)>) {
|
||||
if d.get::<Name>(b"S").is_some_and(|s| s.as_ref() == b"Link") {
|
||||
let mut has_mcid = false;
|
||||
let mut objr = None;
|
||||
for item in children(d) {
|
||||
match item {
|
||||
Object::Number(_) => has_mcid = true,
|
||||
Object::Dict(o) if o.get::<Name>(b"Type").is_some_and(|t| t.as_ref() == b"OBJR") => {
|
||||
objr = o.get::<Dict>(b"Obj").and_then(|obj| obj.obj_id()).map(|id| format!("{id:?}"));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
out.push((has_mcid, objr));
|
||||
}
|
||||
for item in children(d) {
|
||||
if let Object::Dict(c) = item {
|
||||
collect_links(&c, out);
|
||||
}
|
||||
}
|
||||
}
|
||||
fn collect_tds(dict: &Dict, out: &mut Vec<Vec<(bool, Option<String>)>>) {
|
||||
if dict.get::<Name>(b"S").is_some_and(|s| s.as_ref() == b"TD") {
|
||||
let mut cell_links = Vec::new();
|
||||
collect_links(dict, &mut cell_links);
|
||||
out.push(cell_links);
|
||||
return;
|
||||
}
|
||||
for item in children(dict) {
|
||||
if let Object::Dict(c) = item {
|
||||
collect_tds(&c, out);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let mut tds = Vec::new();
|
||||
collect_tds(&struct_tree, &mut tds);
|
||||
assert_eq!(tds.len(), 2, "{name}: expected 2 TD cells, got {tds:?}");
|
||||
assert_eq!(tds[0].len(), 1, "{name}: first TD should hold 1 Link: {tds:?}");
|
||||
assert_eq!(tds[1].len(), 1, "{name}: second TD should hold 1 Link: {tds:?}");
|
||||
assert!(tds[0][0].0 && tds[1][0].0, "{name}: both cell Links must hold an MCID: {tds:?}");
|
||||
let objr0 = tds[0][0].1.as_deref().expect("first TD Link OBJR");
|
||||
let objr1 = tds[1][0].1.as_deref().expect("second TD Link OBJR");
|
||||
assert_ne!(objr0, objr1, "{name}: cells must reference distinct OBJR annotations: {tds:?}");
|
||||
assert!(annot_ids.iter().any(|id| id == objr0) && annot_ids.iter().any(|id| id == objr1), "{name}: OBJRs must match page Annots");
|
||||
}
|
||||
}
|
||||
|
||||
/// A paragraph's continuation must follow the footer and header between its pages.
|
||||
#[test]
|
||||
fn spanning_paragraph_links_follow_page_reading_order() {
|
||||
|
||||
@@ -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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35" }
|
||||
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 = "5299d8d97dc04648dff735d1bd6f60bd18f10b35", features = ["subset"] }
|
||||
serde_json = { workspace = true }
|
||||
toml = "1"
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ fn synthetic_session() -> Session {
|
||||
}
|
||||
let mut doc = Document::from_text(&text);
|
||||
for i in (0..1156).step_by(20) {
|
||||
doc.format_paragraphs(&Pos::body(i, 0), &Pos::body(i, 0), &|p| p.style = Some("Heading1".into())).expect("synthetic: heading style");
|
||||
let _ = doc.format_paragraphs(&Pos::body(i, 0), &Pos::body(i, 0), &|p| p.style = Some("Heading1".into()));
|
||||
}
|
||||
|
||||
let mut table = Table::new(250, 8, 468.0);
|
||||
@@ -97,7 +97,7 @@ fn synthetic_session() -> Session {
|
||||
cell.props.width = w;
|
||||
}
|
||||
}
|
||||
doc.insert_block(StoryRef::Body, &Path::top(50), Block::Table(table)).expect("synthetic: table");
|
||||
let _ = doc.insert_block(StoryRef::Body, &Path::top(50), Block::Table(table));
|
||||
|
||||
for img_idx in 0..16_u8 {
|
||||
let mut rgba = image::RgbaImage::new(256, 256);
|
||||
@@ -109,31 +109,31 @@ fn synthetic_session() -> Session {
|
||||
255,
|
||||
]);
|
||||
}
|
||||
let png = wordcraft_geom::picture::encode_png(&image::DynamicImage::ImageRgba8(rgba)).expect("synthetic: image encoding");
|
||||
let key = doc.add_media(png, "png");
|
||||
let block_idx = 2 + usize::from(img_idx) * 2;
|
||||
doc.insert_object(
|
||||
&Pos::body(block_idx, 0),
|
||||
InlineObject::Image {
|
||||
media: key,
|
||||
w: 144.0,
|
||||
h: 144.0,
|
||||
alt: format!("Synthetic image {img_idx}"),
|
||||
float: Default::default(),
|
||||
crop: [0.0; 4],
|
||||
fx: Default::default(),
|
||||
ole: None,
|
||||
},
|
||||
&Default::default(),
|
||||
)
|
||||
.expect("synthetic: image");
|
||||
if let Ok(png) = wordcraft_geom::picture::encode_png(&image::DynamicImage::ImageRgba8(rgba)) {
|
||||
let key = doc.add_media(png, "png");
|
||||
let block_idx = 2 + usize::from(img_idx) * 2;
|
||||
let _ = doc.insert_object(
|
||||
&Pos::body(block_idx, 0),
|
||||
InlineObject::Image {
|
||||
media: key,
|
||||
w: 144.0,
|
||||
h: 144.0,
|
||||
alt: format!("Synthetic image {img_idx}"),
|
||||
float: Default::default(),
|
||||
crop: [0.0; 4],
|
||||
fx: Default::default(),
|
||||
ole: None,
|
||||
},
|
||||
&Default::default(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
let mut session = Session::new(doc);
|
||||
session.run("review.trackChanges", &json!({"enabled": true})).expect("synthetic: track changes on");
|
||||
session.run("caret.set", &json!({"pos": {"story": "body", "path": [0], "off": 0}})).expect("synthetic: caret");
|
||||
session.run("text.insert", &json!({"text": "Tracked prefix "})).expect("synthetic: tracked insertion");
|
||||
session.run("review.trackChanges", &json!({"enabled": false})).expect("synthetic: track changes off");
|
||||
let _ = session.run("review.trackChanges", &json!({"enabled": true}));
|
||||
let _ = session.run("caret.set", &json!({"pos": {"story": "body", "path": [0], "off": 0}}));
|
||||
let _ = session.run("text.insert", &json!({"text": "Tracked prefix "}));
|
||||
let _ = session.run("review.trackChanges", &json!({"enabled": false}));
|
||||
session
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ pub enum Target {
|
||||
/// What the pick is remembered as.
|
||||
remember: Remember,
|
||||
},
|
||||
/// Run nothing: the pick is only reported in [`ColorPick::picked`].
|
||||
/// Run nothing: the pick is only reported in [`ColorPick::picked`] (a gradient stop's colour).
|
||||
Pick,
|
||||
}
|
||||
|
||||
@@ -258,10 +258,7 @@ fn cell_shading(table: &wordcraft_doc::Table, cells: impl IntoIterator<Item = (u
|
||||
/// differs across the selection, or cannot be read (a picture's icon colour is not stored).
|
||||
fn current_of(app: &mut WordApp, target: &Target) -> Option<Rgb> {
|
||||
use wordcraft_doc::InlineObject;
|
||||
let Target::Run { cmd, params, at, .. } = target else { return None };
|
||||
if let Some(c) = params.pointer(at).and_then(Value::as_str).and_then(parse) {
|
||||
return Some(c);
|
||||
}
|
||||
let Target::Run { cmd, .. } = target else { return None };
|
||||
let s = &app.session;
|
||||
let shapes = |o: &InlineObject| matches!(o, InlineObject::Shape { .. }) || o.is_canvas();
|
||||
let objects = || wordcraft_engine::cmd::objects::target_objects(s, shapes).into_iter().map(|(_, o)| o);
|
||||
|
||||
@@ -13,7 +13,7 @@ use craft::theme::Srgba;
|
||||
use craft::theme::variant::Tone;
|
||||
use craft::ui::buttons::Button;
|
||||
use craft::ui::choice::{Checkbox, Radio, RadioGroup};
|
||||
use craft::ui::contract::{Bind, Entry, Outcome as _, Props as _, Show as _, ShowContainer as _, Trigger, clicked};
|
||||
use craft::ui::contract::{Bind, Entry, Outcome as _, Props as _, Show as _, ShowContainer as _, Trigger};
|
||||
use craft::ui::form::{Field, SliderField};
|
||||
use craft::ui::layout_components::Stack;
|
||||
use craft::ui::menu::Menu;
|
||||
@@ -509,9 +509,7 @@ fn solid(app: &mut WordApp, ui: &mut Ui, theme: &[Rgb], color: Rgb, transparency
|
||||
let mut hex = color.hex();
|
||||
let label: Label = tl!("Color").into();
|
||||
let picked = color_field(ui, &label, &mut hex, &ColorFieldEmpty::NoColor, &palette);
|
||||
if picked.more_colors {
|
||||
colors::open_for(app, &Target::cmd("shape.fill"), Some(color), craft::color_ui::ui::ColorPickerTab::Standard);
|
||||
} else if picked.changed
|
||||
if picked.changed
|
||||
&& let Some(n) = Rgb::parse(&hex)
|
||||
{
|
||||
let _ = app.run("shape.fill", json!({"color": n.hex()}));
|
||||
@@ -679,22 +677,17 @@ fn gradient(app: &mut WordApp, ui: &mut Ui, g: &Gradient) {
|
||||
// PLAN: the framework has no public kept-value write; the open flag goes through the saved value
|
||||
let was: bool = saved_value(&ctx, &key);
|
||||
let mut open = was || editor.color_requested.is_some();
|
||||
let stop_at = editor.color_requested.as_ref().map(|c| c.index).or(match editor.selected {
|
||||
Some(StopRef::Color(at)) => Some(at),
|
||||
_ => None,
|
||||
});
|
||||
let stop_target = match stop_at.filter(|&at| at < g.stops.len()) {
|
||||
Some(at) => Target::at("shape.fill", shape_fill::params(Some(&Fill::Gradient(Arc::new(g.clone())))), &format!("/gradient/stops/{at}/color")),
|
||||
None => Target::Pick,
|
||||
};
|
||||
let mut close_popover = false;
|
||||
let mut chosen = None;
|
||||
Popover::new(tl!("Stop color"), Bind::bound(&mut open)).opened_by(editor.response()).show(ui, |ui, _| {
|
||||
let pick = colors::palette(ui, app, stop_target.clone());
|
||||
if pick.picked.is_some() || clicked(&pick.response) {
|
||||
close_popover = true;
|
||||
}
|
||||
// PLAN: assumed colors::palette(ui, app, Target::Pick) -> ColorPick (ribbon-w11, rb.A4)
|
||||
chosen = colors::palette(ui, app, Target::Pick).picked;
|
||||
});
|
||||
if close_popover {
|
||||
if let (Some(color), Some(StopRef::Color(at))) = (chosen, editor.selected) {
|
||||
let mut stops = stops_of(g);
|
||||
if let Some(stop) = stops.color.get_mut(at) {
|
||||
stop.color = srgba(color, stop.color.a);
|
||||
apply(app, Some(&with_stops(g, &stops)));
|
||||
}
|
||||
open = false;
|
||||
}
|
||||
if open != was {
|
||||
@@ -1073,64 +1066,6 @@ mod tests {
|
||||
assert_eq!(stroke(h.state()), Some(wordcraft_doc::Rgb(255, 0, 0)));
|
||||
}
|
||||
|
||||
/// Selecting More Colors… in the Solid fill color picker applies the custom color via `shape.fill`
|
||||
/// while preserving transparency.
|
||||
#[test]
|
||||
fn format_shape_pane_solid_more_colors_applies_fill() {
|
||||
let mut a = WordApp::new(wordcraft_engine::Session::new(wordcraft_doc::Document::new()), Default::default());
|
||||
a.run("insert.shape", json!({"kind": "rectangle"})).unwrap();
|
||||
a.run("shape.fill", json!({"color": "112233", "transparency": 35})).unwrap();
|
||||
a.run("view.formatShapePane", json!({"value": true})).unwrap();
|
||||
let mut h = harness(a);
|
||||
h.run_steps(4);
|
||||
|
||||
h.query_all_by_role_and_label(egui::accesskit::Role::Button, "Color #112233").last().expect("solid fill color field").click();
|
||||
h.run_steps(3);
|
||||
h.get_by_label("More Colors…").click();
|
||||
h.run_steps(3);
|
||||
|
||||
let dialog = h.state_mut().dialog_host.get_mut::<craft::color_ui::ui::ColorPickerDialog>().expect("Colors dialog opened");
|
||||
assert_eq!(dialog.opening().map(|p| super::rgb_of(p.color)), Some(wordcraft_doc::Rgb(0x11, 0x22, 0x33)));
|
||||
dialog.set_color(craft::color_ui::ui::PickedColor::rgb(craft::theme::Srgba::rgb(0.0, 1.0, 0.0)));
|
||||
let ctx = h.ctx.clone();
|
||||
assert!(h.state_mut().dialog_host.confirm::<craft::color_ui::ui::ColorPickerDialog>(&ctx));
|
||||
crate::dialogs::host::settle(h.state_mut(), &ctx);
|
||||
assert_eq!(fill(h.state()), Some(Fill::Solid { color: wordcraft_doc::Rgb(0, 255, 0), transparency: 35.0 }));
|
||||
}
|
||||
|
||||
/// Selecting More Colors… from a gradient stop's color popover applies the custom color to that
|
||||
/// stop while keeping the other stops and gradient settings intact.
|
||||
#[test]
|
||||
fn format_shape_pane_gradient_stop_more_colors_applies_stop_color() {
|
||||
let mut a = WordApp::new(wordcraft_engine::Session::new(wordcraft_doc::Document::new()), Default::default());
|
||||
a.run("insert.shape", json!({"kind": "rectangle"})).unwrap();
|
||||
let stops = json!([{"pos": 0, "color": "FFFFFF", "transparency": 20}, {"pos": 100, "color": "156082", "transparency": 50}]);
|
||||
a.run("shape.fill", json!({"gradient": {"stops": stops, "angle": 90}})).unwrap();
|
||||
a.run("view.formatShapePane", json!({"value": true})).unwrap();
|
||||
let mut h = harness(a);
|
||||
h.run_steps(4);
|
||||
|
||||
h.get_by_label("Color stop 2 of 2").click();
|
||||
h.run_steps(3);
|
||||
h.key_press(egui::Key::Enter);
|
||||
h.run_steps(3);
|
||||
h.get_by_label("More Colors…").click();
|
||||
h.run_steps(3);
|
||||
|
||||
let dialog = h.state_mut().dialog_host.get_mut::<craft::color_ui::ui::ColorPickerDialog>().expect("Colors dialog opened");
|
||||
assert_eq!(dialog.opening().map(|p| super::rgb_of(p.color)), Some(wordcraft_doc::Rgb(0x15, 0x60, 0x82)));
|
||||
dialog.set_color(craft::color_ui::ui::PickedColor::rgb(craft::theme::Srgba::rgb(1.0, 0.0, 0.0)));
|
||||
let ctx = h.ctx.clone();
|
||||
assert!(h.state_mut().dialog_host.confirm::<craft::color_ui::ui::ColorPickerDialog>(&ctx));
|
||||
crate::dialogs::host::settle(h.state_mut(), &ctx);
|
||||
|
||||
let Some(Fill::Gradient(g)) = fill(h.state()) else { panic!("expected gradient fill, got {:?}", fill(h.state())) };
|
||||
assert_eq!(g.stops.len(), 2);
|
||||
assert_eq!(g.stops[0].color, wordcraft_doc::Rgb(0xFF, 0xFF, 0xFF));
|
||||
assert_eq!(g.stops[1].color, wordcraft_doc::Rgb(255, 0, 0));
|
||||
assert_eq!(g.stops[1].transparency, 50.0);
|
||||
}
|
||||
|
||||
fn png_data() -> String {
|
||||
let img = image::RgbaImage::from_fn(20, 10, |x, y| {
|
||||
if x > 2 && x < 17 && y > 2 && y < 7 { image::Rgba([200, 30, 30, 255]) } else { image::Rgba([255, 255, 255, 255]) }
|
||||
|
||||
@@ -1714,17 +1714,10 @@ mod tests {
|
||||
.iter()
|
||||
.filter(|(_, n)| n.label() == Some(label))
|
||||
.filter_map(|(_, n)| n.bounds())
|
||||
.filter(|b| b.x0 >= picker.x0 && b.x1 <= picker.x1 && b.y0 >= picker.y0 && b.y1 <= picker.y1)
|
||||
.collect::<Vec<_>>()
|
||||
.find(|b| b.x0 >= picker.x0 && b.x1 <= picker.x1 && b.y0 >= picker.y0 && b.y1 <= picker.y1)
|
||||
};
|
||||
let search = *in_picker("Search").first().expect("the picker's Search field");
|
||||
// The picker has two Close buttons: one in its title bar, above the Search field, and the footer's below
|
||||
// it. Which comes first in the tree depends on the node ids, so take the footer's by position.
|
||||
let close = in_picker("Close")
|
||||
.into_iter()
|
||||
.filter(|b| b.y0 >= search.y1)
|
||||
.min_by(|a, b| a.y0.total_cmp(&b.y0))
|
||||
.expect("the picker's Close button");
|
||||
let search = in_picker("Search").expect("the picker's Search field");
|
||||
let close = in_picker("Close").expect("the picker's Close button");
|
||||
(list.y0.max(picker.y0).max(search.y1), list.y1.min(picker.y1).min(close.y0), list)
|
||||
};
|
||||
let mut tree = tree;
|
||||
|
||||
@@ -187,7 +187,6 @@ pub(crate) fn members(app: &mut WordApp, ui: &mut Ui, preview: bool) {
|
||||
Row::new().gap(Gap::Tight).show(ui, |ui, _| {
|
||||
let mut family = st.get("font").and_then(Value::as_str).unwrap_or("").to_string();
|
||||
let picked = crate::widgets::font_box::font_box(ui, app, tl!("Font").to_string(), &mut family);
|
||||
crate::ribbon::common::painted_ibeam_over(ui, &picked.edit.response);
|
||||
follow_list(app, preview, &picked.preview, |f| Some(("format.font".to_string(), json!({"name": f}))));
|
||||
if let Some(f) = &picked.picked {
|
||||
let _ = app.run("format.font", json!({"name": f}));
|
||||
@@ -201,7 +200,6 @@ pub(crate) fn members(app: &mut WordApp, ui: &mut Ui, preview: bool) {
|
||||
let mut text = size.clone();
|
||||
// `text` is rebuilt from the selection on every pass: the box keeps what is typed until Enter.
|
||||
let combo = ComboBox::new(tl!("Font Size").to_string(), Bind::bound(&mut text).policy(EditPolicy::OnCommit), &sizes).show(ui);
|
||||
crate::ribbon::common::painted_ibeam_over(ui, &combo.edit.response);
|
||||
follow_list(app, preview, &combo.preview, |v| {
|
||||
v.trim().parse::<f64>().ok().map(|x| ("format.size".to_string(), json!({"size": x})))
|
||||
});
|
||||
|
||||
@@ -463,12 +463,11 @@ pub fn import_legacy_window(bytes: &[u8], store: &mut craft::window::restore::St
|
||||
mod tests;
|
||||
|
||||
/// Returns the user's home directory from `HOME` or `USERPROFILE`, if set and non-empty.
|
||||
/// Windows checks `USERPROFILE` first: there `HOME` is often a mapped network drive or
|
||||
/// Git for Windows' home, not the profile folder.
|
||||
fn home_dir() -> Option<std::path::PathBuf> {
|
||||
let var = |key: &str| std::env::var_os(key).filter(|h| !h.is_empty());
|
||||
let (first, second) = if cfg!(windows) { ("USERPROFILE", "HOME") } else { ("HOME", "USERPROFILE") };
|
||||
var(first).or_else(|| var(second)).map(std::path::PathBuf::from)
|
||||
std::env::var_os("HOME")
|
||||
.filter(|h| !h.is_empty())
|
||||
.or_else(|| std::env::var_os("USERPROFILE").filter(|h| !h.is_empty()))
|
||||
.map(std::path::PathBuf::from)
|
||||
}
|
||||
|
||||
fn strip_tilde_prefix(path: &str) -> Option<&str> {
|
||||
|
||||
@@ -251,7 +251,10 @@ fn recent_paths_inside_home_contract_and_expand() {
|
||||
assert_eq!(super::expand_recent_path_with("~/Docs/test.docx", None), "~/Docs/test.docx");
|
||||
|
||||
// Round-trip through WordApp::prefs / apply_prefs using the process home directory.
|
||||
let real_home = super::home_dir();
|
||||
let real_home = std::env::var_os("HOME")
|
||||
.filter(|h| !h.is_empty())
|
||||
.or_else(|| std::env::var_os("USERPROFILE").filter(|h| !h.is_empty()))
|
||||
.map(std::path::PathBuf::from);
|
||||
if let Some(real_home) = real_home {
|
||||
let doc = real_home.join("WordCraftSyncTest").join("notes.docx");
|
||||
let doc_str = doc.to_string_lossy().into_owned();
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
use craft::behavior::cursor::{Cursor, CursorPriority, PaintedCursor};
|
||||
use craft::host::target::{Os, Runtime};
|
||||
use craft::keymap::CommandRef;
|
||||
use craft::menu::ribbon::{RibbonGroup, RibbonRow};
|
||||
use craft::ui::buttons::{Arrangement, Button};
|
||||
@@ -13,7 +11,7 @@ use craft::ui::layout_components::{Row, Stack};
|
||||
use craft::ui::list::ThumbAspect;
|
||||
use craft::ui::menu::{Menu, MenuItem, MenuOutput};
|
||||
use craft::ui::primitives::{FacePaint, IconSpec};
|
||||
use craft::ui::runtime::env::{Env, Label};
|
||||
use craft::ui::runtime::env::Label;
|
||||
use craft::ui::text::NumberField;
|
||||
|
||||
use serde_json::Value;
|
||||
@@ -70,17 +68,6 @@ pub(crate) fn labelled<R>(ui: &mut Ui, add: impl FnOnce(&mut Ui) -> R) -> R {
|
||||
)
|
||||
}
|
||||
|
||||
/// On Windows the system I-beam is the legacy white XOR cursor over the GPU surface; the page
|
||||
/// replaces it with the framework's painted beam. Do the same over a ribbon or mini-toolbar text
|
||||
/// field on hover.
|
||||
pub(crate) fn painted_ibeam_over(ui: &Ui, response: &egui::Response) {
|
||||
let env = Env::of(ui);
|
||||
let shell = env.view().shell();
|
||||
if shell.os == Os::Windows && shell.runtime == Runtime::Native && response.hovered() {
|
||||
craft::ui::runtime::cursor::request(ui.ctx(), Cursor::Painted(PaintedCursor::IBeam), CursorPriority::Hover);
|
||||
}
|
||||
}
|
||||
|
||||
/// Two rows of small controls spread over the ribbon's body, `row(ui, 0)` above `row(ui, 1)`, with as much room above
|
||||
/// the first, between them and under the second, so a two-row group fills the height of the three rows beside it and
|
||||
/// leaves no empty band over its title.
|
||||
|
||||
@@ -14,7 +14,7 @@ use craft::ui::primitives::{HAlign, TextRun};
|
||||
use craft::ui::tile_grid::{CaptionPlace, Tile, TileGrid};
|
||||
use wordcraft_doc::props::Align;
|
||||
|
||||
use super::common::{icon_only, menu_button, painted_ibeam_over, two_rows};
|
||||
use super::common::{icon_only, menu_button, two_rows};
|
||||
use super::underline::underline_menu;
|
||||
use egui::vec2;
|
||||
use serde_json::Value;
|
||||
@@ -200,7 +200,6 @@ pub(super) fn home(row: &mut RibbonRow<'_>, app: &mut WordApp) {
|
||||
if at == 0 {
|
||||
let mut family = st.get("font").and_then(Value::as_str).unwrap_or("").to_string();
|
||||
let out = crate::widgets::font_box(ui, app, tl!("Font").to_string(), &mut family);
|
||||
painted_ibeam_over(ui, &out.edit.response);
|
||||
if let Some(f) = out.picked {
|
||||
let _ = app.run("format.font", json!({"name": f}));
|
||||
}
|
||||
@@ -208,7 +207,6 @@ pub(super) fn home(row: &mut RibbonRow<'_>, app: &mut WordApp) {
|
||||
let out = craft::ui::pickers::ComboBox::new(tl!("Font Size").to_string(), Bind::bound(&mut size), font_size_entries())
|
||||
.tooltip(tl!("Font Size").to_string())
|
||||
.show(ui);
|
||||
painted_ibeam_over(ui, &out.edit.response);
|
||||
if let Some(v) = out.edit.events.committed()
|
||||
&& let Ok(x) = v.trim().parse::<f64>()
|
||||
{
|
||||
@@ -355,7 +353,7 @@ pub(super) fn home(row: &mut RibbonRow<'_>, app: &mut WordApp) {
|
||||
Divider::horizontal().show(ui);
|
||||
for lv in 0..9u64 {
|
||||
MenuItem::command(CommandRef::with_params("para.listLevel", json!({"level": lv})))
|
||||
.label(crate::i18n::fmt(tl!("Change to Level {n}"), &[("n", &(lv + 1).to_string())]))
|
||||
.label(format!("Change to Level {}", lv + 1))
|
||||
.show(ui);
|
||||
}
|
||||
})),
|
||||
|
||||
@@ -1593,3 +1593,33 @@ fn picture_and_shape_size_fields_show_unit_hints() {
|
||||
assert!(h.query_by_label_contains(expected).is_some(), "{tab} W: hover tooltip shows unit hint");
|
||||
}
|
||||
}
|
||||
|
||||
/// #3943: showing a ribbon tab only shows its fields. A value outside a field's range (a −1000 pt
|
||||
/// indent, a column wider than 22 mm) stays as it is: no edit, no undo step, until the person changes it.
|
||||
#[test]
|
||||
fn showing_a_ribbon_tab_leaves_values_outside_a_fields_range_alone() {
|
||||
// Layout › Paragraph: a −1000 pt left indent (the field's range starts at −792 pt).
|
||||
let mut a = crate::WordApp::new(Session::new(wordcraft_doc::Document::new()), crate::Services::default());
|
||||
a.run("text.insert", json!({"text": "Indented"})).unwrap();
|
||||
a.run("para.indents", json!({"left": -1000.0, "right": -900.0})).unwrap();
|
||||
let (undo, rev) = (a.session.undo_depth(), a.session.rev());
|
||||
let h = tab_harness(a, "Layout");
|
||||
let para = h.state().session.doc.para_at(&h.state().session.sel.focus).map(|p| (p.props.indent_left, p.props.indent_right));
|
||||
assert_eq!(para, Some((Some(-1000.0), Some(-900.0))), "the indents are as they were");
|
||||
assert_eq!((h.state().session.undo_depth(), h.state().session.rev()), (undo, rev), "no edit, no undo step");
|
||||
|
||||
// Table Layout › Cell Size: a column wider than 22 mm, with millimetres as the unit.
|
||||
let mut a = crate::WordApp::new(Session::new(wordcraft_doc::Document::new()), crate::Services::default());
|
||||
a.run("file.options", json!({"units": "millimeters"})).unwrap();
|
||||
a.run("insert.table", json!({"rows": 2, "cols": 2})).unwrap();
|
||||
a.run("table.columnWidth", json!({"width": 100.0})).unwrap();
|
||||
let widths = |a: &crate::WordApp| {
|
||||
let story = a.session.sel.focus.story;
|
||||
a.session.sel.focus.path.cell().and_then(|(tp, _, _)| a.session.doc.table(story, &tp).map(|t| t.grid.clone()))
|
||||
};
|
||||
let (before, undo, rev) = (widths(&a), a.session.undo_depth(), a.session.rev());
|
||||
assert!(before.as_ref().is_some_and(|g| g.iter().any(|w| *w > 70.0)), "a column wider than 22 mm: {before:?}");
|
||||
let h = tab_harness(a, "Table Layout");
|
||||
assert_eq!(widths(h.state()), before, "the column keeps its width");
|
||||
assert_eq!((h.state().session.undo_depth(), h.state().session.rev()), (undo, rev), "no edit, no undo step");
|
||||
}
|
||||
|
||||
@@ -2458,36 +2458,6 @@ fn clicks_on_ribbon_and_status_bar_chrome_keep_typing_in_the_document() {
|
||||
assert_eq!(body_text(h.state()), before, "typing went into the font size box, not the page");
|
||||
}
|
||||
|
||||
/// #7757: Windows draws its system text I-beam in white over the app's surface, so the ribbon's font
|
||||
/// fields looked cursorless there. Like the page, the font size box must ask for craft's painted
|
||||
/// I-beam on a native Windows shell; other shells keep the system text cursor.
|
||||
#[test]
|
||||
fn the_ribbon_font_size_box_shows_a_painted_ibeam_on_windows() {
|
||||
use craft::host::target::{Os, Runtime};
|
||||
use egui::accesskit::Role;
|
||||
|
||||
let mut h = harness(app());
|
||||
h.run_steps(4);
|
||||
let size =
|
||||
h.get_all_by_role(Role::TextInput).find(|n| n.value().is_some_and(|v| v.trim().parse::<f64>().is_ok())).expect("the font size box").rect();
|
||||
h.hover_at(size.center());
|
||||
h.step();
|
||||
h.step();
|
||||
|
||||
let env = craft::ui::runtime::env::Env::of_root(&h.ctx);
|
||||
let shell = env.view().shell();
|
||||
if shell.os == Os::Windows && shell.runtime == Runtime::Native {
|
||||
assert!(h.output().platform_output.cursor_image.is_some(), "the font size box asks for the painted I-beam on Windows native");
|
||||
assert_eq!(
|
||||
craft::ui::runtime::cursor::current(&h.ctx),
|
||||
Some(craft::behavior::cursor::Cursor::Painted(craft::behavior::cursor::PaintedCursor::IBeam)),
|
||||
"the font size box asks for the painted I-beam"
|
||||
);
|
||||
} else {
|
||||
assert_eq!(h.output().platform_output.cursor_icon, egui::CursorIcon::Text, "other shells keep the text cursor");
|
||||
}
|
||||
}
|
||||
|
||||
/// #1538: inserting WordArt leaves its text selected, so Delete erased only the text and the
|
||||
/// empty box stayed. Escape now selects the box itself, Delete removes it, and a second Escape
|
||||
/// is back to a caret in the body.
|
||||
|
||||
@@ -3,10 +3,8 @@ use std::sync::Arc;
|
||||
|
||||
use craft::font_manager::Catalog;
|
||||
use craft::font_manager::craft_font_catalog::{FontEnv, Os};
|
||||
use craft::font_manager::missing::MissingFontsWords;
|
||||
use craft::host::{Host, PickKind, ScriptedFiles};
|
||||
use craft::ui::buttons::IconButton;
|
||||
use craft::ui::contract::{Props as _, Show as _, tooltip};
|
||||
use craft::ui::contract::{Props as _, Show as _};
|
||||
use egui::accesskit::Role;
|
||||
use egui::{Key, vec2};
|
||||
use egui_kittest::kittest::{By, NodeT, Queryable};
|
||||
@@ -227,49 +225,24 @@ fn drawn_buttons_fade_in_on_hover_and_darken_while_pressed() {
|
||||
assert_eq!(fill_after, None, "Save button must clear hover fill after unhovering");
|
||||
}
|
||||
|
||||
/// #7317 / #8447 / #8778: WordCraft's `font_box` warns with `MissingAdvice::AddFont` for an
|
||||
/// uninstalled family, updates the popup list on the same frame as each keystroke, shows the
|
||||
/// Recently Used Fonts section again when cleared, places `Add Font…` last, and picking `Add Font…`
|
||||
/// runs `font.add` without changing the family.
|
||||
/// #7317 / #8447: typing in WordCraft's `font_box` updates the popup list on the same frame as
|
||||
/// the keystroke, shows the Recently Used Fonts section (and WordCraft's `Add Font…` action row)
|
||||
/// again when cleared, and narrows immediately on subsequent typing.
|
||||
#[test]
|
||||
fn the_typed_list_shows_on_the_frame_of_the_keystroke() {
|
||||
const RECENT: &str = "Source Serif 4";
|
||||
const MISSING: &str = "Wordcraft Missing Face";
|
||||
|
||||
let files = Arc::new(ScriptedFiles::held());
|
||||
let host = Host::builder(crate::APP).files(files.clone()).build();
|
||||
let mut app = WordApp::new(Session::new(wordcraft_doc::Document::from_text("Sample")), Services::default()).with_host(Arc::new(host));
|
||||
let mut app = WordApp::new(Session::new(wordcraft_doc::Document::from_text("Sample")), Services::default());
|
||||
app.ui.language = "en".into();
|
||||
app.font_catalog = Some(fixed_catalog());
|
||||
app.ui.font_picker.recent = vec![RECENT.to_string()];
|
||||
let substitute = app.font_box_warning(MISSING).expect("missing family produces a substitute warning");
|
||||
let words = MissingFontsWords::default();
|
||||
let expected_note = format!("{} {}", words.shown_as.fill(&[("family", MISSING), ("face", &substitute)]), words.add_font.as_str());
|
||||
let mut family = String::new();
|
||||
|
||||
let mut h = crate::test_harness::builder().with_size(vec2(400.0, 900.0)).build_ui_state(
|
||||
|ui, (app, family): &mut (WordApp, String)| {
|
||||
let _ = super::font_box(ui, app, "Font", family);
|
||||
},
|
||||
(app, MISSING.to_string()),
|
||||
);
|
||||
let mut h = crate::test_harness::builder().with_size(vec2(400.0, 900.0)).build_ui(move |ui| {
|
||||
let _ = super::font_box(ui, &mut app, "Font", &mut family);
|
||||
});
|
||||
h.run_steps(2);
|
||||
|
||||
// Resting on the warning mark shows the missing-font note together with MissingAdvice::AddFont.
|
||||
let input_rect = h.get(By::new().role(Role::TextInput)).rect();
|
||||
let chevron_rect = h.get_by_role_and_label(Role::Button, "Fonts").rect();
|
||||
let warning_pos = egui::pos2((input_rect.max.x + chevron_rect.min.x) * 0.5, chevron_rect.center().y);
|
||||
assert!(
|
||||
h.query_by_label_contains(words.add_font.as_str()).is_none(),
|
||||
"missing-font advice should wait until the pointer rests on the warning mark"
|
||||
);
|
||||
h.event(egui::Event::PointerMoved(warning_pos));
|
||||
let delay_frames = (tooltip::DELAY / 0.25).ceil() as usize + 3;
|
||||
h.run_steps(delay_frames);
|
||||
assert!(
|
||||
h.query_by_label(expected_note.as_str()).is_some(),
|
||||
"expected missing-font note with MissingAdvice::AddFont when hovering the warning mark; substitute={substitute:?}"
|
||||
);
|
||||
|
||||
h.get(By::new().role(Role::TextInput)).click();
|
||||
h.run_steps(2);
|
||||
|
||||
@@ -279,7 +252,7 @@ fn the_typed_list_shows_on_the_frame_of_the_keystroke() {
|
||||
egui::Event::Key { key: Key::Backspace, physical_key: None, pressed: false, repeat: false, modifiers: egui::Modifiers::NONE },
|
||||
]
|
||||
};
|
||||
let send = |h: &mut egui_kittest::Harness<'static, (WordApp, String)>, events: Vec<egui::Event>| {
|
||||
let send = |h: &mut egui_kittest::Harness<'static, ()>, events: Vec<egui::Event>| {
|
||||
for ev in events {
|
||||
h.event(ev);
|
||||
}
|
||||
@@ -335,13 +308,16 @@ fn the_typed_list_shows_on_the_frame_of_the_keystroke() {
|
||||
}
|
||||
}
|
||||
|
||||
// Clearing `"int"` restores the full list with WordCraft's `Add Font…` action row last.
|
||||
// Clearing `"int"` restores the full list with WordCraft's `Add Font…` action row at the end.
|
||||
for _ in 0..3 {
|
||||
send(&mut h, erase());
|
||||
}
|
||||
let list_center = h.get_by_role_and_label(Role::ListBox, "Fonts").rect().center();
|
||||
h.event(egui::Event::PointerMoved(list_center));
|
||||
let scroll_down = |h: &mut egui_kittest::Harness<'static, (WordApp, String)>| {
|
||||
for _ in 0..20 {
|
||||
if h.query_by_role_and_label(Role::TreeItem, "Add Font…").is_some() {
|
||||
break;
|
||||
}
|
||||
h.event(egui::Event::MouseWheel {
|
||||
unit: egui::MouseWheelUnit::Page,
|
||||
delta: vec2(0.0, -20.0),
|
||||
@@ -350,32 +326,9 @@ fn the_typed_list_shows_on_the_frame_of_the_keystroke() {
|
||||
source: egui::MouseWheelSource::Unknown,
|
||||
});
|
||||
h.step();
|
||||
};
|
||||
let visible_rows = |h: &egui_kittest::Harness<'static, (WordApp, String)>| -> Vec<(String, f32)> {
|
||||
let mut rows: Vec<(String, f32)> =
|
||||
h.query_all_by_role(Role::TreeItem).filter_map(|n| Some((n.accesskit_node().label()?, n.rect().min.y))).collect();
|
||||
rows.sort_by(|a, b| a.1.total_cmp(&b.1));
|
||||
rows
|
||||
};
|
||||
for _ in 0..50 {
|
||||
if h.query_by_role_and_label(Role::TreeItem, "Add Font…").is_some() {
|
||||
break;
|
||||
}
|
||||
scroll_down(&mut h);
|
||||
}
|
||||
assert!(h.query_by_role_and_label(Role::TreeItem, "Add Font…").is_some(), "expected WordCraft's Add Font… action row in font_box's cleared list");
|
||||
scroll_down(&mut h);
|
||||
let rows = visible_rows(&h);
|
||||
assert!(rows.len() >= 2, "expected font families above Add Font… in the list, got {rows:?}");
|
||||
assert_eq!(rows.last().map(|(label, _)| label.as_str()), Some("Add Font…"), "expected Add Font… to be the last row, got {rows:?}");
|
||||
|
||||
// Picking Add Font… runs `font.add` without changing `family`.
|
||||
assert!(files.requests().is_empty(), "no file picker request before picking Add Font…");
|
||||
h.get_by_role_and_label(Role::TreeItem, "Add Font…").click();
|
||||
h.run_steps(2);
|
||||
let requests = files.requests();
|
||||
assert_eq!(requests.len(), 1, "picking Add Font… should run font.add");
|
||||
assert_eq!(requests[0].purpose, "font");
|
||||
assert_eq!(requests[0].kind, PickKind::OpenMany);
|
||||
assert_eq!(h.state().1, MISSING, "picking Add Font… should leave the family unchanged");
|
||||
assert!(
|
||||
h.query_by_role_and_label(Role::TreeItem, "Add Font…").is_some(),
|
||||
"expected WordCraft's Add Font… action row at the end of font_box's cleared list"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Hardware parity with Microsoft Word
|
||||
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-12-04 · **Change:** trivial (Windows: a document window maximizes and goes full screen again, #8838); previously trivial (touchpad and mouse-wheel scroll speed preferences, Slow / Normal / Fast, #6146); previously trivial (newly opened window dimensions are constrained to fit available screen dimensions, #5871); previously trivial (print helpers erase loaded plaintext inputs before driver work, #5710); previously trivial (Windows print submissions use isolated helpers so a cancelled driver cannot block a retry, #5710); previously trivial (print cancellation remains available without a document; sending-boundary limitation clarified, #5710); previously trivial (a print job waiting on its driver can be cancelled, and quitting doesn't wait for it, #5710); previously trivial (the printer list no longer waits on printer drivers, #5710); previously trivial (Linux Read Aloud: a sentence a screen reader cuts off is said again); previously trivial (ink page lookup work, #3614); previously trivial (only the PDF sent to the printer has no link annotations; Save these pages as PDF keeps them, #4734); previously trivial (a document with links prints: the print job's PDF has no link annotations, #4734; previously trivial: Pen / stylus row: two-stroke and closed-head arrows; previously trivial: Pen / stylus row: ink, eraser and Ink to Shape incl. arrows landed; previously trivial: a window too big for its screen shrinks to fit when it opens, #1215; previously trivial: 32-bit Windows starts on OpenGL; previously major: first version) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 and Word for Windows
|
||||
> **Last reviewed:** 2026-10-12 · **Last updated:** 2026-11-09 · **Change:** trivial (touchpad and mouse-wheel scroll speed preferences, Slow / Normal / Fast, #6146); previously trivial (newly opened window dimensions are constrained to fit available screen dimensions, #5871); previously trivial (print helpers erase loaded plaintext inputs before driver work, #5710); previously trivial (Windows print submissions use isolated helpers so a cancelled driver cannot block a retry, #5710); previously trivial (print cancellation remains available without a document; sending-boundary limitation clarified, #5710); previously trivial (a print job waiting on its driver can be cancelled, and quitting doesn't wait for it, #5710); previously trivial (the printer list no longer waits on printer drivers, #5710); previously trivial (Linux Read Aloud: a sentence a screen reader cuts off is said again); previously trivial (ink page lookup work, #3614); previously trivial (only the PDF sent to the printer has no link annotations; Save these pages as PDF keeps them, #4734); previously trivial (a document with links prints: the print job's PDF has no link annotations, #4734; previously trivial: Pen / stylus row: two-stroke and closed-head arrows; previously trivial: Pen / stylus row: ink, eraser and Ink to Shape incl. arrows landed; previously trivial: a window too big for its screen shrinks to fit when it opens, #1215; previously trivial: 32-bit Windows starts on OpenGL; previously major: first version) · **Target:** Microsoft Word (Microsoft 365) for Mac 16.113.4 and Word for Windows
|
||||
|
||||
> **Printing update:** 2026-10-12 · direct desktop printing through craft-print; details below.
|
||||
|
||||
@@ -15,7 +15,7 @@ pens, microphones (Dictate) and speakers (Read Aloud), and displays.
|
||||
| Printers: native print dialog, printer choice, copies, duplex, page ranges, tray, scaling | ✅ (`WordPDE.plugin` print-dialog extension on Mac) | 🟡 Direct CUPS printing; printer, copies, collation, duplex, ranges, grayscale, scale to paper size, N-up and booklets; on every desktop the PDF sent to the printer leaves out link annotations, which the spooler can't fit to the paper; Save these pages as PDF keeps them (#4734) | 🟡 Direct spooler printing; printer, copies, collation, duplex, ranges, grayscale, scale to paper size, N-up and booklets; on every desktop the PDF sent to the printer leaves out link annotations, which the spooler can't fit to the paper; Save these pages as PDF keeps them (#4734) | 🟡 Direct spooler printing; printer, copies, collation, duplex, ranges, grayscale, scale to paper size, N-up and booklets; on every desktop the PDF sent to the printer leaves out link annotations, which the spooler can't fit to the paper; Save these pages as PDF keeps them (#4734) | ✅ browser print dialog (#209) | 35% | 5–8 |
|
||||
| GPU rendering, HiDPI/Retina, pixel-aligned text | ✅ | ✅ wgpu + vello_cpu rasteriser, whole-pixel text (#110, #165) | ✅ DirectX 12 default (#50), OpenGL when DirectX 12 has no GPU driver (#316) or on 32-bit; startup crash on Intel UHD (#170) | ✅ (soft text on KDE at some zooms, #140) | ✅ | 80% | 3–5 (bugs) |
|
||||
| Pen / stylus: ink, pressure, eraser, ink to shape/math | ✅ (Draw tab, `InkRender.bundle`) | 🟡 ink, stroke eraser, Ink to Shape incl. one- and two-stroke arrows with open or closed heads (#307, #395); pressure and Ink to Math missing | 🟡 same | 🟡 same | 🟡 same | 50% | (Draw tab, 15–25) |
|
||||
| Multiple monitors, per-monitor DPI, remembered window position, a window that fits its screen, maximize and full screen | ✅ | ✅ (#38, #76, #1215, #8838) | ✅ (winit DPI fix pending, #155) | ✅ | — | 85% | 1 |
|
||||
| Multiple monitors, per-monitor DPI, remembered window position, a window that fits its screen | ✅ | ✅ (#38, #76, #1215) | ✅ (winit DPI fix pending, #155) | ✅ | — | 85% | 1 |
|
||||
| Microphone: Dictate | ✅ (cloud speech service) | ❌ | ❌ | ❌ | ❌ | 0% | 8–15 + owner (speech model choice) |
|
||||
| Speakers: Read Aloud | ✅ | ✅ system speech, speed, sentence skip (#190) | ✅ | 🟡 espeak-ng, then espeak, then Speech Dispatcher (over its socket), each sentence in its language's voice; packages recommend a speech program; silent in the Flatpak (no audio access, no speech program) | 🟡 | 75% | 1–2 |
|
||||
| Touch screens and touchpads: pinch zoom, inertial scroll | ✅ | ✅ pinch (#179) | ✅ | ✅ inertial scroll (#252), touchpad and wheel scroll speed settings (#6146) | ✅ | 85% | 0–1 |
|
||||
@@ -28,7 +28,6 @@ File > Print offers 2, 4, 6, 9 or 16 logical pages per physical sheet side and l
|
||||
|
||||
| Date | Change | Summary |
|
||||
|---|---|---|
|
||||
| 2026-12-04 | trivial | Windows: a document window maximizes (button, Win+Up, snap to the top) and goes full screen again (#8838, #8861); since v0.20.0 the window was sent back to its normal place after the system maximized it. Fixed in craft-libs#5339, repinned. |
|
||||
| 2026-11-09 | trivial | Touchpad and mouse-wheel scroll speed preferences (Slow, Normal, Fast): scales Wayland touchpad point input by default (4×) so swiping matches desktop speed, and scales mouse wheel line distance; File › Options › Advanced › Scrolling (#6146) |
|
||||
| 2026-11-07 | trivial | Newly opened secondary windows constrain their initial viewport dimensions to the monitor's usable area, preventing windows from exceeding screen width on scaled displays (#5871) |
|
||||
| 2026-11-06 | trivial | Print helpers remove loaded PDF/settings files before driver work, tolerate prior removal and report cleanup errors; a held-driver regression checks the files are already absent (#5710) |
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -12,7 +12,7 @@
|
||||
| Windows | x64, x86 and arm64 `.msi` (one dual-scope package: per-user by default, needs no admin rights; "Everyone on this computer" installs per machine) + portable `.zip` | Azure Trusted Signing (`AZURE_*` secrets) |
|
||||
| Linux | x86_64 and aarch64 `.AppImage` (+ `.zsync` for AppImageUpdate), `.flatpak` bundle, `.deb`, `.rpm`, `.tar.gz`; Flathub manifest | checksums |
|
||||
| Linux riscv64 | `.tar.gz` (cross-compiled on `ubuntu-24.04`, glibc >= 2.39; CLI smoke-tested under QEMU) | checksums |
|
||||
| FreeBSD 15.1+ | x86_64 and aarch64 `.tar.gz` | checksums |
|
||||
| FreeBSD | x86_64 `.tar.gz` | checksums |
|
||||
| Web | `wordcraft-web-<version>.zip` (static site: `index.html`, wasm, glue) | none |
|
||||
|
||||
3. The run drafts a GitHub Release `WordCraft v<version>` with `SHA256SUMS.txt`; review and publish it.
|
||||
|
||||
@@ -181,7 +181,7 @@ including in headers and notes when the body uses balloons. Shift extends across
|
||||
| AltGr (Right Alt on Polish, German, Czech… layouts) | AltGr+letter types the layout's character (AltGr+S → ś, AltGr+L → ł) and a bare AltGr tap does nothing; neither opens KeyTips. On Linux AltGr is the Right Alt key with Level 3 Shift, not Alt, so its modifiers event no longer reads as Alt let go (#2388); on Windows it is Ctrl+Alt. Right Alt on a layout without AltGr (US) is Alt and opens KeyTips like Left Alt | ui-egui `altgr_types_its_characters_without_keytips` |
|
||||
| Shift+Right (⇧→) at the end of a cell's text | the whole cell is selected first (its end-of-cell mark); the next Shift+Right selects the next cell with it. In an empty cell the first press selects the cell | `shift_right_at_the_end_of_a_cell_selects_the_cell_first` |
|
||||
| Left / Right (← / →) next to an equation | the arrow steps into the equation instead of over it: Right from just before it opens it at its start, Left from just after it opens it at its end. The arrows then move inside it; past its far end the caret leaves on that side, so the same arrow goes on to the text (or, with two equations side by side, steps into the next one: not yet compared with Word). With text selected, the arrow only collapses the selection, as elsewhere; Shift+Left / Right still selects over the equation as one character. **Differs:** not in right-to-left or mixed-direction paragraphs yet (see Known gaps) (#4138) | `left_and_right_keys_step_into_and_out_of_an_equation`, `right_out_of_an_equation_steps_into_the_one_beside_it`; `cmd::equation::tests::left_and_right_step_into_an_equation_next_to_the_caret` |
|
||||
| Left / Right across a tracked deletion (#8268) | WordCraft skips hidden deleted text and equations within a paragraph in No Markup. In a paragraph that supports entering equations with the arrow keys, the same press can enter a visible equation immediately beyond the deletion. Shift+Left / Right extends the selection across it. When deleted text is visible inline, it keeps its ordinary caret stops. | `tests::horizontal_caret_skips_hidden_tracked_deletions`, `tests::bidi::arrow_keys_skip_hidden_deletions_in_rtl_text`, `arrow_keys_skip_a_deleted_equation_in_no_markup`, `arrow_keys_enter_a_visible_equation_across_a_hidden_deletion` |
|
||||
| Left / Right and Ctrl+Left / Right across a tracked deletion (#8268, #8772) | WordCraft skips hidden deleted text and equations within a paragraph in No Markup, for both character and word movement. In a paragraph that supports entering equations with the arrow keys, Left / Right can enter a visible equation immediately beyond the deletion. Shift+Left / Right and Shift+Ctrl+Left / Right extend the selection across it. When deleted text is visible inline, it keeps its ordinary caret stops. | `tests::horizontal_caret_skips_hidden_tracked_deletions`, `tests::word_caret_skips_hidden_tracked_deletions`, `tests::bidi::arrow_keys_skip_hidden_deletions_in_rtl_text`, `tests::bidi::word_moves_skip_hidden_deletions_in_rtl_text`, `arrow_keys_skip_a_deleted_equation_in_no_markup`, `arrow_keys_enter_a_visible_equation_across_a_hidden_deletion` |
|
||||
| Left / Right across a wholly deleted paragraph (#8743) | In No Markup, Left and Right skip paragraphs whose text and paragraph mark are both deleted. Shift+Left / Right crosses the same gap without moving the selection anchor. A visible empty paragraph and deletions shown inline still have caret stops. | `arrow_keys_skip_wholly_deleted_paragraphs_in_no_markup`, `arrow_keys_stop_in_a_visible_empty_paragraph_in_no_markup` |
|
||||
|
||||
## AutoCorrect and AutoFormat as you type
|
||||
|
||||
+2
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user