Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2012, 09:49 AM   #16
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
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 09:54 AM.
silver18 is offline   Reply With Quote
Old 06-22-2012, 09:57 AM   #17
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,860
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Check your PM.
knc1 is offline   Reply With Quote
Old 06-22-2012, 01:43 PM   #18
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
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?
silver18 is offline   Reply With Quote
Old 06-22-2012, 06:12 PM   #19
pookakitten
Connoisseur
pookakitten began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2010
Device: K5
Quote:
Originally Posted by silver18 View Post
I understood the problem: I wrote the code thinking about a folder containing files with only one name pattern (03_XXX) and not two (03_XXX and CreditsXX).

I'm working on it!!
Glad to be of service. You may want to look at the source code for Mangle. It puts things in the right order when I give it the file directory.
pookakitten is offline   Reply With Quote
Old 06-22-2012, 06:55 PM   #20
DRIVER733
Junior Member
DRIVER733 began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Jun 2012
Device: Kindle Touch 5.0.4
Quote:
Originally Posted by silver18 View Post
@DRIVER733: both files are mis-named as knc1 stated above!
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
DRIVER733 is offline   Reply With Quote
Old 06-23-2012, 07:24 AM   #21
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Quote:
Originally Posted by DRIVER733 View Post
I can't decompress these cbz using Komic...but, and this is strange, I can't even read them on Windows using CDisplay!!
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.
silver18 is offline   Reply With Quote
Old 06-23-2012, 07:27 AM   #22
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,860
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by silver18 View Post
I can't decompress these cbz using Komic...but, and this is strange, I can't even read them on Windows using CDisplay!!
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.
I had no problems decompressing them under Linux using the "normal" (non-Busybox) unzip utility.
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
Does the unzip on your kindle support the "-j" option to discard the pathnames? (would skip creating that mis-dated directory).

Hmm...
Which is what you ended up doing by taking a big stick to unrar.

Last edited by knc1; 06-23-2012 at 09:30 AM.
knc1 is offline   Reply With Quote
Old 06-23-2012, 04:46 PM   #23
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Quote:
Originally Posted by knc1 View Post
Edit: OR - the fact that the directory was created 2 hours after the directory contents ...

Does the unzip on your kindle support the "-j" option to discard the pathnames? (would skip creating that mis-dated directory).

Hmm...
Which is what you ended up doing by taking a big stick to unrar.
So...unzip in Kindle doesn't support -j option (as far as I know looking at man).

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
Looking around I found this:

Quote:
It is because your pc unzipped the file and re-zipped it...the "inner" .zip payload that is used by the zip file was changed and the busybox's unzip utility cannot handle .zip files that are not "old school" in format.
And, moreover, CDisplay on Windows gives me another error...

Finally, I can't understand this statement:
Quote:
Which is what you ended up doing by taking a big stick to unrar.
silver18 is offline   Reply With Quote
Old 06-23-2012, 05:18 PM   #24
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,860
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by silver18 View Post
Finally, I can't understand this statement:
I had in mind this:
Quote:
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.
Where you did not extract the directory with the too old date stamp.

- - - -

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).
knc1 is offline   Reply With Quote
Old 06-23-2012, 06:00 PM   #25
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
No, unjar not present....
silver18 is offline   Reply With Quote
Old 06-24-2012, 09:39 AM   #26
jojowerfer
Junior Member
jojowerfer began at the beginning.
 
Posts: 8
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!
jojowerfer is offline   Reply With Quote
Old 06-24-2012, 10:56 AM   #27
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
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 12:18 PM.
silver18 is offline   Reply With Quote
Old 06-26-2012, 02:06 PM   #28
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
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...
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-06-26T18_59_32-0200.gif
Views:	138
Size:	36.1 KB
ID:	88357  
silver18 is offline   Reply With Quote
Old 06-26-2012, 02:54 PM   #29
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 698
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
I'm a bit bored, so here are iphone's checkboxes..
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-06-26T19_53_39-0200.gif
Views:	147
Size:	37.4 KB
ID:	88364   Click image for larger version

Name:	screenshot_2012-06-26T19_53_42-0200.gif
Views:	128
Size:	37.4 KB
ID:	88365  
silver18 is offline   Reply With Quote
Old 06-26-2012, 03:00 PM   #30
DRIVER733
Junior Member
DRIVER733 began at the beginning.
 
Posts: 5
Karma: 12
Join Date: Jun 2012
Device: Kindle Touch 5.0.4
Quote:
Originally Posted by silver18 View Post
...so here are iphone's checkboxes..
Cool I really appreciate it as I`m an Apple fan. Have you managed already to remove the status bar in reading mode?
DRIVER733 is offline   Reply With Quote
Reply

Tags
launcher add-ons

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Android Any Comic Reader App working ? astrocity enTourage Archive 38 03-01-2011 01:23 PM
iPad Good comic reader for iPad? jocampo Apple Devices 5 02-24-2011 07:36 AM
SmartQ V7 comic reader help Renji Alternative Devices 21 12-15-2009 11:05 PM
Macintosh Comic Reader and PDF creator now available :) grayfox iRex 3 01-03-2008 06:06 PM


All times are GMT -4. The time now is 11:44 PM.


MobileRead.com is a privately owned, operated and funded community.