1
0
Fork 0

userspace and keymap changes for rupa (#10489)

* userspace and keymap changes for rupa

* remove layout wrappers and blocker rows from wrappers

handle this in keymaps for now
This commit is contained in:
rupa 2020-11-10 00:04:46 -05:00 committed by GitHub
parent 53f11668a3
commit a9f65b760a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 520 additions and 133 deletions

52
users/rupa/unicode.h Executable file → Normal file
View file

@ -20,24 +20,58 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if defined(UNICODEMAP_ENABLE)
enum unicode_names {
CHEK,
/*
DI1, // ⚀
DI2, // ⚁
DI3, // ⚂
DI4, // ⚃
DI5, // ⚄
DI6, // ⚅
*/
CCIR, // COMBINING ⃝
CENT, // ¢
CHEK, // ✓
CKEY, // COMBINING ⃣
CUI, // ⚠
ECKS, // ✖
EFF, // ſ
HAS, // ☭
HUN, // 💯
IBNG, // ‽
IRNY, // ⸮
LALL, // ∀
LELM, // ∈
LEXI, // ∃
LPRO, // ⊢
M4, // ♩
M8, // ♪
M8B, // ♫
M16, // ♬
NEG, // COMBINING ⃠
NOPE, // 🚫
NUM, // №
OM, // ॐ
SMB, // ☻
SMW, // ☺
STB, // ★
STOP, // ⛔
STW, // ☆
};
#endif
typedef enum combined_modes {
CM_NULL = 0,
CM_CIRCLE,
CM_NO,
CM_KEYCAP,
CM_ZALGO,
CM_MAX
} combined_mode_t;
combined_mode_t combined_mode;
// random choices
const char * d6(void);
const char * dance(bool more);
const char * flip(bool back);
const char * joy(bool harder);
// like X and XP
bool u_x(const char *text);
bool u_xp(bool is_shifted, const char * shifted, const char *plain);
bool combined_text(uint16_t keycode);
void cycle_combined_mode(void);
combined_mode_t set_combined_mode(combined_mode_t mode);