-
Notifications
You must be signed in to change notification settings - Fork 2
/
parameters.rb
113 lines (92 loc) · 4.11 KB
/
parameters.rb
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
=begin
Copyright (c) 2015 isty2e
This file is part of Typing fatigue analyzer.
Typing fatigue analyzer 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 3 of the License, or
(at your option) any later version.
Typing fatigue analyzer 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 Typing fatigue analyzer; if not, see <http://www.gnu.org/licenses/>.
=end
# keyboard dependent and individual values
$center_dx = 2.5 / 1.905
$center_dy = 9.0 / 1.905
# finger dependent values
$stretch_max = [1, 2, 2, 1.5, 1.5, 2, 2, 1]
$finger_burdens = [2.26, 1.39, 0.53, 0.00, 0.00, 0.53, 1.39, 2.26]
# penalty weight parameters
$radial_weight = 0.2
$curling_weight = 1.5
$hand_weight = 2.0
$angular_weight = 0.3
$outward_weight = 1.5
$finger_weight = 1.0
# parameters for base effort
$inversion_penalty = 2.0
# parameters for penalty effort
$shift_penalty = 5.0
# parameters for stroke effort
$radial_threshold = 0.75
$monotonicity_bonus = 0.1
$hand_stroke_weight = 2.0
$finger_stroke_weight = 6.0
# jaso to opt
$cho_opt = []
$jung_opt = []
$jong_opt = []
# dubeol
#$cho_opt = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅇ', 'ㅈ', 'ㅊ',
#'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' ]
#$cho_opt = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ',
#'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' ]
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅗ', 'ㅛ', 'ㅜ', 'ㅠ',
#'ㅡ', 'ㅣ']
# sebeol
#$cho_opt = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅇ', 'ㅈ', 'ㅊ',
#'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' ]
#$jung_opt = ['ㅐ', 'ㅑ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ', 'ㅜ', 'ㅠ', 'ㅡ']
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ', 'ㅜ',
#'ㅠ', 'ㅡ', 'ㅣ']
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ', 'ㅜ',
#'ㅠ', 'ㅡ', 'ㅣ', 'ㅢ']
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ',
#'ㅜ', 'ㅠ', 'ㅡ', 'ㅣ', 'ㅢ']
#$jong_opt = [ 'ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ',
#'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ']
#$jong_opt = [ 'ㄲ', 'ㄳ', 'ㄵ', 'ㄶ', 'ㄺ', 'ㄻ', 'ㄼ', 'ㄽ', 'ㄾ', 'ㄿ',
#'ㅀ', 'ㅄ' ]
# shinsebeol
#$cho_opt = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅇ', 'ㅈ', 'ㅊ',
#'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ' ]
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ',
#'ㅜ', 'ㅠ', 'ㅡ', 'ㅣ']
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅑ', 'ㅒ', 'ㅓ', 'ㅔ', 'ㅕ', 'ㅖ', 'ㅗ', 'ㅛ',
#'ㅜ', 'ㅠ', 'ㅡ', 'ㅣ', 'ㅢ']
#$jong_opt = [ 'ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅆ', 'ㅇ', 'ㅈ',
#'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ']
#$jung_opt = ['ㅑ', 'ㅒ', 'ㅖ', 'ㅛ', 'ㅠ', 'ㅢ']
#$jong_opt = ['ㄷ', 'ㅂ', 'ㅆ', 'ㅈ', 'ㅊ', 'ㅋ', 'ㅌ', 'ㅍ', 'ㅎ']
# moachigi
#$cho_opt = ['ㄱ', 'ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅇ', 'ㅈ', 'ㅎ' ]
#$cho_opt = ['ㄴ', 'ㄷ', 'ㄹ', 'ㅁ', 'ㅂ', 'ㅅ', 'ㅈ', 'ㅎ' ]
#$jung_opt = ['ㅏ', 'ㅐ', 'ㅓ', 'ㅔ', 'ㅗ', 'ㅜ', 'ㅡ', 'ㅣ']
#$jong_opt = ['ㄱ', 'ㄴ', 'ㄷ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