Giter VIP home page Giter VIP logo

util-cns11643-to-cin-php's Introduction

util-cns11643-to-cin-php

操作步驟

請依照下面順序操作。

下載資源檔

執行下面指令,下載資源檔。

$ make asset

或是執行

$ composer cin-asset

或是執行

$ bin/asset.sh

會下載檔案

  • asset/Open_Data.zip

然後解開

  • asset/Open_Data

主要會產生

  • asset/data/CNS_phonetic.txt
  • asset/data/CNS2UNICODE_Unicode_2.txt
  • asset/data/CNS2UNICODE_Unicode_15.txt
  • asset/data/CNS2UNICODE_Unicode_BMP.txt

註:原本就有存在下面這個檔

  • data/CNS_phonetic.txt

轉檔

執行下面指令,會執行轉檔的動作。

$ make cin

或是執行

$ composer cin

或是執行

$ bin/cin.php

執行完畢後,會產生幾個檔案

  • var/CnsPhonetic.cin (cin檔)
  • var/CnsPhonetic.csv (對照cin檔,除錯用,有多餘的相關資訊)
  • var/InvalidPhonetic.csv (非合法注音列表)
  • var/CollisionList.csv (重複的「phonetic - unicode」)

觀看「CnsPhonetic.cin」

執行下面指令,觀看「CnsPhonetic.cin」這個檔的內容

$ less var/CnsPhonetic.cin

也可以執行下面指令,計算「CnsPhonetic.cin」這個檔的行數。

$ wc -l var/CnsPhonetic.cin

相關專案

相關討論

util-cns11643-to-cin-php's People

Contributors

samwhelp avatar

Watchers

 avatar  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.