1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/*
Copyright 2020 rupa <rupa@lrrr.us> @rupa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "rupa.h"
#if defined(UNICODEMAP_ENABLE)
enum unicode_names {
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);
|