Refactor compiler code

pull/213/head
Manuel Barkhau 9 years ago committed by Manuel Barkhau
parent 20a3229faf
commit 32c7832609

@ -1,4 +1,13 @@
# encoding: utf-8 #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Compiler for keymap.c files
This scrip will generate a keymap.c file from a simple
markdown file with a specific layout.
Usage:
python compile_keymap.py INPUT_PATH [OUTPUT_PATH]
"""
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import absolute_import from __future__ import absolute_import
@ -18,31 +27,75 @@ if PY2:
chr = unichr chr = unichr
ONELINE_COMMENT_RE = re.compile(r"^\s*//.*$", re.MULTILINE) BASEPATH = os.path.abspath(os.path.join(
INLINE_COMMENT_RE = re.compile( os.path.dirname(__file__), "..", ".."
r"([\,\"\[\]\{\}\d])\s+//\s[^\"\]\}\{\[]*$", re.MULTILINE ))
)
TRAILING_COMMA_RE = re.compile(
r",$\s*([\]\}])", re.MULTILINE
)
def loads(raw_data):
if isinstance(raw_data, bytes):
raw_data = raw_data.decode('utf-8')
raw_data = ONELINE_COMMENT_RE.sub(r"", raw_data)
raw_data = INLINE_COMMENT_RE.sub(r"\1", raw_data)
raw_data = TRAILING_COMMA_RE.sub(r"\1", raw_data)
return json.loads(raw_data)
with io.open("keymap.md", encoding="utf-8") as fh: KEYBOARD_LAYOUTS = {
lines = fh.readlines() # These map positions in the parsed layout to
# positions in the KEYMAP MATRIX
'ergodox_ez': [
[ 0, 1, 2, 3, 4, 5, 6], [38, 39, 40, 41, 42, 43, 44],
[ 7, 8, 9, 10, 11, 12, 13], [45, 46, 47, 48, 49, 50, 51],
[14, 15, 16, 17, 18, 19 ], [ 52, 53, 54, 55, 56, 57],
[20, 21, 22, 23, 24, 25, 26], [58, 59, 60, 61, 62, 63, 64],
[27, 28, 29, 30, 31 ], [ 65, 66, 67, 68, 69],
[ 32, 33], [70, 71 ],
[ 34], [72 ],
[ 35, 36, 37], [73, 74, 75 ],
]
}
SECTIONS = [
'layout_config', BLANK_LAYOUTS = [
'layers', # Compact Layout
"""
.------------------------------------.------------------------------------.
| | | | | | | | | | | | | | |
!-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | | | | | | | | | | | | | |
!-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | |-----!-----! | | | | | |
!-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | | | | | | | | | |
'-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | |
'------------------------' '------------------------'
.-----------. .-----------.
| | | ! | |
.-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! !
! ! !-----! !-----! ! !
| | | | ! | | |
'-----------------' '-----------------'
""",
# Wide Layout
"""
.--------------------------------------------. .--------------------------------------------.
| | | | | | | | ! | | | | | | |
!------+-----+-----+-----+-----+-------------! !-------+-----+-----+-----+-----+-----+------!
| | | | | | | | ! | | | | | | |
!------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+------!
| | | | | | |-------! !-------! | | | | | |
!------+-----+-----+-----x-----x-----! ! ! !-----x-----x-----+-----+-----+------!
| | | | | | | | ! | | | | | | |
'------+-----+-----+-----+-----+-------------' '-------------+-----+-----+-----+-----+------'
| | | | | | ! | | | | |
'-----------------------------' '-----------------------------'
.---------------. .---------------.
| | | ! | |
.-------+-------+-------! !-------+-------+-------.
! ! | | ! | ! !
! ! !-------! !-------! ! !
| | | | ! | | |
'-----------------------' '-----------------------'
""",
] ]
config = {
DEFAULT_CONFIG = {
"includes_basedir": "quantum/", "includes_basedir": "quantum/",
"keymaps_includes": [ "keymaps_includes": [
"keymap_common.h", "keymap_common.h",
@ -50,264 +103,344 @@ config = {
'filler': "-+.':x", 'filler': "-+.':x",
'separator': "|", 'separator': "|",
'default_key_prefix': ["KC_"], 'default_key_prefix': ["KC_"],
'unicode_macros': [],
'macro_ids': ['UMS'],
'layers': collections.OrderedDict(),
'layer_lines': collections.OrderedDict(),
} }
section_start_index = -1
current_section = None SECTIONS = [
current_layer_name = None 'layout_config',
current_layer_lines = [] 'layers',
config_data = [] ]
# Markdown Parsing
def loads(raw_data):
ONELINE_COMMENT_RE = re.compile(r"""
^ # comment must be at the start of the line
\s* # arbitrary whitespace
// # start of the comment
(.*) # the comment
$ # until the end of line
""", re.MULTILINE | re.VERBOSE
)
INLINE_COMMENT_RE = re.compile(r"""
(?:[\,\"\[\]\{\}\d]) # anythig that might end a expression
\s+ # comment must be preceded by whitespace
// # start of the comment
\s # and succeded by whitespace
([^\"\]\}\{\[]*) # the comment (except things which might be json)
$ # until the end of line
""", re.MULTILINE | re.VERBOSE
)
TRAILING_COMMA_RE = re.compile(r"""
, # the comma
\s* # arbitrary whitespace (including newlines)
([\]\}]) # end of an array or object
""", re.MULTILINE | re.VERBOSE
)
if isinstance(raw_data, bytes):
raw_data = raw_data.decode('utf-8')
raw_data = ONELINE_COMMENT_RE.sub(r"", raw_data)
raw_data = INLINE_COMMENT_RE.sub(r"\1", raw_data)
raw_data = TRAILING_COMMA_RE.sub(r"\1", raw_data)
return json.loads(raw_data)
def parse_config(path):
def reset_section():
section.update({
'name': section.get('name', ""),
'sub_name': "",
'start_line': -1,
'end_line': -1,
'code_lines': [],
})
def start_section(line_index, line):
end_section()
if line.startswith("# "):
name = line[2:]
elif line.startswith("## "):
name = line[3:]
name = name.strip().replace(" ", "_").lower()
if name in SECTIONS:
section['name'] = name
else:
section['sub_name'] = name
section['start_line'] = line_index
def end_section(): def end_section():
global section_start_index if section['start_line'] >= 0:
global current_layer_lines if section['name'] == 'layout_config':
section_start_index = -1 config.update(loads("\n".join(
if current_section == 'layout_config': section['code_lines']
config.update(loads("".join(
config_data
))) )))
elif current_section == 'layers': elif section['sub_name'].startswith('layer'):
config['layer_lines'][current_layer_name] = current_layer_lines layer_name = section['sub_name']
current_layer_lines = [] config['layer_lines'][layer_name] = section['code_lines']
reset_section()
def amend_section(line_index, line):
section['end_line'] = line_index
section['code_lines'].append(line)
for i, line in enumerate(lines): config = DEFAULT_CONFIG.copy()
config.update({
'layer_lines': collections.OrderedDict(),
'macro_ids': {'UM'},
'unicode_macros': {},
})
section = {}
reset_section()
with io.open(path, encoding="utf-8") as fh:
for i, line in enumerate(fh):
if line.startswith("#"): if line.startswith("#"):
section = line[2:].strip().replace(" ", "_").lower() start_section(i, line)
if section in SECTIONS:
current_section = section
elif line.startswith("## "):
sub_section = line[3:]
if current_section == 'layers':
current_layer_name = sub_section.strip()
# TODO: parse descriptio
config['layers'][current_layer_name] = ""
elif line.startswith(" "): elif line.startswith(" "):
if section_start_index < 0: amend_section(i, line[4:])
section_start_index = i else:
if current_section == 'layout_config': # TODO: maybe parse description
config_data.append(line) pass
elif current_section == 'layers':
if not line.strip():
continue
current_layer_lines.append(line)
elif section_start_index > 0:
end_section()
end_section() end_section()
return config
# header file parsing
IF0_RE = re.compile(r"""
^
#if 0
$.*?
#endif
""", re.MULTILINE | re.DOTALL | re.VERBOSE
)
KEYDEF_RE = re.compile(r"#define ((?:{})(?:\w+))".format(
"|".join(config['key_prefixes'])
))
IF0_RE = re.compile(r"^#if 0$.*?#endif", re.MULTILINE | re.DOTALL)
COMMENT_RE = re.compile(r"/\*.*?\*/", re.MULTILINE | re.DOTALL)
ENUM_RE = re.compile(r"(enum\s\w+\s\{.*?\};)", re.MULTILINE | re.DOTALL)
ENUM_KEY_RE = re.compile(r"({}\w+)".format(
"|".join(config['key_prefixes'])
))
def parse_keydefs(path): COMMENT_RE = re.compile(r"""
/\*
.*?
\*/"
""", re.MULTILINE | re.DOTALL | re.VERBOSE
)
def read_header_file(path):
with io.open(path, encoding="utf-8") as fh: with io.open(path, encoding="utf-8") as fh:
data = fh.read() data = fh.read()
data, _ = COMMENT_RE.subn("", data) data, _ = COMMENT_RE.subn("", data)
data, _ = IF0_RE.subn("", data) data, _ = IF0_RE.subn("", data)
return data
def regex_partial(re_str_fmt, flags=re.MULTILINE | re.DOTALL | re.VERBOSE):
def partial(*args, **kwargs):
re_str = re_str_fmt.format(*args, **kwargs)
return re.compile(re_str, flags)
return partial
KEYDEF_REP = regex_partial(r"""
#define
\s
(
(?:{}) # the prefixes
(?:\w+) # the key name
) # capture group end
"""
)
ENUM_RE = re.compile(r"""
(
enum
\s\w+\s
\{
.*? # the enum content
\}
;
) # capture group end
""", re.MULTILINE | re.DOTALL | re.VERBOSE
)
ENUM_KEY_REP = regex_partial(r"""
(
{} # the prefixes
\w+ # the key name
) # capture group end
"""
)
for match in KEYDEF_RE.finditer(data): def parse_keydefs(config, data):
prefix_options = "|".join(config['key_prefixes'])
keydef_re = KEYDEF_REP(prefix_options)
enum_key_re = ENUM_KEY_REP(prefix_options)
for match in keydef_re.finditer(data):
yield match.groups()[0] yield match.groups()[0]
for enum_match in ENUM_RE.finditer(data): for enum_match in ENUM_RE.finditer(data):
enum = enum_match.groups()[0] enum = enum_match.groups()[0]
for key_match in ENUM_KEY_RE.finditer(enum): for key_match in enum_key_re.finditer(enum):
yield key_match.groups()[0] yield key_match.groups()[0]
valid_keycodes = set()
basepath = os.path.abspath(os.path.join(
os.path.dirname(__file__), "..", "..", "..", ".."
))
valid_keycodes.update(parse_keydefs(os.path.join( def parse_valid_keys(config):
basepath, "tmk_core", "common", "keycode.h" valid_keycodes = set()
))) paths = [
os.path.join(BASEPATH, "tmk_core", "common", "keycode.h")
] + [
os.path.join(
BASEPATH, config['includes_dir'], include_path
) for include_path in config['keymaps_includes']
]
for include_path in config['keymaps_includes']: for path in paths:
path = os.path.join(basepath, config['includes_dir'], include_path)
path = path.replace("/", os.sep) path = path.replace("/", os.sep)
# the config always uses forward slashe
if os.path.exists(path): if os.path.exists(path):
valid_keycodes.update(parse_keydefs(path)) header_data = read_header_file(path)
valid_keycodes.update(
parse_keydefs(config, header_data)
)
return valid_keycodes
# Keymap Parsing
def iter_raw_codes(layer_lines, filler, separator):
filler_re = re.compile("[" + filler + " ]")
for line in layer_lines:
line, _ = filler_re.subn("", line.strip())
if not line:
continue
codes = line.split(separator)
for code in codes[1:-1]:
yield code
def iter_indexed_codes(raw_codes, key_indexes):
key_rows = {}
key_indexes_flat = []
for row_index, key_indexes in enumerate(key_indexes):
for key_index in key_indexes:
key_rows[key_index] = row_index
key_indexes_flat.extend(key_indexes)
assert len(raw_codes) == len(key_indexes_flat)
for raw_code, key_index in zip(raw_codes, key_indexes_flat):
# we keep track of the row mostly for layout purposes
yield raw_code, key_index, key_rows[key_index]
LAYER_CHANGE_RE = re.compile(r"(DF|TG|MO)\(\d+\)")
MACRO_RE = re.compile(r"M\(\w+\)")
UNICODE_RE = re.compile(r"U[0-9A-F]{4}")
NON_CODE = re.compile(r"^[^A-Z0-9_]$")
LAYER_CHANGE_RE = re.compile(r"""
(DF|TG|MO)\(\d+\)
""", re.VERBOSE)
def UNICODE_MACRO(config, c):
# TODO: don't use macro for codepoints below 0x2000 MACRO_RE = re.compile(r"""
M\(\w+\)
""", re.VERBOSE)
UNICODE_RE = re.compile(r"""
U[0-9A-F]{4}
""", re.VERBOSE)
NON_CODE = re.compile(r"""
^[^A-Z0-9_]$
""", re.VERBOSE)
def parse_uni_code(raw_code):
macro_id = "UC_" + ( macro_id = "UC_" + (
unicodedata.name(c) unicodedata.name(raw_code)
.replace(" ", "_") .replace(" ", "_")
.replace("-", "_") .replace("-", "_")
.replace("SUPERSCRIPT_", "SUP_")
.replace("SUBSCRIPT_", "SUB_")
.replace("GREEK_SMALL_LETTER", "GR_LC")
.replace("GREEK_CAPITAL_LETTER", "GR_UC")
.replace("VULGAR_FRACTION_", "FR_")
) )
if macro_id not in config['macro_ids']: code = "M({})".format(macro_id)
config['macro_ids'].append(macro_id) uc_hex = "{:04X}".format(ord(raw_code))
code = "{:04X}".format(ord(c)) return code, macro_id, uc_hex
if (macro_id, code) not in config['unicode_macros']:
config['unicode_macros'].append((macro_id, code))
return "M({})".format(macro_id)
def MACRO(config, code):
macro_id = code[2:-1]
if macro_id not in config['macro_ids']:
config['macro_ids'].append(macro_id)
return code
# TODO: presumably we can have a macro or function which takes
# the hex code and produces much smaller code.
WIN_UNICODE_MACRO_TEMPLATE = """ def parse_key_code(raw_code, key_prefixes, valid_keycodes):
case {0}: if raw_code in valid_keycodes:
return MACRODOWN( return raw_code
D(LALT), T(KP_PLUS), {1}, U(LALT), END
);
"""
LINUX_UNICODE_MACRO_TEMPLATE = """ for prefix in key_prefixes:
case {0}: code = prefix + raw_code
return MACRODOWN( if code in valid_keycodes:
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), {1}, T(KP_ENTER), END return code
);
"""
def macro_cases(config, mode):
if mode == 'win':
template = WIN_UNICODE_MACRO_TEMPLATE
elif mode == 'linux':
template = LINUX_UNICODE_MACRO_TEMPLATE
else:
raise ValueError("Invalid mode: ", mode)
template = template.strip()
for macro_id, unimacro_chars in config['unicode_macros']: def parse_code(raw_code, key_prefixes, valid_keycodes):
unimacro_keys = ", ".join( if not raw_code:
"T({})".format( return 'KC_TRNS', None, None
"KP_" + char if char.isdigit() else char
) for char in unimacro_chars
)
yield template.format(macro_id, unimacro_keys)
if LAYER_CHANGE_RE.match(raw_code):
return raw_code, None, None
MACROCODE = """ if MACRO_RE.match(raw_code):
#define UC_MODE_WIN 0 code = macro_id = raw_code[2:-1]
#define UC_MODE_LINUX 1 return code, macro_id, None
static uint16_t unicode_mode = UC_MODE_WIN; if UNICODE_RE.match(raw_code):
hex_code = raw_code[1:]
return parse_uni_code(chr(int(hex_code, 16)))
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {{ if NON_CODE.match(raw_code):
if (!record->event.pressed) {{ return parse_uni_code(raw_code)
return MACRO_NONE;
}}
// MACRODOWN only works in this function
switch(id) {{
case UMS:
unicode_mode = (unicode_mode + 1) % 2;
break;
{macro_cases}
default:
break;
}}
if (unicode_mode == UC_MODE_WIN) {{
switch(id) {{
{win_macro_cases}
default:
break;
}}
}} else if (unicode_mode == UC_MODE_LINUX) {{
switch(id) {{
{linux_macro_cases}
default:
break;
}}
}}
return MACRO_NONE;
}};
"""
code = parse_key_code(raw_code, key_prefixes, valid_keycodes)
return code, None, None
def iter_keycodes(layer_lines, config):
filler_re = re.compile("[" +
config['filler'] + " " +
"]")
all_codes = [] def parse_keymap(config, key_indexes, layer_lines, valid_keycodes):
for line in layer_lines: keymap = {}
line, _ = filler_re.subn("", line.strip()) raw_codes = list(iter_raw_codes(
if not line: layer_lines, config['filler'], config['separator']
continue ))
codes = line.split(config['separator']) indexed_codes = iter_indexed_codes(raw_codes, key_indexes)
all_codes.extend(codes[1:-1]) for raw_code, key_index, row_index in indexed_codes:
code, macro_id, uc_hex = parse_code(
raw_code, config['key_prefixes'], valid_keycodes
)
if macro_id:
config['macro_ids'].add(macro_id)
if uc_hex:
config['unicode_macros'][macro_id] = uc_hex
keymap[key_index] = (code, row_index)
return keymap
def parse_keymaps(config, valid_keycodes):
keymaps = collections.OrderedDict()
key_indexes = config.get(
'key_indexes', KEYBOARD_LAYOUTS[config['layout']]
)
# TODO: maybe validate key_indexes
key_groups = {} for layer_name, layer_lines, in config['layer_lines'].items():
for group_index, key_indexes in enumerate(config['keymap_indexes']): keymaps[layer_name] = parse_keymap(
for key_index in key_indexes: config, key_indexes, layer_lines, valid_keycodes
key_groups[key_index] = group_index )
return keymaps
keymap_indexes = sum(config['keymap_indexes'], [])
assert len(all_codes) == len(keymap_indexes) # keymap.c output
code_index_pairs = zip(all_codes, keymap_indexes)
prev_index = None
for i, (code, key_index) in enumerate(code_index_pairs):
code = code.strip()
layer_match = LAYER_CHANGE_RE.match(code)
unicode_match = UNICODE_RE.match(code)
noncode_match = NON_CODE.match(code)
macro_match = MACRO_RE.match(code)
ws = "\n" if key_groups[key_index] != prev_index else ""
prev_index = key_groups[key_index]
try:
if not code:
code = 'KC_TRNS'
elif layer_match:
pass
elif macro_match:
code = MACRO(config, code)
elif unicode_match:
hex_code = code[1:]
code = UNICODE_MACRO(config, chr(int(hex_code, 16)))
elif noncode_match:
code = UNICODE_MACRO(config, code)
elif "_" in code:
assert code in valid_keycodes, "unknown code '{}'".format(code)
else:
for prefix in config['key_prefixes']:
if prefix + code in valid_keycodes:
code = prefix + code
break
assert code in valid_keycodes, "unknown code '{}'".format(code)
yield code, key_index, ws
except AssertionError:
print("Error processing code", repr(code).encode("utf-8"))
raise
USERCODE = """ USERCODE = """
// Runs just one time when the keyboard initializes. // Runs just one time when the keyboard initializes.
void * matrix_init_user(void) { void matrix_init_user(void) {
}; };
// Runs constantly in the background, in a loop. // Runs constantly in the background, in a loop.
void * matrix_scan_user(void) { void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state); uint8_t layer = biton32(layer_state);
ergodox_board_led_off(); ergodox_board_led_off();
@ -348,71 +481,158 @@ void * matrix_scan_user(void) {
}; };
""" """
def parse_keymaps(config): MACROCODE = """
keymaps = {} #define UC_MODE_WIN 0
layer_line_items = config['layer_lines'].items() #define UC_MODE_LINUX 1
for i, (layer_name, layer_lines) in enumerate(layer_line_items):
print("parseing layer", layer_name) static uint16_t unicode_mode = UC_MODE_WIN;
keymap = {}
for code, key_index, ws in iter_keycodes(layer_lines, config): const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {{
keymap[key_index] = (code, ws) if (!record->event.pressed) {{
keymaps[layer_name] = [v for k, v in sorted(keymap.items())] return MACRO_NONE;
return keymaps }}
// MACRODOWN only works in this function
switch(id) {{
case UM:
unicode_mode = (unicode_mode + 1) % 2;
break;
{macro_cases}
default:
break;
}}
if (unicode_mode == UC_MODE_WIN) {{
switch(id) {{
{win_macro_cases}
default:
break;
}}
}} else if (unicode_mode == UC_MODE_LINUX) {{
switch(id) {{
{linux_macro_cases}
default:
break;
}}
}}
return MACRO_NONE;
}};
"""
WIN_UNICODE_MACRO_TEMPLATE = """
case {0}:
return MACRODOWN(
D(LALT), T(KP_PLUS), {1}, U(LALT), END
);
"""
LINUX_UNICODE_MACRO_TEMPLATE = """
case {0}:
return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), {1}, T(KP_ENTER), END
);
"""
def macro_cases(config, mode):
if mode == 'win':
template = WIN_UNICODE_MACRO_TEMPLATE
elif mode == 'linux':
template = LINUX_UNICODE_MACRO_TEMPLATE
else:
raise ValueError("Invalid mode: ", mode)
template = template.strip()
for macro_id, uc_hex in config['unicode_macros'].items():
unimacro_keys = ", ".join(
"T({})".format(
"KP_" + digit if digit.isdigit() else digit
) for digit in uc_hex
)
yield template.format(macro_id, unimacro_keys)
def iter_keymap_lines(keymap):
prev_row_index = None
for key_index in sorted(keymap):
code, row_index = keymap[key_index]
if row_index != prev_row_index:
yield "\n"
yield " {}".format(code)
if key_index < len(keymap) - 1:
yield ","
prev_row_index = row_index
def iter_keymap_lines(config, keymaps):
def iter_keymap_parts(config, keymaps):
# includes
for include_path in config['keymaps_includes']: for include_path in config['keymaps_includes']:
yield '#include "{}"\n'.format(include_path) yield '#include "{}"\n'.format(include_path)
yield "\n" yield "\n"
layer_items = config['layers'].items() # definitions
for i, (layer_name, description) in enumerate(layer_items): for i, macro_id in enumerate(sorted(config['macro_ids'])):
yield '#define L{0:<3} {0:<5} // {1}\n'.format(i, layer_name)
for i, macro_id in enumerate(config['macro_ids']):
yield "#define {} {}\n".format(macro_id, i) yield "#define {} {}\n".format(macro_id, i)
yield "\n" yield "\n"
yield "const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\n" for i, layer_name in enumerate(config['layer_lines']):
yield '#define L{0:<3} {0:<5} // {1}\n'.format(i, layer_name)
layer_line_items = config['layer_lines'].items() yield "\n"
last_index = config['keymap_indexes'][-1]
for i, (layer_name, layer_lines) in enumerate(layer_line_items):
keymap = keymaps[layer_name]
yield "/*\n"
for line in layer_lines:
yield " *{}".format(line)
yield "*/\n"
yield "[L{0}] = KEYMAP(\n".format(i) # keymaps
yield "const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {\n"
for key_index, (code, ws) in enumerate(keymap): for i, layer_name in enumerate(config['layer_lines']):
yield "\t{}".format(code) # comment
if key_index < len(keymap) - 1: layer_lines = config['layer_lines'][layer_name]
yield "," prefixed_lines = " * " + " * ".join(layer_lines)
yield ws yield "/*\n{}*/\n".format(prefixed_lines)
yield "),\n"
# keymap codes
keymap = keymaps[layer_name]
keymap_lines = "".join(iter_keymap_lines(keymap))
yield "[L{0}] = KEYMAP({1}\n),\n".format(i, keymap_lines)
yield "};\n\n" yield "};\n\n"
yield "const uint16_t PROGMEM fn_actions[] = {\n" # no idea what this is for
yield "};\n" yield "const uint16_t PROGMEM fn_actions[] = {};\n"
# macros
yield MACROCODE.format( yield MACROCODE.format(
macro_cases="", macro_cases="",
win_macro_cases="\n".join(macro_cases(config, mode='win')), win_macro_cases="\n".join(macro_cases(config, mode='win')),
linux_macro_cases="\n".join(macro_cases(config, mode='linux')), linux_macro_cases="\n".join(macro_cases(config, mode='linux')),
) )
# TODO: dynamically create blinking lights
yield USERCODE yield USERCODE
with io.open("keymap.c", mode="w", encoding="utf-8") as fh: def main(argv=sys.argv[1:]):
for data in iter_keymap_lines(config, parse_keymaps(config)): if not argv or '-h' in argv or '--help' in argv:
fh.write(data) print(__doc__)
return 0
in_path = os.path.abspath(argv[0])
if not os.path.exists(in_path):
print("No such file '{}'".format(in_path))
return 1
if len(argv) > 1:
out_path = os.path.abspath(argv[1])
else:
dirname = os.path.dirname(in_path)
out_path = os.path.join(dirname, "keymap.c")
config = parse_config(in_path)
valid_keys = parse_valid_keys(config)
keymaps = parse_keymaps(config, valid_keys)
with io.open(out_path, mode="w", encoding="utf-8") as fh:
for part in iter_keymap_parts(config, keymaps):
fh.write(part)
# print("\n".join(sorted(valid_keycodes))) if __name__ == '__main__':
# print(json.dumps(config, indent=4)) sys.exit(main())

@ -3,355 +3,362 @@
#include "keymap_common.h" #include "keymap_common.h"
#include "keymap_extras/keymap_german.h" #include "keymap_extras/keymap_german.h"
#define L0 0 // Layer 0 #define UC_ASYMPTOTICALLY_EQUAL_TO 0
#define L1 1 // Layer 1 #define UC_DIVISION_SIGN 1
#define L2 2 // Layer 2 #define UC_DOWNWARDS_ARROW 2
#define L3 3 // Layer 3 #define UC_ELEMENT_OF 3
#define L4 4 // Layer 4 #define UC_EMPTY_SET 4
#define L5 5 // Layer 5 #define UC_FOR_ALL 5
#define L6 6 // Layer 6 #define UC_GREEK_CAPITAL_LETTER_ALPHA 6
#define L7 7 // Layer 7 #define UC_GREEK_CAPITAL_LETTER_BETA 7
#define L8 8 // Layer 8 #define UC_GREEK_CAPITAL_LETTER_CHI 8
#define UMS 0 #define UC_GREEK_CAPITAL_LETTER_DELTA 9
#define UC_UPWARDS_ARROW 1 #define UC_GREEK_CAPITAL_LETTER_EPSILON 10
#define UC_LEFTWARDS_ARROW 2 #define UC_GREEK_CAPITAL_LETTER_ETA 11
#define UC_DOWNWARDS_ARROW 3 #define UC_GREEK_CAPITAL_LETTER_GAMMA 12
#define UC_RIGHTWARDS_ARROW 4 #define UC_GREEK_CAPITAL_LETTER_IOTA 13
#define UC_SUP_ONE 5 #define UC_GREEK_CAPITAL_LETTER_KAPPA 14
#define UC_SUP_TWO 6 #define UC_GREEK_CAPITAL_LETTER_LAMDA 15
#define UC_SUP_THREE 7 #define UC_GREEK_CAPITAL_LETTER_MU 16
#define UC_SUP_FOUR 8 #define UC_GREEK_CAPITAL_LETTER_NU 17
#define UC_SUP_FIVE 9 #define UC_GREEK_CAPITAL_LETTER_OMEGA 18
#define UC_FOR_ALL 10 #define UC_GREEK_CAPITAL_LETTER_OMICRON 19
#define UC_SUP_SIX 11 #define UC_GREEK_CAPITAL_LETTER_PHI 20
#define UC_SUP_SEVEN 12 #define UC_GREEK_CAPITAL_LETTER_PI 21
#define UC_SUP_EIGHT 13 #define UC_GREEK_CAPITAL_LETTER_PSI 22
#define UC_SUP_NINE 14 #define UC_GREEK_CAPITAL_LETTER_RHO 23
#define UC_SUP_ZERO 15 #define UC_GREEK_CAPITAL_LETTER_SIGMA 24
#define UC_MULTIPLICATION_SIGN 16 #define UC_GREEK_CAPITAL_LETTER_TAU 25
#define UC_FR_ONE_HALF 17 #define UC_GREEK_CAPITAL_LETTER_THETA 26
#define UC_DIVISION_SIGN 18 #define UC_GREEK_CAPITAL_LETTER_UPSILON 27
#define UC_FR_ONE_QUARTER 19 #define UC_GREEK_CAPITAL_LETTER_XI 28
#define UC_FR_ONE_FIFTH 20 #define UC_GREEK_CAPITAL_LETTER_ZETA 29
#define UC_FR_ONE_SIXTH 21 #define UC_GREEK_SMALL_LETTER_ALPHA 30
#define UC_FR_ONE_EIGHTH 22 #define UC_GREEK_SMALL_LETTER_BETA 31
#define UC_PLUS_MINUS_SIGN 23 #define UC_GREEK_SMALL_LETTER_CHI 32
#define UC_EMPTY_SET 24 #define UC_GREEK_SMALL_LETTER_DELTA 33
#define UC_INFINITY 25 #define UC_GREEK_SMALL_LETTER_EPSILON 34
#define UC_SUP_LATIN_SMALL_LETTER_N 26 #define UC_GREEK_SMALL_LETTER_ETA 35
#define UC_THERE_EXISTS 27 #define UC_GREEK_SMALL_LETTER_FINAL_SIGMA 36
#define UC_ELEMENT_OF 28 #define UC_GREEK_SMALL_LETTER_GAMMA 37
#define UC_FR_ONE_THIRD 29 #define UC_GREEK_SMALL_LETTER_IOTA 38
#define UC_NOT_EQUAL_TO 30 #define UC_GREEK_SMALL_LETTER_KAPPA 39
#define UC_FR_TWO_THIRDS 31 #define UC_GREEK_SMALL_LETTER_LAMDA 40
#define UC_FR_THREE_QUARTERS 32 #define UC_GREEK_SMALL_LETTER_MU 41
#define UC_ASYMPTOTICALLY_EQUAL_TO 33 #define UC_GREEK_SMALL_LETTER_NU 42
#define UC_THERE_DOES_NOT_EXIST 34 #define UC_GREEK_SMALL_LETTER_OMEGA 43
#define UC_NOT_AN_ELEMENT_OF 35 #define UC_GREEK_SMALL_LETTER_OMICRON 44
#define UC_SUB_ONE 36 #define UC_GREEK_SMALL_LETTER_PHI 45
#define UC_SUB_TWO 37 #define UC_GREEK_SMALL_LETTER_PI 46
#define UC_SUB_THREE 38 #define UC_GREEK_SMALL_LETTER_PSI 47
#define UC_SUB_FOUR 39 #define UC_GREEK_SMALL_LETTER_RHO 48
#define UC_SUB_FIVE 40 #define UC_GREEK_SMALL_LETTER_SIGMA 49
#define UC_SUB_SIX 41 #define UC_GREEK_SMALL_LETTER_TAU 50
#define UC_SUB_SEVEN 42 #define UC_GREEK_SMALL_LETTER_THETA 51
#define UC_SUB_EIGHT 43 #define UC_GREEK_SMALL_LETTER_UPSILON 52
#define UC_SUB_NINE 44 #define UC_GREEK_SMALL_LETTER_XI 53
#define UC_SUB_ZERO 45 #define UC_GREEK_SMALL_LETTER_ZETA 54
#define UC_GR_LC_CHI 46 #define UC_INFINITY 55
#define UC_GR_LC_PI 47 #define UC_LEFTWARDS_ARROW 56
#define UC_GR_LC_PHI 48 #define UC_MULTIPLICATION_SIGN 57
#define UC_GR_LC_OMEGA 49 #define UC_NOT_AN_ELEMENT_OF 58
#define UC_GR_LC_GAMMA 50 #define UC_NOT_EQUAL_TO 59
#define UC_GR_LC_ETA 51 #define UC_PLUS_MINUS_SIGN 60
#define UC_GR_LC_XI 52 #define UC_RIGHTWARDS_ARROW 61
#define UC_GR_LC_KAPPA 53 #define UC_SUBSCRIPT_EIGHT 62
#define UC_GR_LC_LAMDA 54 #define UC_SUBSCRIPT_FIVE 63
#define UC_GR_LC_ZETA 55 #define UC_SUBSCRIPT_FOUR 64
#define UC_GR_LC_UPSILON 56 #define UC_SUBSCRIPT_NINE 65
#define UC_GR_LC_IOTA 57 #define UC_SUBSCRIPT_ONE 66
#define UC_GR_LC_ALPHA 58 #define UC_SUBSCRIPT_SEVEN 67
#define UC_GR_LC_EPSILON 59 #define UC_SUBSCRIPT_SIX 68
#define UC_GR_LC_OMICRON 60 #define UC_SUBSCRIPT_THREE 69
#define UC_GR_LC_SIGMA 61 #define UC_SUBSCRIPT_TWO 70
#define UC_GR_LC_NU 62 #define UC_SUBSCRIPT_ZERO 71
#define UC_GR_LC_RHO 63 #define UC_SUPERSCRIPT_EIGHT 72
#define UC_GR_LC_TAU 64 #define UC_SUPERSCRIPT_FIVE 73
#define UC_GR_LC_DELTA 65 #define UC_SUPERSCRIPT_FOUR 74
#define UC_GR_LC_FINAL_SIGMA 66 #define UC_SUPERSCRIPT_LATIN_SMALL_LETTER_N 75
#define UC_GR_LC_THETA 67 #define UC_SUPERSCRIPT_NINE 76
#define UC_GR_LC_BETA 68 #define UC_SUPERSCRIPT_ONE 77
#define UC_GR_LC_MU 69 #define UC_SUPERSCRIPT_SEVEN 78
#define UC_GR_LC_PSI 70 #define UC_SUPERSCRIPT_SIX 79
#define UC_GR_UC_CHI 71 #define UC_SUPERSCRIPT_THREE 80
#define UC_GR_UC_PI 72 #define UC_SUPERSCRIPT_TWO 81
#define UC_GR_UC_PHI 73 #define UC_SUPERSCRIPT_ZERO 82
#define UC_GR_UC_OMEGA 74 #define UC_THERE_DOES_NOT_EXIST 83
#define UC_GR_UC_GAMMA 75 #define UC_THERE_EXISTS 84
#define UC_GR_UC_ETA 76 #define UC_UPWARDS_ARROW 85
#define UC_GR_UC_XI 77 #define UC_VULGAR_FRACTION_ONE_EIGHTH 86
#define UC_GR_UC_KAPPA 78 #define UC_VULGAR_FRACTION_ONE_FIFTH 87
#define UC_GR_UC_LAMDA 79 #define UC_VULGAR_FRACTION_ONE_HALF 88
#define UC_GR_UC_ZETA 80 #define UC_VULGAR_FRACTION_ONE_QUARTER 89
#define UC_GR_UC_UPSILON 81 #define UC_VULGAR_FRACTION_ONE_SIXTH 90
#define UC_GR_UC_IOTA 82 #define UC_VULGAR_FRACTION_ONE_THIRD 91
#define UC_GR_UC_ALPHA 83 #define UC_VULGAR_FRACTION_THREE_QUARTERS 92
#define UC_GR_UC_EPSILON 84 #define UC_VULGAR_FRACTION_TWO_THIRDS 93
#define UC_GR_UC_OMICRON 85 #define UM 94
#define UC_GR_UC_SIGMA 86
#define UC_GR_UC_NU 87 #define L0 0 // layer_0
#define UC_GR_UC_RHO 88 #define L1 1 // layer_1
#define UC_GR_UC_TAU 89 #define L2 2 // layer_2
#define UC_GR_UC_DELTA 90 #define L3 3 // layer_3
#define UC_GR_UC_THETA 91 #define L4 4 // layer_4
#define UC_GR_UC_BETA 92 #define L5 5 // layer_5
#define UC_GR_UC_MU 93 #define L6 6 // layer_6
#define UC_GR_UC_PSI 94 #define L7 7 // layer_7
#define L8 8 // layer_8
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* |MO(5)| 1 | 2 | 3 | 4 | 5 | ACUT | ! GRV | 6 | 7 | 8 | 9 | 0 |CIRC | * |MO(5)| 1 | 2 | 3 | 4 | 5 |ACUT | GRV | 6 | 7 | 8 | 9 | 0 |CIRC |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* |MO(4)| X | P | F | W | G | HOME | !TG(2) | H | J | K | L | Q | Z | * |MO(4)| X | P | F | W | G |HOME |TG(2)| H | J | K | L | Q | Z |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* |MO(1)| U | I | A | E | O |------! !------! S | N | R | T | D | SS | * |MO(1)| U | I | A | E | O |-----!-----! S | N | R | T | D | SS |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* |MO(3)| UE | OE | AE | C | V | END | ! TAB | B | M |COMM| DOT| UP | Y | * |MO(3)| UE | OE | AE | C | V |END | TAB | B | M |COMM| DOT| UP | Y |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | |LGUI|LALT|LCTL| !LALT| |LEFT|DOWN|RGHT| * | | |LGUI|LALT|LCTL| !LALT| |LEFT|DOWN|RGHT|
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* | INS |TG(2) | !M(UMS)| DELT | * .-----------. .-----------.
* .------+------+------! !------+------+------. * |INS |TG(2)| !M(UM)|DELT |
* .-----+-----+-----! !-----+-----+-----.
* ! ! | APP | ! PGUP| ! ! * ! ! | APP | ! PGUP| ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* |BSPC |LSFT | ESC | ! PGDN|ENTER|SPACE| * |BSPC |LSFT | ESC | ! PGDN|ENTER|SPACE|
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L0] = KEYMAP( [L0] = KEYMAP(
MO(5), MO(5), DE_1, DE_2, DE_3, DE_4, DE_5, DE_ACUT,
DE_1, DE_2, DE_3, DE_4, DE_5, DE_ACUT, MO(4), MO(4), DE_X, DE_P, DE_F, DE_W, DE_G, KC_HOME,
DE_X, DE_P, DE_F, DE_W, DE_G, KC_HOME, MO(1), MO(1), DE_U, DE_I, DE_A, DE_E, DE_O,
DE_U, DE_I, DE_A, DE_E, DE_O, MO(3), MO(3), DE_UE, DE_OE, DE_AE, DE_C, DE_V, KC_END,
DE_UE, DE_OE, DE_AE, DE_C, DE_V, KC_END, KC_TRNS, KC_TRNS, KC_TRNS, KC_LGUI, KC_LALT, KC_LCTL,
KC_TRNS, KC_LGUI, KC_LALT, KC_LCTL, KC_INS, KC_INS, TG(2),
TG(2), KC_APP, KC_APP,
KC_BSPC, KC_BSPC, KC_LSFT, KC_ESC,
KC_LSFT, KC_ESC, DE_GRV, DE_GRV, DE_6, DE_7, DE_8, DE_9, DE_0, DE_CIRC,
DE_6, DE_7, DE_8, DE_9, DE_0, DE_CIRC, TG(2), TG(2), DE_H, DE_J, DE_K, DE_L, DE_Q, DE_Z,
DE_H, DE_J, DE_K, DE_L, DE_Q, DE_Z, DE_S, DE_S, DE_N, DE_R, DE_T, DE_D, DE_SS,
DE_N, DE_R, DE_T, DE_D, DE_SS, KC_TAB, KC_TAB, DE_B, DE_M, DE_COMM, DE_DOT, KC_UP, DE_Y,
DE_B, DE_M, DE_COMM, DE_DOT, KC_UP, DE_Y, KC_LALT, KC_LALT, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT,
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, M(UMS), UM, KC_DELT,
KC_DELT, KC_PGUP, KC_PGUP,
KC_PGDN, KC_PGDN, KC_ENTER, KC_SPACE
KC_ENTER, KC_SPACE), ),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | |EXLM|DQOT|PARA| | | | ! | | | | |RING| | * | |EXLM|DQOT|PARA| | | | | | | | |RING| |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | |ASTR|PIPE|SLSH|LCBR|RCBR| | ! |HASH|LESS|MORE| |DQOT| | * | |ASTR|PIPE|SLSH|LCBR|RCBR| | |HASH|LESS|MORE| |DQOT| |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | |UNDS|MINS|AMPR|LBRC|RBRC|------! !------!DLR |LPRN|RPRN|TILD|QUOT|QST | * | |UNDS|MINS|AMPR|LBRC|RBRC|-----!-----!DLR |LPRN|RPRN|TILD|QUOT| QST |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | |PLUS| EQL| | | | ! |BSLS|PERC|SCLN|COLN| | | * | | |PLUS|EQL | | | | |BSLS|PERC|SCLN|COLN| | |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L1] = KEYMAP( [L1] = KEYMAP(
KC_TRNS, KC_TRNS, DE_EXLM, DE_DQOT, DE_PARA, KC_TRNS, KC_TRNS, KC_TRNS,
DE_EXLM, DE_DQOT, DE_PARA, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_ASTR, DE_PIPE, DE_SLSH, DE_LCBR, DE_RCBR, KC_TRNS,
DE_ASTR, DE_PIPE, DE_SLSH, DE_LCBR, DE_RCBR, KC_TRNS, KC_TRNS, KC_TRNS, DE_UNDS, DE_MINS, DE_AMPR, DE_LBRC, DE_RBRC,
DE_UNDS, DE_MINS, DE_AMPR, DE_LBRC, DE_RBRC, KC_TRNS, KC_TRNS, KC_TRNS, DE_PLUS, DE_EQL, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, DE_PLUS, DE_EQL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_RING, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_RING, KC_TRNS,
DE_HASH, DE_LESS, DE_MORE, KC_TRNS, DE_DQOT, KC_TRNS, DE_DLR, KC_TRNS, DE_HASH, DE_LESS, DE_MORE, KC_TRNS, DE_DQOT, KC_TRNS,
DE_LPRN, DE_RPRN, DE_TILD, DE_QUOT, DE_QST, KC_TRNS, DE_DLR, DE_LPRN, DE_RPRN, DE_TILD, DE_QUOT, DE_QST,
DE_BSLS, DE_PERC, DE_SCLN, DE_COLN, M(UC_UPWARDS_ARROW), KC_TRNS, KC_TRNS, KC_TRNS, DE_BSLS, DE_PERC, DE_SCLN, DE_COLN, M(UC_UPWARDS_ARROW), KC_TRNS,
KC_TRNS, M(UC_LEFTWARDS_ARROW), M(UC_DOWNWARDS_ARROW), M(UC_RIGHTWARDS_ARROW), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_LEFTWARDS_ARROW), M(UC_DOWNWARDS_ARROW), M(UC_RIGHTWARDS_ARROW),
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | F1 | F2 | F3 | F4 | F5 | F11 | ! F12 | F6 | F7 | F8 | F9 |F10 |PEQL | * | | F1 | F2 | F3 | F4 | F5 | F11 | F12 | F6 | F7 | F8 | F9 |F10 |PEQL |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | | | | | | | ! | | P7 | P8 | P9 |PAST|PSLS | * | | | | | | | | | | P7 | P8 | P9 |PAST|PSLS |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | |------! !------! | P4 | P5 | P6 |PMNS|PMNS | * | | | | | | |-----!-----! | P4 | P5 | P6 |PMNS|PMNS |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | | | ! NLCK | | P1 | P2 | P3 |PPLS|PPLS | * | | | | | | | | NLCK| | P1 | P2 | P3 |PPLS|PPLS |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! P0 |PCMM|PDOT|PENT|PENT| * | | | | | | ! P0 |PCMM|PDOT|PENT|PENT|
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L2] = KEYMAP( [L2] = KEYMAP(
KC_TRNS, KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11,
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS,
KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_PEQL, KC_TRNS, KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_PEQL,
KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PAST, KC_PSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_PAST, KC_PSLS,
KC_P4, KC_P5, KC_P6, KC_PMNS, KC_PMNS, KC_NLCK, KC_TRNS, KC_P4, KC_P5, KC_P6, KC_PMNS, KC_PMNS,
KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PPLS, KC_PPLS, KC_P0, KC_NLCK, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PPLS, KC_PPLS,
KC_PCMM, KC_PDOT, KC_PENT, KC_PENT, KC_TRNS, KC_P0, KC_PCMM, KC_PDOT, KC_PENT, KC_PENT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | ¹ | ² | ³ | | | | ! | | | | | | | * | | ¹ | ² | ³ | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | × | ½ | ÷ | ¼ | | | ! | | | | | | | * | | × | ½ | ÷ | ¼ | | | | | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | ± | AT |EURO| |------! !------! | | | | | | * | | | ± | AT |EURO| |-----!-----! | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | ¾ | | | ! |EXLM| | | | | | * | | | | | ¾ | | | |EXLM| | | | | |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L3] = KEYMAP( [L3] = KEYMAP(
KC_TRNS, KC_TRNS, M(UC_SUPERSCRIPT_ONE), M(UC_SUPERSCRIPT_TWO), M(UC_SUPERSCRIPT_THREE), M(UC_SUPERSCRIPT_FOUR), M(UC_SUPERSCRIPT_FIVE), M(UC_FOR_ALL),
M(UC_SUP_ONE), M(UC_SUP_TWO), M(UC_SUP_THREE), M(UC_SUP_FOUR), M(UC_SUP_FIVE), M(UC_FOR_ALL), KC_TRNS, KC_TRNS, M(UC_MULTIPLICATION_SIGN), M(UC_VULGAR_FRACTION_ONE_HALF), M(UC_DIVISION_SIGN), M(UC_VULGAR_FRACTION_ONE_QUARTER), M(UC_VULGAR_FRACTION_ONE_FIFTH), KC_TRNS,
M(UC_MULTIPLICATION_SIGN), M(UC_FR_ONE_HALF), M(UC_DIVISION_SIGN), M(UC_FR_ONE_QUARTER), M(UC_FR_ONE_FIFTH), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, M(UC_PLUS_MINUS_SIGN), DE_AT, DE_EURO, M(UC_EMPTY_SET),
KC_TRNS, M(UC_PLUS_MINUS_SIGN), DE_AT, DE_EURO, M(UC_EMPTY_SET), KC_TRNS, KC_TRNS, M(UC_VULGAR_FRACTION_ONE_THIRD), M(UC_NOT_EQUAL_TO), M(UC_VULGAR_FRACTION_TWO_THIRDS), M(UC_VULGAR_FRACTION_THREE_QUARTERS), M(UC_ASYMPTOTICALLY_EQUAL_TO), KC_TRNS,
M(UC_FR_ONE_THIRD), M(UC_NOT_EQUAL_TO), M(UC_FR_TWO_THIRDS), M(UC_FR_THREE_QUARTERS), M(UC_ASYMPTOTICALLY_EQUAL_TO), KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
M(UC_SUP_SIX), M(UC_SUP_SEVEN), M(UC_SUP_EIGHT), M(UC_SUP_NINE), M(UC_SUP_ZERO), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_SUPERSCRIPT_SIX), M(UC_SUPERSCRIPT_SEVEN), M(UC_SUPERSCRIPT_EIGHT), M(UC_SUPERSCRIPT_NINE), M(UC_SUPERSCRIPT_ZERO), KC_TRNS,
M(UC_FR_ONE_SIXTH), KC_TRNS, M(UC_FR_ONE_EIGHTH), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_INFINITY), KC_TRNS, M(UC_VULGAR_FRACTION_ONE_SIXTH), KC_TRNS, M(UC_VULGAR_FRACTION_ONE_EIGHTH), KC_TRNS, KC_TRNS, KC_TRNS,
M(UC_SUP_LATIN_SMALL_LETTER_N), M(UC_THERE_EXISTS), M(UC_ELEMENT_OF), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_INFINITY), M(UC_SUPERSCRIPT_LATIN_SMALL_LETTER_N), M(UC_THERE_EXISTS), M(UC_ELEMENT_OF), KC_TRNS, KC_TRNS,
DE_EXLM, KC_TRNS, M(UC_THERE_DOES_NOT_EXIST), M(UC_NOT_AN_ELEMENT_OF), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_EXLM, KC_TRNS, M(UC_THERE_DOES_NOT_EXIST), M(UC_NOT_AN_ELEMENT_OF), KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | χ | π | φ | ω | γ | | ! | η | ξ | κ | λ | | ζ | * | | χ | π | φ | ω | γ | | | η | ξ | κ | λ | | ζ |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | υ | ι | α | ε | ο |------! !------! σ | ν | ρ | τ | δ | ς | * | | υ | ι | α | ε | ο |-----!-----! σ | ν | ρ | τ | δ | ς |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | θ | | | | | ! | β | μ | | | | ψ | * | | | θ | | | | | | β | μ | | | | ψ |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L4] = KEYMAP( [L4] = KEYMAP(
KC_TRNS, KC_TRNS, M(UC_SUBSCRIPT_ONE), M(UC_SUBSCRIPT_TWO), M(UC_SUBSCRIPT_THREE), M(UC_SUBSCRIPT_FOUR), M(UC_SUBSCRIPT_FIVE), KC_TRNS,
M(UC_SUB_ONE), M(UC_SUB_TWO), M(UC_SUB_THREE), M(UC_SUB_FOUR), M(UC_SUB_FIVE), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_SMALL_LETTER_CHI), M(UC_GREEK_SMALL_LETTER_PI), M(UC_GREEK_SMALL_LETTER_PHI), M(UC_GREEK_SMALL_LETTER_OMEGA), M(UC_GREEK_SMALL_LETTER_GAMMA), KC_TRNS,
M(UC_GR_LC_CHI), M(UC_GR_LC_PI), M(UC_GR_LC_PHI), M(UC_GR_LC_OMEGA), M(UC_GR_LC_GAMMA), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_SMALL_LETTER_UPSILON), M(UC_GREEK_SMALL_LETTER_IOTA), M(UC_GREEK_SMALL_LETTER_ALPHA), M(UC_GREEK_SMALL_LETTER_EPSILON), M(UC_GREEK_SMALL_LETTER_OMICRON),
M(UC_GR_LC_UPSILON), M(UC_GR_LC_IOTA), M(UC_GR_LC_ALPHA), M(UC_GR_LC_EPSILON), M(UC_GR_LC_OMICRON), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_SMALL_LETTER_THETA), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, M(UC_GR_LC_THETA), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
M(UC_SUB_SIX), M(UC_SUB_SEVEN), M(UC_SUB_EIGHT), M(UC_SUB_NINE), M(UC_SUB_ZERO), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_SUBSCRIPT_SIX), M(UC_SUBSCRIPT_SEVEN), M(UC_SUBSCRIPT_EIGHT), M(UC_SUBSCRIPT_NINE), M(UC_SUBSCRIPT_ZERO), KC_TRNS,
M(UC_GR_LC_ETA), M(UC_GR_LC_XI), M(UC_GR_LC_KAPPA), M(UC_GR_LC_LAMDA), KC_TRNS, M(UC_GR_LC_ZETA), M(UC_GR_LC_SIGMA), KC_TRNS, M(UC_GREEK_SMALL_LETTER_ETA), M(UC_GREEK_SMALL_LETTER_XI), M(UC_GREEK_SMALL_LETTER_KAPPA), M(UC_GREEK_SMALL_LETTER_LAMDA), KC_TRNS, M(UC_GREEK_SMALL_LETTER_ZETA),
M(UC_GR_LC_NU), M(UC_GR_LC_RHO), M(UC_GR_LC_TAU), M(UC_GR_LC_DELTA), M(UC_GR_LC_FINAL_SIGMA), KC_TRNS, M(UC_GREEK_SMALL_LETTER_SIGMA), M(UC_GREEK_SMALL_LETTER_NU), M(UC_GREEK_SMALL_LETTER_RHO), M(UC_GREEK_SMALL_LETTER_TAU), M(UC_GREEK_SMALL_LETTER_DELTA), M(UC_GREEK_SMALL_LETTER_FINAL_SIGMA),
M(UC_GR_LC_BETA), M(UC_GR_LC_MU), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GR_LC_PSI), KC_TRNS, KC_TRNS, M(UC_GREEK_SMALL_LETTER_BETA), M(UC_GREEK_SMALL_LETTER_MU), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_SMALL_LETTER_PSI),
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | Χ | Π | Φ | Ω | Γ | | ! | Η | Ξ | Κ | Λ | | Ζ | * | | Χ | Π | Φ | Ω | Γ | | | Η | Ξ | Κ | Λ | | Ζ |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | Υ | Ι | Α | Ε | Ο |------! !------! Σ | Ν | Ρ | Τ | Δ | | * | | Υ | Ι | Α | Ε | Ο |-----!-----! Σ | Ν | Ρ | Τ | Δ | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | Θ | | | | | ! | Β | Μ | | | | Ψ | * | | | Θ | | | | | | Β | Μ | | | | Ψ |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L5] = KEYMAP( [L5] = KEYMAP(
KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
M(UC_GR_UC_CHI), M(UC_GR_UC_PI), M(UC_GR_UC_PHI), M(UC_GR_UC_OMEGA), M(UC_GR_UC_GAMMA), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_CHI), M(UC_GREEK_CAPITAL_LETTER_PI), M(UC_GREEK_CAPITAL_LETTER_PHI), M(UC_GREEK_CAPITAL_LETTER_OMEGA), M(UC_GREEK_CAPITAL_LETTER_GAMMA), KC_TRNS,
M(UC_GR_UC_UPSILON), M(UC_GR_UC_IOTA), M(UC_GR_UC_ALPHA), M(UC_GR_UC_EPSILON), M(UC_GR_UC_OMICRON), KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_UPSILON), M(UC_GREEK_CAPITAL_LETTER_IOTA), M(UC_GREEK_CAPITAL_LETTER_ALPHA), M(UC_GREEK_CAPITAL_LETTER_EPSILON), M(UC_GREEK_CAPITAL_LETTER_OMICRON),
KC_TRNS, M(UC_GR_UC_THETA), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_THETA), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
M(UC_GR_UC_ETA), M(UC_GR_UC_XI), M(UC_GR_UC_KAPPA), M(UC_GR_UC_LAMDA), KC_TRNS, M(UC_GR_UC_ZETA), M(UC_GR_UC_SIGMA), KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_ETA), M(UC_GREEK_CAPITAL_LETTER_XI), M(UC_GREEK_CAPITAL_LETTER_KAPPA), M(UC_GREEK_CAPITAL_LETTER_LAMDA), KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_ZETA),
M(UC_GR_UC_NU), M(UC_GR_UC_RHO), M(UC_GR_UC_TAU), M(UC_GR_UC_DELTA), KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_SIGMA), M(UC_GREEK_CAPITAL_LETTER_NU), M(UC_GREEK_CAPITAL_LETTER_RHO), M(UC_GREEK_CAPITAL_LETTER_TAU), M(UC_GREEK_CAPITAL_LETTER_DELTA), KC_TRNS,
M(UC_GR_UC_BETA), M(UC_GR_UC_MU), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GR_UC_PSI), KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_BETA), M(UC_GREEK_CAPITAL_LETTER_MU), KC_TRNS, KC_TRNS, KC_TRNS, M(UC_GREEK_CAPITAL_LETTER_PSI),
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | |------! !------! | | | | | | * | | | | | | |-----!-----! | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L6] = KEYMAP( [L6] = KEYMAP(
KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
@ -367,28 +374,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | |------! !------! | | | | | | * | | | | | | |-----!-----! | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L7] = KEYMAP( [L7] = KEYMAP(
KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
@ -404,28 +412,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
/* /*
* .-------------------------------------. .-------------------------------------. * .------------------------------------.------------------------------------.
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! * !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | |------! !------! | | | | | | * | | | | | | |-----!-----! | | | | | |
* !-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! * !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
* | | | | | | | | ! | | | | | | | * | | | | | | | | | | | | | | |
* '-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' * '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
* | | | | | | ! | | | | | * | | | | | | ! | | | | |
* '------------------------'.-------------. .-------------.'------------------------' * '------------------------' '------------------------'
* .-----------. .-----------.
* | | | ! | | * | | | ! | |
* .------+------+------! !------+------+------. * .-----+-----+-----! !-----+-----+-----.
* ! ! | | ! | ! ! * ! ! | | ! | ! !
* ! ! !------! !------! ! ! * ! ! !-----! !-----! ! !
* | | | | ! | | | * | | | | ! | | |
* '--------------------' '--------------------' * '-----------------' '-----------------'
*/ */
[L8] = KEYMAP( [L8] = KEYMAP(
KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
@ -441,11 +450,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS), KC_TRNS, KC_TRNS, KC_TRNS
),
}; };
const uint16_t PROGMEM fn_actions[] = { const uint16_t PROGMEM fn_actions[] = {};
};
#define UC_MODE_WIN 0 #define UC_MODE_WIN 0
#define UC_MODE_LINUX 1 #define UC_MODE_LINUX 1
@ -458,7 +467,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
} }
// MACRODOWN only works in this function // MACRODOWN only works in this function
switch(id) { switch(id) {
case UMS: case UM:
unicode_mode = (unicode_mode + 1) % 2; unicode_mode = (unicode_mode + 1) % 2;
break; break;
@ -467,762 +476,762 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
} }
if (unicode_mode == UC_MODE_WIN) { if (unicode_mode == UC_MODE_WIN) {
switch(id) { switch(id) {
case UC_UPWARDS_ARROW: case UC_GREEK_SMALL_LETTER_OMICRON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(F), U(LALT), END
); );
case UC_LEFTWARDS_ARROW: case UC_LEFTWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_0), U(LALT), END
); );
case UC_DOWNWARDS_ARROW: case UC_GREEK_CAPITAL_LETTER_RHO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_1), U(LALT), END
); );
case UC_RIGHTWARDS_ARROW: case UC_SUBSCRIPT_THREE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_3), U(LALT), END
); );
case UC_SUP_ONE: case UC_VULGAR_FRACTION_ONE_EIGHTH:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(B), U(LALT), END
); );
case UC_SUP_TWO: case UC_GREEK_SMALL_LETTER_LAMDA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(B), U(LALT), END
); );
case UC_SUP_THREE: case UC_VULGAR_FRACTION_ONE_THIRD:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_3), U(LALT), END
); );
case UC_SUP_FOUR: case UC_GREEK_SMALL_LETTER_XI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(E), U(LALT), END
); );
case UC_SUP_FIVE: case UC_THERE_DOES_NOT_EXIST:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_4), U(LALT), END
); );
case UC_FOR_ALL: case UC_SUPERSCRIPT_ONE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_9), U(LALT), END
); );
case UC_SUP_SIX: case UC_GREEK_SMALL_LETTER_BETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_2), U(LALT), END
); );
case UC_SUP_SEVEN: case UC_SUBSCRIPT_FIVE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_5), U(LALT), END
); );
case UC_SUP_EIGHT: case UC_GREEK_CAPITAL_LETTER_IOTA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_9), U(LALT), END
); );
case UC_SUP_NINE: case UC_VULGAR_FRACTION_ONE_FIFTH:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_5), U(LALT), END
); );
case UC_SUP_ZERO: case UC_GREEK_SMALL_LETTER_PSI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_8), U(LALT), END
); );
case UC_MULTIPLICATION_SIGN: case UC_SUBSCRIPT_NINE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(D), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_9), U(LALT), END
); );
case UC_FR_ONE_HALF: case UC_SUPERSCRIPT_FOUR:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(D), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_4), U(LALT), END
); );
case UC_DIVISION_SIGN: case UC_RIGHTWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(F), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_2), U(LALT), END
); );
case UC_FR_ONE_QUARTER: case UC_SUPERSCRIPT_SIX:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(C), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_6), U(LALT), END
); );
case UC_FR_ONE_FIFTH: case UC_DOWNWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_3), U(LALT), END
); );
case UC_FR_ONE_SIXTH: case UC_GREEK_SMALL_LETTER_PI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_0), U(LALT), END
); );
case UC_FR_ONE_EIGHTH: case UC_SUPERSCRIPT_TWO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(B), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_2), U(LALT), END
); );
case UC_PLUS_MINUS_SIGN: case UC_GREEK_CAPITAL_LETTER_OMEGA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_9), U(LALT), END
); );
case UC_EMPTY_SET: case UC_GREEK_CAPITAL_LETTER_PSI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_8), U(LALT), END
); );
case UC_INFINITY: case UC_SUBSCRIPT_FOUR:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_1), T(E), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_4), U(LALT), END
); );
case UC_SUP_LATIN_SMALL_LETTER_N: case UC_GREEK_CAPITAL_LETTER_NU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(F), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(D), U(LALT), END
); );
case UC_THERE_EXISTS: case UC_DIVISION_SIGN:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(F), T(KP_7), U(LALT), END
); );
case UC_ELEMENT_OF: case UC_GREEK_SMALL_LETTER_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_3), U(LALT), END
); );
case UC_FR_ONE_THIRD: case UC_GREEK_SMALL_LETTER_RHO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_1), U(LALT), END
); );
case UC_NOT_EQUAL_TO: case UC_VULGAR_FRACTION_ONE_SIXTH:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_6), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_9), U(LALT), END
); );
case UC_FR_TWO_THIRDS: case UC_GREEK_SMALL_LETTER_GAMMA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_3), U(LALT), END
); );
case UC_FR_THREE_QUARTERS: case UC_VULGAR_FRACTION_TWO_THIRDS:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(E), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_5), T(KP_4), U(LALT), END
); );
case UC_ASYMPTOTICALLY_EQUAL_TO: case UC_GREEK_SMALL_LETTER_NU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_4), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(D), U(LALT), END
); );
case UC_THERE_DOES_NOT_EXIST: case UC_GREEK_SMALL_LETTER_ZETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_6), U(LALT), END
); );
case UC_NOT_AN_ELEMENT_OF: case UC_GREEK_SMALL_LETTER_EPSILON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_5), U(LALT), END
); );
case UC_SUB_ONE: case UC_GREEK_SMALL_LETTER_KAPPA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(A), U(LALT), END
); );
case UC_SUB_TWO: case UC_SUPERSCRIPT_SEVEN:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_7), U(LALT), END
); );
case UC_SUB_THREE: case UC_GREEK_CAPITAL_LETTER_PI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_0), U(LALT), END
); );
case UC_SUB_FOUR: case UC_GREEK_SMALL_LETTER_FINAL_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_2), U(LALT), END
); );
case UC_SUB_FIVE: case UC_GREEK_CAPITAL_LETTER_XI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(E), U(LALT), END
); );
case UC_SUB_SIX: case UC_GREEK_SMALL_LETTER_THETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_8), U(LALT), END
); );
case UC_SUB_SEVEN: case UC_GREEK_SMALL_LETTER_ETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_7), U(LALT), END
); );
case UC_SUB_EIGHT: case UC_SUBSCRIPT_TWO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_2), U(LALT), END
); );
case UC_SUB_NINE: case UC_ASYMPTOTICALLY_EQUAL_TO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_4), T(KP_3), U(LALT), END
); );
case UC_SUB_ZERO: case UC_GREEK_SMALL_LETTER_ALPHA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_1), U(LALT), END
); );
case UC_GR_LC_CHI: case UC_GREEK_CAPITAL_LETTER_PHI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_6), U(LALT), END
); );
case UC_GR_LC_PI: case UC_GREEK_SMALL_LETTER_PHI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_6), U(LALT), END
); );
case UC_GR_LC_PHI: case UC_INFINITY:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_1), T(E), U(LALT), END
); );
case UC_GR_LC_OMEGA: case UC_GREEK_CAPITAL_LETTER_OMICRON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(F), U(LALT), END
); );
case UC_GR_LC_GAMMA: case UC_ELEMENT_OF:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_8), U(LALT), END
); );
case UC_GR_LC_ETA: case UC_MULTIPLICATION_SIGN:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(D), T(KP_7), U(LALT), END
); );
case UC_GR_LC_XI: case UC_SUBSCRIPT_ZERO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(E), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_0), U(LALT), END
); );
case UC_GR_LC_KAPPA: case UC_GREEK_CAPITAL_LETTER_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(A), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_3), U(LALT), END
); );
case UC_GR_LC_LAMDA: case UC_GREEK_SMALL_LETTER_OMEGA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(B), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_9), U(LALT), END
); );
case UC_GR_LC_ZETA: case UC_SUBSCRIPT_ONE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_1), U(LALT), END
); );
case UC_GR_LC_UPSILON: case UC_GREEK_CAPITAL_LETTER_ZETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_6), U(LALT), END
); );
case UC_GR_LC_IOTA: case UC_GREEK_SMALL_LETTER_TAU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_4), U(LALT), END
); );
case UC_GR_LC_ALPHA: case UC_SUPERSCRIPT_FIVE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_5), U(LALT), END
); );
case UC_GR_LC_EPSILON: case UC_THERE_EXISTS:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_3), U(LALT), END
); );
case UC_GR_LC_OMICRON: case UC_PLUS_MINUS_SIGN:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(F), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_1), U(LALT), END
); );
case UC_GR_LC_SIGMA: case UC_VULGAR_FRACTION_THREE_QUARTERS:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(E), U(LALT), END
); );
case UC_GR_LC_NU: case UC_SUPERSCRIPT_THREE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(D), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(KP_3), U(LALT), END
); );
case UC_GR_LC_RHO: case UC_EMPTY_SET:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_5), U(LALT), END
); );
case UC_GR_LC_TAU: case UC_UPWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_1), T(KP_9), T(KP_1), U(LALT), END
); );
case UC_GR_LC_DELTA: case UC_SUPERSCRIPT_NINE:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_9), U(LALT), END
); );
case UC_GR_LC_FINAL_SIGMA: case UC_GREEK_SMALL_LETTER_DELTA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_4), U(LALT), END
); );
case UC_GR_LC_THETA: case UC_GREEK_SMALL_LETTER_MU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(C), U(LALT), END
); );
case UC_GR_LC_BETA: case UC_GREEK_CAPITAL_LETTER_KAPPA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(A), U(LALT), END
); );
case UC_GR_LC_MU: case UC_SUBSCRIPT_EIGHT:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(C), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_8), U(LALT), END
); );
case UC_GR_LC_PSI: case UC_GREEK_CAPITAL_LETTER_ALPHA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_1), U(LALT), END
); );
case UC_GR_UC_CHI: case UC_SUBSCRIPT_SEVEN:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_7), U(LALT), END
); );
case UC_GR_UC_PI: case UC_GREEK_CAPITAL_LETTER_BETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_0), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_2), U(LALT), END
); );
case UC_GR_UC_PHI: case UC_GREEK_CAPITAL_LETTER_ETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_7), U(LALT), END
); );
case UC_GR_UC_OMEGA: case UC_SUPERSCRIPT_EIGHT:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_8), U(LALT), END
); );
case UC_GR_UC_GAMMA: case UC_SUPERSCRIPT_ZERO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(KP_0), U(LALT), END
); );
case UC_GR_UC_ETA: case UC_NOT_AN_ELEMENT_OF:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_7), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_9), U(LALT), END
); );
case UC_GR_UC_XI: case UC_GREEK_SMALL_LETTER_UPSILON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(E), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_5), U(LALT), END
); );
case UC_GR_UC_KAPPA: case UC_NOT_EQUAL_TO:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(A), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_6), T(KP_0), U(LALT), END
); );
case UC_GR_UC_LAMDA: case UC_GREEK_CAPITAL_LETTER_CHI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(B), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_7), U(LALT), END
); );
case UC_GR_UC_ZETA: case UC_FOR_ALL:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_6), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_2), T(KP_0), T(KP_0), U(LALT), END
); );
case UC_GR_UC_UPSILON: case UC_GREEK_CAPITAL_LETTER_TAU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_4), U(LALT), END
); );
case UC_GR_UC_IOTA: case UC_VULGAR_FRACTION_ONE_QUARTER:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_9), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(C), U(LALT), END
); );
case UC_GR_UC_ALPHA: case UC_GREEK_SMALL_LETTER_CHI:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(C), T(KP_7), U(LALT), END
); );
case UC_GR_UC_EPSILON: case UC_GREEK_CAPITAL_LETTER_THETA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_5), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_8), U(LALT), END
); );
case UC_GR_UC_OMICRON: case UC_GREEK_SMALL_LETTER_IOTA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(F), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(B), T(KP_9), U(LALT), END
); );
case UC_GR_UC_SIGMA: case UC_GREEK_CAPITAL_LETTER_LAMDA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_3), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(B), U(LALT), END
); );
case UC_GR_UC_NU: case UC_SUPERSCRIPT_LATIN_SMALL_LETTER_N:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(D), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_7), T(F), U(LALT), END
); );
case UC_GR_UC_RHO: case UC_GREEK_CAPITAL_LETTER_UPSILON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_1), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_5), U(LALT), END
); );
case UC_GR_UC_TAU: case UC_GREEK_CAPITAL_LETTER_MU:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(C), U(LALT), END
); );
case UC_GR_UC_DELTA: case UC_GREEK_CAPITAL_LETTER_EPSILON:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_4), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_5), U(LALT), END
); );
case UC_GR_UC_THETA: case UC_GREEK_CAPITAL_LETTER_GAMMA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_3), U(LALT), END
); );
case UC_GR_UC_BETA: case UC_SUBSCRIPT_SIX:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_2), U(LALT), END D(LALT), T(KP_PLUS), T(KP_2), T(KP_0), T(KP_8), T(KP_6), U(LALT), END
); );
case UC_GR_UC_MU: case UC_GREEK_CAPITAL_LETTER_DELTA:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(C), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(KP_9), T(KP_4), U(LALT), END
); );
case UC_GR_UC_PSI: case UC_VULGAR_FRACTION_ONE_HALF:
return MACRODOWN( return MACRODOWN(
D(LALT), T(KP_PLUS), T(KP_0), T(KP_3), T(A), T(KP_8), U(LALT), END D(LALT), T(KP_PLUS), T(KP_0), T(KP_0), T(B), T(D), U(LALT), END
); );
default: default:
break; break;
} }
} else if (unicode_mode == UC_MODE_LINUX) { } else if (unicode_mode == UC_MODE_LINUX) {
switch(id) { switch(id) {
case UC_UPWARDS_ARROW: case UC_GREEK_SMALL_LETTER_OMICRON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(F), T(KP_ENTER), END
); );
case UC_LEFTWARDS_ARROW: case UC_LEFTWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_0), T(KP_ENTER), END
); );
case UC_DOWNWARDS_ARROW: case UC_GREEK_CAPITAL_LETTER_RHO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_1), T(KP_ENTER), END
); );
case UC_RIGHTWARDS_ARROW: case UC_SUBSCRIPT_THREE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_3), T(KP_ENTER), END
); );
case UC_SUP_ONE: case UC_VULGAR_FRACTION_ONE_EIGHTH:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(B), T(KP_ENTER), END
); );
case UC_SUP_TWO: case UC_GREEK_SMALL_LETTER_LAMDA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(B), T(KP_ENTER), END
); );
case UC_SUP_THREE: case UC_VULGAR_FRACTION_ONE_THIRD:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_3), T(KP_ENTER), END
); );
case UC_SUP_FOUR: case UC_GREEK_SMALL_LETTER_XI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(E), T(KP_ENTER), END
); );
case UC_SUP_FIVE: case UC_THERE_DOES_NOT_EXIST:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_4), T(KP_ENTER), END
); );
case UC_FOR_ALL: case UC_SUPERSCRIPT_ONE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_9), T(KP_ENTER), END
); );
case UC_SUP_SIX: case UC_GREEK_SMALL_LETTER_BETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_2), T(KP_ENTER), END
); );
case UC_SUP_SEVEN: case UC_SUBSCRIPT_FIVE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_5), T(KP_ENTER), END
); );
case UC_SUP_EIGHT: case UC_GREEK_CAPITAL_LETTER_IOTA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_9), T(KP_ENTER), END
); );
case UC_SUP_NINE: case UC_VULGAR_FRACTION_ONE_FIFTH:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_5), T(KP_ENTER), END
); );
case UC_SUP_ZERO: case UC_GREEK_SMALL_LETTER_PSI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_8), T(KP_ENTER), END
); );
case UC_MULTIPLICATION_SIGN: case UC_SUBSCRIPT_NINE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(D), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_9), T(KP_ENTER), END
); );
case UC_FR_ONE_HALF: case UC_SUPERSCRIPT_FOUR:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(D), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_4), T(KP_ENTER), END
); );
case UC_DIVISION_SIGN: case UC_RIGHTWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(F), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_2), T(KP_ENTER), END
); );
case UC_FR_ONE_QUARTER: case UC_SUPERSCRIPT_SIX:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(C), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_6), T(KP_ENTER), END
); );
case UC_FR_ONE_FIFTH: case UC_DOWNWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_3), T(KP_ENTER), END
); );
case UC_FR_ONE_SIXTH: case UC_GREEK_SMALL_LETTER_PI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_0), T(KP_ENTER), END
); );
case UC_FR_ONE_EIGHTH: case UC_SUPERSCRIPT_TWO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(B), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_2), T(KP_ENTER), END
); );
case UC_PLUS_MINUS_SIGN: case UC_GREEK_CAPITAL_LETTER_OMEGA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_9), T(KP_ENTER), END
); );
case UC_EMPTY_SET: case UC_GREEK_CAPITAL_LETTER_PSI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_8), T(KP_ENTER), END
); );
case UC_INFINITY: case UC_SUBSCRIPT_FOUR:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_1), T(E), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_4), T(KP_ENTER), END
); );
case UC_SUP_LATIN_SMALL_LETTER_N: case UC_GREEK_CAPITAL_LETTER_NU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(F), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(D), T(KP_ENTER), END
); );
case UC_THERE_EXISTS: case UC_DIVISION_SIGN:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(F), T(KP_7), T(KP_ENTER), END
); );
case UC_ELEMENT_OF: case UC_GREEK_SMALL_LETTER_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_3), T(KP_ENTER), END
); );
case UC_FR_ONE_THIRD: case UC_GREEK_SMALL_LETTER_RHO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_1), T(KP_ENTER), END
); );
case UC_NOT_EQUAL_TO: case UC_VULGAR_FRACTION_ONE_SIXTH:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_6), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_9), T(KP_ENTER), END
); );
case UC_FR_TWO_THIRDS: case UC_GREEK_SMALL_LETTER_GAMMA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_3), T(KP_ENTER), END
); );
case UC_FR_THREE_QUARTERS: case UC_VULGAR_FRACTION_TWO_THIRDS:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(E), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_5), T(KP_4), T(KP_ENTER), END
); );
case UC_ASYMPTOTICALLY_EQUAL_TO: case UC_GREEK_SMALL_LETTER_NU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_4), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(D), T(KP_ENTER), END
); );
case UC_THERE_DOES_NOT_EXIST: case UC_GREEK_SMALL_LETTER_ZETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_6), T(KP_ENTER), END
); );
case UC_NOT_AN_ELEMENT_OF: case UC_GREEK_SMALL_LETTER_EPSILON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_5), T(KP_ENTER), END
); );
case UC_SUB_ONE: case UC_GREEK_SMALL_LETTER_KAPPA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(A), T(KP_ENTER), END
); );
case UC_SUB_TWO: case UC_SUPERSCRIPT_SEVEN:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_7), T(KP_ENTER), END
); );
case UC_SUB_THREE: case UC_GREEK_CAPITAL_LETTER_PI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_0), T(KP_ENTER), END
); );
case UC_SUB_FOUR: case UC_GREEK_SMALL_LETTER_FINAL_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_2), T(KP_ENTER), END
); );
case UC_SUB_FIVE: case UC_GREEK_CAPITAL_LETTER_XI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(E), T(KP_ENTER), END
); );
case UC_SUB_SIX: case UC_GREEK_SMALL_LETTER_THETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_8), T(KP_ENTER), END
); );
case UC_SUB_SEVEN: case UC_GREEK_SMALL_LETTER_ETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_7), T(KP_ENTER), END
); );
case UC_SUB_EIGHT: case UC_SUBSCRIPT_TWO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_2), T(KP_ENTER), END
); );
case UC_SUB_NINE: case UC_ASYMPTOTICALLY_EQUAL_TO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_4), T(KP_3), T(KP_ENTER), END
); );
case UC_SUB_ZERO: case UC_GREEK_SMALL_LETTER_ALPHA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_1), T(KP_ENTER), END
); );
case UC_GR_LC_CHI: case UC_GREEK_CAPITAL_LETTER_PHI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_6), T(KP_ENTER), END
); );
case UC_GR_LC_PI: case UC_GREEK_SMALL_LETTER_PHI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_6), T(KP_ENTER), END
); );
case UC_GR_LC_PHI: case UC_INFINITY:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_1), T(E), T(KP_ENTER), END
); );
case UC_GR_LC_OMEGA: case UC_GREEK_CAPITAL_LETTER_OMICRON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(F), T(KP_ENTER), END
); );
case UC_GR_LC_GAMMA: case UC_ELEMENT_OF:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_8), T(KP_ENTER), END
); );
case UC_GR_LC_ETA: case UC_MULTIPLICATION_SIGN:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(D), T(KP_7), T(KP_ENTER), END
); );
case UC_GR_LC_XI: case UC_SUBSCRIPT_ZERO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(E), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_0), T(KP_ENTER), END
); );
case UC_GR_LC_KAPPA: case UC_GREEK_CAPITAL_LETTER_SIGMA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(A), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_3), T(KP_ENTER), END
); );
case UC_GR_LC_LAMDA: case UC_GREEK_SMALL_LETTER_OMEGA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(B), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_9), T(KP_ENTER), END
); );
case UC_GR_LC_ZETA: case UC_SUBSCRIPT_ONE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_1), T(KP_ENTER), END
); );
case UC_GR_LC_UPSILON: case UC_GREEK_CAPITAL_LETTER_ZETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_6), T(KP_ENTER), END
); );
case UC_GR_LC_IOTA: case UC_GREEK_SMALL_LETTER_TAU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_4), T(KP_ENTER), END
); );
case UC_GR_LC_ALPHA: case UC_SUPERSCRIPT_FIVE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_5), T(KP_ENTER), END
); );
case UC_GR_LC_EPSILON: case UC_THERE_EXISTS:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_3), T(KP_ENTER), END
); );
case UC_GR_LC_OMICRON: case UC_PLUS_MINUS_SIGN:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(F), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_1), T(KP_ENTER), END
); );
case UC_GR_LC_SIGMA: case UC_VULGAR_FRACTION_THREE_QUARTERS:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(E), T(KP_ENTER), END
); );
case UC_GR_LC_NU: case UC_SUPERSCRIPT_THREE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(D), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(KP_3), T(KP_ENTER), END
); );
case UC_GR_LC_RHO: case UC_EMPTY_SET:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_5), T(KP_ENTER), END
); );
case UC_GR_LC_TAU: case UC_UPWARDS_ARROW:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_1), T(KP_9), T(KP_1), T(KP_ENTER), END
); );
case UC_GR_LC_DELTA: case UC_SUPERSCRIPT_NINE:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_9), T(KP_ENTER), END
); );
case UC_GR_LC_FINAL_SIGMA: case UC_GREEK_SMALL_LETTER_DELTA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_4), T(KP_ENTER), END
); );
case UC_GR_LC_THETA: case UC_GREEK_SMALL_LETTER_MU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(C), T(KP_ENTER), END
); );
case UC_GR_LC_BETA: case UC_GREEK_CAPITAL_LETTER_KAPPA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(A), T(KP_ENTER), END
); );
case UC_GR_LC_MU: case UC_SUBSCRIPT_EIGHT:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(C), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_8), T(KP_ENTER), END
); );
case UC_GR_LC_PSI: case UC_GREEK_CAPITAL_LETTER_ALPHA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_1), T(KP_ENTER), END
); );
case UC_GR_UC_CHI: case UC_SUBSCRIPT_SEVEN:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_7), T(KP_ENTER), END
); );
case UC_GR_UC_PI: case UC_GREEK_CAPITAL_LETTER_BETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_0), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_2), T(KP_ENTER), END
); );
case UC_GR_UC_PHI: case UC_GREEK_CAPITAL_LETTER_ETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_7), T(KP_ENTER), END
); );
case UC_GR_UC_OMEGA: case UC_SUPERSCRIPT_EIGHT:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_8), T(KP_ENTER), END
); );
case UC_GR_UC_GAMMA: case UC_SUPERSCRIPT_ZERO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(KP_0), T(KP_ENTER), END
); );
case UC_GR_UC_ETA: case UC_NOT_AN_ELEMENT_OF:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_7), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_9), T(KP_ENTER), END
); );
case UC_GR_UC_XI: case UC_GREEK_SMALL_LETTER_UPSILON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(E), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_5), T(KP_ENTER), END
); );
case UC_GR_UC_KAPPA: case UC_NOT_EQUAL_TO:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(A), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_6), T(KP_0), T(KP_ENTER), END
); );
case UC_GR_UC_LAMDA: case UC_GREEK_CAPITAL_LETTER_CHI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(B), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_7), T(KP_ENTER), END
); );
case UC_GR_UC_ZETA: case UC_FOR_ALL:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_6), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_2), T(KP_0), T(KP_0), T(KP_ENTER), END
); );
case UC_GR_UC_UPSILON: case UC_GREEK_CAPITAL_LETTER_TAU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_4), T(KP_ENTER), END
); );
case UC_GR_UC_IOTA: case UC_VULGAR_FRACTION_ONE_QUARTER:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_9), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(C), T(KP_ENTER), END
); );
case UC_GR_UC_ALPHA: case UC_GREEK_SMALL_LETTER_CHI:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(C), T(KP_7), T(KP_ENTER), END
); );
case UC_GR_UC_EPSILON: case UC_GREEK_CAPITAL_LETTER_THETA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_5), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_8), T(KP_ENTER), END
); );
case UC_GR_UC_OMICRON: case UC_GREEK_SMALL_LETTER_IOTA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(F), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(B), T(KP_9), T(KP_ENTER), END
); );
case UC_GR_UC_SIGMA: case UC_GREEK_CAPITAL_LETTER_LAMDA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_3), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(B), T(KP_ENTER), END
); );
case UC_GR_UC_NU: case UC_SUPERSCRIPT_LATIN_SMALL_LETTER_N:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(D), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_7), T(F), T(KP_ENTER), END
); );
case UC_GR_UC_RHO: case UC_GREEK_CAPITAL_LETTER_UPSILON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_1), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_5), T(KP_ENTER), END
); );
case UC_GR_UC_TAU: case UC_GREEK_CAPITAL_LETTER_MU:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(C), T(KP_ENTER), END
); );
case UC_GR_UC_DELTA: case UC_GREEK_CAPITAL_LETTER_EPSILON:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_4), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_5), T(KP_ENTER), END
); );
case UC_GR_UC_THETA: case UC_GREEK_CAPITAL_LETTER_GAMMA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_3), T(KP_ENTER), END
); );
case UC_GR_UC_BETA: case UC_SUBSCRIPT_SIX:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_2), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_2), T(KP_0), T(KP_8), T(KP_6), T(KP_ENTER), END
); );
case UC_GR_UC_MU: case UC_GREEK_CAPITAL_LETTER_DELTA:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(C), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(KP_9), T(KP_4), T(KP_ENTER), END
); );
case UC_GR_UC_PSI: case UC_VULGAR_FRACTION_ONE_HALF:
return MACRODOWN( return MACRODOWN(
D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_3), T(A), T(KP_8), T(KP_ENTER), END D(LCTRL), D(LSHIFT), T(U), U(LCTRL), U(LSHIFT), T(KP_0), T(KP_0), T(B), T(D), T(KP_ENTER), END
); );
default: default:
break; break;
@ -1232,12 +1241,12 @@ case UC_GR_UC_PSI:
}; };
// Runs just one time when the keyboard initializes. // Runs just one time when the keyboard initializes.
void * matrix_init_user(void) { void matrix_init_user(void) {
}; };
// Runs constantly in the background, in a loop. // Runs constantly in the background, in a loop.
void * matrix_scan_user(void) { void matrix_scan_user(void) {
uint8_t layer = biton32(layer_state); uint8_t layer = biton32(layer_state);
ergodox_board_led_off(); ergodox_board_led_off();

@ -1,8 +1,14 @@
# ManuNeo Ergodox Keyboard Layout # ManuNeo Ergodox Keyboard Layout
Compile this file to a `keymap.c` file using `compile_keymap.py`
compile_keymap.py keymaps/german-manuneo/keymap.md
# Layout Config # Layout Config
{ {
"layout": "ergodox_ez",
"includes_dir": "quantum/", "includes_dir": "quantum/",
"keymaps_includes": [ "keymaps_includes": [
"ergodox_ez.h", "ergodox_ez.h",
@ -10,22 +16,14 @@
"keymap_common.h", "keymap_common.h",
"keymap_extras/keymap_german.h", "keymap_extras/keymap_german.h",
], ],
"keymap_indexes": [
[ 0, 1, 2, 3, 4, 5, 6], [38, 39, 40, 41, 42, 43, 44],
[ 7, 8, 9, 10, 11, 12, 13], [45, 46, 47, 48, 49, 50, 51],
[14, 15, 16, 17, 18, 19 ], [ 52, 53, 54, 55, 56, 57],
[20, 21, 22, 23, 24, 25, 26], [58, 59, 60, 61, 62, 63, 64],
[27, 28, 29, 30, 31 ], [ 65, 66, 67, 68, 69],
[ 32, 33], [70, 71 ],
[ 34], [72 ],
[ 35, 36, 37], [73, 74, 75 ],
],
"key_prefixes": ["DE_", "KC_"], "key_prefixes": ["DE_", "KC_"],
"filler": "-+.'!x", "filler": "-+.'!x",
"separator": "|", "separator": "|",
"macros": { "macros": {
"MUC": "", // TODO: implement macros
// "MUC": "",
}, },
// TODO: implement default unicode mode
} }
@ -34,189 +32,201 @@
## Layer 0 ## Layer 0
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
|MO(5)| 1 | 2 | 3 | 4 | 5 | ACUT | ! GRV | 6 | 7 | 8 | 9 | 0 |CIRC | |MO(5)| 1 | 2 | 3 | 4 | 5 |ACUT | GRV | 6 | 7 | 8 | 9 | 0 |CIRC |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
|MO(4)| X | P | F | W | G | HOME | !TG(2) | H | J | K | L | Q | Z | |MO(4)| X | P | F | W | G |HOME |TG(2)| H | J | K | L | Q | Z |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
|MO(1)| U | I | A | E | O |------! !------! S | N | R | T | D | SS | |MO(1)| U | I | A | E | O |-----!-----! S | N | R | T | D | SS |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
|MO(3)| UE | OE | AE | C | V | END | ! TAB | B | M |COMM| DOT| UP | Y | |MO(3)| UE | OE | AE | C | V |END | TAB | B | M |COMM| DOT| UP | Y |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | |LGUI|LALT|LCTL| !LALT| |LEFT|DOWN|RGHT| | | |LGUI|LALT|LCTL| !LALT| |LEFT|DOWN|RGHT|
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
| INS |TG(2) | !M(UMS)| DELT | .-----------. .-----------.
.------+------+------! !------+------+------. |INS |TG(2)| !M(UM)|DELT |
.-----+-----+-----! !-----+-----+-----.
! ! | APP | ! PGUP| ! ! ! ! | APP | ! PGUP| ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
|BSPC |LSFT | ESC | ! PGDN|ENTER|SPACE| |BSPC |LSFT | ESC | ! PGDN|ENTER|SPACE|
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 1 ## Layer 1
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| |EXLM|DQOT|PARA| | | | ! | | | | |RING| | | |EXLM|DQOT|PARA| | | | | | | | |RING| |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| |ASTR|PIPE|SLSH|LCBR|RCBR| | ! |HASH|LESS|MORE| |DQOT| | | |ASTR|PIPE|SLSH|LCBR|RCBR| | |HASH|LESS|MORE| |DQOT| |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| |UNDS|MINS|AMPR|LBRC|RBRC|------! !------!DLR |LPRN|RPRN|TILD|QUOT|QST | | |UNDS|MINS|AMPR|LBRC|RBRC|-----!-----!DLR |LPRN|RPRN|TILD|QUOT| QST |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | |PLUS| EQL| | | | ! |BSLS|PERC|SCLN|COLN| ↑ | | | | |PLUS|EQL | | | | |BSLS|PERC|SCLN|COLN| ↑ | |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | ← | ↓ | → | | | | | | | ! | | ← | ↓ | → |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 2 ## Layer 2
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | F1 | F2 | F3 | F4 | F5 | F11 | ! F12 | F6 | F7 | F8 | F9 |F10 |PEQL | | | F1 | F2 | F3 | F4 | F5 | F11 | F12 | F6 | F7 | F8 | F9 |F10 |PEQL |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | | | | | | | ! | | P7 | P8 | P9 |PAST|PSLS | | | | | | | | | | | P7 | P8 | P9 |PAST|PSLS |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | |------! !------! | P4 | P5 | P6 |PMNS|PMNS | | | | | | | |-----!-----! | P4 | P5 | P6 |PMNS|PMNS |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | | | ! NLCK | | P1 | P2 | P3 |PPLS|PPLS | | | | | | | | | NLCK| | P1 | P2 | P3 |PPLS|PPLS |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! P0 |PCMM|PDOT|PENT|PENT| | | | | | | ! P0 |PCMM|PDOT|PENT|PENT|
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 3 ## Layer 3
http://symbolcodes.tlt.psu.edu/bylanguage/mathchart.html http://symbolcodes.tlt.psu.edu/bylanguage/mathchart.html
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | ¹ | ² | ³ | ⁴ | ⁵ | ∀ | ! | ⁶ | ⁷ | ⁸ | ⁹ | ⁰ | | | | ¹ | ² | ³ | ⁴ | ⁵ | ∀ | | ⁶ | ⁷ | ⁸ | ⁹ | ⁰ | |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | × | ½ | ÷ | ¼ | ⅕ | | ! | ⅙ | | ⅛ | | | | | | × | ½ | ÷ | ¼ | ⅕ | | | ⅙ | | ⅛ | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | ± | AT |EURO| ∅ |------! !------! ∞ | ⁿ | ∃ | ∈ | | | | | | ± | AT |EURO| ∅ |-----!-----! ∞ | ⁿ | ∃ | ∈ | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | ⅓ | ≠ | ⅔ | ¾ | ≃ | | ! |EXLM| | ∄ | ∉ | | | | | ⅓ | ≠ | ⅔ | ¾ | ≃ | | |EXLM| | ∄ | ∉ | | |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 4 ## Layer 4
.-------------------------------------. .-------------------------------------.
| | ₁ | ₂ | ₃ | ₄ | ₅ | | ! | ₆ | ₇ | ₈ | ₉ | ₀ | | .------------------------------------.------------------------------------.
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! | | ₁ | ₂ | ₃ | ₄ | ₅ | | | ₆ | ₇ | ₈ | ₉ | ₀ | |
| | χ | π | φ | ω | γ | | ! | η | ξ | κ | λ | | ζ | !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! | | χ | π | φ | ω | γ | | | η | ξ | κ | λ | | ζ |
| | υ | ι | α | ε | ο |------! !------! σ | ν | ρ | τ | δ | ς | !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! | | υ | ι | α | ε | ο |-----!-----! σ | ν | ρ | τ | δ | ς |
| | | θ | | | | | ! | β | μ | | | | ψ | !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' | | | θ | | | | | | β | μ | | | | ψ |
'-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 5 ## Layer 5
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | Χ | Π | Φ | Ω | Γ | | ! | Η | Ξ | Κ | Λ | | Ζ | | | Χ | Π | Φ | Ω | Γ | | | Η | Ξ | Κ | Λ | | Ζ |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | Υ | Ι | Α | Ε | Ο |------! !------! Σ | Ν | Ρ | Τ | Δ | | | | Υ | Ι | Α | Ε | Ο |-----!-----! Σ | Ν | Ρ | Τ | Δ | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | Θ | | | | | ! | Β | Μ | | | | Ψ | | | | Θ | | | | | | Β | Μ | | | | Ψ |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 6 ## Layer 6
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | |------! !------! | | | | | | | | | | | | |-----!-----! | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 7 ## Layer 7
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | |------! !------! | | | | | | | | | | | | |-----!-----! | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'
## Layer 8 ## Layer 8
.-------------------------------------. .-------------------------------------. .------------------------------------.------------------------------------.
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----+----+-----------! !------+----+----+----+----+----+-----! !-----+----+----+----+----+----------!-----+----+----+----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | |------! !------! | | | | | | | | | | | | |-----!-----! | | | | | |
!-----+----+----+----x----x----! ! ! !----x----x----+----+----+-----! !-----+----+----+----x----x----! ! !----x----x----+----+----+-----!
| | | | | | | | ! | | | | | | | | | | | | | | | | | | | | | |
'-----+----+----+----+----+-----------' '-----------+----+----+----+----+-----' '-----+----+----+----+----+----------'----------+----+----+----+----+-----'
| | | | | | ! | | | | | | | | | | | ! | | | | |
'------------------------'.-------------. .-------------.'------------------------' '------------------------' '------------------------'
.-----------. .-----------.
| | | ! | | | | | ! | |
.------+------+------! !------+------+------. .-----+-----+-----! !-----+-----+-----.
! ! | | ! | ! ! ! ! | | ! | ! !
! ! !------! !------! ! ! ! ! !-----! !-----! ! !
| | | | ! | | | | | | | ! | | |
'--------------------' '--------------------' '-----------------' '-----------------'

Loading…
Cancel
Save