This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; print endash | |
| !-:: | |
| Send {Asc 0150} | |
| return | |
| ; print emdash | |
| +!-:: | |
| Send {Asc 0151} | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; prevent Alt-zooming from triggering top menu | |
| Alt:: | |
| KeyWait, Alt | |
| return | |
| LAlt Up:: | |
| if (A_PriorKey = "Alt") | |
| return | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CSS_KEYWORD_COLORS = { | |
| "AliceBlue": "#f0f8ff", | |
| "AntiqueWhite": "#faebd7", | |
| "Aqua": "#00ffff", | |
| "Aquamarine": "#7fffd4", | |
| "Azure": "#f0ffff", | |
| "Beige": "#f5f5dc", | |
| "Bisque": "#ffe4c4", | |
| "Black": "#000000", | |
| "BlanchedAlmond": "#ffebcd", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #FLM: Mark to ligature | |
| from FL import * | |
| classes = [ 'top', 'bottom', 'ogonek', 'right' ]; | |
| f = fl.font | |
| glyphs = f.glyphs | |
| for anchorClass in classes: | |
| print '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function chordRegex() { | |
| const note = '[A-G][b#]?'; | |
| const altered = `(?:5|dim(5|7)?|aug5?|\\+5?|-5?)`; | |
| const minor = '(?:mi?n?)'; | |
| const major = '(?:maj?|Ma?j?)'; | |
| const majorableExt = `(?:6|7|9|11|13)`; | |
| const ext = `(?:4|6|7|9|11|13|6\\/9)`; | |
| const _mod = '(?:[b-](5|6|9|13)|[#+](4|5|9|11))'; | |
| const mod = `(?:\\(${_mod}\\)|${_mod})` | |
| const sus = '(?:sus(2|4|24|2sus4)?)'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function syllableRegex() { | |
| const consonants = "[bcdfghjklmnpqrstvwxyz']"; | |
| const vowels = "[aeiouy]"; | |
| const separators = "[ \\.,:;!?]|$"; | |
| const wordSep = `(?=${separators})`; | |
| const wordSepOrConsonant = `(?=${separators}|${consonants})`; | |
| return new RegExp( | |
| `${consonants}*${vowels}{1,3}` + | |
| `(${consonants}*e${wordSep}|${consonants}*${wordSepOrConsonant})`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ^ *([A-Z\.majdimsusaug()b#1-9/]+ +)*([A-Z\.majdimsusaug()b#1-9/]+)\r\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import GraphemeSplitter from "grapheme-splitter"; | |
| export default { | |
| lower(str) { | |
| let splitter = new GraphemeSplitter(); | |
| let graphemes = splitter.splitGraphemes(str); | |
| return graphemes.filter(g => g.toLowerCase() === g).join(""); | |
| }, | |
| upper(str) { | |
| let splitter = new GraphemeSplitter(); |