diff options
| author | Yip Coekjan <69834864+Coekjan@users.noreply.github.com> | 2024-07-06 21:44:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 13:44:14 +0000 |
| commit | 394ba50fa612c36d7443094e21430aed6f533149 (patch) | |
| tree | d89404367ec144e547cacc2dd74eb5c5a8d3854d | |
| parent | 2df138a507860dc0cb610943ad6e608a33d03d7d (diff) | |
Rename `notes.*` to `note.*` & Add some music symbols (#4488)
| -rw-r--r-- | crates/typst/src/symbols/sym.rs | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/crates/typst/src/symbols/sym.rs b/crates/typst/src/symbols/sym.rs index 1dec0039..802b9a7a 100644 --- a/crates/typst/src/symbols/sym.rs +++ b/crates/typst/src/symbols/sym.rs @@ -480,7 +480,6 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! { checkmark: ['✓', light: '🗸', heavy: '✔'], crossmark: ['✗', heavy: '✘'], floral: ['❦', l: '☙', r: '❧'], - notes: [up: '🎜', down: '🎝'], refmark: '※', servicemark: '℠', maltese: '✠', @@ -495,6 +494,51 @@ pub(crate) const SYM: &[(&str, Symbol)] = symbols! { spade.stroked: '♤', ], + // Music. + note: [ + up: '🎜', + down: '🎝', + whole: '𝅝', + half: '𝅗𝅥', + quarter: '𝅘𝅥', + quarter.alt: '♩', + eighth: '𝅘𝅥𝅮', + eighth.alt: '♪', + eighth.beamed: '♫', + sixteenth: '𝅘𝅥𝅯', + sixteenth.beamed: '♬', + grace: '𝆕', + grace.slash: '𝆔', + ], + rest: [ + whole: '𝄻', + multiple: '𝄺', + multiple.measure: '𝄩', + half: '𝄼', + quarter: '𝄽', + eighth: '𝄾', + sixteenth: '𝄿', + ], + natural: [ + '♮', + t: '𝄮', + b: '𝄯', + ], + flat: [ + '♭', + t: '𝄬', + b: '𝄭', + double: '𝄫', + quarter: '𝄳', + ], + sharp: [ + '♯', + t: '𝄰', + b: '𝄱', + double: '𝄪', + quarter: '𝄲', + ], + // Shapes. bullet: '•', circle: [ |
