Skip to content

Commit

Permalink
Add musical symbols for unicode completions (JuliaLang#54182)
Browse files Browse the repository at this point in the history
I found that julia was missing some useful music notation unicode
completions and sometimes [had to copy and paste these unicodes to use
the published
package](JuliaMusic/MusicTheory.jl#27).

So I picked out some unicode music symbols that might be useful, named
from the [unicode
standard](https://www.unicode.org/charts/PDF/U1D100.pdf).

I didn't add the test, I don't think it's necessary.

Thanks for reviewing. Please reply if any changes are needed.

---------

Co-authored-by: Lilith Orion Hafner <[email protected]>
  • Loading branch information
2 people authored and lazarusA committed Jul 12, 2024
1 parent cec0c8c commit ef9d2d1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions stdlib/REPL/src/latex_symbols.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,46 @@ const latex_symbols = Dict(
"\\euler" => "",
"\\ohm" => "",

# Music Symbols
# Music Symbols - Accidentals
"\\flatflat" => "𝄫",
"\\sharpsharp" => "𝄪",
# Music Symbols - Codas
"\\leftrepeatsign" => "𝄆",
"\\rightrepeatsign" => "𝄇",
"\\dalsegno" => "𝄉",
"\\dacapo" => "𝄊",
"\\segno" => "𝄋",
"\\coda" => "𝄌",
# Music Symbols - Clefs
"\\clefg" => "𝄞",
"\\clefg8va" => "𝄟",
"\\clefg8vb" => "𝄠",
"\\clefc" => "𝄡",
"\\cleff" => "𝄢",
"\\cleff8va" => "𝄣",
"\\cleff8vb" => "𝄤",
# Music Symbols - Rests
"\\restmulti" => "𝄺",
"\\restwhole" => "𝄻",
"\\resthalf" => "𝄼",
"\\restquarter" => "𝄽",
"\\rest8th" => "𝄾",
"\\rest16th" => "𝄿",
"\\rest32th" => "𝅀",
"\\rest64th" => "𝅁",
"\\rest128th" => "𝅂",
# Music Symbols - Notes
"\\notedoublewhole" => "𝅜",
"\\notewhole" => "𝅝",
"\\notehalf" => "𝅗𝅥",
"\\notequarter" => "𝅘𝅥",
"\\note8th" => "𝅘𝅥𝅮",
"\\note16th" => "𝅘𝅥𝅯",
"\\note32th" => "𝅘𝅥𝅰",
"\\note64th" => "𝅘𝅥𝅱",
"\\note128th" => "𝅘𝅥𝅲",

# Superscripts
"\\^0" => "",
"\\^1" => "¹",
Expand Down

0 comments on commit ef9d2d1

Please sign in to comment.