たてたてよこよこまるかいてちょん

組み込み関連の情報を共有するためのブログです

StarDict ってどうなってるの?

OmegaTに、StarDict形式の辞書がおけると聞いて、おいてみたくなったのですが、StarDictの公式ページが、.....え...と、どうなってるのでしょうか?

あきらめの悪いfu7mu4は、「今日だけだよね、」とつぶやいては、思い出したようにStarDictの辞書をさがしていたのですが、なんか、もういいかなって。


ええ、こうしましょう。

mac portでそれっぽいのを探す

sudo port install dictconv
なにがはいったのかなぁ。
sudo port contents dictconv

Port dictconv contains:
/opt/local/bin/dictconv
/opt/local/share/doc/dictconv/AUTHORS
/opt/local/share/doc/dictconv/ChangeLog
/opt/local/share/doc/dictconv/COPYING
/opt/local/share/doc/dictconv/NEWS
/opt/local/share/doc/dictconv/README
/opt/local/share/doc/dictconv/TODO

えっとmanual は、えーっとこれでいいのかなぁ。
dictconv --help

Usage: dictconv [-hv] -o OUTPUT_FILE INPUT_FILE

Convert INPUT_FILE dictionary to OUTPUT_FILE dictionary.
The extension of file determines the dictionary type.

-o OUTPUT_FILE path to target dictionary
INPUT_FILE path to source dictionary
-h print help message and exit
-? print help message and exit
-v shows the version information and exit

INPUT_FILE can be:
Babylon Glossary (.bgl)
Freedict dictionary (.tei)
Sdictionary dictionary (.dct)
StarDict dictionary (.ifo)

OUTPUT_FILE can be:
DICT dictionary (.index)
PlainText dictionary (.dic)
StarDict dictionary (.ifo)

記事のLicense このブログの記事は特に断りのない限り、引用部分を除いて、以下の CC-BY 4.0でライセンスします。 https://creativecommons.org/licenses/by/4.0/deed.ja ただし、ブログ内にあるコードは、特に断りのない限り、CC-BY 4.0またはMITLicense で利用できるものとします。