06-22-2012, 08:49 AM | #16 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Mmmmm, I'm doing my best at understanding all you wrote!
(I always marvel at how noob I am!!!) Currently, the rename script acts like this: - analyzes the file name from the end finding al numbers - keeps first sequence of number after the extension: in 03_001 it keeps 001 - sorts files with that sequence That's why it has problems if files have more than one name pattern. In the first example (03_XXX and CreditsXX) it tries to sort files after adding the first column: 000 03_000a.jpg 000 03_000b.jpg 000 03_000c.jpg 001 03_001.png 002 03_002.png 003 03_003.png 005 03_004-005.png 006 03_006.png 007 03_007.png 008 03_008.png 009 03_009.png 010 03_010.png 011 03_011.png 012 03_012.png 013 03_013.png 10 Credits10.png 11 Credits11.png and that's why it places Credits10 after 03_010 and Credits11 after 03_011!! I'm trying to reproduce windows' sort-by-name....but I'm not so good at shell scripting! EDIT: I could cut the file list in pieces based on the filename. Than sort every piece and join the results...just thinking... Last edited by silver18; 06-22-2012 at 08:54 AM. |
06-22-2012, 08:57 AM | #17 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Check your PM.
|
Advert | |
|
06-22-2012, 12:43 PM | #18 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Still thinking about it...I think I found how to do this...
I need to use sort with two keys: - first character of every line (i.e a list of 0, and two C) - incremental numbers from file name This way, all 03_XXX will be sorted separately from all CreditsXX. How to do this? |
06-22-2012, 05:12 PM | #19 | |
Connoisseur
Posts: 55
Karma: 10
Join Date: Dec 2010
Device: K5
|
Quote:
|
|
06-22-2012, 05:55 PM | #20 |
Junior Member
Posts: 5
Karma: 12
Join Date: Jun 2012
Device: Kindle Touch 5.0.4
|
Dropbox changed file extention, I`ve corrected it, please try again.
https://dl.dropbox.com/u/28533071/Go...ng_128_RHN.cbz https://dl.dropbox.com/u/28533071/Go...ng_129_RHN.cbz |
Advert | |
|
06-23-2012, 06:24 AM | #21 | |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Quote:
So, I guess, the problem is related to those archives. I managed to decompress them using Komic this way: - open with WinRar - move every image out of the folder. I.E: cbz will contain directly images and not a folder with images in it. |
|
06-23-2012, 06:27 AM | #22 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
More likely this is a Busybox unzip command problem. Edit: OR - the fact that the directory was created 2 hours after the directory contents ... Code:
core2quad Downloads $ unzip -v Good_Ending_128_RHN.cbz Archive: Good_Ending_128_RHN.cbz Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 0 Stored 0 0% 2012-06-16 19:00 00000000 Good_Ending_128_RHN/ 263023 Defl:N 240970 8% 2012-06-16 19:00 2296ead5 Good_Ending_128_RHN/Good_Ending128_00_RHN.jpg 447595 Defl:N 447735 0% 2012-06-16 17:11 abf2e527 Good_Ending_128_RHN/Good_Ending128_01_RHN.png 397185 Defl:N 397310 0% 2012-06-16 17:11 ee97d36f Good_Ending_128_RHN/Good_Ending128_02_RHN.png 417634 Defl:N 417731 0% 2012-06-16 17:11 133b9417 Good_Ending_128_RHN/Good_Ending128_03_RHN.png 400273 Defl:N 400339 0% 2012-06-16 17:11 26c0ccfd Good_Ending_128_RHN/Good_Ending128_04_RHN.png 349489 Defl:N 349599 0% 2012-06-16 17:11 53b4f4cf Good_Ending_128_RHN/Good_Ending128_05_RHN.png 591585 Defl:N 591770 0% 2012-06-16 17:11 d43e1e1c Good_Ending_128_RHN/Good_Ending128_06_RHN.png 431199 Defl:N 431334 0% 2012-06-16 17:11 63572048 Good_Ending_128_RHN/Good_Ending128_07_RHN.png 570259 Defl:N 570421 0% 2012-06-16 17:11 fbcdc859 Good_Ending_128_RHN/Good_Ending128_08_RHN.png 485090 Defl:N 485206 0% 2012-06-16 17:11 e8a1b963 Good_Ending_128_RHN/Good_Ending128_09_RHN.png 666889 Defl:N 666909 0% 2012-06-16 17:11 cd9e7e66 Good_Ending_128_RHN/Good_Ending128_10_RHN.png 471040 Defl:N 471185 0% 2012-06-16 17:11 e43c2f3c Good_Ending_128_RHN/Good_Ending128_11_RHN.png 389503 Defl:N 389623 0% 2012-06-16 17:11 ff29e2c2 Good_Ending_128_RHN/Good_Ending128_12_RHN.png 350011 Defl:N 350121 0% 2012-06-16 17:11 59d1fad8 Good_Ending_128_RHN/Good_Ending128_13_RHN.png 442976 Defl:N 443111 0% 2012-06-16 17:11 3f9d0edd Good_Ending_128_RHN/Good_Ending128_14_RHN.png 375868 Defl:N 375983 0% 2012-06-16 17:11 e974f5df Good_Ending_128_RHN/Good_Ending128_15_RHN.png 452411 Defl:N 452529 0% 2012-06-16 17:11 6d24681b Good_Ending_128_RHN/Good_Ending128_16_RHN.png 285157 Defl:N 285185 0% 2012-06-16 17:11 6ed54f52 Good_Ending_128_RHN/Good_Ending128_17_RHN.png 324758 Defl:N 324858 0% 2012-06-16 17:11 574b378a Good_Ending_128_RHN/Good_Ending128_18_RHN.png -------- ------- --- ------- 8111945 8091919 0% 20 files Hmm... Which is what you ended up doing by taking a big stick to unrar. Last edited by knc1; 06-23-2012 at 08:30 AM. |
|
06-23-2012, 03:46 PM | #23 | |||
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
Quote:
Then, why the hell the directory was created 2 hours later? When I run the unzip command on those files, I get this error: Code:
unzip: zip flags 1 and 8 are not supported Quote:
Finally, I can't understand this statement: Quote:
|
|||
06-23-2012, 04:18 PM | #24 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I had in mind this:
Quote:
- - - - Does that machine have an unjar utility? That might be able to extract this troublesome archive. (jar is just a zip with a manifest file). |
|
06-23-2012, 05:00 PM | #25 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
No, unjar not present....
|
06-24-2012, 08:39 AM | #26 |
Junior Member
Posts: 9
Karma: 10
Join Date: May 2012
Device: KT 5.1.0
|
Just noticed something strange: I transferred two *.cbz files into gallery, and decompressed them. One was working fine, the other not. After a bit of testing, I found out, that the "#" in the filename was the problem. The decompressing and renaming was okay, but when starting the folder with the # in the folder name, I got the error message, that there is no image numbered 0. Just to let you all know.
And thanks again to silver18 for making a good app even better! |
06-24-2012, 09:56 AM | #27 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
You're right!
# in folder names make the folder impossible to read. I fixed it rigth now (added a simple # to %23 function). EDIT: It will be included in next release, along with the autosave option (toggable in menu) Last edited by silver18; 06-24-2012 at 11:18 AM. |
06-26-2012, 01:06 PM | #28 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
I'm working on the rename script (the part regarding sorting files).
I extracted the sorting part from rename.sh and placed it in sort.sh so that I can work on a small part and change it easily. It should work.... I'm testing it with every single comic I come across... In the meanwhile, here's a screenshot of the toggable autosave option... |
06-26-2012, 01:54 PM | #29 |
THE NOOB
Posts: 701
Karma: 1545649
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
|
I'm a bit bored, so here are iphone's checkboxes..
|
06-26-2012, 02:00 PM | #30 |
Junior Member
Posts: 5
Karma: 12
Join Date: Jun 2012
Device: Kindle Touch 5.0.4
|
|
Tags |
launcher add-ons |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Android Any Comic Reader App working ? | astrocity | enTourage Archive | 38 | 03-01-2011 12:23 PM |
iPad Good comic reader for iPad? | jocampo | Apple Devices | 5 | 02-24-2011 06:36 AM |
SmartQ V7 comic reader help | Renji | Alternative Devices | 21 | 12-15-2009 10:05 PM |
Macintosh Comic Reader and PDF creator now available :) | grayfox | iRex | 3 | 01-03-2008 05:06 PM |