UExtract-4.2

Miscellaneous tools
Message
Author
User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#76 Post by Keef »

Just to say I've been playing with 214R again (my first long term Puppy), and UExtract works fine - well once I added a few missing bits. Not all are useful to me, so went for 7z, xz, and Base64 (actually I don't know what that one is for, but it's tiny).
Installed Right-click-6.7.5-pet, and that works with it too.

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#77 Post by mikeb »

base64 ... tis for converting such as binary data into a format thats web and database friendly by using a set of 64 ascii characters..... iirc 4 characters would represent 3 bytes on the 6bit to 8 bit basis.

Only reason i heard of it was it was needed for an Xchat plugin i wanted and i had to furkle some code to make it happy on mingw building.

See this forum is full of useless information :D

mike

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

UExtract gettexted

#78 Post by Bert »

Hi SFR,

I'm teaching myself how to gettext :)
Attached is the gettexted version of AppRun.

Here it is in Dutch:
Image

With the gettexted version Momanager will be able to see UExtract and translations can be made.

Thanks for UExtraxt!
Let its journey around the world begin :lol:
Attachments
AppRun.gz
Fake .gz
/usr/local/apps/UExtract/
(3.89 KiB) Downloaded 565 times
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#79 Post by SFR »

@Keef & @Mikeb: Yeah, 'base64' is only needed (here) for base64 encoded files with .b64 suffix.
Nothing really relevant for overall UExtract's functionality.
In earlier versions it was also used to extract base64 encoded stuff from within .mht files, but it's been withdrawn a few versions ago.
____________________

@Bert: Thanks for gettext'ing. Indeed would be nice to "enable" this app for non-English users, what would significantly help in World Domination. :twisted:
When/if I'll feel the power again, I'll try to gettext also 'uextract' script itself (but don't wait for me, if you'd like to play with it by yourself).
____________________

A general note:

I just discovered that UExtract may spit some error/misleading messages while extracting file(s) from a location that contains spaces in its path.
The actual culprit is /bin/df script, which (at least in Slacko & Precise) is a wrapper for df-FULL.
Long story short, this line (no. 8 ):

Code: Select all

RETSTUFF="`$DF $@`"
should look like this (additional double quotes):

Code: Select all

RETSTUFF="`$DF "$@"`"
Similarily, UExtract may refuse to extract .iso, .?fs, etc. with spaces in its name/path.
Same story, but with /bin/mount script.
Slacko-5.6 has this fix already included, but in case of other Puppies it's trivial to correct it manually, see here:
http://www.murga-linux.com/puppy/viewto ... 315#716315

The above info is only for those who don't afraid to tinker with system internals. If you do - just remove spaces before extraction. :wink:

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#80 Post by Bert »

SFR wrote:When/if I'll feel the power again, I'll try to gettext also 'uextract' script itself
I already did. Unfortunately encountering syntax errors. I have some more learning to do :)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#81 Post by SFR »

Ugh, I found serious bug, so couldn't leave it like this.

Version 2.3:
- bugfix: .hidden files won't get listed/extracted from .iso, .?fs, etc. images.
- 1 new extension: .egg - Python Project Package [zip]
- 1 new format: http://portablelinuxapps.org/. Deep inside they're just an iso and can be mounted.

BTW, I had attempted to gettext it, but discouragement hit me instantly. :roll: I'm not ready yet. :wink:

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

UExtract-2.3

#82 Post by L18L »

Bert wrote:
SFR wrote:When/if I'll feel the power again, I'll try to gettext also 'uextract' script itself
I already did. Unfortunately encountering syntax errors. I have some more learning to do :)
Troubles were caused by ' I think.
Ex: isn't doesn't '7z' ....
I had been changing them to
Ex: is not does not 7z ....

That is not the solution of course.

This morning I was reintroducing '7z'
Compare the code inside uextract
ex:

Code: Select all

precheck () {
  local RET=0
  for i in "$@"; do
    #[ `which $i 2>/dev/null` ] || { echo -e "${YELLOWCOL}$(eval_gettext 'WARNING: ${BLUECOL}$i${OFFCOL} is not installed or not executable!')"; RET=1; } #working, but with "is not" insted of "isn't
    [ `which $i 2>/dev/null` ] || { echo -e "${YELLOWCOL}`eval_gettext "WARNING: \\\${BLUECOL}'\\\$i'\\\${OFFCOL} isn't installed or not executable!"`"; RET=1; } #this ' is needed just for syntax highlight in geany
  done
  return $RET
}
I did not all of them change back!
Maybe SFR will find his own way of coding gettext now 8)

I do not know if or how momanager will also use pinstall.sh (I have done it without momanager for now)

Anyhow I attach UExtract-2.3-i(nternationalized)
edit
... has been downloaded 3 times
....and been deleted UExtract-2.3-i(nternationalized) now
because cannot be translated with ForkedFastMoManager
some internals have to be changed
-- AppRun as link to bin/uextract_gui
-- dialogs of pinstall.sh have to be moved to "Preferences"
Wait a while, processing... :lol:

edit
uploaded bugfix version UExtract-2.3-in
- should work with momanager now because AppRun is link
- po and pot removed
- dialog about shortcut moved to uextract_gui to make gettext possible

edit again
version 2-3-int
#131010 bugfixes, config file repeat/stop asking for shortcut
Attachments
UExtract-2.3-int.pet
(33.95 KiB) Downloaded 640 times
uextract-2.3-i.png
(13.02 KiB) Downloaded 1237 times
Last edited by L18L on Thu 10 Oct 2013, 12:50, edited 6 times in total.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#83 Post by SFR »

Thanks L18L!

Ahh, if I only gettexted it at the very beginning, it'd be much easier to maintain it now, but I (wrongly) assumed that command-line tools used by UExtract aren't internationalized (I check 'xz' for example, and it is!), so it'd be pointless...

I put a link to your internationalized version in the first post and one day, when I get myself together at last, I'll make a diff and try to make v2.4 gettexted as well (again, don't wait for me :wink: ).

Meanwhile, a small update (EN only yet):

New extensions:
.love - LÖVE Game File [zip]
.tar.zip & .cpio.zip

- fix: added '--no-absolute-filenames' to cpio extraction options (only if full version detected; 'busybox cpio' doesn't support this)
- fix: ability to unpack 'portablelinuxapps' also with .run suffix (i.e. all games from their site)

First post updated!
___________
musher0 wrote:How about "packing"?
@Musher0: Check it out - PackIt-0.9 :wink:
@Bert & @L18L: PackIt is already gettext'ed. :cool:

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

UExtract-2.3

#84 Post by L18L »

bugfix version uploaded, see 2 post above please.

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#85 Post by Bert »

Thank you L18L!

Two problems:

1. Each time Uextract is started up, it now proposes to create a short-cut on the desktop.

2. When right-clicking an archive (pet, tar.gz, doesn't matter what sort of archive) to 'uextract' it, I'm now seeing this window:

Code: Select all

/tmp/uextract_exec: line 3: /usr/local/apps/UExtract/bin/bin/uextract: No such file or directory
The problem is clearly the /bin/bin. One/bin is enough. But what has line 3
to do with it? It's part of the script's header...

(All this before firing up MoManager. Just trying out in English...)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

UExtract-2.3-in

#86 Post by L18L »

Bert wrote:1. Each time Uextract is started up, it now proposes to create a short-cut on the desktop.
Say Yes and should never again be asked. (..or we do need a config file)
Bert wrote:2. ... One/bin is enough. But what has line 3
to do with it? It's part of the script's header...
See /usr/local/apps/UExtract/bin/uextract_gui which is in another directoy now.
Fix it by copying

Code: Select all

sed -i 's#bin/uextract#uextract#' /usr/local/apps/UExtract/bin/uextract_gui
to a console and press ENTER key.

Thanks for reporting :)
Waiting for other issues now...

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#87 Post by Bert »

Good morning L18L,

Saying Yes is a good thing in life in general, but here it keeps asking if I want a desktop shortcut, disregarding the fact that I have quite a collection already :lol: :

Image

Your sed-code solved the second problem.

Thanks!
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

UExtract-2.3-in

#88 Post by L18L »

Choisces are not choices :oops:

Code: Select all

sed -i 's#Choisces/ROX-Filer/PuppyPin#Choices/ROX-Filer/PuppyPin#' /usr/local/apps/UExtract/bin/uextract_gui
Anyhow fixed version has to be "coming soon"
Last edited by L18L on Thu 10 Oct 2013, 13:01, edited 2 times in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

UExtract-2.3-int

#89 Post by L18L »

version 2.3-int see some posts above please

Code: Select all

#131010 bugfixes, config file repeat/stop asking for shortcut

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#90 Post by Bert »

Success!

Dutch translation of Uextract succeeded thanks to L18L's hard work.
Thank you L18L!

My effort at gettexting Uextract was close to correct, but I would never have found the offending details that prevented the script from running.

Uextract is a great utility, now ready for world domination :twisted: :lol:
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#91 Post by SFR »

Hey Bert

If you'd like, just post your translation, so I'll make a link to it in the first post.
I feel terribly bad about it, but still don't have the power to merge L18L's gettexted lines into UExtract >= 2.4. :oops:
___________

Version 2.5

New extensions:
- .ext2/3/4
- .sfx (handled by 7z)
- can create a shortcut in $HOME/Desktop
- ffmpeg/avconv - extracted items now inherit the source names (instead of AudioStream, VideoStream, etc.)
- removed buttons from Gtkdialog's VTE Terminal
- xterm changed to $TERM
- lots of minor fixes/corrections

A couple of versions ago I "secretly" implemented support for the following formats:
.ace [unace]
.arc/.ark/.sue [(un)arc|nomarch]
.balz [balz]
.F [unfreeze]
.lrz [lrunzip]
.pack [unpack200] (was before, just reminding)
.quad [quad]
.swf [swfextract]
.zoo [zoo]
.zpaq [zpaq]
.zz [zzip]
(plus, added in the last minute, .lz4)

I decided to unhide them all at last. :)
The only real difference is that now 'uextract -d' will show some more missing deps (unless appropriate tools are present).
I also removed the warning about missing deps from pinstall.sh.

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
Bert
Posts: 1103
Joined: Fri 30 Jun 2006, 20:09

#92 Post by Bert »

Hi SFR,

Thanks for the update.

I think there's no need to post my translation of UExtract, as it is already available in the Dutch language pack.
If you really want it, just let me know and I'll post it or pm it to you.

A pity you couldn't integrate L18L's version into the new UExtract. I imagine 2.5 is 2.3 with some new code added. If you had based the new version on L18L's i18n-version, I could probably have done the little bit of new gettexting for you...

Oh well, keep on rocking in the free world, as Neil Young would say 8)
[url=http://pupsearch.weebly.com/][img]http://pupsearch.weebly.com/uploads/7/4/6/4/7464374/125791.gif[/img][/url]
[url=https://startpage.com/do/search?q=host%3Awww.murga-linux.com%2F][img]http://i.imgur.com/XJ9Tqc7.png[/img][/url]

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#93 Post by SFR »

Just a maintenance update: the only reason for this is the new pinstall.sh, which is now Woof-friendly (big thanks to Pemasu), however there are also few new formats/extensions:
.egg - ALZip Archive (req. unegg)
.pfs - Package SFS (PuppyRus)
.scm - TinyCore Extension
.mdz - zipped .mod
.xmz - zipped .xm
and can unpack upx'ed binaries (req. upx)

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#94 Post by musher0 »

Thanks, SFR.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#95 Post by SFR »

Small bugfix release.
- fix in AppRun: improper handling of dir/filenames with "
- new extension: .nbm (NetBeans module)

First post updated!

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

Post Reply