How to unpack a RAR file with SVGs in it?

User avatar
7bit

26 Oct 2011, 20:46

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.
:roll:
Last edited by 7bit on 07 Nov 2011, 23:00, edited 1 time in total.

mintberryminuscrunch

26 Oct 2011, 21:17

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

User avatar
7bit

26 Oct 2011, 21:21

mintberryminuscrunch wrote:...
Then, do what the others have recommended:
FILE>DOCUMENT PROPERTIES> FIT PAGE TO SELECTION.
this works for cropping
Thanks!

User avatar
7bit

07 Nov 2011, 23:00

OK, how do I unpack Moogle2SVG.rar ???

User avatar
fossala
Elite +1

07 Nov 2011, 23:04

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)


User avatar
7bit

07 Nov 2011, 23:08

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. :roll:

User avatar
fossala
Elite +1

07 Nov 2011, 23:57

That is strange can you provide a download link?
Interesting version on yours.
Mine is UNRAR 3.93

mintberryminuscrunch

08 Nov 2011, 01:42

Could be that you need the propriatary (sorry no spellchecker) version of unrar

User avatar
7bit

08 Nov 2011, 13:15

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.
:roll:

However, the problem has been solved.

User avatar
fossala
Elite +1

08 Nov 2011, 13:25

May I ask what was wrong?

User avatar
Soarer

08 Nov 2011, 13:31

fossala wrote:May I ask what was wrong?
7bit lacks beard :lol:

User avatar
7bit

08 Nov 2011, 14:25

Soarer wrote:
fossala wrote:May I ask what was wrong?
7bit lacks beard :lol:
Judging from you avatar Soarer lacks hair.

Image
:roll:

User avatar
lal

08 Nov 2011, 14:55

fossala wrote:May I ask what was wrong?
Probably way too old unrar.

User avatar
7bit

08 Nov 2011, 14:59

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!
:P

User avatar
Soarer

08 Nov 2011, 15:07

7bit wrote:
Soarer wrote:
fossala wrote:May I ask what was wrong?
7bit lacks beard :lol:
Judging from you avatar Soarer lacks hair.
Yeah... I should use BaldOS then ;)

User avatar
7bit

09 Nov 2011, 19:30

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.

User avatar
Soarer

09 Nov 2011, 20:06

To make a fair comparison, you should also test a rar of the tar ;)

User avatar
lal

09 Nov 2011, 20:25

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.

User avatar
7bit

09 Nov 2011, 20:28

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. :sad:

The one who sent me the SVGs told me RAR is superior to any other compression. :lol:

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. :ugeek:

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! :lol: :lol: :lol: :lol: :lol: :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?

User avatar
Soarer

09 Nov 2011, 21:00

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.

User avatar
7bit

09 Nov 2011, 21:08

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.

User avatar
fossala
Elite +1

09 Nov 2011, 21:09

tar.xz has better compression ratios. It is why slackware and arch have both moved to them.

User avatar
7bit

09 Nov 2011, 21:14

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;-)
Last edited by 7bit on 09 Nov 2011, 21:18, edited 1 time in total.

User avatar
Soarer

09 Nov 2011, 21:17

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 :roll:

User avatar
7bit

09 Nov 2011, 21:20

Soarer wrote:Still missing the point :roll:
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!

User avatar
Soarer

09 Nov 2011, 21:33

7bit wrote:
Soarer wrote:Still missing the point :roll:
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.

User avatar
Soarer

09 Nov 2011, 21:42

7bit 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;-)
271,482 mailx-12.4.tar.bz2
239,906 mailx-12.4.tar.rar
346,935 mailx-12.4.rar

User avatar
7bit

09 Nov 2011, 21:45

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.

User avatar
7bit

09 Nov 2011, 21:53

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!
:ugeek:

User avatar
Soarer

09 Nov 2011, 22:12

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... :roll:

Post Reply

Return to “Workshop”