Skip to content

Commit

Permalink
Add musical symbols for unicode completions (#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
NeroBlackstone and LilithHafner authored May 8, 2024
1 parent 812848b commit 6f6bb95
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

2 comments on commit 6f6bb95

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package evaluation job you requested has completed - possible new issues were detected.
The full report is available.

Please sign in to comment.