From: Andrei Lomov <lomov@math.nsc.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Дежавю
Date: Wed, 05 Nov 2008 20:17:21 +0600
Message-ID: <ges9rj$k7s$2@ger.gmane.org> (raw)
In-Reply-To: <geoj37$13u$1@ger.gmane.org>
Ivan Petrov wrote:
> Про самый поплярный дистрибутив.
>
> Хорошо бы если не оболочку, то хотя бы скрипт написать для кодирования в
> djvu формат. Филологи, историки и др. работающие со сканами книжек будут
> охвачены тогда. Все таки большинству гуманитариев прочитать и понять тех
> документацию к консольным утилитам будет просто невозможно. Они мыслят
> по-другому.
> Я лично знаю историка/филолога который живет под Альтом (потому что мне
> не хочется идти и ставить ему пиратскую "винду"). И ему надо делать
> djvu-шки.
>
> И.П.
Сканы страниц (*.tif) сложить в один каталог
и запустить в нем скрипт такого содержания:
===
#!/bin/sh
# Сжатие в djvu снимков страниц книги
# Вячеслав Диконов <linuxbox@degunino.net>
ext="tif"
if LST=$(ls *.$ext | sed s/\ /_/g) > /dev/null; then
for i in $LST; do
i="$(echo "$i" | sed -e s/_/\ /g -e s/\.$ext//g )"
# $i - Имя файла без расширения
echo $i
cjb2 -verbose "$i.$ext" "$i.djvu"
#rm -f $i.$ext
done
fi
# Создать итоговый файл
djvm -c $(echo $PWD | sed -e s/.*\\///g ).djvu *.djvu
===
Если сканы *.jpg:
====
#!/bin/sh
# Сжатие в djvu снимков страниц книги
# Вячеслав Диконов <linuxbox@degunino.net>
ext="jpg"
if LST=$(ls *.$ext | sed s/\ /_/g) > /dev/null; then
for i in $LST; do
i="$(echo "$i" | sed -e s/_/\ /g -e s/\.$ext//g )"
# $i - Имя файла без расширения
echo $i
convert "$i.$ext" "$i.pbm"
cjb2 -verbose "$i.pbm" "$i.djvu"
rm -f "$i.pbm"
#rm -f $i.$ext
done
fi
# Создать итоговый файл
djvm -c "$(echo $PWD | sed -e s/.*\\///g )".djvu *.djvu
====
--
Всего доброго,
А.Л.
next prev parent reply other threads:[~2008-11-05 14:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-04 4:29 Ivan Petrov
2008-11-04 12:01 ` Michael Shigorin
2008-11-05 14:17 ` Andrei Lomov [this message]
2008-11-05 15:27 ` Ivan Petrov
2008-11-05 15:36 ` Turkov Oleg
2008-11-05 17:06 ` Ivan Petrov
2008-11-06 19:32 ` Andrei Lomov
2008-11-06 19:39 ` Andrei Lomov
2008-11-07 1:58 ` Ivan Petrov
2008-11-07 6:54 ` Yuri Bushmelev
2008-11-07 16:53 ` [Comm] Дежавю [JT] Andrei Lomov
2008-11-08 9:34 ` Ivan Petrov
2008-11-10 7:31 ` Dmitriy Kruglikov
2008-11-10 11:24 ` Ivan Petrov
2008-11-07 1:54 ` [Comm] Дежавю Ivan Petrov
2008-11-07 17:01 ` Andrei Lomov
2008-11-05 15:29 ` Ivan Petrov
2008-11-07 7:10 ` Vladimir A. Svyatoshenko
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='ges9rj$k7s$2@ger.gmane.org' \
--to=lomov@math.nsc.ru \
--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