Skip to content

Traditional Chinese interface, centimetre drawings, install beside CADCraft - #36

Merged
SkryxDev merged 3 commits into
mainfrom
fix/issues-33-34-35
Nov 24, 2026
Merged

SkryxDev merged 3 commits into
mainfrom
fix/issues-33-34-35

Conversation

@SkryxDev

Copy link
Copy Markdown
Member

Fixes #33
Fixes #34
Fixes #35

#35 — DraftCraft and CADCraft can't be installed together (Windows)

packaging/windows/draftcraft.wxs still had CADCraft's UpgradeCode and component GUIDs (inherited from the fork). Windows Installer therefore treated each app as an older or newer copy of the other: installing DraftCraft 2.2.2 removed CADCraft 0.20.1, and installing CADCraft after DraftCraft failed with the "newer version already installed" error.

  • New UpgradeCode and new component GUIDs.
  • An Upgrade row for the old code, limited to versions 1.0.0–2.2.2 (both ends inclusive), so updating still replaces earlier DraftCraft installs, while CADCraft (0.x) is never matched.
  • install-policy.json gets the new code and a legacyUpgrade entry. check-install-policy.ps1 checks the compiled Upgrade row, and the new xtask/src/packaging.rs test checks the .wxs on every platform.
  • Not run on Windows here: the MSI build and policy checks run in the Windows packaging job, and a real install/upgrade still needs a Windows machine.

#34 — Centimetres on the Start page

  • The Start page has three New buttons: Metric / Millimeters, Metric / Centimeters, Imperial / Inches. Options › Units of new drawings offers centimetres too.
  • new takes units: in|mm|cm (or an INSUNITS code 1/4/5); invalid values are refused with an error.
  • Drawing::new_centimetres() is the metric drawing at INSUNITS 5, with TEXTSIZE, LTSCALE, HPSCALE, DIMSCALE/ISO-25, multileader and table sizes all a tenth as large, and A3 limits of 42×29.7. It prints like the millimetre drawing.
  • New profile variable MEASUREINITUNITS (4 or 5) remembers it, so a later plain New stays in centimetres.

#33 — Traditional Chinese interface

  • New zh-TW language (繁體中文) with crates/ui-egui/src/i18n/zh_tw.tsv. It is built from zh.tsv in Traditional characters, using Taiwan terms and the AutoCAD Traditional Chinese terms (物件, 圖塊, 配置, 鎖點, 型式, 聚合線, 公釐/公分 …). It has not been reviewed by a native speaker, and ATTRIBUTION.md says so.
  • Auto selects it for zh-TW, zh-HK, zh-MO and zh-Hant* locales; other zh tags still get Simplified.
  • A Traditional font (Microsoft JhengHei on Windows, Noto Sans CJK TC on Linux, or an embedded Hant face) comes first when there is one.

Checks

cargo xtask ci: fmt, clippy, doc tests, i18n, assets, layers and wasm pass. The workspace tests pass except the 3 known macOS-only failures (usage::non_unicode_output_names, read_file_refuses_a_name_that_is_not_unicode, thai_marks_stack_in_an_installed_font). I also checked the Start page in the running app with DRAFTCRAFT_LOCALE=zh-TW.

🤖 Generated with Claude Code

SkryxDev and others added 3 commits November 24, 2026 17:56
… side by side

- #35: the Windows installer had CADCraft's upgrade code and component GUIDs (inherited
  from the fork), so each installer removed the other app or refused to install. New
  upgrade code and component GUIDs; earlier DraftCraft releases (1.0.0-2.2.2) are still
  replaced through an Upgrade row limited to that version range, which no CADCraft
  release (0.x) falls in. Checked by check-install-policy.ps1 and an xtask test.
- #34: the Start page offers Metric centimetres beside millimetres and inches. NEW takes
  `units` (in, mm, cm); a centimetre drawing is the metric one at INSUNITS 5 with every
  default size a tenth as large. The choice is remembered by the new profile variable
  MEASUREINITUNITS (4 or 5), also offered in Options.
- #33: Traditional Chinese (Taiwan) interface, zh-TW, chosen for zh-TW/HK/MO/Hant locales,
  with a Traditional Chinese font first where one is installed or embedded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new setup has its own upgrade code (#35). On the runner, install the
published 2.2.2 setup, run the new one as Update Now does, and check that one
DraftCraft is left, under the new code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WiX 5 refuses <Upgrade Code=…> (WIX0004/WIX0010); the attribute is Id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SkryxDev
SkryxDev merged commit 3bbfeb9 into main Nov 24, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DraftCraft and CADCraft cannot be installed at the same time. Start screen > No centimeters Interface : Add Traditional Chinese

1 participant