g0v / amis-moedict

阿美語萌典網站
https://amis.moedict.tw
Other
19 stars 8 forks source link
amis cordova g0v moedict nodejs

這是阿美語萌典網站 https://amis.moedict.tw 線上及離線查詢 App 的源碼庫。

阿美語萌典團隊的 hackfoldr 傳送門

About 'Amis moedict

’Amis/Pangcah Dictionary, an online ’Amis to Chinese / English / French dictionary, was established with the power of citizens to preserve the once considered soon-to-disappear indigenous language.

In Taiwan, there are 16 different indigenous nations. Though their languages never developed into writing system, detailed records have been made with the efforts of missionaries and cultural heritage inheritors.

The ’Amis/Pangcah Dictionary is the first example of an digitized, online indigenous language dictionary. We hope that others can develop their own online dictionaries, too.

Web 開發

環境需求

安裝開發環境

git clone git@github.com:g0v/amis-moedict.git
npm install
npm install gulp-cli --global
make amis

本機運行

make dev

相關設定檔案請看

JSON 結構說明

json 檔案資料夾分類如下:

JSON 完整欄位

以下兩段是等義的,因為維護者比較習慣看註解格式,但是 TypeScript 電腦可讀,所以兩種格式都附上。

註解格式

{
  h: [ # Array, required
    {
      name: 'String, optional',
      d: [ # Array, required
        {
          f: 'String, required',
          e: [ # Array, optional
            'String'
          ],
          s: [ # Array, optional
            'String'
          ],
          r: [ # Array, optional
            'String'
          ],
          type: 'String, optional'
        }
      ]
    }
  ],
  t: 'String, required',
  stem: 'String, optional',
  tag: 'String, optional'
}

TypeScript 格式

type Entry = {
  h: {
    name?: string,
    d: {
      f: string,
      e?: string[],
      s?: string[],
      r?: string[],
      type?: string
    }[]
  }[],
  t: string,
  stem?: string,
  tag?: string,
};

欄位說明

Deploy production 步驟

如果有改到 js 或 css

$ make manifest
$ git add .
$ git commit -m 'Run `make manifest` and rebuild deps.js'
$ git push

如果有改到字典檔案,如更新蔡中涵大辭典

$ make manifest
$ make amis-static
$ git add .
$ git commit -m 'Update amis-static'
$ git push

字典相關

重新編譯字典

編譯環境需求

編譯指令說明

全部字典重編:

make amis-build

只重編方敏英字典

make amis-fey

只重編潘世光、博利亞阿法字典

make amis-poinsot

只重編蔡中涵大辭典

make amis-safolu

授權

字典授權

Logo 字型

目前 Logo 使用 Century® Schoolbook 這個字體。

CC0 1.0 公眾領域貢獻宣告

詳細宣告參見LICENSE.txt