summaryrefslogtreecommitdiffstats
path: root/users/ericgebhart/base_layers/bepo.h
blob: 64f56ec9abf4a0b49bf3cff7a6f9a05e4f7e871f (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#pragma once
/*
  Copyright 2018-2022 Eric Gebhart <e.a.gebhart@gmail.com>

  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/>.
*/
// Maps based on BEPO  Mostly 3x12

// BEAKL 19bis - English with French optimisations.
// Least used letters in french xzykw QJÀ are fairly high.
// XZ are good choices for pushing out, from english and french,
// or using chords in both languages.

// Note: The percentages came from different sources so do not
// match between languages.
// French
/* Q	0.89 % */
/* J	0.71 % */
/* À	0.54 % */
/*-------------*/
/* X	0.42 % */
/* È	0.35 % */
/* Ê	0.24 % */
/* Z	0.21 % */
/* Y	0.19 % */
/* K	0.16 % */
/* Ô	0.07 % */
/* Û	0.05 % */
/* W	0.04 % */

/* Least used letters in english. */
/* X	0.2902%	1.48 */
/* Z	0.2722%	1.39 */
/* J	0.1965%	1.00 */
/* Q	0.1962%	(1) */


// OPtimot by @Pyjam.
/*  àjoéb fdl’qxz */
/*  aieu, ptsrn^ç */
/* êkyè.w gcmhvz */

// -- rearranged z, and ç to get 3x12
#define CARTE_OPTIMOT                           \
  carte_de_map(" çàjoéb fdl’qx ",               \
               "  aieu, ptsrn^ ",               \
               " êkyè.w gcmhvz ")

#define ___OPTIMOT_3x12___                                              \
  LANG_MAP6(                                                            \
            _CCED, _AGRV, _J, _O,    _EACU, _B,     _F, _D, _L, _QUOT, _Q,  _X, \
            _TAB,  _A,    _I, _E,    _U,    _COMM,  _P, _T, _S, _R,    _N,  _DCIR, \
            _ECIR, _K,    _Y, _EGRV, _DOT,  _W,     _G, _C, _M, _H,    _V,  _Z)

// no z or x. combos exist for them.
#define CARTE_OPTIMOT_COMPACT                  \
  carte_de_map(" àjoéb fdl’q ",                \
               " aieu, ptsrn ",                \
               " kyè.w gcmhv ")

#define ___OPTIMOT_3x10___                                             \
  LANG_MAP6(                                                           \
            _AGRV, _J, _O,    _EACU, _B,     _F, _D, _L, _QUOT, _Q,    \
            _A,    _I, _E,    _U,    _COMM,  _P, _T, _S, _R,    _N,    \
            _K,    _Y, _EGRV, _DOT,  _W,     _G, _C, _M, _H,    _V,)

// Maybe Use this for C
//BP_C_CCED = MT(BP_CCED, BP_C)

// BEPO

// No quot, à or ç
/* bépoè vdljz */
/* auie, ctsrn */
/* myx.k qghfw */
#define CARTE_BEPOc                             \
  carte_de_map("   bépoè  vdljz",               \
               "   auie,  ctsrn",               \
               "   myx.k  qghfw")

#define ___BEPOc_3x10___                                        \
  LANG_MAP(                                                     \
           _B, _EACU, _P, _O,   _EGRV,    _V, _D, _L, _J, _Z,   \
           _A, _U,    _I, _E,   _COMM,    _C, _T, _S, _R, _N,   \
           _M, _Y,    _X, _DOT, _K,       _Q, _G, _H, _F, _W)


#define CARTE_BEPO                              \
  carte_de_map(" çbépoè ^vdljz ",               \
               "  auie, ctsrnm ",               \
               " êàyx.k ’qghfw ")

#define ___BEPO_3x12___                                                 \
  LANG_MAP6(_CCED, _B,    _EACU, _P, _O,   _EGRV,    _DCIR, _V, _D, _L, _J, _Z, \
            _TAB,  _A,    _U,    _I, _E,   _COMM,    _C,    _T, _S, _R, _N, _M, \
            _ECIR, _AGRV, _Y,    _X, _DOT, _K,       _QUOT, _Q, _G, _H, _F, _W)

// dont like this one much.
/* #define ___GODOX_3x12___                                                \ */
/*   LANG_MAP6(___, _AGRV, _B, _EACU, _dot, _mins,    _DCIR, _V, _L,  _M, _X, _CCED, \ */
/*             ___,  _O,   _U, _I,    _A,   _J,       _G,    _T, _S,  _N, _R, _F, \ */
/*             ___, _Q,    _Y, _EGRV, _P,   _K,       _W,    _D, _UP, _H, _C, _Z) */
/* // E goes on left thumb. */