From: Sergey Kurakin <sergeykurakin@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Hunspell & new dicitonary
Date: Sun, 21 Mar 2010 22:08:28 +0300
Message-ID: <4BA66EAC.7070007@gmail.com> (raw)
In-Reply-To: <ho55jl$7c5$1@dough.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 597 bytes --]
On 03/21/2010 04:04 PM, anyr@tut.by wrote:
> Sergey Kurakin wrote:
>> Но задача-то, вроде, не очень сложная. Сами не справитесь?
> Пожалуй нет.
Тогда попробуйте мой. Запускать примерно так:
$ ./dic_combine ru_RU-medicine.dic /usr/share/myspell/ru_RU.dic >
ru_RU-med.dic
Исходных словарей может быть от двух и более, но все они должны
использовать один и тот же affix-файл (и следовательно, одну
кодировку). Левый исходный словарь имеет приоритет перед правым.
То есть, при наличии в словарях одного и того же слова с разными
флагами, используются флаги из первого.
--
WBR,
Sergey Kurakin
[-- Attachment #2: dic_combine --]
[-- Type: text/plain, Size: 478 bytes --]
#!/bin/bash
# Combines two or more hunspell dictionaries.
# (C) 2010 Sergey Kurakin <kurakin@altlinux.org>
# Attention! All source dictionaries MUST share the same affix file.
# Usage: dic_combine source1.dic source2.dic [source3.dic...] > combined.dic
# The left source dictionary takes precedence over the right one.
WORDS=`cat $@ | sort --field-separator=/ --key=1,1 --unique | sed -r 's|^[0123456789]*$||'`
echo $WORDS | wc -w
for WORD in $WORDS
do
echo $WORD
done
next prev parent reply other threads:[~2010-03-21 19:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-07 10:58 anyr
2010-03-08 14:33 ` Sergey Kurakin
2010-03-09 7:47 ` anyr
2010-03-10 12:18 ` Sergey Kurakin
2010-03-13 14:37 ` anyr
2010-03-14 13:40 ` Sergey Kurakin
2010-03-14 20:31 ` anyr
2010-03-16 18:19 ` anyr
2010-03-16 21:07 ` anyr
2010-03-17 18:09 ` Sergey Kurakin
2010-03-17 17:21 ` Sergey Kurakin
2010-03-17 18:53 ` anyr
2010-03-17 20:26 ` Sergey Kurakin
2010-03-20 14:57 ` anyr
2010-03-21 9:42 ` Sergey Kurakin
2010-03-21 13:04 ` anyr
2010-03-21 19:08 ` Sergey Kurakin [this message]
2010-03-22 15:41 ` Andrey Yurkovsky
2010-03-25 18:53 ` Andrey Yurkovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BA66EAC.7070007@gmail.com \
--to=sergeykurakin@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git