際際滷

際際滷Share a Scribd company logo
??h忖??
?????
PyCon APAC 2016 Day1(2016.08.13) - Lightning Talk
???(DaeHyun Sung/撹?C/撹?鈑/ソン?デヒョン)
Sponsor of CJK
http://www.unicode.org/consortium/adopted-characters.html#b5FB7
https://twitter.com/unicode/status/722829746233409536
????? ? ??
? Python? ???
? Telegram bot?
? ???(???? ?? ??)??? ?? ??????
Telegram Bot
? Telegram Bot (English)
? @CJKVBot?
https://telegram.me/cjkvBot
? ???? ? (???)
? @CJKV_korean_bot?
https://telegram.me/CJKV_korean_bot
Python?? ???? ???? ? ?? ??
??(h忖)
? Chinese Character
? h忖/査忖
? 賂皋A 廨A/h┐nz━
? ??
? かんじ
? h│n t?
Reference:
https://commons.wikimedia.org/wiki/File:h忖?晒筈%EF%BC%8F査忖?晒筈_,_??_???_,_V┛ng_v?n_h┏a_ch?_H│n_,_h忖?晒.jpg
h忖?? ?? ??
? ??? ????(h忖o灸, ?鐙, Korean-Chinese
Character Dictionary)
? ??? ???? http://hanja.naver.com/
? ??? ??(?云Z, Japanese Dictionary)
? Weblio http://ejje.weblio.jp
? Jisho http://jisho.org
? ???? ??(Vietnamese Ch? N?m Dictionary)
? Chu nom http://www.chunom.org
h忖?? ?? ??
? ??? ??(hZ/査囂, Chinese Dictionary)
? ZDict (酒悶嶄?) http://www.zdic.net
? MOE Dict (Ministry Of Education, Taiwan¨s
Chinese Dictionary) (訓w嶄?)?
https://www.moedict.tw
h忖?? ?? ??
? Glyph Wiki
? English http://en.glyphwiki.org
? ???(Korean) http://ko.glyphwiki.org
? ?云Z(Japanese): http://glyphwiki.org
? 酒悶嶄?(Simplified Chinese)?
http://zhs.glyphwiki.org
? 訓w嶄?(Traditional Chinese)?
http://zht.glyphwiki.org
h忖?? ?? ??
? Unicode Consortium
? Unihan database lookup
? http://www.unicode.org/charts/unihan.html
? Chise (CHaracter Information Service
Environment)
? http://www.chise.org/ids-find
Unicode
? Unihan Database
? http://www.unicode.org/charts/unihan.html
? Code Point
? 蟻  U+5FB7
? dak1? d└OSHIE TOKU??c
? 撹  U+6210
? cing4 seng4 sing4, ?, ch└ng, NARU TAIRAGERU
NASU, SEI JOU th┐nh
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kCantonese|content: dak1
kCantonese = CodePoint: U+5FB7|field: kCantonese|content: dak1
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kDefinition|content: ethics, morality, virtue
kDefinition = CodePoint: U+5FB7|field: kDefinition|content: ethics, morality, virtue
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kHangul|content: ?
kHangul = CodePoint: U+5FB7|field: kHangul|content: ?
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kHanyuPinlu|content: d└(97)
kHanyuPinlu = CodePoint: U+5FB7|field: kHanyuPinlu|content: d└(97)
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kHanyuPinyin|content: 20841.170:d└
kHanyuPinyin = CodePoint: U+5FB7|field: kHanyuPinyin|content: 20841.170:d└
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kJapaneseKun|content: OSHIE
kJapaneseKun = CodePoint: U+5FB7|field: kJapaneseKun|content: OSHIE
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kJapaneseOn|content: TOKU
kJapaneseOn = CodePoint: U+5FB7|field: kJapaneseOn|content: TOKU
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kKorean|content: TEK
kKorean = CodePoint: U+5FB7|field: kKorean|content: TEK
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kMandarin|content: d└
kMandarin = CodePoint: U+5FB7|field: kMandarin|content: d└
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kTang|content: d?k
kTang = CodePoint: U+5FB7|field: kTang|content: d?k
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kVietnamese|content: ??c
kVietnamese = CodePoint: U+5FB7|field: kVietnamese|content: ??c
U+5FB7
Chinese Character:蟻|CodePoint: U+5FB7|field: kXHC1983|content: 0224.010:d└
kXHC1983 = CodePoint: U+5FB7|field: kXHC1983|content: 0224.010:d└
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kCantonese|content: cing4 seng4 sing4
kCantonese = CodePoint: U+6210|field: kCantonese|content: cing4 seng4 sing4
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kDefinition|content: completed, finished, fixed
kDefinition = CodePoint: U+6210|field: kDefinition|content: completed, finished, fixed
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kHangul|content: ?
kHangul = CodePoint: U+6210|field: kHangul|content: ?
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kHanyuPinlu|content: ch└ng(4462) cheng(17)
kHanyuPinlu = CodePoint: U+6210|field: kHanyuPinlu|content: ch└ng(4462) cheng(17)
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kHanyuPinyin|content: 21399.010:ch└ng
kHanyuPinyin = CodePoint: U+6210|field: kHanyuPinyin|content: 21399.010:ch└ng
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kJapaneseKun|content: NARU TAIRAGERU NASU
kJapaneseKun = CodePoint: U+6210|field: kJapaneseKun|content: NARU TAIRAGERU NASU
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kJapaneseOn|content: SEI JOU
kJapaneseOn = CodePoint: U+6210|field: kJapaneseOn|content: SEI JOU
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kKorean|content: SENG
kKorean = CodePoint: U+6210|field: kKorean|content: SENG
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kMandarin|content: ch└ng
kMandarin = CodePoint: U+6210|field: kMandarin|content: ch└ng
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kTang|content: *zhi?ng
kTang = CodePoint: U+6210|field: kTang|content: *zhi?ng
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kVietnamese|content: th┐nh
kVietnamese = CodePoint: U+6210|field: kVietnamese|content: th┐nh
U+6210
Chinese Character:撹|CodePoint: U+6210|field: kXHC1983|content: 0135.080:ch└ng
kXHC1983 = CodePoint: U+6210|field: kXHC1983|content: 0135.080:ch└ng
Dictionary URL Patterns
? Patterns
? Example) 蟻
? Chinese Character
? https://www.moedict.tw/蟻
? http://hanja.naver.com/hanja?q=蟻
? Code Point
? http://www.zdic.net/z/jd/?u=5fb7
? http://www.unicode.org/cgi-bin/
GetUnihanData.pl?codepoint=5FB7
Development
? Python3
? Heroku (Free Dyno)
? Telegram python API
? https://github.com/eternnoir/
pyTelegramBotAPI
Create Telegram Bot
Get a Bot Token: xxxx2134:1234:xxx (example)
Result
Q&A, Reference
? Twitter @studioego
? sungdh86+git at gmail.com
? Github ?
https://github.com/studioego/CJKV/tree/master/
unihan-dict-link
? CJKV Information Processing, 2nd Edition?
Written by Ken Lunde

More Related Content

Python?? ???? ???? ? ?? ??

  • 1. ??h忖?? ????? PyCon APAC 2016 Day1(2016.08.13) - Lightning Talk ???(DaeHyun Sung/撹?C/撹?鈑/ソン?デヒョン)
  • 3. ????? ? ?? ? Python? ??? ? Telegram bot? ? ???(???? ?? ??)??? ?? ??????
  • 4. Telegram Bot ? Telegram Bot (English) ? @CJKVBot? https://telegram.me/cjkvBot ? ???? ? (???) ? @CJKV_korean_bot? https://telegram.me/CJKV_korean_bot
  • 6. ??(h忖) ? Chinese Character ? h忖/査忖 ? 賂皋A 廨A/h┐nz━ ? ?? ? かんじ ? h│n t?
  • 8. h忖?? ?? ?? ? ??? ????(h忖o灸, ?鐙, Korean-Chinese Character Dictionary) ? ??? ???? http://hanja.naver.com/ ? ??? ??(?云Z, Japanese Dictionary) ? Weblio http://ejje.weblio.jp ? Jisho http://jisho.org ? ???? ??(Vietnamese Ch? N?m Dictionary) ? Chu nom http://www.chunom.org
  • 9. h忖?? ?? ?? ? ??? ??(hZ/査囂, Chinese Dictionary) ? ZDict (酒悶嶄?) http://www.zdic.net ? MOE Dict (Ministry Of Education, Taiwan¨s Chinese Dictionary) (訓w嶄?)? https://www.moedict.tw
  • 10. h忖?? ?? ?? ? Glyph Wiki ? English http://en.glyphwiki.org ? ???(Korean) http://ko.glyphwiki.org ? ?云Z(Japanese): http://glyphwiki.org ? 酒悶嶄?(Simplified Chinese)? http://zhs.glyphwiki.org ? 訓w嶄?(Traditional Chinese)? http://zht.glyphwiki.org
  • 11. h忖?? ?? ?? ? Unicode Consortium ? Unihan database lookup ? http://www.unicode.org/charts/unihan.html ? Chise (CHaracter Information Service Environment) ? http://www.chise.org/ids-find
  • 12. Unicode ? Unihan Database ? http://www.unicode.org/charts/unihan.html ? Code Point ? 蟻 U+5FB7 ? dak1? d└OSHIE TOKU??c ? 撹 U+6210 ? cing4 seng4 sing4, ?, ch└ng, NARU TAIRAGERU NASU, SEI JOU th┐nh
  • 13. U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kCantonese|content: dak1 kCantonese = CodePoint: U+5FB7|field: kCantonese|content: dak1 U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kDefinition|content: ethics, morality, virtue kDefinition = CodePoint: U+5FB7|field: kDefinition|content: ethics, morality, virtue U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kHangul|content: ? kHangul = CodePoint: U+5FB7|field: kHangul|content: ? U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kHanyuPinlu|content: d└(97) kHanyuPinlu = CodePoint: U+5FB7|field: kHanyuPinlu|content: d└(97) U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kHanyuPinyin|content: 20841.170:d└ kHanyuPinyin = CodePoint: U+5FB7|field: kHanyuPinyin|content: 20841.170:d└ U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kJapaneseKun|content: OSHIE kJapaneseKun = CodePoint: U+5FB7|field: kJapaneseKun|content: OSHIE U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kJapaneseOn|content: TOKU kJapaneseOn = CodePoint: U+5FB7|field: kJapaneseOn|content: TOKU U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kKorean|content: TEK kKorean = CodePoint: U+5FB7|field: kKorean|content: TEK U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kMandarin|content: d└ kMandarin = CodePoint: U+5FB7|field: kMandarin|content: d└ U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kTang|content: d?k kTang = CodePoint: U+5FB7|field: kTang|content: d?k U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kVietnamese|content: ??c kVietnamese = CodePoint: U+5FB7|field: kVietnamese|content: ??c U+5FB7 Chinese Character:蟻|CodePoint: U+5FB7|field: kXHC1983|content: 0224.010:d└ kXHC1983 = CodePoint: U+5FB7|field: kXHC1983|content: 0224.010:d└
  • 14. U+6210 Chinese Character:撹|CodePoint: U+6210|field: kCantonese|content: cing4 seng4 sing4 kCantonese = CodePoint: U+6210|field: kCantonese|content: cing4 seng4 sing4 U+6210 Chinese Character:撹|CodePoint: U+6210|field: kDefinition|content: completed, finished, fixed kDefinition = CodePoint: U+6210|field: kDefinition|content: completed, finished, fixed U+6210 Chinese Character:撹|CodePoint: U+6210|field: kHangul|content: ? kHangul = CodePoint: U+6210|field: kHangul|content: ? U+6210 Chinese Character:撹|CodePoint: U+6210|field: kHanyuPinlu|content: ch└ng(4462) cheng(17) kHanyuPinlu = CodePoint: U+6210|field: kHanyuPinlu|content: ch└ng(4462) cheng(17) U+6210 Chinese Character:撹|CodePoint: U+6210|field: kHanyuPinyin|content: 21399.010:ch└ng kHanyuPinyin = CodePoint: U+6210|field: kHanyuPinyin|content: 21399.010:ch└ng U+6210 Chinese Character:撹|CodePoint: U+6210|field: kJapaneseKun|content: NARU TAIRAGERU NASU kJapaneseKun = CodePoint: U+6210|field: kJapaneseKun|content: NARU TAIRAGERU NASU U+6210 Chinese Character:撹|CodePoint: U+6210|field: kJapaneseOn|content: SEI JOU kJapaneseOn = CodePoint: U+6210|field: kJapaneseOn|content: SEI JOU U+6210 Chinese Character:撹|CodePoint: U+6210|field: kKorean|content: SENG kKorean = CodePoint: U+6210|field: kKorean|content: SENG U+6210 Chinese Character:撹|CodePoint: U+6210|field: kMandarin|content: ch└ng kMandarin = CodePoint: U+6210|field: kMandarin|content: ch└ng U+6210 Chinese Character:撹|CodePoint: U+6210|field: kTang|content: *zhi?ng kTang = CodePoint: U+6210|field: kTang|content: *zhi?ng U+6210 Chinese Character:撹|CodePoint: U+6210|field: kVietnamese|content: th┐nh kVietnamese = CodePoint: U+6210|field: kVietnamese|content: th┐nh U+6210 Chinese Character:撹|CodePoint: U+6210|field: kXHC1983|content: 0135.080:ch└ng kXHC1983 = CodePoint: U+6210|field: kXHC1983|content: 0135.080:ch└ng
  • 15. Dictionary URL Patterns ? Patterns ? Example) 蟻 ? Chinese Character ? https://www.moedict.tw/蟻 ? http://hanja.naver.com/hanja?q=蟻 ? Code Point ? http://www.zdic.net/z/jd/?u=5fb7 ? http://www.unicode.org/cgi-bin/ GetUnihanData.pl?codepoint=5FB7
  • 16. Development ? Python3 ? Heroku (Free Dyno) ? Telegram python API ? https://github.com/eternnoir/ pyTelegramBotAPI
  • 17. Create Telegram Bot Get a Bot Token: xxxx2134:1234:xxx (example)
  • 19. Q&A, Reference ? Twitter @studioego ? sungdh86+git at gmail.com ? Github ? https://github.com/studioego/CJKV/tree/master/ unihan-dict-link ? CJKV Information Processing, 2nd Edition? Written by Ken Lunde