File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010 'จ' : '-..-.' ,
1111 'ฉ' : '----' ,
1212 'ช' : '-..-' ,
13- 'ฌ' :'-..-' ,
13+ 'ฌ' : '-..-' ,
1414 'ซ' : '--..' ,
1515 'ญ' : '.---' ,
1616 'ด' : '-..' ,
119119 '(' : '-.--.-'
120120}
121121
122- decodingeng = {} #สร้าง Dictionary สำหรับใช้ถอดรหัสมอร์สภาษาอังกฤษ
122+ decodingeng = {}
123123for key , val in ENGLISH_MORSE_CODE .items ():
124124 decodingeng [val ] = key
125125decodingthai = {}
129129 THAI_MORSE_CODE [key ] = val .replace (" " ,"" )
130130
131131
132- def morse_encode (text : str , lang : str = "th" ) -> str :
132+ def morse_encode (text : str , lang : str = "th" ) -> str :
133133 """
134134 Convert text to Morse code (support Thai and English)
135135
@@ -167,7 +167,7 @@ def morse_encode(text: str, lang: str="th") -> str:
167167 raise NotImplementedError (f"This function doesn't support { lang } ." )
168168
169169
170- def morse_decode (morse_text : str , lang : str = "th" ) -> str :
170+ def morse_decode (morse_text : str , lang : str = "th" ) -> str :
171171 """
172172 Simple Convert Morse code to text
173173
You can’t perform that action at this time.
0 commit comments