From: Oleg Dolgov <dov@media-link.info>
To: community@altlinux.ru
Subject: Re: [Comm] База для fortun
Date: Thu, 27 Nov 2003 17:19:03 +0200
Message-ID: <20031127171903.77bc42a1.dov@media-link.info> (raw)
In-Reply-To: <20031126101846.GT6596@inferno.immo>
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
On Wed, 26 Nov 2003 13:18:46 +0300 "Alexey I. Froloff" <raorn@immo.ru>
wrote:
> * Oleg Dolgov <dov@media-link.info> [031126 12:57]:
> > Там идут по два файла, один с самим текстом, а второй .dat с набором
> > непонятных для меня чисел, из чего сделал вывод, что нужен некий
> > генератор оных :-)
> /usr/sbin/strfile из пакета fortune-mod. Есть manpage по нему.
>
Вопрос вдогонку.
В какой кодировке должен быть текстовик? Набрал я файл для пробы из пары
фраз, разделенных строкой с "%" как по инструкции. Локаль у меня
cp-1251. В mc содержимое просматривается нормально, а фортуна выдает
???????????????? ?????????? ????????...
Посмотрел в том-же mc Альтовскую базу фраз, а там
[...] С_азР_Р_Р_Р_Р_Р_РёР_ С_Р_Р_С_ Р_С_С_С_Р_ Р_Р_Р_Р°С_С_
Р°Р_С_Р_Р_Р°С_РёР·РёС_Р_Р_Р°Р_Р_С_Р_... -- mouse in devel@
%
и так далее.
Это что, типа UTF-8? Тогда как перегнать мой текст из cp-1251 в UTF-8?
P.S. Подозреваю, что recode, но ман меня не просветил. Что правильно
набрать в командной строке?
--
С наилучшими,
Олег Долгов
<dov at media-link dot info>
Registered Linux user #315454
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
next prev parent reply other threads:[~2003-11-27 15:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-26 9:31 Oleg Dolgov
2003-11-26 10:18 ` Alexey I. Froloff
2003-11-27 15:19 ` Oleg Dolgov [this message]
2003-11-27 15:29 ` Leonid B. Sysoletin
2003-11-27 15:38 ` Alexey I. Froloff
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=20031127171903.77bc42a1.dov@media-link.info \
--to=dov@media-link.info \
--cc=community@altlinux.ru \
/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