VectorCraft: An open-source, vector art tool written by scratch in pure Rust
Type: no Japanese–Latin space next to Hangul compatibility or half-width jamo
imachus6952780c1f08
diff --git a/crates/text/src/layout.rs b/crates/text/src/layout.rsindex a7bbeed09..d87942302 100644--- a/crates/text/src/layout.rs+++ b/crates/text/src/layout.rs@@ -281,7 +281,10 @@ fn is_japanese_letter(c: char) -> bool {return true;}is_cjk(c)- && !matches!(c as u32, 0x3000..=0x303F | 0xAC00..=0xD7AF | 0xFF01..=0xFF0F | 0xFF1A..=0xFF20 | 0xFF3B..=0xFF40 | 0xFF5B..=0xFF65)+ && !matches!(+ c as u32,+ 0x3000..=0x303F | 0x3130..=0x318F | 0xAC00..=0xD7AF | 0xFF01..=0xFF0F | 0xFF1A..=0xFF20 | 0xFF3B..=0xFF40 | 0xFF5B..=0xFF65 | 0xFFA0..=0xFFDC+ )&& c != '・'&& punct(c).is_none()}@@ -818,7 +821,8 @@ fn japanese_letters_for_the_latin_space_are_kana_kanji_and_marks_not_hangul_or_pfor c in ['あ', 'カ', '漢', '々', '〆', '〇', 'A'] {assert!(is_japanese_letter(c), "{c}");}- for c in ['한', '。', '「', '・', '、', 'a'] {+ // Hangul in every form: syllables, compatibility jamo (ㄱ ㅏ), half-width jamo (ᄀ).+ for c in ['한', 'ㄱ', 'ㅏ', '\u{FFA1}', '。', '「', '・', '、', 'a'] {assert!(!is_japanese_letter(c), "{c}");}}