Nguyễn Vũ Hưng: Thêm chức xuất tiếng Việt xì tin với Unikey

Embed Size (px)

DESCRIPTION

Mời thầu: Xuất tiếng Việt xì tin với Unikey Yêu cầu chung: Deadline phát triển: 2012/06/30 Nội dung: Thêm chức năng xuất tiếng Việt với encoding “xì tin” trong Unikey 3.6.2 Chi phí (bounty): (tối đa) 2 triệu đồng (thanh toán 50% sau demo và 50% sau deadline) Sản phẩm giao nộp: - Toàn bộ mã nguồn (khuyến khích dung github) - Tệp thực thi, bộ cài (.exe, .msi) - Evidence chạy Unikey trên Windows XP và Windows 7

Citation preview

  • 1. M i th u: Xu t ti ng Vi t x tin v i UnikeyYu c u chung:Deadline pht trin: 2012/06/30Ni dung: Thm chc nng xut ting Vit vi encoding x tin trong Unikey 3.6.2Chi ph (bounty): (ti a) 2 triu ng (thanh ton 50% sau demo v 50% sau deadline)S n ph m giao n p:-Ton b m ngun (khuyn khch s dng github)-Tp thc thi, b ci (.exe, .msi)-Evidence chy Unikey trn Windows XP v Windows 7Ghi ch:-u tin sinh vin-Cn gi CV, t gii thiu bn than khi bid d n-Dnh cho PG a ra gi hp l nht v sm nht, CV p nhtLin h nh th u:Nguyn V Hng, email: [email protected], YIM: vuhung16 , Skype: vuhung16plus,twitter: vuhung, MSN: vuhung16, FB: http://www.facebook.com/nguyenvuhungDemo lu t g x tin:http://sites.google.com/site/golemesnair/homeLp trnh vin cn: Xem javascript code, bt chc v implement vo UnikeyM ngu n Unikey x tin m i:-Phi da trn Unikey 3.6.2-http://prdownloads.sourceforge.net/unikey/Uk362src.zip (http://unikey.org/source.php)Yu c u i v i Unikey(sau khi tch hp chc nng xut Ting Vit x tin)

2. -Gi nguyn/khng lm nh hng ti cc chc nng c ca Unikey-X tin encoding h tr cc kiu g c sn ca Unikey: Telex, VNIYu c u mi tr ng-Ging Unikey 3.6.2-Ngha l h tr Windows 2000, XP, Vista, 7Phn tch s b :Cn thm encoding Xitin vo file Newkey/encoding.cpp//////////////////////////////////////////////////////////////////////*/CharsetInfo CharsetTable[TOTAL_CHARSET] = { {_TEXT("Unicode"),0x101, CONV_CHARSET_UNICODE, UNICODE_UCS2}, {_TEXT("TCVN3 (ABC)"),0, CONV_CHARSET_TCVN3, 0}, {_TEXT("VNI Windows"),0x102, CONV_CHARSET_VNIWIN,0}, {_TEXT("VIQR"),0x100,CONV_CHARSET_VIQR, 0}, {_TEXT("Vietnamese locale CP 1258"),0x109, CONV_CHARSET_WINCP1258, 0}, {_TEXT("UTF-8 Literal"), 0x101,CONV_CHARSET_UNIUTF8, UNICODE_UTF8}, {_TEXT("NCR Decimal"),0x101, CONV_CHARSET_UNIREF, UNICODE_REF}, {_TEXT("NCR Hex"),0x101, CONV_CHARSET_UNIREF_HEX,UNICODE_HEX}, {_TEXT("Composite Unicode (To hop)"), 0x108, CONV_CHARSET_UNIDECOMPOSED, 0}, {_TEXT("VISCII"),0x106,CONV_CHARSET_VISCII,0}, {_TEXT("VPS"), 0x104,CONV_CHARSET_VPS, 0}, {_TEXT("BK HCM 2"), 0x103,CONV_CHARSET_BKHCM2,0}, {_TEXT("BK HCM 1"), 0x107,CONV_CHARSET_BKHCM1,0}, {_TEXT("Vietware X"),0x105, CONV_CHARSET_VIETWAREX, 0}, {_TEXT("Vietware F"),1, CONV_CHARSET_VIETWAREF, 0}, {_TEXT("X UTF-8"),0x101,CONV_CHARSET_UNIUTF8, UNICODE_UTF8_X}, {_TEXT("Unicode C String"),0x101, CONV_CHARSET_UNI_CSTRING,UNICODE_CSTRING}};Hng dn cch thm charset mi (Phm Kim Long)STEPS TO ADD NEW CHARSETS1. For 1-byte charsets- Append charset to the end of table MapBD, MapBK, MapBW, MapBT- Insert charset information into CharsetTable (to any position you like), provide following information:+ Charset name+ The index of the charset in the table MapBD (the same as in MapBK, MapBW, MapBT)- Increase TOTAL_CHARSET constant (in keycons.h) by 1 to reflex the number of supported charsets2. For 2-byte charsets- Append charset to the end of BOTH tables UniVnL (for lowercase), UniVnH (for upper case)- Insert charset information into CharsetTable (to any position you like), provide following information:+ Charset name+ The index of the charset in the tables UniVnL (the same as in UniVnH) PLUS 0x101- Increase TOTAL_CHARSET constant by 1 in keycons.h to reflex the number of supported charsets 3. Unikey Xitin User Interface s nh th no?Demo b g Xitin