Safe Haskell | Safe |
---|---|
Language | Haskell98 |
http://www.unicode.org/charts/PDF/U1D100.pdf
These symbols are in http://www.gnu.org/software/freefont/, debian=ttf-freefont.
- non_breaking_hypen :: Char
- non_breaking_space :: Char
- type Unicode_Index = Int
- type Unicode_Range = (Unicode_Index, Unicode_Index)
- type Unicode_Point = (Unicode_Index, String)
- type Unicode_Table = [Unicode_Point]
- unicode :: [Unicode_Table]
- accidentals_rng_set :: [Unicode_Range]
- accidentals :: Unicode_Table
- notes_rng :: Unicode_Range
- notes :: Unicode_Table
- rests_rng :: Unicode_Range
- rests :: Unicode_Table
- augmentation_dot :: Unicode_Point
- clefs_rng :: Unicode_Range
- clefs :: Unicode_Table
- notehead_rng :: Unicode_Range
- noteheads :: Unicode_Table
- stem :: Unicode_Point
- dynamics_rng :: Unicode_Range
- dynamics :: Unicode_Table
- articulations_rng :: Unicode_Range
- articulations :: Unicode_Table
- type Unicode_Block = (Unicode_Range, String)
- unicode_blocks :: [Unicode_Block]
- unicode_data_table_read :: FilePath -> IO Unicode_Table
- unicode_table_block :: (Int, Int) -> Unicode_Table -> Unicode_Table
- unicode_point_hs :: Unicode_Point -> String
- unicode_table_hs :: Unicode_Table -> String
Non-music
non_breaking_hypen :: Char Source #
Unicode non breaking hypen character.
non_breaking_hypen == '‑'
non_breaking_space :: Char Source #
Unicode non breaking space character.
non_breaking_space == ' '
Music
type Unicode_Index = Int Source #
type Unicode_Range = (Unicode_Index, Unicode_Index) Source #
type Unicode_Point = (Unicode_Index, String) Source #
type Unicode_Table = [Unicode_Point] Source #
unicode :: [Unicode_Table] Source #
accidentals :: Unicode_Table Source #
UNICODE accidental symbols.
let r = "♭♮♯𝄪𝄫𝄬𝄭𝄮𝄯𝄰𝄱𝄲𝄳" in map (toEnum . fst) accidentals == r
notes :: Unicode_Table Source #
UNICODE note duration symbols.
let r = "𝅜𝅝𝅗𝅥𝅘𝅥𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲" in map (toEnum . fst) notes == r
rests :: Unicode_Table Source #
UNICODE rest symbols.
let r = "𝄻𝄼𝄽𝄾𝄿𝅀𝅁𝅂" in map (toEnum . fst) rests == r
clefs :: Unicode_Table Source #
UNICODE clef symbols.
let r = "𝄞𝄟𝄠𝄡𝄢𝄣𝄤𝄥𝄦" in map (toEnum . fst) clefs == r
noteheads :: Unicode_Table Source #
UNICODE notehead symbols.
let r = "𝅃𝅄𝅅𝅆𝅇𝅈𝅉𝅊𝅋𝅌𝅍𝅎𝅏𝅐𝅑𝅒𝅓𝅔𝅕𝅖𝅗𝅘𝅙𝅚𝅛" in map (toEnum . fst) noteheads == r
stem :: Unicode_Point Source #
Blocks
type Unicode_Block = (Unicode_Range, String) Source #
Table
unicode_data_table_read :: FilePath -> IO Unicode_Table Source #
http://unicode.org/Public/8.0.0/ucd/UnicodeData.txt
let fn = "/home/rohan/data/unicode.org/Public/8.0.0/ucd/UnicodeData.txt" tbl <- unicode_data_table_read fn length tbl == 29215
unicode_table_block :: (Int, Int) -> Unicode_Table -> Unicode_Table Source #