ウェールズ語の単語リストはどこにありますか?

ウェールズ語の単語リストはどこにありますか?

私のUbuntuシステムでウェールズ語の単語リストを探しています。apt-file search /usr/share/dict/オプションは表示されません。しかし、アスペルシー存在します。公式の説明では、「このパッケージには、GNU AspellスペルチェッカーにWelsh言語のサポートを追加するために必要なすべてのファイルが含まれています」このパッケージをインストールしましたが、使用する単語のリストが見つかりませんでした。

ウェールズ語の単語リストはどこにありますか?

ベストアンサー1

どのように機能するかはよくわかりませんが、aspell単語リストが単純なテキストファイルではなく、バイナリ形式のようなもののようです。私はあなたがcy.cwl

ランチパッドリンクからtar.gzファイルをダウンロードし、解凍して実行し./configureましたmake

$ wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/aspell-cy/0.50-3-6.2/aspell-cy_0.50-3.orig.tar.gz 2>/dev/null 
$ tar xvzf aspell-cy_0.50-3.orig.tar.gz 
aspell-cy-0.50-3/
aspell-cy-0.50-3/doc/
aspell-cy-0.50-3/doc/gpl_1.0.txt
aspell-cy-0.50-3/info
aspell-cy-0.50-3/cy.multi
aspell-cy-0.50-3/README
aspell-cy-0.50-3/configure
aspell-cy-0.50-3/Copyright
aspell-cy-0.50-3/cy.dat
aspell-cy-0.50-3/cy.cwl
aspell-cy-0.50-3/welsh.alias
aspell-cy-0.50-3/Makefile.pre
aspell-cy-0.50-3/COPYING
$ cd aspell-cy-0.50-3/
$ ./configure 
Finding Dictionary file location ... /usr/lib/aspell-0.60
Finding Data file location ... /usr/lib/aspell-0.60
$ make
word-list-compress d < cy.cwl | aspell  --lang=cy create master ./cy.rws

印刷されたコマンドは、何かを解凍し、言語エントリを生成するために渡すmakeように見えます。実際にコマンドの最初の部分を実行すると、ウェールズ語辞書が印刷されます。daspellcy

 $ word-list-compress d < cy.cwl | head -n30
'ch
'i
'm
'ma
'n
'na
'r
'th
'u
'w
Aberdaugleddyf
Abergwaun
Aberhonddu
Abermo
Abertawe
Aberteifi
Adda
Adfent
Affrig
Ahasferus
Aifft
Ailfedyddiwr
Ailfedyddwyr
Alban
Albanwr
Albanwyr
Almaen
Almaenaidd
Almaeneg
Almaenes

したがって、上記で行った操作を実行するか、locate cy.cwlシステムで実行してから次の操作を行います。

word-list-compress d < cy.cwl > welsh.dict

おすすめ記事