#amis
2020-03-14
lexifdev
10:04:05
@sl has joined the channel
Mee
10:05:14
@mee has joined the channel
SingYu
10:56:16
@hanigogoph has joined the channel
wildjcrt
10:56:18
GitHub
阿美語萌典網站. Contribute to g0v/amis-moedict development by creating an account on GitHub.
gugod
11:43:31
@gugod has joined the channel
bdon
11:43:51
@liu.brandon has joined the channel
gugod
11:49:48
@wildjcrt 看起來你是把 moedict-webkit 直接拿來做 amis-moedict... 有什麼明顯想做的工作事項嗎? 🙂
gugod
11:50:19
好像有想把 livescript 改回 javascript 的樣子 XD
wildjcrt
11:50:43
livescript 已經用轉換程式轉回 js 了,但 code 就很亂
wildjcrt
11:51:18
我比較需要的是 https://github.com/g0v/moedict-app
目前還沒有 cordova9-amis
目前還沒有 cordova9-amis
GitHub
Stand-alone MoeDict app snapshot. Contribute to g0v/moedict-app development by creating an account on GitHub.
wildjcrt
11:51:43
有 cordova9 我就可以 build 出新的 android app 重新上架
wildjcrt
11:52:35
web 專案已轉到 https://github.com/g0v/amis-moedict
gugod
11:58:33
你剛剛有提到說要匯入資料... 那是新辭典?
wildjcrt
11:59:13
不是,是現在的蔡中涵大詞典,老師有提供新的 word 檔,我在努力轉換成新的可用的字典檔
wildjcrt
12:00:08
目前有三種字典
• 方敏英
• 博利亞潘世光
• 蔡中涵 (default)
• 方敏英
• 博利亞潘世光
• 蔡中涵 (default)
gugod
12:03:41
看來 dict-amis.json 就是 蔡中涵大詞典 ?
wildjcrt
2020-03-14 12:06:36
是使用到的字典檔其中之一。
每個字的 json 放在 s/
每個字的 json 放在 s/
wildjcrt
2020-03-14 12:10:11
我用 rg 看了一下,dict-amis.json 應該只是中繼檔
wildjcrt
2020-03-14 12:10:20
實際沒有用到
gugod
2020-03-14 12:13:41
這部分根 moedict-webkit 是同樣的。網站會抓 `s/` 底下的小檔。這些小檔則是以 `json2prefix` 將大字典檔切割之後做出來的。
wildjcrt
2020-03-14 12:14:55
目前 production 跑得是 /amis-deploy 這個資料夾,基本上是靜態網站
wildjcrt
2020-03-14 12:17:16
我看了一下,現在 dict-amis.json 是方敏英字典用的
gugod
12:04:35
裡面有許多 U+FFFF / U+FFFA / U+FFFB 字符,這目前是有用處的嗎?
wildjcrt
12:06:36
是使用到的字典檔其中之一。
每個字的 json 放在 s/
每個字的 json 放在 s/
a-chioh
12:06:41
在例句
a-chioh
12:06:52
是分阿美語和國語
gugod
12:08:29
了解了
wildjcrt
12:10:20
實際沒有用到
gugod
12:13:41
這部分根 moedict-webkit 是同樣的。網站會抓 `s/` 底下的小檔。這些小檔則是以 `json2prefix` 將大字典檔切割之後做出來的。
wildjcrt
12:14:55
目前 production 跑得是 /amis-deploy 這個資料夾,基本上是靜態網站
wildjcrt
12:17:16
我看了一下,現在 dict-amis.json 是方敏英字典用的
a-chioh
12:22:18
http://bit.ly/2QcAw3e tts samples (一些例句)
a-chioh
12:26:05
包括 metadata (句子和翻譯) http://bit.ly/2WelXjA
a-chioh
12:26:45
(都是從safolu 拿出來)
gugod
12:27:49
Hmm... 目前 amis-moedict 內直接跑 `npm i; gulp build` 是會有錯誤而無法正確結束的。 (node v13.8.0)
各位的開發環境上正常嗎?我該換到哪一版 node ?
各位的開發環境上正常嗎?我該換到哪一版 node ?
gugod
2020-03-14 12:30:03
我遇到的錯誤訊息有兩項不同的。如下:
```> npm i
npm WARN react-dom@0.14.9 requires a peer of react@^0.14.9 but none is installed. You must install peer dependencies yourself.```
```gulp build
fs.js:35
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:35:5```
總之我先改用 node v10.19.0 看看
```> npm i
npm WARN react-dom@0.14.9 requires a peer of react@^0.14.9 but none is installed. You must install peer dependencies yourself.```
```gulp build
fs.js:35
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:35:5```
總之我先改用 node v10.19.0 看看
a-chioh
2020-03-14 12:31:34
我很久沒有build這個
wildjcrt
12:28:15
我現在是 node 10
SingYu
12:28:25
+1+1 我還以為是我的問題 XD
gugod
12:30:03
我遇到的錯誤訊息有兩項不同的。如下:
```> npm i
npm WARN react-dom@0.14.9 requires a peer of react@^0.14.9 but none is installed. You must install peer dependencies yourself.```
```gulp build
fs.js:35
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:35:5```
總之我先改用 node v10.19.0 看看
```> npm i
npm WARN react-dom@0.14.9 requires a peer of react@^0.14.9 but none is installed. You must install peer dependencies yourself.```
```gulp build
fs.js:35
} = primordials;
^
ReferenceError: primordials is not defined
at fs.js:35:5```
總之我先改用 node v10.19.0 看看
a-chioh
12:31:34
我很久沒有build這個
wildjcrt
12:44:25
我記得 node 12 應該也可以跑
wildjcrt
12:45:02
現在不用 build,但是跑 make dev 會用到 gulp
gugod
12:46:14
node 11 測試成功。 看來不能用太新的 gulp
https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node
https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node
Stack Overflow
I have installed node modules by npm install, then I tried to do gulp sass-watch in command prompt. After that I got the below response. [18:18:32] Requiring external module babel-register fs.js:27
wildjcrt
12:47:19
我有想升級過,但身為後端我實在跟 gulp 不熟
gugod
12:47:33
不用 gulp 那 `gulp build` 的替代品是什麼 ?
wildjcrt
12:48:25
可以繼續用 gulp 啊 XD
wildjcrt
12:48:42
ruby 的話就是 rake
risingmoon
22:38:23
@justindavidlee88 has joined the channel