Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signum3.0 remove sortedcontainers #5679

Merged
merged 2 commits into from
Apr 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions keyboards/signum/3_0/elitec/keymaps/default/generate_km.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from sortedcontainers import SortedDict
import layout
import re

Expand All @@ -11,7 +10,7 @@

def gen_uc_iter():
length = len(layout.uc_dict)
for key, value in layout.uc_dict.items():
for key, value in sorted(layout.uc_dict.items()):
length -= 1
if length:
yield (key, value, False)
Expand Down
6 changes: 2 additions & 4 deletions keyboards/signum/3_0/elitec/keymaps/default/layout.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
from sortedcontainers import SortedDict

# Add all used Unicode symbols to this list.
# The key (e.g. "SNEK") is used in keymap.c for "enum", "unicode_map" and "keymaps", so it needs to be a valid C variable name.
# The key is also used in this file to define the layout, so use recognizeable names.
# The value (e.g. "0x1f40d") is used in keymap.c for "unicode_map" and to automatically generate the "ASCII"-art comments.
# When adding new Unicode names, use "0x1f40d" until you looked up the correct Unicode code point.
uc_dict = SortedDict({
uc_dict = {
"SNEK": "0x1f40d", ## Error
## qwertz
"ACUTE": "0x00b4",
Expand Down Expand Up @@ -329,7 +327,7 @@
"NOT_PARA": "0x2226",
"TIMES_OP": "0x2297",
"NOT_DIV": "0x2224"
})
}

# Add all used Keycodes to this list.
# The key (e.g. "a") is used in keymap.c to automatically generate the comments. The first 7 chars will show as a keycap legend.
Expand Down
4 changes: 0 additions & 4 deletions keyboards/signum/3_0/elitec/keymaps/default/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ starting point to create your own layouts for the Signum 3.0 with

# Customization

- Install `python3` and [Sorted Containers
Library](http://www.grantjenks.com/docs/sortedcontainers/), `pip
install sortedcontainers`.

- Customize `layout.py` to your liking.
- Attention 1: keycodes are either translated into symbols and
function calls via the `translate()` function in `generate_km.py`
Expand Down