mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-27 03:46:50 -06:00
class_name runs layer names through deunicode (new dependency: pure Rust tables, zero deps, BSD-3-Clause, the slug crate's base) before its ASCII filter, so Korean, Cyrillic, Latin-diacritic and CJK names become readable ASCII classes in HTML/CSS/React/Leptos output, component roots and data-* variant attributes: 로그인 화면 → rogeuin-hwamyeon, кнопка → knopka, über → uber, 按钮 → an-niu (before, every one came out layer-, layer--2, ...). Symbols-only names take the node's kind (.text, .frame) instead of layer-, the 40-character cut lands on a word boundary, and a leading digit keeps the layer- prefix. SwiftUI/Compose type names are unchanged (their own sanitizer); ASCII-only names are byte-identical. html_codegen_tests updated and extended.