Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiiwave/IME-phonetic-importer
A helper tool for importing custom vocabularies into Microsoft New Phonetic IME 微軟新注音輸入法使用者造詞的匯入幫助工具
https://github.com/hiiwave/IME-phonetic-importer
Last synced: 15 days ago
JSON representation
A helper tool for importing custom vocabularies into Microsoft New Phonetic IME 微軟新注音輸入法使用者造詞的匯入幫助工具
- Host: GitHub
- URL: https://github.com/hiiwave/IME-phonetic-importer
- Owner: hiiwave
- License: mit
- Created: 2017-11-15T08:23:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T08:04:27.000Z (over 6 years ago)
- Last Synced: 2024-08-01T08:09:42.797Z (3 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IME-phonetic-importer
A helper tool for importing custom vocabularies into Microsoft New Phonetic IME微軟新注音輸入法[使用者造詞](https://www.techbang.com/posts/19800-how-to-win-7-related-term-editing-tools-pchome224drj)的匯入幫助工具
For more information about 使用者造詞: https://www.google.com.tw/search?q=使用者造詞
## Motivation
微軟新注音的使用者造詞除了手動輸入外,還有匯入功能,但其匯入功能要求單詞要附加注音並遵守一定格式,
這個script可以將一份新詞清單轉換成使用者造詞工具接受的格式。The Custom Vocabulary Tool in Microsoft New Phonetic IME supports importing, but it only accepts an odd format.
This script is used to transform a list of custom vocabularies into proper format accepted by Microsoft New Phonetic IME.## Prerequisites:
- Python 3
- [pypinyin](https://github.com/mozillazg/python-pinyin)
- [pandas](http://pandas.pydata.org/)## Usage
Putting custom vocabularies into a text file (single vocabulary for each line), and then use the script to transform it by the following command:`python import_adapter.py `
Now use 使用者造詞工具 to import output.txt into your custom vocabularies, and it's done!
## Example
```
python import_adapter.py test_input.txt test_output.txt`// test_input.txt
小確幸
過譽
銅鋰鋅
已知用火// test_output.txt
小確幸 ㄒㄧㄠˇ ㄑㄩㄝˋ ㄒㄧㄥˋ
過譽 ㄍㄨㄛˋ ㄩ ˋ
銅鋰鋅 ㄊㄨㄥˊ ㄌㄧ ˇ ㄒㄧㄣˉ
已知用火 ㄧ ˇ ㄓ ˉ ㄩㄥˋ ㄏㄨㄛˇ
```## Contributing
Any thought or feedback is welcome.## LICENSE
[MIT](./LICENSE)