Repository navigation
Traditional Chinese interface, centimetre drawings, install beside CADCraft - #36
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #33
Fixes #34
Fixes #35
#35 — DraftCraft and CADCraft can't be installed together (Windows)
packaging/windows/draftcraft.wxsstill 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.Upgraderow 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.jsongets the new code and alegacyUpgradeentry.check-install-policy.ps1checks the compiled Upgrade row, and the newxtask/src/packaging.rstest checks the.wxson every platform.#34 — Centimetres on the Start page
newtakesunits: 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.MEASUREINITUNITS(4 or 5) remembers it, so a later plain New stays in centimetres.#33 — Traditional Chinese interface
zh-TWlanguage (繁體中文) withcrates/ui-egui/src/i18n/zh_tw.tsv. It is built fromzh.tsvin Traditional characters, using Taiwan terms and the AutoCAD Traditional Chinese terms (物件, 圖塊, 配置, 鎖點, 型式, 聚合線, 公釐/公分 …). It has not been reviewed by a native speaker, andATTRIBUTION.mdsays so.zh-TW,zh-HK,zh-MOandzh-Hant*locales; otherzhtags still get Simplified.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 withDRAFTCRAFT_LOCALE=zh-TW.🤖 Generated with Claude Code