Giter VIP home page Giter VIP logo

ime-phonetic-importer's Introduction

IME-phonetic-importer

A helper tool for importing custom vocabularies into Microsoft New Phonetic IME

微軟新注音輸入法使用者造詞的匯入幫助工具

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:

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 <input.txt> <output.txt>

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

ime-phonetic-importer's People

Contributors

hiiwave avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.