* Add the Simplified Chinese catalog to the shared localization module
English source text stays the key: crates/ui-egui/locales/zh-Hans/mod.rs is generated from
crates/ui-egui/src/i18n/zh-hans.tsv (1,383 strings) by docs/i18n/tools/gen_zh_hans_locale.py, so a
translator edits one TSV row per string and the module follows. The TSV is also the file
storytold/craft-i18n's sync script reads, so the catalog can move there when SoundCraft cuts over.
The catalog covers every string passed to localization::text / localized_format! in the crate and
every reference menu label (crates/engine/catalog/menus.txt). Tests compare placeholders against the
English source, reject duplicate keys and name any untranslated string by file. Engine diagnostics
stay English by design: a half-translated error reads worse than a whole one.
Language::SimplifiedChinese ("zh-Hans") joins the enum, the Appearance menu and the ui.language
command, and the choice is saved with the UI state like the theme. AI-authored from the English
source; native-speaker review is still pending.
* Add a Han font fallback for Chinese on the desktop and the web
egui's bundled faces carry no Han glyphs, so a Chinese interface and Chinese session, track and clip
names would draw boxes. fonts.rs now appends a Han fallback to every family:
- desktop: the operating system's own face, resolved through fontconfig with lang=zh-cn plus a list
of per-platform candidates (PingFang, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi,
...). Nothing is redistributed.
- web: the browser cannot reach system fonts, so the build embeds assets/fonts/NotoSansSC-SoundCraftSubset.ttf,
a 1.1 MiB Open Font License subset of Noto Sans SC pinned at weight 400.
Han is ordered before the Hangul fallback for every interface language except Korean: the first face
with a glyph wins, and on Linux fontconfig often resolves Noto Sans CJK's Korean face, whose Han
glyphs are Korean-styled. Tests check the ordering, that every family draws Han when a system font
is present, that the bundled face draws the whole zh-Hans catalog in every family, and that it stays
inside its 2 MiB budget. ATTRIBUTION.md records the font and its OFL text; cargo xtask assets
enforces that.
* Document the zh-Hans catalog and refresh the localization numbers
docs/localization.md now describes what ships today (the Language enum, locales/<tag>/mod.rs,
text / localized_format! / error_text, the TSV-to-module step, the Han fallback, the tests) instead
of the packed-catalog design the branch carried before upstream landed the shared localization
module. docs/localization-zh-hans.md is the translator workflow; docs/i18n/glossary.md records the
wording decisions without citing another product's catalogs, and the earlier cross-corpus research
files are gone: the repository's clean-room rule forbids reading GPL translation sources, so the
terminology stands on its own reasoning.
ROADMAP.md, docs/roadmap.md, docs/localization-parity.md and docs/gaps.md move zh-Hans from "none"
to shipped-for-fixed-strings with native review pending, note the CJK fallback, and lower the
localization estimate from 70-110 h to 55-90 h.
* Align the localization numbers and the catalog-editing guidance
The localization row in docs/target-app-parity.md still listed pt-BR only, ~12 % and 70-110 h; the
G-09 row kept the old 20-40 h. Both now match ROADMAP.md, docs/roadmap.md and
docs/localization-parity.md: two shipped catalogs, ~19 %, 55-90 h to the target's eight languages.
Also, docs/localization-parity.md no longer tells a reader to add a Rust arm for every catalog: pt-BR
is hand-written, zh-Hans is generated from its TSV, and the two are now described separately. The
font regeneration commands in docs/localization.md and docs/localization-zh-hans.md name the input
the subset script requires (a Noto Sans SC variable font) instead of implying it runs with no
argument.
* zh-Hans: keep the slot and track order in "Insert {} for {}"
---------
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
5.7 KiB
Attribution
Every asset bundled with or committed to SoundCraft is listed here with its author, source and
license. cargo xtask assets fails CI when a tracked asset file has no row.
Rule: no Avid, Pro Tools, Adobe or other proprietary icons, images, sounds or presets — ever.
Assets must be original, public domain (CC0) or permissively licensed. See AGENTS.md.
Icons
All UI icons (tools, transport, track buttons) are drawn procedurally in
crates/ui-egui/src/icons.rs by the SoundCraft contributors (MIT OR Apache-2.0). No UI icon image
files are used. The app icon (assets/app-icon/, a singing nightingale drawn as original SVG by
the SoundCraft contributors) is listed under Files below.
Audio
The demo session's audio (drums, bass, pad) and its MIDI parts are synthesised in code in
crates/engine/src/demo.rs by the SoundCraft contributors (MIT OR Apache-2.0). No sample files
are bundled.
Fonts
SoundCraft ships one font file, for the web build only. Everything else is the default fonts
shipped inside the egui crate (Ubuntu-Light: Ubuntu Font Licence 1.0; Hack: MIT; Noto Emoji:
OFL-1.1; emoji-icon-font: MIT) and, at runtime, the operating system's own UI fonts when available
(never redistributed).
The browser cannot reach the operating system's fonts, and egui's bundled faces carry no Han
glyphs, so a Simplified Chinese interface would draw boxes. assets/fonts/NotoSansSC-SoundCraftSubset.ttf
is therefore compiled into the web build alone (crates/ui-egui/src/fonts.rs): a subset of the
Noto Sans SC variable font, pinned at weight 400 and reduced with fontTools to the UI glyph set
(the zh-Hans catalog, GB 2312 level-1 common characters, ASCII, Latin-1 letters and the UI's
punctuation, arrows and triangles; about 1.1 MiB). It is SIL Open Font License 1.1 — see
assets/fonts/OFL.txt. Native builds never embed it and keep drawing with system fonts.
Bundled egui font icons
These dependency fonts are embedded by the pinned egui font definitions; no font file is added here. The subset uses default_fonts; the parent face uses monochrome_emoji_fonts.
| Asset | Author | Source | Licence |
|---|---|---|---|
epaint_default_fonts/fonts/egui-icons.ttf |
John Slegers (emoji-icon-font) | https://github.com/storytold/egui/blob/6d518fc799681571963842f95b55a6b68431b15a/crates/epaint_default_fonts/fonts/egui-icons.txt; original https://github.com/jslegers/emoji-icon-font | MIT (complete copyright and permission text in NOTICE) |
epaint_default_fonts/fonts/emoji-icon-font.ttf |
John Slegers | https://github.com/storytold/egui/blob/6d518fc799681571963842f95b55a6b68431b15a/crates/epaint_default_fonts/fonts/emoji-icon-font-mit-license.txt; original https://github.com/jslegers/emoji-icon-font | MIT (complete copyright and permission text in NOTICE) |
Files
| Path | Author | Source | License |
|---|---|---|---|
docs/brand/artcraft-logo.svg |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms (docs/brand/LICENSE-brand.txt) |
docs/brand/artcraft-logo.png |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-logo-white.svg |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-logo-white.png |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-mark.svg |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-mark.png |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-mark-black.svg |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
docs/brand/artcraft-mark-black.png |
ArtCraft Team | ArtCraft brand assets | ArtCraft brand terms |
assets/fonts/NotoSansSC-SoundCraftSubset.ttf |
Google LLC / Noto Project Authors | Noto Sans SC variable font, subset to the UI glyph set and pinned at weight 400 (generated with fontTools by docs/i18n/tools/subset_web_font.py) |
SIL Open Font License 1.1 (assets/fonts/OFL.txt) |
assets/fonts/OFL.txt |
Noto Project Authors / SIL | SIL Open Font License 1.1 text | OFL-1.1 |
assets/app-icon/icon.svg |
SoundCraft contributors | original (hand-placed SVG paths; placeholder app icon) | MIT OR Apache-2.0 |
packaging/macos/dmg/ (all files) |
@XusBadia | original (macOS DMG window background and layout, from the app icon; see packaging/macos/dmg/README.md) |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-1024.png |
SoundCraft contributors | original, rendered from icon.svg |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-macos-512.png |
SoundCraft contributors | original, rendered from icon.svg |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft.icns |
SoundCraft contributors | original, rendered from icon.svg |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft.ico |
SoundCraft contributors | original, rendered from icon.svg |
MIT OR Apache-2.0 |
assets/app-icon/hicolor/ |
SoundCraft contributors | original, rendered from icon.svg (16–512 px PNGs and the scalable SVG) |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-nightly.png |
SoundCraft contributors | original, rendered from icon.svg with the Nightly badge |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-nightly-macos-512.png |
SoundCraft contributors | original, rendered from icon.svg with the Nightly badge |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-nightly.icns |
SoundCraft contributors | original, rendered from icon.svg with the Nightly badge |
MIT OR Apache-2.0 |
assets/app-icon/soundcraft-nightly.ico |
SoundCraft contributors | original, rendered from icon.svg with the Nightly badge |
MIT OR Apache-2.0 |
docs/images/ |
SoundCraft contributors | screenshots of SoundCraft rendered from the synthesised demo session | MIT OR Apache-2.0 |