How to unpack a RAR file with SVGs in it?
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
OK, how do I unpack Moogle2SVG.rar ???
-------Old Question-------------------
This thread is for discussing how to create SVG graphics with Inkscape.
Currently I try to convert a PostScript file into an SVG file, but I don't know how to place it properly and how to crop that A4 paper to the size of a key cap.
-------Old Question-------------------
This thread is for discussing how to create SVG graphics with Inkscape.
Currently I try to convert a PostScript file into an SVG file, but I don't know how to place it properly and how to crop that A4 paper to the size of a key cap.
Last edited by 7bit on 07 Nov 2011, 23:00, edited 1 time in total.
-
- Location: Germany
- DT Pro Member: -
http://inkscape-forum.andreas-s.net/topic/112456#
this works for croppingSimply draw a square around the area you want visible.
Make sure it's the VERY top layer or object.
Then CTRL+A
OBJECT>CLIP>SET
Then, do what the others have recommended:
FILE>DOCUMENT PROPERTIES> FIT PAGE TO SELECTION.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
Thanks!mintberryminuscrunch wrote:...
Then, do what the others have recommended:
FILE>DOCUMENT PROPERTIES> FIT PAGE TO SELECTION.
this works for cropping
- fossala
- Elite +1
- Location: UK
- Main keyboard: HHKB Type-S
- Main mouse: Rollermouse Free2
- Favorite switch: Topre
- DT Pro Member: -
Code: Select all
UNRAR(1) RAR archiver UNRAR(1)
NAME
unrar - extract files from rar archives
SYNOPSIS
unrar <command> [-<switch 1> -<switch N>] archive [files...] [path...]
DESCRIPTION
This manual page documents briefly the unrar command.
This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page.
Commands and options described here are as of unrar 2.02.
OPTIONS
After the program name comes a command and then optional switches with
dashes before them. A summary of commands is included below. For a
complete description, run unrar without options.
e Extract files to current directory.
l List archive content.
p Print file to stdout.
t Test archive files.
v Verbosely list archive.
x Extract files with full path.
SWITCHES
NOTE: Every switch must be separated by a whitespace. You cannot put
them together.
-av- Disable Authenticity Verification check.
-c- Disable comments show.
-f Freshen files.
-kb Keep broken extracted files.
-ierr Send all messages to stderr.
-inul Disable all messages.
-o+ Overwrite existing files.
-o- Do not overwrite existing files.
-p<password>
Set password.
-p- Do not query password.
-r Recurse subdirectories.
-u Update files.
-v List all volumes.
-x<file>
Exclude specified file.
-x@<list>
Exclude files in specified list file.
-x@ Read file names to exclude from stdin.
-y Assume Yes on all queries.
AUTHOR
This manual page was written by Petr Cech <cech@debian.org> according
to "unrar -h" for the Debian GNU/Linux system (but may be used by oth‐
ers).
02.11.1999 UNRAR(1)
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
Thanks!fossala wrote:..
:~> unrar Moogle2SVG.rar
bash: unrar: command not found
:~> unrar Moogle2SVG.rar
unrar 0.0.1 Copyright (C) 2004 Ben Asselstine, Jeroen Dekkers
Extracting from /home/goewe/tmp/SVG/Moogle2SVG.rar
Extracting Alt.svg Failed
Extracting CapsLock.svg Failed
Extracting Control.svg Failed
Extracting Menu.svg Failed
Extracting RightShift.svg Failed
Extracting Windows.svg Failed
6 Failed
Nice.
-
- Location: Germany
- DT Pro Member: -
Could be that you need the propriatary (sorry no spellchecker) version of unrar
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
I don't install non-free software just because a Windows user thinks he must use WinRAR it pack SVG files together.mintberryminuscrunch wrote:Could be that you need the propriatary (sorry no spellchecker) version of unrar
However, the problem has been solved.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
It was the only version available via package manager. I've got no time to search for tools to unpack something exotic as a RAR archive!lal wrote:Probably way too old unrar.fossala wrote:May I ask what was wrong?
Nevertheless, problem solved. Go everybody and order more key caps and PCBs!
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
Just for the record:
34576 Moogle2SVG.zip
33781 Moogle2SVG.rar<--------WinRAR
24509 Moogle2SVG.tar.gz
23114 Moogle2SVG.tar.bz2
All of them contain the same original SVG files.
34576 Moogle2SVG.zip
33781 Moogle2SVG.rar<--------WinRAR
24509 Moogle2SVG.tar.gz
23114 Moogle2SVG.tar.bz2
All of them contain the same original SVG files.
- lal
- Main keyboard: Poker
- Main mouse: TrackMan
- Favorite switch: BS
- DT Pro Member: -
gzip and bzip2 compress with the highest compression ratio by default. RAR usually compresses better than both of them, so the archive was most probably not created with a high compression ratio mode. I'm fully with you about FOSS and open data formats, but that one you have to give to the rarlabs I'm afraid.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
No, beacause WinRAR is proprietary so I can't install it.Soarer wrote:To make a fair comparison, you should also test a rar of the tar
The one who sent me the SVGs told me RAR is superior to any other compression.
The only thing I had to prove is that I can compress it further with easy to use tools which are available on almost any OS platform.
LOL!lal wrote:gzip and bzip2 compress with the highest compression ratio by default. RAR usually compresses better than both of them, so the archive was most probably not created with a high compression ratio mode. I'm fully with you about FOSS and open data formats, but that one you have to give to the rarlabs I'm afraid.
Give me a proof!
What is the use of a compression if it is only half-ways compressed by default and half of the people can't decompress it?
- Soarer
- Location: UK
- Favorite switch: F
- DT Pro Member: -
No, you're missing my point somewhat. Tarring the files together and then compressing usually results in better compression, regardless of the compressor. So you did not prove anything!
For a big lump of source code, small images, etc etc...
6,355,470 nonpareil-0.79/*
6,481,920 nonpareil-0.79.tar
4,761,552 nonpareil-0.79.tar.gz
4,649,413 nonpareil-0.79.rar
4,526,353 nonpareil-0.79.tar.rar
Of those last three, only nonpareil-0.79.rar can have a single file extracted easily from it, with the others you need to decompress the whole tar and then extract the file. Of course that doesn't matter for a Noddy example of a few SVGs, but it is a key difference in how the two packing methods work.
For a big lump of source code, small images, etc etc...
6,355,470 nonpareil-0.79/*
6,481,920 nonpareil-0.79.tar
4,761,552 nonpareil-0.79.tar.gz
4,649,413 nonpareil-0.79.rar
4,526,353 nonpareil-0.79.tar.rar
Of those last three, only nonpareil-0.79.rar can have a single file extracted easily from it, with the others you need to decompress the whole tar and then extract the file. Of course that doesn't matter for a Noddy example of a few SVGs, but it is a key difference in how the two packing methods work.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
bzip2 is missing!Soarer wrote:...
6,355,470 nonpareil-0.79/*
6,481,920 nonpareil-0.79.tar
4,761,552 nonpareil-0.79.tar.gz
4,649,413 nonpareil-0.79.rar
4,526,353 nonpareil-0.79.tar.rar
...
Nevertheless, give me the link where I can download the source code, so I can verify your hypothesis.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
368064 mailx-12.4.tar.gz
271482 mailx-12.4.tar.bz2
261800 mailx-12.4.tar.xz
source:
http://sourceforge.net/projects/heirloo ... 2/download
(might be funny if Windows users unpack it;-)
271482 mailx-12.4.tar.bz2
261800 mailx-12.4.tar.xz
source:
http://sourceforge.net/projects/heirloo ... 2/download
(might be funny if Windows users unpack it;-)
Last edited by 7bit on 09 Nov 2011, 21:18, edited 1 time in total.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
You just posted figures and text but gave no proof!Soarer wrote:Still missing the point
bzip2 gives better results than gzip, but you did not include it in your list!
- Soarer
- Location: UK
- Favorite switch: F
- DT Pro Member: -
I did not need to post any more to disprove your claim.7bit wrote:You just posted figures and text but gave no proof!Soarer wrote:Still missing the point
bzip2 gives better results than gzip, but you did not include it in your list!
You were not comparing like-for-like methods.
The difference is shown by the two figures for .rar and .tar.rar.
You could bzip2 each svg individually, and then tar them, to make a similar comparison.
- Soarer
- Location: UK
- Favorite switch: F
- DT Pro Member: -
271,482 mailx-12.4.tar.bz27bit wrote:368064 mailx-12.4.tar.gz
271482 mailx-12.4.tar.bz2
261800 mailx-12.4.tar.xz
source:
http://sourceforge.net/projects/heirloo ... 2/download
(might be funny if Windows users unpack it;-)
239,906 mailx-12.4.tar.rar
346,935 mailx-12.4.rar
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
That difference is irrelevant!Soarer wrote:The difference is shown by the two figures for .rar and .tar.rar.
You could bzip2 each svg individually, and then tar them, to make a similar comparison.
This is the same for all compression tools!
What we are discussing here is:
(a) RAR is not available for most operating systems and should therefore be avoided.
(b) RAR is (in general) not superior to other compression methods, and considering this and (a), should be avoided.
- 7bit
- Location: Berlin, DE
- Main keyboard: Tipro / IBM 3270 emulator
- Main mouse: Logitech granite for SGI
- Favorite switch: MX Lock
- DT Pro Member: 0001
Pah!Soarer wrote:271,482 mailx-12.4.tar.bz2
239,906 mailx-12.4.tar.rar
346,935 mailx-12.4.rar
To me, your example is equivalent to
cat /dev/null | gzip > zero.gz
which is only 20 bytes small!