Miscellaneous sym.rs improvements (#5045)

This commit is contained in:
Malo 2024-09-26 19:30:36 +02:00 committed by GitHub
parent 584e4585f1
commit 3c90878460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,8 +100,8 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
dash: [ dash: [
#[call(crate::math::accent::dash)] en: '', #[call(crate::math::accent::dash)] en: '',
em: '', em: '',
em.two: '\u{2e3a}', em.two: '',
em.three: '\u{2e3b}', em.three: '',
fig: '', fig: '',
wave: '', wave: '',
colon: '', colon: '',
@ -129,7 +129,7 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
pilcrow: ['¶', rev: ''], pilcrow: ['¶', rev: ''],
section: '§', section: '§',
semi: [';', rev: ''], semi: [';', rev: ''],
slash: ['/', double: '', triple: '', big: '\u{29f8}'], slash: ['/', double: '', triple: '', big: ''],
dots: [h.c: '', h: '', v: '', down: '', up: ''], dots: [h.c: '', h: '', v: '', down: '', up: ''],
tilde: [ tilde: [
#[call(crate::math::accent::tilde)] op: '', #[call(crate::math::accent::tilde)] op: '',
@ -944,6 +944,9 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! {
Zeta: 'Ζ', Zeta: 'Ζ',
// Hebrew. // Hebrew.
// In math, the following symbols are replaced with corresponding characters
// from Letterlike Symbols.
// See https://github.com/typst/typst/pull/3375.
aleph: 'א', aleph: 'א',
alef: 'א', alef: 'א',
beth: 'ב', beth: 'ב',