GridCraft 0.19.0 于 2026 年 11 月 11 日发布,距 0.18.0 两天,GitHub 上列了 49 项改动。对中文用户最直观的是一处显示修复:中文和英文字母、数字写在一起时,不再高低不齐。计算上的改动影响面最大:Excel 按旧方式保存的公式,现在按 Excel 的规则计算,许多实际工作簿的结果因此更接近 Excel。另外,查找空单元格的结果保持为空,阿拉伯文可以从右到左排版,约二十项改动给恶意文件和公式加了限制。七小时后又发布了 0.19.1,修的是 Flatpak 版的更新。

中文显示和中文界面

  • 中文和英文、数字对齐到同一条基线。 在单元格、单元格编辑框和窗口标题里,用后备字体显示的中文(以及日文、韩文)以前比旁边的英文字母和数字偏高或偏低。现在三者落在同一条基线上,含中文的单元格也不再和相邻单元格错位。行高可能因此略微变高,手动设过行高的行保持不变。贡献者在 macOS 上核对过效果;一位测试者在 Windows 上确认过修复的早期版本,最终版本还没在 Windows 上复测。跟踪中英文混排问题的 #1265 仍未关闭,其他几个中文显示问题(#142、#2110、#1497、#2330)也还开着。
  • 中文翻译只新增两项:「图示」和「装饰文字」,是 GridCraft 给 Excel 的 SmartArt 和艺术字起的名字。这两个功能还没有做,所以界面上看不到。大多数对话框仍是英文,中文输入法在开发团队的文档里仍是“未验证”。

Excel 文件里的公式

  • 按旧方式保存的公式,计算结果和 Excel 一致了。 Excel 保存的大多数公式不带“动态数组”标记,Excel 计算这类公式时用隐式交集:一个区域出现在只需要一个值的位置时,只取和公式同一行或同一列的那个单元格。新版 Excel 用 @ 表示这一点,比如 =SQRT(@A1:A3)。以前 GridCraft 把这类公式当动态数组公式算,在 Excel 里只得出一个值的公式,在 GridCraft 里可能溢出,或者显示 #SPILL!、#VALUE!。现在打开文件时,GridCraft 会补上 Excel 隐含的 @ 并在编辑栏里显示出来,保存时再去掉,Excel 读到的还是原来的写法。
  • 在贡献者收集的 4224 个工作簿上,计算结果和 Excel 保存值不同的公式单元格,从 68964 个降到 49866 个,没有一个文件变差。另外两位贡献者用 Excel 365 和 Excel 2016 打开这样保存的测试文件,看到的是普通公式和预期的结果。
  • 旧的 .xls 文件也一样。 .xls 里的公式全是这种旧方式,所以像 =Data!A1:G1 这样的标题行,现在显示第一个单元格的值,不再是 #SPILL!。在两个实际的 .xls 模型上,#SPILL! 从 18 个变成 0 个。.xls 里单个单元格的 Ctrl+Shift+Enter 数组公式也保持为数组公式。
  • 如果你在旧版本里保存过 Excel 工作簿,这类公式可能被存成动态数组公式,连同错误的结果一起保存。贡献者的测试文件经 GridCraft 0.7.0 这样保存后,Excel 2016 打开要 15 秒、占用好几 GB 内存,并显示 #VALUE!。如果你保存过的工作簿里出现 #SPILL!,或者结果和 Excel 不一样,请用 0.19.0 重新打开原文件。名称、数据验证和条件格式里的公式还没有补 @。

公式和函数

  • 查找空单元格的结果保持为空。 VLOOKUP、HLOOKUP、LOOKUP 和 XLOOKUP 以前会把找到的空单元格变成 0,所以 ="x"&VLOOKUP(…)&"y" 得到 x0y,对查找结果用 ISBLANK 得到 FALSE。现在返回空值,得到 xy 和 TRUE;开发团队在 Windows 版 Excel 365 里核对过 VLOOKUP、HLOOKUP 和 LOOKUP。只放查找公式的单元格仍显示 0,参与四则运算时空值仍当 0,和 Excel 一样(#374)。
  • 对多行多列的区域用 @,现在和 Excel 一样取公式所在行和列交叉处的单元格,不再返回 #VALUE!。
  • TEXT 的结果超过 32767 个字符(Excel 单元格的上限)时返回 #VALUE!。
  • 计算量极大的公式(超过约 2.68 亿步)会停下来,返回 #CALC!。拉取请求说,这远远超过读取整块大区域所需的计算量。

保护和文件

  • 隐藏的公式不再被读出来。 在受保护的工作表上,设成“隐藏”的公式不会显示在编辑栏里,但以前 FORMULATEXT 能取出它的文本,谁都可以把它复制到未锁定的单元格里;编辑一个未锁定的隐藏单元格时,公式也会出现在编辑框里。现在 FORMULATEXT 返回 #N/A,这类单元格只能直接输入覆盖。公式仍保存在文件里,用别的工具照样能读到。
  • Mac 和 Linux 上覆盖保存会保留文件的用户组。 GridCraft 保存时先写一个新文件,再替换旧文件。以前新文件沿用了旧文件的权限,却没有沿用它的用户组,所以只共享给某个组的工作簿,可能变成保存者自己所在的组也能读。现在会保留原来的组;系统不允许时,就取消组的访问权限。
  • 在 Mac 和 Linux 上打开命名管道不再让 GridCraft 卡住;形状的字体名里带引号时,保存的绘图不再损坏。
  • 一个图表所有系列加起来最多画 100 万个值,屏幕上、PDF 和另存为网页(Save as Web Page)都一样;另存为网页时,页面超过 64 MB 后的图表会被略去。

阿拉伯文

  • 阿拉伯文在单元格、编辑框和编辑栏里从右到左排版,字母正确连写;「设置单元格格式」的 Alignment 页新增 Reading direction(文字方向,中文界面里是英文),保存在 .xlsx 里。排序时忽略阿拉伯文的元音符号,并且和 Excel 一样把阿拉伯-印度数字当数字排。带 B2 前缀的日期格式显示伊斯兰历日期。界面没有阿拉伯语,导出 PDF 时的阿拉伯文要等后续版本。

恶意文件和公式

  • 约二十项改动限制了专门构造的文件或公式能要求的计算量和内存,涉及 TEXTJOIN、WORKDAY、PIVOTBY、SORT、数据库函数和通配符匹配,查找和替换、获取数据、合并计算、预测工作表、分析工具库、方案摘要和数据透视表的排名,以及超长的数字格式、单元格内图片和条件格式。拉取请求说,普通工作簿的结果不变。

命令行和 AI 智能体

  • MCP 服务器一条消息最多保留 16 MB。 以前客户端发来一行没有结尾的内容,会让它无限制地占用内存。现在超长的一行会得到错误 “message too large (16 MB max)”,服务器继续工作。
  • 给辅助程序用的沙盒。 开发团队在做一个受限制的独立进程,用来运行工作簿里的 Python 代码。gridcraft-cli sandbox-check 可以检查你的系统能否把程序关进沙盒:Linux 需要 6.2 或更新的内核(用 Landlock 和 seccomp),macOS 用 sandbox-exec;Windows 和 FreeBSD 还没有。这一版里没有别的功能用到它,Python 单元格仍然不会运行(sandbox.md)。

其他改动

  • Manage Rules(管理规则,中文界面里是英文)的规则列表可以滚动了,条件格式规则成千上万的工作表,不会再让对话框比窗口还高。
  • 乌克兰语界面里,“图表”改为 “Діаграма”。

怎么更新

如果你用的是 0.13.0 或更新的版本,启动时 GridCraft 会提示更新到最新版(被 ArtCraft Launcher 固定在其他版本的除外)。也可以到下载页下载,新版会替换旧版,设置不受影响。各系统的具体做法见下载指南。GitHub 在部分地区下载较慢,自动更新失败时可以手动下载安装。

这份说明是我们根据下面的改动列表和对应的拉取请求(pull request)写的,并没有逐项实测。

全部 49 项改动

列表取自 GitHub 发布页,是开发团队的英文原文。

  • Sort: order Arabic text by its letters, not its vowel marks or digit script #1940
  • AutoFit: estimate Arabic text width from measured glyph widths #1933
  • Number formats: honour the B1/B2 calendar prefixes (Hijri dates for B2) #1918
  • Arabic font fallback in cells, the formula bar and the web #931
  • Arabic bidi layout and cell reading direction in the grid and editors #947
  • XLSX: legacy formulas (no dynamic-array cm) open with Excel's implicit @ and calculate like Excel #417
  • UI.1265: align CJK fallback text with the Latin baseline #3081
  • M12: regional format data (Region, 20 regions) #3048
  • XLS: formulas open as legacy formulas with Excel's implicit @ (#410) #1367
  • Naming: use Diagram and Decorative Text in the feature catalog #3622
  • i18n(uk): translate Chart as Діаграма #3703
  • PDF export: index merged areas when drawing a block #3203
  • Go To: index defined names when resolving and listing them #3206
  • xtask: probe keytip commands without file access, and refuse text that could escape generated code #3269
  • engine: show overlong format codes as General without hashing them per cell #3273
  • ui-egui: embed craft-fonts files only from inside the checkout #3281
  • engine: Consolidate finds keys through hash maps and refuses an oversized table #3285
  • functions: REGEXREPLACE keeps only the requested occurrence's captures #3288
  • io: refuse a FIFO before opening it; keep the replaced file's group on save #3313
  • Sandbox: a crate that runs a helper program confined (Landlock and seccomp on Linux, sandbox-exec on macOS) #3476
  • Manage Rules: scroll the rule list instead of laying out every rule #3382
  • Functions: lookups keep an empty target cell blank (#374) #379
  • MCP: the stdio server keeps at most 16 MB of a message (#2164) #2326
  • xlsx: escape shape font typeface attribute (#2170) #2196
  • Numfmt: one built-in format table, fewer allocations rendering numbers and General (#817) #820
  • Conditional formatting: one scan budget per rule, no thresholds for unsupported colour scales #3201
  • Get Data: refuse an import whose dense rows would be too large #3193
  • Find and Replace: bound the text a replacement builds #3194
  • Forecast Sheet: count hindcast rows against the work limit #3199
  • Security: WORKDAY, PIVOTBY, SORT and the D-functions stop rescanning their input #3200
  • Security: TEXTJOIN builds its result piece by piece within the text cap #3202
  • Security: chart rasterising, spline points and category labels stay bounded #3204
  • Wildcards: match * and ? patterns in one pass over the text #3205
  • Analysis ToolPak: stop building a report once it outgrows the output limit #3207
  • FORMULATEXT and the in-cell editor keep Hidden formulas hidden #3298
  • xlsx: keep the cached value of a follower whose shared-formula copy is refused #3212
  • xlsx: find a reused picture through a content hash instead of comparing every media part #3214
  • numfmt: TEXT returns #VALUE! when its result passes a cell's 32,767 characters #3264
  • xlsx: analyse each kept chart sheet's graph once per save #3261
  • calc: one cumulative work budget per formula, and INDEX decides multi-cell picks from their shape #3188
  • Row auto-fit: sweep merges once per sheet instead of per row #3195
  • engine: Scenario Summary size limit, bounded solver report names, undo history counts comment and link text #3308
  • xlsx: resolve cell pictures through a per-structure layout and a relationship index #3255
  • pivot: Rank and Running Total computed once per sibling set; accumulator, caption and chart-series bounds #3306
  • xls: charge expanded shared-formula text to the import's text allowance #3256
  • Save as Web Page: a byte budget for the charts' SVG (an error past it) #3209
  • xlsx: share inline dxf number formats within a styles part #3260
  • Release: GridCraft v0.19.0 #3770
  • Sandbox: build on riscv64, where libc names no kexec_file_load #3777
GitHub 上的全部改动 →