
내 우분투 시스템에서 웨일스어 단어 목록을 찾고 있습니다. 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
것처럼 보입니다 . 실제로 명령의 첫 번째 부분을 실행하면 웨일스어 사전이 인쇄됩니다.d
aspell
cy
$ 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