diff options
| author | Harry Smith <69302535+h-arry-smith@users.noreply.github.com> | 2024-02-11 20:04:57 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-11 13:04:57 +0000 |
| commit | a1f111dfa6b2dd7771addb02d094a39a490d36ac (patch) | |
| tree | a018c9e8eeb8298ada87358d0fb0155b902a7103 /crates | |
| parent | 713154c14bc316150820acf0101af9386ba181f4 (diff) | |
Fix hebrew symbol codepoints (#3375)
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/typst/src/math/style.rs | 5 | ||||
| -rw-r--r-- | crates/typst/src/symbols/sym.rs | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/crates/typst/src/math/style.rs b/crates/typst/src/math/style.rs index b368d485..876033d5 100644 --- a/crates/typst/src/math/style.rs +++ b/crates/typst/src/math/style.rs @@ -319,6 +319,8 @@ pub fn styled_char(styles: StyleChain, c: char) -> char { 'Α'..='Ω' => 'Α', 'α'..='ω' => 'α', '0'..='9' => '0', + // Hebrew Alef -> Dalet. + '\u{05D0}'..='\u{05D3}' => '\u{05D0}', _ => return c, }; @@ -382,6 +384,9 @@ pub fn styled_char(styles: StyleChain, c: char) -> char { (Cal | Frak | Mono | Bb, _, _) => return c, }, + // Hebrew Alef -> Dalet. + '\u{05D0}'..='\u{05D3}' => 0x2135, + // Numbers. '0'..='9' => match tuple { (Serif, false, _) => 0x0030, diff --git a/crates/typst/src/symbols/sym.rs b/crates/typst/src/symbols/sym.rs index 59fa2931..a672b675 100644 --- a/crates/typst/src/symbols/sym.rs +++ b/crates/typst/src/symbols/sym.rs @@ -842,6 +842,8 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! { bet: 'ב', gimmel: 'ג', gimel: 'ג', + daleth: 'ד', + dalet: 'ד', shin: 'ש', // Double-struck. |
