* [Comm] База для fortun
@ 2003-11-26 9:31 Oleg Dolgov
2003-11-26 10:18 ` Alexey I. Froloff
0 siblings, 1 reply; 5+ messages in thread
From: Oleg Dolgov @ 2003-11-26 9:31 UTC (permalink / raw)
To: Community
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
Здравствуйте.
Подскажите плз. как генерировать собственную базу "крылатых" выражений
для fortun-mod?
Там идут по два файла, один с самим текстом, а второй .dat с набором
непонятных для меня чисел, из чего сделал вывод, что нужен некий
генератор оных :-)
--
С наилучшими,
Олег Долгов
<dov at media-link dot info>
Registered Linux user #315454
[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] База для fortun
2003-11-26 9:31 [Comm] База для fortun Oleg Dolgov
@ 2003-11-26 10:18 ` Alexey I. Froloff
2003-11-27 15:19 ` Oleg Dolgov
0 siblings, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2003-11-26 10:18 UTC (permalink / raw)
To: Community
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]
* Oleg Dolgov <dov@media-link.info> [031126 12:57]:
> Там идут по два файла, один с самим текстом, а второй .dat с набором
> непонятных для меня чисел, из чего сделал вывод, что нужен некий
> генератор оных :-)
/usr/sbin/strfile из пакета fortune-mod. Есть manpage по нему.
--
Regards, Sir Raorn.
-------------------
> Очень интересно, когда же появится релиз ядра 2.4.20 от ALT Linux.
Не ранее чем пройдёт внутриофисное тестирование.
Пока никак не проходит.
-- ldv in sisyphus@
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] База для fortun
2003-11-26 10:18 ` Alexey I. Froloff
@ 2003-11-27 15:19 ` Oleg Dolgov
2003-11-27 15:29 ` Leonid B. Sysoletin
2003-11-27 15:38 ` Alexey I. Froloff
0 siblings, 2 replies; 5+ messages in thread
From: Oleg Dolgov @ 2003-11-27 15:19 UTC (permalink / raw)
To: community
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] База для fortun
2003-11-27 15:19 ` Oleg Dolgov
@ 2003-11-27 15:29 ` Leonid B. Sysoletin
2003-11-27 15:38 ` Alexey I. Froloff
1 sibling, 0 replies; 5+ messages in thread
From: Leonid B. Sysoletin @ 2003-11-27 15:29 UTC (permalink / raw)
To: community
В сообщении от 27 Ноябрь 2003 18:19 Oleg Dolgov написал(a):
> P.S. Подозреваю, что recode, но ман меня не просветил. Что правильно
> набрать в командной строке?
recode windows-1251..UTF8 filename
--
Л. Сысолетин,
webmaster@bdo.ru
[Team Ёжики-рулез!] [Team Котёнки на солярке] [Team Берегите букву "ё"!]
[Team Я люблю свою фортунку] [Team Фортунка в переписку не вступает]
A disciple of another sect once came to Drescher as he was eating
his morning meal. "I would like to give you this personality test", said
the outsider, "because I want you to be happy."
Drescher took the paper that was offered him and put it into the
toaster -- "I wish the toaster to be happy too".
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] База для fortun
2003-11-27 15:19 ` Oleg Dolgov
2003-11-27 15:29 ` Leonid B. Sysoletin
@ 2003-11-27 15:38 ` Alexey I. Froloff
1 sibling, 0 replies; 5+ messages in thread
From: Alexey I. Froloff @ 2003-11-27 15:38 UTC (permalink / raw)
To: community
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
* Oleg Dolgov <dov@media-link.info> [031127 18:26]:
> В какой кодировке должен быть текстовик?
В fortune-mod >= 1.0-ipl33mdk - utf-8
> Набрал я файл для пробы из пары
> фраз, разделенных строкой с "%" как по инструкции. Локаль у меня
> cp-1251. В mc содержимое просматривается нормально, а фортуна выдает
> ???????????????? ?????????? ????????...
> Посмотрел в том-же mc Альтовскую базу фраз, а там
> [...] С_азР_Р_Р_Р_Р_Р_РёР_ С_Р_Р_С_ Р_С_С_С_Р_ Р_Р_Р_Р°С_С_
> Р°Р_С_Р_Р_Р°С_РёР·РёС_Р_Р_Р°Р_Р_С_Р_... -- mouse in devel@
> и так далее.
> Это что, типа UTF-8? Тогда как перегнать мой текст из cp-1251 в UTF-8?
iconv -f cp1251 -t utf-8 < file.cp1251 > file.utf-8
И strfile натравливать на file.utf-8
--
Regards, Sir Raorn.
-------------------
Электричества нет, но мы работаем!
-- aen in devel@
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-11-27 15:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-26 9:31 [Comm] База для fortun Oleg Dolgov
2003-11-26 10:18 ` Alexey I. Froloff
2003-11-27 15:19 ` Oleg Dolgov
2003-11-27 15:29 ` Leonid B. Sysoletin
2003-11-27 15:38 ` Alexey I. Froloff
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