Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Tools /
unicode /
Delete
Unzip
Name
Size
Permission
Date
Action
python-mappings
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
Makefile
1.72
KB
-rw-r--r--
2024-03-19 22:46
comparecodecs.py
1.41
KB
-rwxr-xr-x
2024-03-19 22:46
gencjkcodecs.py
1.97
KB
-rw-r--r--
2024-03-19 22:46
gencodec.py
12.03
KB
-rw-r--r--
2024-03-19 22:46
genmap_japanese.py
10.07
KB
-rw-r--r--
2024-03-19 22:46
genmap_korean.py
2
KB
-rw-r--r--
2024-03-19 22:46
genmap_schinese.py
5.08
KB
-rw-r--r--
2024-03-19 22:46
genmap_support.py
6.05
KB
-rw-r--r--
2024-03-19 22:46
genwincodec.py
1.7
KB
-rw-r--r--
2024-03-19 22:46
genwincodecs.bat
208
B
-rw-r--r--
2024-03-19 22:46
listcodecs.py
1021
B
-rw-r--r--
2024-03-19 22:46
makeunicodedata.py
47.52
KB
-rw-r--r--
2024-03-19 22:46
mkstringprep.py
9.95
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
# # genmap_korean.py: Korean Codecs Map Generator # # Original Author: Hye-Shik Chang <perky@FreeBSD.org> # Modified Author: Dong-hee Na <donghee.na92@gmail.com> # import os from genmap_support import * KSX1001_C1 = (0x21, 0x7e) KSX1001_C2 = (0x21, 0x7e) UHCL1_C1 = (0x81, 0xa0) UHCL1_C2 = (0x41, 0xfe) UHCL2_C1 = (0xa1, 0xfe) UHCL2_C2 = (0x41, 0xa0) MAPPINGS_CP949 = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT' def main(): mapfile = open_mapping_file('python-mappings/CP949.TXT', MAPPINGS_CP949) print("Loading Mapping File...") decmap = loadmap(mapfile) uhcdecmap, ksx1001decmap, cp949encmap = {}, {}, {} for c1, c2map in decmap.items(): for c2, code in c2map.items(): if c1 >= 0xa1 and c2 >= 0xa1: ksx1001decmap.setdefault(c1 & 0x7f, {}) ksx1001decmap[c1 & 0x7f][c2 & 0x7f] = c2map[c2] cp949encmap.setdefault(code >> 8, {}) cp949encmap[code >> 8][code & 0xFF] = (c1 << 8 | c2) & 0x7f7f else: # uhc uhcdecmap.setdefault(c1, {}) uhcdecmap[c1][c2] = c2map[c2] cp949encmap.setdefault(code >> 8, {}) # MSB set cp949encmap[code >> 8][code & 0xFF] = (c1 << 8 | c2) with open('mappings_kr.h', 'w') as fp: print_autogen(fp, os.path.basename(__file__)) print("Generating KS X 1001 decode map...") writer = DecodeMapWriter(fp, "ksx1001", ksx1001decmap) writer.update_decode_map(KSX1001_C1, KSX1001_C2) writer.generate() print("Generating UHC decode map...") writer = DecodeMapWriter(fp, "cp949ext", uhcdecmap) writer.update_decode_map(UHCL1_C1, UHCL1_C2) writer.update_decode_map(UHCL2_C1, UHCL2_C2) writer.generate() print("Generating CP949 (includes KS X 1001) encode map...") writer = EncodeMapWriter(fp, "cp949", cp949encmap) writer.generate() print("Done!") if __name__ == '__main__': main()