ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@lic145.kiev.ua>
To: mandrake-russian@altlinux.ru
Cc: Mikhail Zabaluev <mhz@alt-linux.org>
Subject: Re: [mdk-re] S: oo-noimg.sh (was: big file trouble?)
Date: Thu Jan 31 13:59:01 2002
Message-ID: <20020131110157.GG1585@lic145.kiev.ua> (raw)
In-Reply-To: <20020131090247.GB11284@mhz.mikhail.zabaluev.name>


[-- Attachment #1.1: Type: text/plain, Size: 556 bytes --]

On Thu, Jan 31, 2002 at 12:02:47PM +0300, Mikhail Zabaluev wrote:
> > >     Помогло когда добавил еще один своп раздел. Вернее,
> > строчку (и 670K ;-) -- content.xml из распакованного .sxw...
> сохранить с помощью xmllint. Правда, может понадобиться DTD для
Кстати, в процессе вычитки всякого-разного родился мелкий
скпритик, который берет аргументы (*.sxw) и выдирает из них
картинки с целью уменьшения объема собственно текста.  Вдруг кому
пригодится....

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ http://visa.chem.univ.kiev.ua/~mike/

[-- Attachment #1.2: oo-noimg.sh --]
[-- Type: text/plain, Size: 462 bytes --]

#!/bin/bash
[ -z "$*" ] && {
	echo "$0: stripping images from OpenOffice.org documents"
	echo "*** usage: $0 document.sxw [...]"
	echo "*** stripped files written as _ORIGINALNAME"
	exit 1
}

for i in $*; do 
	NEW=_"`basename $i`"
	NEWDIR="`dirname $i`"
	DIR=`mktemp -d $TMPDIR/oo-no-img.XXXXXX`
	unzip $i -d $DIR
	rm -f $DIR/Pictures/*
	(cd $DIR; zip -9 -r "$NEW" *)
	mv "$DIR/$NEW" "$NEWDIR"
	echo "Look: "
	ls -l $i "$NEWDIR/$NEW"
	echo ---
	rm -rf $DIR
done

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  reply	other threads:[~2002-01-31 13:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-30 18:16 [mdk-re] big file trouble? Sergey Ivanov
2002-01-30 19:08 ` Egor Grebnev
2002-01-30 19:41 ` Sergey Ivanov
2002-01-30 22:03   ` Michael Shigorin
2002-01-31  6:39     ` Sergey Ivanov
2002-01-31 11:44       ` [mdk-re] [JT] " Michael Shigorin
2002-01-31 12:03         ` [mdk-re] " Mikhail Zabaluev
2002-01-31 13:59           ` Michael Shigorin [this message]
2002-01-31 15:13   ` [mdk-re] " Konstantin Volckov

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=20020131110157.GG1585@lic145.kiev.ua \
    --to=mike@lic145.kiev.ua \
    --cc=mandrake-russian@altlinux.ru \
    --cc=mhz@alt-linux.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