Page 1 of 2
How to unpack a RAR file with SVGs in it?
Posted: 26 Oct 2011, 20:46
by 7bit
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.

Posted: 26 Oct 2011, 21:17
by mintberryminuscrunch
http://inkscape-forum.andreas-s.net/topic/112456#
Simply 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.
this works for cropping
Posted: 26 Oct 2011, 21:21
by 7bit
mintberryminuscrunch wrote:...
Then, do what the others have recommended:
FILE>DOCUMENT PROPERTIES> FIT PAGE TO SELECTION.
this works for cropping
Thanks!
Posted: 07 Nov 2011, 23:00
by 7bit
OK, how do I unpack Moogle2SVG.rar ???
Posted: 07 Nov 2011, 23:04
by fossala
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 <[email protected]> according
to "unrar -h" for the Debian GNU/Linux system (but may be used by oth‐
ers).
02.11.1999 UNRAR(1)
Posted: 07 Nov 2011, 23:08
by 7bit
fossala wrote:..
Thanks!
:~> 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.

Posted: 07 Nov 2011, 23:57
by fossala
That is strange can you provide a download link?
Interesting version on yours.
Mine is UNRAR 3.93
Re: How to unpack a RAR file with SVGs in it?
Posted: 08 Nov 2011, 01:42
by mintberryminuscrunch
Could be that you need the propriatary (sorry no spellchecker) version of unrar
Posted: 08 Nov 2011, 13:15
by 7bit
mintberryminuscrunch wrote:Could be that you need the propriatary (sorry no spellchecker) version of unrar
I don't install non-free software just because a Windows user thinks he must use WinRAR it pack SVG files together.
However, the problem has been solved.
Posted: 08 Nov 2011, 13:25
by fossala
May I ask what was wrong?
Posted: 08 Nov 2011, 13:31
by Soarer
fossala wrote:May I ask what was wrong?
7bit lacks beard

Posted: 08 Nov 2011, 14:25
by 7bit
Soarer wrote:fossala wrote:May I ask what was wrong?
7bit lacks beard

Judging from you avatar Soarer lacks hair.

Posted: 08 Nov 2011, 14:55
by lal
fossala wrote:May I ask what was wrong?
Probably way too old unrar.
Posted: 08 Nov 2011, 14:59
by 7bit
lal wrote:fossala wrote:May I ask what was wrong?
Probably way too old unrar.
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!
Nevertheless, problem solved. Go everybody and order more key caps and PCBs!

Posted: 08 Nov 2011, 15:07
by Soarer
7bit wrote:Soarer wrote:fossala wrote:May I ask what was wrong?
7bit lacks beard

Judging from you avatar Soarer lacks hair.
Yeah... I should use BaldOS then

Posted: 09 Nov 2011, 19:30
by 7bit
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.
Posted: 09 Nov 2011, 20:06
by Soarer
To make a fair comparison, you should also test a rar of the tar

Posted: 09 Nov 2011, 20:25
by lal
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.
Posted: 09 Nov 2011, 20:28
by 7bit
Soarer wrote:To make a fair comparison, you should also test a rar of the tar

No, beacause WinRAR is proprietary so I can't install it.
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.
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.
LOL!
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?
Posted: 09 Nov 2011, 21:00
by Soarer
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.
Posted: 09 Nov 2011, 21:08
by 7bit
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
...
bzip2 is missing!
Nevertheless, give me the link where I can download the source code, so I can verify your hypothesis.
Posted: 09 Nov 2011, 21:09
by fossala
tar.xz has better compression ratios. It is why slackware and arch have both moved to them.
Posted: 09 Nov 2011, 21:14
by 7bit
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;-)
Posted: 09 Nov 2011, 21:17
by Soarer
7bit wrote:bzip2 is missing!
Nevertheless, give me the link where I can download the source code, so I can verify your hypothesis.
Still missing the point

Posted: 09 Nov 2011, 21:20
by 7bit
Soarer wrote:Still missing the point

You just posted figures and text but gave no proof!
bzip2 gives better results than gzip, but you did not include it in your list!
Posted: 09 Nov 2011, 21:33
by Soarer
7bit wrote:Soarer wrote:Still missing the point

You just posted figures and text but gave no proof!
bzip2 gives better results than gzip, but you did not include it in your list!
I did not need to post any more to disprove your claim.
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.
Posted: 09 Nov 2011, 21:42
by Soarer
271,482 mailx-12.4.tar.bz2
239,906 mailx-12.4.tar.rar
346,935 mailx-12.4.rar
Posted: 09 Nov 2011, 21:45
by 7bit
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.
That difference is irrelevant!
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.
Posted: 09 Nov 2011, 21:53
by 7bit
Soarer wrote:271,482 mailx-12.4.tar.bz2
239,906 mailx-12.4.tar.rar
346,935 mailx-12.4.rar
Pah!
To me, your example is equivalent to
cat /dev/null | gzip > zero.gz
which is only 20 bytes small!

Posted: 09 Nov 2011, 22:12
by Soarer
a) I understand your objection that source is not available for rar, but binaries are available.
b) rar compresses the mailx tar archive noticably better than bzip2.
As for the next post...
