brailletable 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,316 @@
1
+ class BrailleTable():
2
+
3
+ #---------------------------------------- Tables group (0004) ----------------------------------------
4
+ #0004-A
5
+ @staticmethod
6
+ def braille_list() -> list[str]:
7
+ """
8
+ EN
9
+ Returns all braille characters organized in the standard Unicode order, covering the range U+2800 to U+283F.
10
+
11
+ JP
12
+ Unicode の標準順(U+2800〜U+283F)に従って並べられた点字文字をすべて返します。
13
+
14
+ IT
15
+ Restituisce tutti i caratteri braille organizzati nell’ordine standard Unicode, coprendo l’intervallo da U+2800 a U+283F.
16
+
17
+ PT
18
+ Retorna todos os caracteres braille organizados na ordem padrão do Unicode, cobrindo o intervalo de U+2800 a U+283F.
19
+
20
+ CH
21
+ 返回按 Unicode 标准顺序排列的所有点字符号,范围覆盖 U+2800 至 U+283F。
22
+ """
23
+ return [
24
+ '⠀','⠁','⠂','⠃','⠄','⠅','⠆','⠇',
25
+ '⠈','⠉','⠊','⠋','⠌','⠍','⠎','⠏',
26
+ '⠐','⠑','⠒','⠓','⠔','⠕','⠖','⠗',
27
+ '⠘','⠙','⠚','⠛','⠜','⠝','⠞','⠟',
28
+ '⠠','⠡','⠢','⠣','⠤','⠥','⠦','⠧',
29
+ '⠨','⠩','⠪','⠫','⠬','⠭','⠮','⠯',
30
+ '⠰','⠱','⠲','⠳','⠴','⠵','⠶','⠷',
31
+ '⠸','⠹','⠺','⠻','⠼','⠽','⠾','⠿'
32
+ ]
33
+
34
+ #0004-BA
35
+ @staticmethod
36
+ def binary_list() -> list[list[int]]:
37
+ """
38
+ EN
39
+ Returns a list with 64 items; each item is an array of 6 bits representing a braille character.
40
+ JP
41
+ 64 個の項目を持つリストを返します。各項目は、点字文字を表す 6 ビットの配列です。
42
+ IT
43
+ Restituisce una lista con 64 elementi; ogni elemento è un array di 6 bit che rappresenta un carattere braille.
44
+ PT
45
+ Retorna uma lista com 64 itens; cada item é um array de 6 bits que representa um caractere braille.
46
+
47
+ CH
48
+ 返回一个包含 64 个项目的列表;每个项目都是由 6 位组成的数组,用于表示一个点字符号。
49
+ """
50
+ result = []
51
+
52
+ for number in range(64):
53
+
54
+ binary_text = format(number, "06b")
55
+
56
+ bits = []
57
+ for char in binary_text:
58
+ bits.append(int(char))
59
+
60
+ result.append(bits)
61
+
62
+ return result
63
+
64
+ #0004-BB
65
+ @staticmethod
66
+ def reverse_binary_list() -> list[list[int]]:
67
+ """
68
+ EN
69
+ Returns a list with 64 items; each item is an array of 6 bits representing a braille character,
70
+ but with the bit order reversed (e.g., 000001 becomes 100000).
71
+
72
+ JP
73
+ 64 個の項目を持つリストを返します。各項目は点字文字を表す 6 ビットの配列ですが、
74
+ ビットの並び順が反転しています(例: 000001 → 100000)。
75
+
76
+ IT
77
+ Restituisce una lista con 64 elementi; ogni elemento è un array di 6 bit che rappresenta un carattere braille,
78
+ ma con l’ordine dei bit invertito (ad esempio: 000001 → 100000).
79
+
80
+ PT
81
+ Retorna uma lista com 64 itens; cada item é um array de 6 bits que representa um caractere braille,
82
+ porém com a ordem dos bits invertida (ex.: 000001 → 100000).
83
+
84
+ CH
85
+ 返回一个包含 64 个项目的列表;每个项目都是由 6 位组成的数组,用于表示一个点字符号,
86
+ 但位顺序已反转(例如:000001 → 100000)。
87
+ """
88
+ result = []
89
+
90
+ for number in range(64):
91
+
92
+ binary_text = format(number, "06b")
93
+
94
+ bits = []
95
+ for char in reversed(binary_text):
96
+ bits.append(int(char))
97
+
98
+ result.append(bits)
99
+
100
+ return result
101
+
102
+ #0004-CA
103
+ @staticmethod
104
+ def binary_string_list() -> list[str]:
105
+
106
+ result = []
107
+
108
+ for number in range(64):
109
+
110
+ binary_text = format(number, "06b")
111
+
112
+ result.append(binary_text)
113
+
114
+ return result
115
+
116
+ #0004-CB
117
+ @staticmethod
118
+ def reverse_binary_string_list() -> list[str]:
119
+ """
120
+ EN
121
+ Returns a list with 64 items; each item is a 6‑bit binary string representing a braille character,
122
+ but with the bit order reversed (e.g., 000001 becomes 100000).
123
+
124
+ JP
125
+ 64 個の項目を持つリストを返します。各項目は点字文字を表す 6 ビットの文字列ですが、
126
+ ビットの並び順が反転しています(例: 000001 → 100000)。
127
+
128
+ IT
129
+ Restituisce una lista con 64 elementi; ogni elemento è una stringa binaria di 6 bit che rappresenta un carattere braille,
130
+ ma con l’ordine dei bit invertito (ad esempio: 000001 → 100000).
131
+
132
+ PT
133
+ Retorna uma lista com 64 itens; cada item é uma string binária de 6 bits que representa um caractere braille,
134
+ porém com a ordem dos bits invertida (ex.: 000001 → 100000).
135
+
136
+ CH
137
+ 返回一个包含 64 个项目的列表;每个项目都是一个由 6 位组成的二进制字符串,用于表示一个点字符号,
138
+ 但位顺序已反转(例如:000001 → 100000)。
139
+ """
140
+ result = []
141
+
142
+ for number in range(64):
143
+
144
+ binary_text = format(number, "06b") # ex.: "000001"
145
+
146
+ reversed_text = ""
147
+ for char in reversed(binary_text):
148
+ reversed_text += char # ex.: "100000"
149
+
150
+ result.append(reversed_text)
151
+
152
+ return result
153
+
154
+ #0004-D
155
+ @staticmethod
156
+ def unicode_list() -> list[str]:
157
+ """
158
+ EN
159
+ Returns a list with 64 items; each item is the Unicode code in hexadecimal format corresponding to a braille character.
160
+ JP
161
+ 64 個の項目を持つリストを返します。各項目は、点字文字に対応する Unicode の 16 進コードです。
162
+ IT
163
+ Restituisce una lista con 64 elementi; ogni elemento è il codice Unicode in formato esadecimale corrispondente a un carattere braille.
164
+ PT
165
+ Retorna uma lista com 64 itens; cada item é o código Unicode em formato hexadecimal correspondente a um caractere braille.
166
+
167
+ CH
168
+ 返回一个包含 64 个项目的列表;每个项目都是对应点字符号的 Unicode 十六进制代码。
169
+ """
170
+ return [f"{0x2800 + i:04x}" for i in range(64)]
171
+
172
+ #0004-E
173
+ @staticmethod
174
+ def dot_count() -> list[int]:
175
+ """
176
+ EN
177
+ Returns a list with 64 items; each item is an integer indicating how many points are active (1 to 6) in the corresponding braille character.
178
+ JP
179
+ 64 個の項目を持つリストを返します。各項目は、対応する点字文字でアクティブな点(1〜6)の数を示す整数です。
180
+ IT
181
+ Restituisce una lista con 64 elementi; ogni elemento è un intero che indica quanti punti (da 1 a 6) sono attivi nel carattere braille corrispondente.
182
+ PT
183
+ Retorna uma lista com 64 itens; cada item é um inteiro indicando quantos pontos estão ativos (1 a 6) no caractere braille correspondente.
184
+
185
+ CH
186
+ 返回一个包含 64 个项目的列表;每个项目都是一个整数,用于表示对应点字符号中有多少个激活点(1 至 6)。
187
+ """
188
+ return [bin(i).count("1") for i in range(64)]
189
+
190
+ #0004-F
191
+ @staticmethod
192
+ def dot_numbering_list() -> list[list[int]]:
193
+ """
194
+ EN
195
+ Returns a list with 64 items; each item is an array containing the numbers of the active points (1 to 6) of the corresponding braille character. Commonly used in educational materials.
196
+
197
+ JP
198
+ 64 個の項目を持つリストを返します。各項目は、対応する点字文字でアクティブな点(1〜6)の番号を含む配列です。教育用資料でよく使用されます。
199
+
200
+ IT
201
+ Restituisce una lista con 64 elementi; ogni elemento è un array che contiene i numeri dei punti attivi (da 1 a 6) del carattere braille corrispondente. Molto utilizzato in materiali didattici.
202
+
203
+ PT
204
+ Retorna uma lista com 64 itens; cada item é um array contendo os números dos pontos ativos (1 a 6) do caractere braille correspondente. Muito usado em materiais didáticos.
205
+
206
+ CH
207
+ 返回一个包含 64 个项目的列表;每个项目都是一个数组,包含对应点字符号中激活点(1 至 6)的编号。常用于教学材料。
208
+ """
209
+ lst = []
210
+ for i in range(64):
211
+ dots = []
212
+ for d in range(6):
213
+ if (i >> d) & 1:
214
+ dots.append(d+1)
215
+ lst.append(dots)
216
+ return lst
217
+
218
+ #0004-G
219
+ @staticmethod
220
+ def dot_numbering_string_list() -> list[str]:
221
+ """
222
+ EN
223
+ Returns a list with 64 items; each item is a string containing the numbers of the active points (1 to 6) of the corresponding braille character, separated by hyphens. Commonly used in educational materials.
224
+
225
+ JP
226
+ 64 個の項目を持つリストを返します。各項目は、対応する点字文字でアクティブな点(1〜6)の番号をハイフンで区切った文字列です。教育用資料でよく使用されます。
227
+
228
+ IT
229
+ Restituisce una lista con 64 elementi; ogni elemento è una stringa che contiene i numeri dei punti attivi (da 1 a 6) del carattere braille corrispondente, separati da trattini. Molto utilizzato in materiali didattici.
230
+
231
+ PT
232
+ Retorna uma lista com 64 itens; cada item é uma string contendo os números dos pontos ativos (1 a 6) do caractere braille correspondente, separados por hífens. Muito usado em materiais didáticos.
233
+
234
+ CH
235
+ 返回一个包含 64 个项目的列表;每个项目都是一个字符串,包含对应点字符号中激活点(1 至 6)的编号,并以连字符分隔。常用于教学材料。
236
+ """
237
+ return [
238
+ "-".join(str(d) for d in dots)
239
+ for dots in BrailleTable.dot_numbering_list()
240
+ ]
241
+
242
+ #---------------------------------------- Mapping group (0003) ----------------------------------------
243
+ #0003-AA
244
+ @staticmethod
245
+ def get_braille_to_index(braille: str) -> int:
246
+ """
247
+ EN
248
+ Receives a character (string), which must be a valid braille symbol,
249
+ and returns an integer (int) that represents its position in the Unicode braille table (U+2800 to U+283F).
250
+
251
+ JP
252
+ 1 文字の入力(string)を受け取り、その文字が有効な点字記号であることを前提として、
253
+ Unicode の点字表(U+2800~U+283F)における位置を表す整数(int)を返します。
254
+
255
+ IT
256
+ Riceve un carattere (stringa), che deve essere un simbolo braille valido,
257
+ e restituisce un intero (int) che rappresenta la posizione corrispondente nella tabella Unicode del braille (U+2800–U+283F).
258
+
259
+ PT
260
+ Recebe um caractere (string), obrigatoriamente correspondente a um símbolo braille,
261
+ e retorna um inteiro (int) que representa a posição na tabela Unicode do braille (U+2800 a U+283F).
262
+
263
+ CH
264
+ 接收一个字符(string),该字符必须是有效的点字符号,并返回一个整数(int),表示其在 Unicode 点字表(U+2800 至 U+283F)中的位置。
265
+ """
266
+ braille_to_index = {
267
+ '⠀': 0, '⠁': 1, '⠂': 2, '⠃': 3, '⠄': 4, '⠅': 5, '⠆': 6, '⠇': 7,
268
+ '⠈': 8, '⠉': 9, '⠊': 10, '⠋': 11, '⠌': 12, '⠍': 13, '⠎': 14, '⠏': 15,
269
+ '⠐': 16, '⠑': 17, '⠒': 18, '⠓': 19, '⠔': 20, '⠕': 21, '⠖': 22, '⠗': 23,
270
+ '⠘': 24, '⠙': 25, '⠚': 26, '⠛': 27, '⠜': 28, '⠝': 29, '⠞': 30, '⠟': 31,
271
+ '⠠': 32, '⠡': 33, '⠢': 34, '⠣': 35, '⠤': 36, '⠥': 37, '⠦': 38, '⠧': 39,
272
+ '⠨': 40, '⠩': 41, '⠪': 42, '⠫': 43, '⠬': 44, '⠭': 45, '⠮': 46, '⠯': 47,
273
+ '⠰': 48, '⠱': 49, '⠲': 50, '⠳': 51, '⠴': 52, '⠵': 53, '⠶': 54, '⠷': 55,
274
+ '⠸': 56, '⠹': 57, '⠺': 58, '⠻': 59, '⠼': 60, '⠽': 61, '⠾': 62, '⠿': 63
275
+ }
276
+ return braille_to_index[braille]
277
+ #0003-AB
278
+ @staticmethod
279
+ def get_index_to_braille(index: int) -> str:
280
+ braille_list = [
281
+ '⠀','⠁','⠂','⠃','⠄','⠅','⠆','⠇',
282
+ '⠈','⠉','⠊','⠋','⠌','⠍','⠎','⠏',
283
+ '⠐','⠑','⠒','⠓','⠔','⠕','⠖','⠗',
284
+ '⠘','⠙','⠚','⠛','⠜','⠝','⠞','⠟',
285
+ '⠠','⠡','⠢','⠣','⠤','⠥','⠦','⠧',
286
+ '⠨','⠩','⠪','⠫','⠬','⠭','⠮','⠯',
287
+ '⠰','⠱','⠲','⠳','⠴','⠵','⠶','⠷',
288
+ '⠸','⠹','⠺','⠻','⠼','⠽','⠾','⠿'
289
+ ]
290
+ return braille_list[index]
291
+
292
+ #0003-B
293
+ @staticmethod
294
+ def get_braille_list_to_index_list(braille_list: list) -> list:
295
+ """
296
+ EN
297
+ Receives multiple characters (strings), each of which must be a valid braille symbol, and returns a list of integers (int),
298
+ where each value represents the position of the corresponding symbol in the Unicode braille table (U+2800 to U+283F).
299
+
300
+ JP
301
+ 複数の文字(string)を受け取り、各文字が有効な点字記号であることを前提として、
302
+ Unicode の点字表(U+2800~U+283F)における各記号の位置を表す整数(int)のリストを返します。
303
+
304
+ IT
305
+ Riceve più caratteri (stringhe), ognuno dei quali deve essere un simbolo braille valido, e restituisce una lista di interi (int),
306
+ in cui ogni valore rappresenta la posizione del rispettivo simbolo nella tabella Unicode del braille (U+2800–U+283F).
307
+
308
+ PT
309
+ Recebe múltiplos caracteres (string), cada um obrigatoriamente correspondente a um símbolo braille,
310
+ e retorna uma lista de inteiros (int), onde cada valor representa a posição do respectivo símbolo
311
+ na tabela Unicode do braille (U+2800 a U+283F).
312
+
313
+ CH
314
+ 接收多个字符(string),每个字符都必须是有效的点字符号,并返回一个整数(int)列表,其中每个值表示相应符号在 Unicode 点字表(U+2800 至 U+283F)中的位置。
315
+ """
316
+ return [BrailleTable.get_braille_to_index(b) for b in braille_list]
@@ -0,0 +1,232 @@
1
+ Metadata-Version: 2.4
2
+ Name: brailletable
3
+ Version: 1.0.0
4
+ Summary: A complete and extensible Unicode Braille processing library.
5
+ Author: Nagao Yuji
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/DukaCrazy/brailletable
8
+ Project-URL: Documentation, https://github.com/DukaCrazy/brailletable
9
+ Project-URL: Source, https://github.com/DukaCrazy/brailletable
10
+ Keywords: braille,unicode,accessibility,API,binary,blind,education
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: license-file
15
+
16
+ # Braille Table
17
+
18
+ `English Version`
19
+ - BrailleTable is a library that provides tables and utilities related to the braille system, using the Unicode Braille Patterns block as its reference.
20
+ - Version 1.0.0
21
+ - This library is considered unstable, and at the moment, there are no plans for future updates.
22
+
23
+ # Tables group (0004)
24
+
25
+ ## 0004-A - Braille List
26
+ ```python
27
+ @staticmethod
28
+ def braille_list() -> list[str]:
29
+ ```
30
+
31
+ ### Description
32
+ Returns all 64 six‑dot braille symbols.
33
+ The symbols follow the standard Unicode Braille Pattern block, ranging from U+2800 to U+283F.
34
+ ### Details
35
+ - Output type: list[str]
36
+ - Total items: 64
37
+ - Unicode block: Braille Patterns
38
+ - Order: strictly sequential from U+2800 (⠀) to U+283F (⠿)
39
+
40
+ ## 0004-BA - Braille Binary
41
+ ```python
42
+ @staticmethod
43
+ def binary_list() -> list[list[int]]:
44
+ ```
45
+
46
+ ### Description
47
+ Returns a list with 64 items, where each item is a 6‑bit array representing the binary pattern of a braille character.
48
+ The bit patterns follow the natural numeric order from 0 to 63, each formatted as a 6‑bit binary sequence (000000 → 111111).
49
+ ### Details
50
+ - Output type: list[list[int]]
51
+ - Total items: 64
52
+ - Bits per item: 6
53
+ - Value range: integers 0 or 1
54
+ - Order: sequential binary representation of numbers 0–63
55
+ - Mapping: index → 6‑bit array
56
+
57
+ ## 0004-BB - Braille Reverse Binary
58
+ ```python
59
+ @staticmethod
60
+ def reverse_binary_list() -> list[list[int]]:
61
+ ```
62
+
63
+ ### Description
64
+ Returns a list with 64 items, where each item is a 6‑bit array representing the binary pattern of a braille character, but in reverse bit order.
65
+ Each 6‑bit sequence is reversed from right to left, transforming abcxyz into zyxcba.
66
+ ### Details
67
+ - Output type: list[list[int]]
68
+ - Total items: 64
69
+ - Bits per item: 6
70
+ - Value range: integers 0 or 1
71
+ - Order: sequential binary representation of numbers 0–63
72
+ - Transformation: each 6‑bit array is reversed
73
+ - Mapping: index → reversed 6‑bit array
74
+
75
+ ## 0004-CA - Braille Binary String
76
+ ```python
77
+ @staticmethod
78
+ def binary_string_list() -> list[str]:
79
+ ```
80
+
81
+ ### Description
82
+ Returns a list with 64 items, where each item is a 6‑bit binary string representing the braille pattern for values from 0 to 63.
83
+ Each number is formatted as a fixed‑width 6‑character binary string ("000000" → "111111").
84
+ ### Details
85
+ - Output type: list[str]
86
+ - Total items: 64
87
+ - String length: always 6 characters
88
+ - Characters used: '0' and '1'
89
+ - Order: sequential binary representation of numbers 0–63
90
+ - Mapping: index → "binary_string"
91
+
92
+ ## 0004-CB - Braille Reverse Binary String
93
+ ```python
94
+ @staticmethod
95
+ def reverse_binary_string_list() -> list[str]:
96
+ ```
97
+
98
+ ### Description
99
+ Returns a list with 64 items, where each item is a 6‑bit binary string reversed from right to left.
100
+ Each binary string corresponds to the numbers 0 to 63, but with the bit order inverted ("abcxyz" → "zyxcba").
101
+ ### Details
102
+ - Output type: list[str]
103
+ - Total items: 64
104
+ - String length: always 6 characters
105
+ - Characters used: '0' and '1'
106
+ - Order: sequential binary representation of numbers 0–63
107
+ - Transformation: each binary string is reversed
108
+ - Mapping: index → "reversed_binary_string"
109
+
110
+ ## 0004-D - Braille Unicode
111
+ ```python
112
+ @staticmethod
113
+ def unicode_list() -> list[str]:
114
+ ```
115
+
116
+ ### Description
117
+ Returns a list with 64 Unicode strings, each representing the hexadecimal Unicode code point of a braille character.
118
+ The values follow the standard Unicode Braille Patterns block, from U+2800 to U+283F.
119
+ ### Details
120
+ - Output type: list[str]
121
+ - Total items: 64
122
+ - Format: hexadecimal Unicode strings (e.g., "2800", "2801", … "283F")
123
+ - Unicode block: Braille Patterns
124
+ - Order: strictly sequential from U+2800 to U+283F
125
+ - Mapping: index → "unicode_hex_string"
126
+
127
+ ## 0004-E - Number of Points Per Braille
128
+ ```python
129
+ @staticmethod
130
+ def dot_count() -> list[int]:
131
+ ```
132
+
133
+ ### Description
134
+ Returns a list with 64 integers, where each value represents the number of active dots (1–6) in the corresponding braille character.
135
+ The count is computed from the binary pattern of each braille cell.
136
+ ### Details
137
+ - Output type: list[int]
138
+ - Total items: 64
139
+ - Value range: integers from 0 to 6
140
+ - Order: sequential braille index (0–63)
141
+ - Mapping: index → active dot count
142
+
143
+ ## 0004-F - Braille Dot Numbering List
144
+ ```python
145
+ @staticmethod
146
+ def dot_numbering_list() -> list[list[int]]:
147
+ ```
148
+
149
+ ### Description
150
+ Returns a list with 64 items, where each item is a list containing the active dot numbers (1–6) of the corresponding braille character.
151
+ Dot numbering follows the standard braille convention:
152
+ - 1 4
153
+ - 2 5
154
+ - 3 6
155
+ ### Details
156
+ - Output type: list[list[int]]
157
+ - Total items: 64
158
+ - Dots per item: variable (0 to 6)
159
+ - Dot numbering: 1–6
160
+ - Order: sequential braille index (0–63)
161
+ - Mapping: index → [dot_numbers]
162
+
163
+ ## 0004-G - Braille Dot Numbering String List
164
+ ```python
165
+ @staticmethod
166
+ def dot_numbering_string_list() -> list[str]:
167
+ ```
168
+ ### Description
169
+ Returns a list with 64 strings, where each string contains the active dot numbers of the corresponding braille character, separated by hyphens.
170
+ This format is commonly used in educational material and documentation.
171
+ ### Details
172
+ - Output type: list[str]
173
+ - Total items: 64
174
+ - Format: "1-3-5" or "" for no dots
175
+ - Dot numbering: 1–6
176
+ - Order: sequential braille index (0–63)
177
+ - Mapping: index → "dot1-dot2-dot3"
178
+
179
+
180
+
181
+ # Mapping group (0003)
182
+
183
+ ## 0003-AA - Get the Braille Using the Unicode Position
184
+ ```python
185
+ @staticmethod
186
+ def get_braille_to_index(braille: str) -> int:
187
+ ```
188
+ ### Description
189
+ Returns the numeric index (0–63) of a given braille Unicode character.
190
+ The index corresponds to the character’s position in the Unicode Braille Patterns block, ranging from U+2800 to U+283F.
191
+ ### Details
192
+ - Input type: str (a single braille Unicode character)
193
+ - Output type: int
194
+ - Valid range: 0 to 63
195
+ - Unicode block: Braille Patterns
196
+ - Mapping: braille_character → index
197
+ - Lookup source: internal static table of 64 braille symbols
198
+
199
+ ## 0003-AB - Get the Unicode Position Using the Braille
200
+ ```python
201
+ @staticmethod
202
+ def get_index_to_braille(index: int) -> str:
203
+ ```
204
+
205
+ ### Description
206
+ Returns the braille Unicode character corresponding to the given index (0–63).
207
+ The index maps directly to the Unicode Braille Patterns block, from U+2800 to U+283F.
208
+ ### Details
209
+ - Input type: int
210
+ - Valid range: 0 to 63
211
+ - Output type: str (a single braille Unicode character)
212
+ - Unicode block: Braille Patterns
213
+ - Mapping: index → braille_character
214
+ - Lookup source: internal static table of 64 braille symbols
215
+
216
+ ## 0003-B - Receives a List of Numbers and Returns a List in Braille
217
+ ```python
218
+ @staticmethod
219
+ def get_braille_list_to_index_list(braille_list: list) -> list:
220
+ ```
221
+
222
+ ### Description
223
+ Converts a list of braille Unicode characters into a list of their corresponding numeric indices (0–63).
224
+ Each character is mapped using the same Unicode Braille Patterns block (U+2800 to U+283F).
225
+ ### Details
226
+ - Input type: list[str]
227
+ - Output type: list[int]
228
+ - Valid index range: 0 to 63
229
+ - Unicode block: Braille Patterns
230
+ - Mapping: [braille_char1, braille_char2, ...] → [index1, index2, ...]
231
+ - Conversion rule: each character is processed using get_braille_to_index()
232
+
@@ -0,0 +1,6 @@
1
+ brailletable/__init__.py,sha256=os8FzhD8gQFbawPDIwFevbTqBw5dvKWwECMleR2_uLw,14876
2
+ brailletable-1.0.0.dist-info/licenses/LICENSE,sha256=_WEcsoDi10Iry_zl1Phb10FA10aGEh2lzDzh60odFhA,1094
3
+ brailletable-1.0.0.dist-info/METADATA,sha256=3m3WwJgdpPXGc82x6ctF1lB8Aeof1B3T-TlKLE56fi0,7836
4
+ brailletable-1.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
+ brailletable-1.0.0.dist-info/top_level.txt,sha256=4gwKzG1PycUGWgw_0qwsLMP_HtYgHzQE3E9r8gy-h4E,13
6
+ brailletable-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nagao Yuji
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the “Software”), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ brailletable