braillebasekorean 0.2.7__tar.gz

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,17 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ Copyright (c) 2026 Yuu
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at:
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: braillebasekorean
3
+ Version: 0.2.7
4
+ Summary: A complete and extensible Unicode Braille processing library. Korean language version.
5
+ Author: Nagao Yuji
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/DukaCrazy/braillebasekorean
8
+ Project-URL: Documentation, https://github.com/DukaCrazy/braillebasekorean
9
+ Project-URL: Source, https://github.com/DukaCrazy/braillebasekorean
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
+ Requires-Dist: braillebase>=0.2.7
15
+ Requires-Dist: brailletable>=1.0.2
16
+ Dynamic: license-file
17
+
18
+ ### - pip install braillebasekorean
19
+
20
+ # Korean
21
+
22
+ ```python
23
+ from braillebasekorean import BrailleBaseKorean
24
+
25
+ bbk = BrailleBaseKorean()
26
+ print(bbk.output_braille_txt("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
27
+ ```
28
+ Output: ⠍⠐⠕⠉⠪⠒⠀⠚⠣⠒⠈⠍⠁⠀⠨⠎⠢⠨⠣⠺⠀⠱⠁⠠⠣⠝⠀⠰⠣⠢⠱⠚⠣⠈⠝⠀⠊⠽⠎⠀⠑⠗⠍⠀⠈⠕⠠⠘⠪⠃⠉⠕⠊⠣⠖
29
+
30
+ # Announcement
31
+ - This package is part of an ecosystem called Braille Base. This name does not represent a company or business; it is an independent initiative aimed at providing registered braille tables for all of humanity.
32
+
33
+ - We constantly need help to register, update, and validate braille tables. There is still no official contact channel, but you can find new information on the blog braillebase.blogspot.com or brailletable.blogspot.com.
34
+
35
+ ## Pre-registered Letters and Characters
36
+ 78 >>> Jamo
37
+
38
+ CHOSEONG = (
39
+ "ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ",
40
+ "ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
41
+ )
42
+
43
+ JUNGSEONG = (
44
+ "ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ",
45
+ "ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ","ㅟ","ㅠ","ㅡ","ㅢ","ㅣ"
46
+ )
47
+
48
+ JONGSEONG = (
49
+ "", "ㄱ","ㄲ","ㄳ","ㄴ","ㄵ","ㄶ","ㄷ","ㄹ","ㄺ",
50
+ "ㄻ","ㄼ","ㄽ","ㄾ","ㄿ","ㅀ","ㅁ","ㅂ","ㅄ","ㅅ",
51
+ "ㅆ","ㅇ","ㅈ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
52
+ )
53
+
54
+ 11172 >>> Hangul
55
+
56
+ ```python
57
+ from braillebasekorean import BrailleBaseKorean
58
+
59
+ bbk = BrailleBaseKorean()
60
+ print(bbk.confidence_test("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
61
+ ```
62
+
63
+ Output: {0: ['우', ['⠍']], 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: ['!', ['⠖']]}
64
+
65
+
66
+ ### The developed algorithm demonstrates accuracy for its intended purpose. If necessary, we may require the assistance of a specialist to review and validate the underlying Jamo mapping table.
@@ -0,0 +1,49 @@
1
+ ### - pip install braillebasekorean
2
+
3
+ # Korean
4
+
5
+ ```python
6
+ from braillebasekorean import BrailleBaseKorean
7
+
8
+ bbk = BrailleBaseKorean()
9
+ print(bbk.output_braille_txt("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
10
+ ```
11
+ Output: ⠍⠐⠕⠉⠪⠒⠀⠚⠣⠒⠈⠍⠁⠀⠨⠎⠢⠨⠣⠺⠀⠱⠁⠠⠣⠝⠀⠰⠣⠢⠱⠚⠣⠈⠝⠀⠊⠽⠎⠀⠑⠗⠍⠀⠈⠕⠠⠘⠪⠃⠉⠕⠊⠣⠖
12
+
13
+ # Announcement
14
+ - This package is part of an ecosystem called Braille Base. This name does not represent a company or business; it is an independent initiative aimed at providing registered braille tables for all of humanity.
15
+
16
+ - We constantly need help to register, update, and validate braille tables. There is still no official contact channel, but you can find new information on the blog braillebase.blogspot.com or brailletable.blogspot.com.
17
+
18
+ ## Pre-registered Letters and Characters
19
+ 78 >>> Jamo
20
+
21
+ CHOSEONG = (
22
+ "ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ",
23
+ "ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
24
+ )
25
+
26
+ JUNGSEONG = (
27
+ "ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ",
28
+ "ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ","ㅟ","ㅠ","ㅡ","ㅢ","ㅣ"
29
+ )
30
+
31
+ JONGSEONG = (
32
+ "", "ㄱ","ㄲ","ㄳ","ㄴ","ㄵ","ㄶ","ㄷ","ㄹ","ㄺ",
33
+ "ㄻ","ㄼ","ㄽ","ㄾ","ㄿ","ㅀ","ㅁ","ㅂ","ㅄ","ㅅ",
34
+ "ㅆ","ㅇ","ㅈ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
35
+ )
36
+
37
+ 11172 >>> Hangul
38
+
39
+ ```python
40
+ from braillebasekorean import BrailleBaseKorean
41
+
42
+ bbk = BrailleBaseKorean()
43
+ print(bbk.confidence_test("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
44
+ ```
45
+
46
+ Output: {0: ['우', ['⠍']], 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: ['!', ['⠖']]}
47
+
48
+
49
+ ### The developed algorithm demonstrates accuracy for its intended purpose. If necessary, we may require the assistance of a specialist to review and validate the underlying Jamo mapping table.
@@ -0,0 +1,118 @@
1
+ from braillebase import *
2
+ from koreanwritingsystem import KoreanWritingSystem
3
+
4
+ class BrailleBaseKorean(BrailleBase):
5
+ def __init__(self):
6
+
7
+ """
8
+ """
9
+ super().__init__()
10
+
11
+ self.setting_braille_rules_uppercase("⠠", "⠠") #2026/06/08
12
+
13
+ CHOSEONG = [
14
+ ["lㄱ", ["⠈"], 2],
15
+ ["lㄲ", ["⠠","⠈"], 2],
16
+ ["lㄴ", ["⠉"], 2],
17
+ ["lㄷ", ["⠊"], 2],
18
+ ["lㄸ", ["⠠","⠊"], 2],
19
+ ["lㄹ", ["⠐"], 2],
20
+ ["lㅁ", ["⠑"], 2],
21
+ ["lㅂ", ["⠘"], 2],
22
+ ["lㅃ", ["⠠","⠘"], 2],
23
+ ["lㅅ", ["⠠"], 2],
24
+ ["lㅆ", ["⠠","⠠"], 2],
25
+ #["lㅇ", [""], 2],
26
+ ["lㅈ", ["⠨"], 2],
27
+ ["lㅉ", ["⠠","⠨"], 2],
28
+ ["lㅊ", ["⠰"], 2],
29
+ ["lㅋ", ["⠋"], 2],
30
+ ["lㅌ", ["⠓"], 2],
31
+ ["lㅍ", ["⠙"], 2],
32
+ ["lㅎ", ["⠚"], 2]] #2026/08/24
33
+
34
+ JUNGSEONG = [
35
+ ["vㅏ", ["⠣"], 2],
36
+ ["vㅐ", ["⠗"], 2],
37
+ ["vㅑ", ["⠜"], 2],
38
+ ["vㅒ", ["⠜", "⠗"], 2],
39
+ ["vㅓ", ["⠎"], 2],
40
+ ["vㅔ", ["⠝"], 2],
41
+ ["vㅕ", ["⠱"], 2],
42
+ ["vㅖ", ["⠌"], 2],
43
+ ["vㅗ", ["⠥"], 2],
44
+ ["vㅘ", ["⠧"], 2],
45
+ ["vㅙ", ["⠧","⠗"], 2],
46
+ ["vㅚ", ["⠽"], 2],
47
+ ["vㅛ", ["⠬"], 2],
48
+ ["vㅜ", ["⠍"], 2],
49
+ ["vㅝ", ["⠏"], 2],
50
+ ["vㅞ", ["⠏","⠗"], 2],
51
+ ["vㅟ", ["⠍","⠗"], 2],
52
+ ["vㅠ", ["⠩"], 2],
53
+ ["vㅡ", ["⠪"], 2],
54
+ ["vㅢ", ["⠺"], 2],
55
+ ["vㅣ", ["⠕"], 2]] #2026/08/24
56
+
57
+ JONGSEONG = [
58
+ #["", [""], 2],
59
+ ["tㄱ", ["⠁"], 2],
60
+ ["tㄲ", ["⠁","⠁"], 2],
61
+ ["tㄳ", ["⠁","⠄"], 2],
62
+ ["tㄴ", ["⠒"], 2],
63
+ ["tㄵ", ["⠒","⠅"], 2],
64
+ ["tㄶ", ["⠒","⠴"], 2],
65
+ ["tㄷ", ["⠔"], 2],
66
+ ["tㄹ", ["⠂"], 2],
67
+ ["tㄺ", ["⠂","⠁"], 2],
68
+ ["tㄻ", ["⠂","⠢"], 2],
69
+ ["tㄼ", ["⠂","⠃"], 2],
70
+ ["tㄽ", ["⠂","⠄"], 2],
71
+ ["tㄾ", ["⠂","⠦"], 2],
72
+ ["tㄿ", ["⠂","⠲"], 2],
73
+ ["tㅀ", ["⠂","⠴"], 2],
74
+ ["tㅁ", ["⠢"], 2],
75
+ ["tㅂ", ["⠃"], 2],
76
+ ["tㅄ", ["⠃","⠄"], 2],
77
+ ["tㅅ", ["⠄"], 2],
78
+ ["tㅆ", ["⠄","⠄"], 2],
79
+ ["tㅇ", ["⠶"], 2],
80
+ ["tㅈ", ["⠅"], 2],
81
+ ["tㅊ", ["⠆"], 2],
82
+ ["tㅋ", ["⠖"], 2],
83
+ ["tㅌ", ["⠦"], 2],
84
+ ["tㅍ", ["⠲"], 2],
85
+ ["tㅎ", ["⠴"], 2]] #2026/08/27
86
+
87
+ self.append_multiple_braille_letters(CHOSEONG)
88
+ self.append_multiple_braille_letters(JUNGSEONG)
89
+ self.append_multiple_braille_letters(JONGSEONG)
90
+
91
+ for codepoint in range(0xAC00, 0xD7A3 + 1):
92
+ register_list = []
93
+
94
+ hangul = chr(codepoint)
95
+ hangul_list = KoreanWritingSystem.decompose_hangul_to_jamo(hangul, True)
96
+
97
+ # CHOSEONG
98
+ jamo_l = hangul_list[0]
99
+ if jamo_l != "lㅇ":
100
+ braille_l = self.output_braille_txt(jamo_l)
101
+ if braille_l:
102
+ register_list.extend(braille_l)
103
+
104
+ # JUNGSEONG
105
+ jamo_v = hangul_list[1]
106
+ braille_v = self.output_braille_txt(jamo_v)
107
+ if braille_v:
108
+ register_list.extend(braille_v)
109
+
110
+ # JONGSEONG
111
+ if len(hangul_list) == 3:
112
+ jamo_t = hangul_list[2]
113
+ braille_t = self.output_braille_txt(jamo_t)
114
+ if braille_t:
115
+ register_list.extend(braille_t)
116
+
117
+ self.append_braille_letter(hangul, register_list, 2)
118
+
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: braillebasekorean
3
+ Version: 0.2.7
4
+ Summary: A complete and extensible Unicode Braille processing library. Korean language version.
5
+ Author: Nagao Yuji
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/DukaCrazy/braillebasekorean
8
+ Project-URL: Documentation, https://github.com/DukaCrazy/braillebasekorean
9
+ Project-URL: Source, https://github.com/DukaCrazy/braillebasekorean
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
+ Requires-Dist: braillebase>=0.2.7
15
+ Requires-Dist: brailletable>=1.0.2
16
+ Dynamic: license-file
17
+
18
+ ### - pip install braillebasekorean
19
+
20
+ # Korean
21
+
22
+ ```python
23
+ from braillebasekorean import BrailleBaseKorean
24
+
25
+ bbk = BrailleBaseKorean()
26
+ print(bbk.output_braille_txt("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
27
+ ```
28
+ Output: ⠍⠐⠕⠉⠪⠒⠀⠚⠣⠒⠈⠍⠁⠀⠨⠎⠢⠨⠣⠺⠀⠱⠁⠠⠣⠝⠀⠰⠣⠢⠱⠚⠣⠈⠝⠀⠊⠽⠎⠀⠑⠗⠍⠀⠈⠕⠠⠘⠪⠃⠉⠕⠊⠣⠖
29
+
30
+ # Announcement
31
+ - This package is part of an ecosystem called Braille Base. This name does not represent a company or business; it is an independent initiative aimed at providing registered braille tables for all of humanity.
32
+
33
+ - We constantly need help to register, update, and validate braille tables. There is still no official contact channel, but you can find new information on the blog braillebase.blogspot.com or brailletable.blogspot.com.
34
+
35
+ ## Pre-registered Letters and Characters
36
+ 78 >>> Jamo
37
+
38
+ CHOSEONG = (
39
+ "ㄱ","ㄲ","ㄴ","ㄷ","ㄸ","ㄹ","ㅁ","ㅂ","ㅃ","ㅅ",
40
+ "ㅆ","ㅇ","ㅈ","ㅉ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
41
+ )
42
+
43
+ JUNGSEONG = (
44
+ "ㅏ","ㅐ","ㅑ","ㅒ","ㅓ","ㅔ","ㅕ","ㅖ","ㅗ","ㅘ",
45
+ "ㅙ","ㅚ","ㅛ","ㅜ","ㅝ","ㅞ","ㅟ","ㅠ","ㅡ","ㅢ","ㅣ"
46
+ )
47
+
48
+ JONGSEONG = (
49
+ "", "ㄱ","ㄲ","ㄳ","ㄴ","ㄵ","ㄶ","ㄷ","ㄹ","ㄺ",
50
+ "ㄻ","ㄼ","ㄽ","ㄾ","ㄿ","ㅀ","ㅁ","ㅂ","ㅄ","ㅅ",
51
+ "ㅆ","ㅇ","ㅈ","ㅊ","ㅋ","ㅌ","ㅍ","ㅎ"
52
+ )
53
+
54
+ 11172 >>> Hangul
55
+
56
+ ```python
57
+ from braillebasekorean import BrailleBaseKorean
58
+
59
+ bbk = BrailleBaseKorean()
60
+ print(bbk.confidence_test("우리는 한국 점자의 역사에 참여하게 되어 매우 기쁩니다!"))
61
+ ```
62
+
63
+ Output: {0: ['우', ['⠍']], 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: ['!', ['⠖']]}
64
+
65
+
66
+ ### The developed algorithm demonstrates accuracy for its intended purpose. If necessary, we may require the assistance of a specialist to review and validate the underlying Jamo mapping table.
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ braillebasekorean/__init__.py
5
+ braillebasekorean.egg-info/PKG-INFO
6
+ braillebasekorean.egg-info/SOURCES.txt
7
+ braillebasekorean.egg-info/dependency_links.txt
8
+ braillebasekorean.egg-info/requires.txt
9
+ braillebasekorean.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ braillebase>=0.2.7
2
+ brailletable>=1.0.2
@@ -0,0 +1 @@
1
+ braillebasekorean
@@ -0,0 +1,26 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "braillebasekorean"
7
+ version = "0.2.7"
8
+ description = "A complete and extensible Unicode Braille processing library. Korean language version."
9
+ authors = [
10
+ { name = "Nagao Yuji" }
11
+ ]
12
+ readme = "README.md"
13
+ license = { text = "Apache-2.0" }
14
+ requires-python = ">=3.6"
15
+
16
+ dependencies = [
17
+ "braillebase>=0.2.7",
18
+ "brailletable>=1.0.2"
19
+ ]
20
+
21
+ keywords = ["braille", "unicode", "accessibility", "API", "binary", "blind", "education"]
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/DukaCrazy/braillebasekorean"
25
+ Documentation = "https://github.com/DukaCrazy/braillebasekorean"
26
+ Source = "https://github.com/DukaCrazy/braillebasekorean"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+