Giter Club home page Giter Club logo

moedict-webkit's Introduction

這是 http://moedict.tw/ 線上及離線查詢 App 的源碼庫。

需求

  • Node.js
    • LiveScript
    • webworker-threads
  • Perl 5.8.0 以上
  • Ruby
    • SASS

安裝環境

sudo npm install -g LiveScript
npm install webworker-threads
(npm install webworker-threads --msvs_version=2012, 如果使用 Visual Stuido 2012)
gem install sass

建置

建置離線檔案

建置離線瀏覽所需要的檔案:

make offline

手動逐步建置

來源 JSON 檔 dict-revised.unicode.jsondict-revised.pua.jsonhttps://github.com/g0v/moedict-data 提供, 再經由 https://github.com/g0v/moedict-epub 造字轉換程式 json2unicode.pl 轉為 Unicode 編碼:

git clone --depth 1 https://github.com/g0v/moedict-data.git
git clone --depth 1 https://github.com/g0v/moedict-epub.git
cp -v moedict-data/dict-revised.json moedict-epub/
cd moedict-epub
perl json2unicode.pl > dict-revised.unicode.json
perl json2unicode.pl sym-pua.txt > dict-revised.pua.json

packat 資料目錄由 json2prefix.lsautolink.lslink2pack.pl 程式產生:

lsc json2prefix.ls a
lsc autolink.ls a > a.txt
perl link2pack.pl a < a.txt

lsc json2prefix.ls t
lsc autolink.ls t > t.txt
perl link2pack.pl t < t.txt

本機運行

make # runs in http://127.0.0.1:8888/

其他

index.*.json 為「重編國語辭典(修訂本)」的完整詞條清單, 於 2013-05-22 取得,為非營利之教育目的,依著作權法第 50 條, 「以**或地方機關或公法人之名義公開發表之著作,在合理範圍內, 得重製、公開播送或公開傳輸。」

dict-concised.audio.json 為「國語辭典簡編本」的詞條發音 檔名清單。

其他平台版本、API 及原始資料等,均可在 http://3du.tw/ 取得。

感謝 http://g0v.tw/ 頻道內所有協助開發的朋友們。

CC0 1.0 公眾領域貢獻宣告

除前述資料檔之外,本目錄下的所有其他檔案,由作者 唐鳳 在法律 許可的範圍內,拋棄該著作依著作權法所享有之權利,包括所有相關 與鄰接的法律權利,並宣告將該著作貢獻至公眾領域。

教育部版權頁

http://dict.revised.moe.edu.tw/htm/sk/ban.htm

    =====================================================
    編  輯  者:        教育部國語推行委員會
    國語推行委員會主任委員:童春發
    編輯委員會主任委員:    李 鍌
    總  編  輯:        李殿魁
    副 總 編 輯:        曾榮汾

    發  行  人:        杜正勝
    發  行  所:        教育部
    地     址:        臺北市中山南路5號
    電     話:        (02)7736-6801
    =====================================================

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.