發表文章

目前顯示的是 9月, 2018的文章

[Archlinux] 從 GitHub 下載 cataclysm 編來玩!

cataclysm 是一款古意濃厚(?)的遊戲。 最大的賣點是移植性高,語言支持強, 能充分發揮玩家想像力(逃 聽說作者到現在還很活躍的進行改版呢。 (本來是想玩 nethack ... 然後就不小心看到 cataclysm ><) 有鑑於從 pacman, yaourt 下來的版本都有些問題, 我直接 從 GitHub 下載 進行編譯。 由於是 Arch based 的系統, 先裝好環境:sudo pacman -S base-devel make ! 然後發現我要 astyle sudo pacman -S astyle make ! 然後編很久~ 結果遇到了: CommandLine Error: Option 'asm-instrumentation' registered more than once! LLVM ERROR: inconsistency in registered CommandLine options $ sudo pacman -Rdd llvm-libs 編譯成功! ref : manjaro forum  (玩 antergos 找解答竟然跑到 manjaro 去 ><)once/54862

My English helpers under linux terminal

到裝好發音工具為止, 這環境總算是比較完整一點了。 紀錄一下我的工具們吧 :) 最一開始是使用 ici - 一個 python 線上查詢工具,要網路。 用起來嘛,速度不夠快,然後受限於連網環境。 那還不如直接開瀏覽器,使用 google translater  的插件, 綁定個 ctrl + q 直接查還比較快,還可以查整句翻譯。 缺點是沒有例句,也沒有音標(可是能發音就夠了) 很早就景仰星際譯王(StarDict)的大名, 可是一直找不到適合的字典檔。 最後發現在 arch wiki 上就有提供 下載連結 。 使用了 StarDict 的 terminal 板 - sdcv  後,就把 ici 淘汰了。 離線環境,如果有發音工具那自然是墜吼的。 我找到了 espeaker ,但發音太機械。 然後 pacman 下來的 festival  又遇到 segmentation fault (查過,好像是 c++ compiler 把 null pointer 優化所致) 最後上 github 抓 festival 的 source code 下來 compiler, 在搭配上 pacman 下來的 voices files 才運行成功 ^^ # get source from github git clone git@github.com:festvox/festival.git git clone git@github.com:festvox/speech_tools.git git clone git@github.com:festvox/festvox.git cd speech_tools && ./configure && make install && make all && cd .. cd festvox && ./configure && make all && cd .. cd festival && ./configure && make install && make all && cd .. # get festival voices files, dicts... f