Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-30-2015, 02:46 PM   #1
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Labeling (organizing) of images



The Adventures of Tom Sawyer (an Project Gutenberg EBook).

It has about 280 pictures and I want organize them without that typical Gutenberg filth.

Code:
_public_vhost_g_gutenberg_html_files_74_74-h_images_35-273.jpg
_public_vhost_g_gutenberg_html_files_74_74-h_images_35-274.jpg
The book has 35 chapters, each with some pictures.

Calibre don't accept (via Bulk rename selected files)(with prefix image_chapter01_)
the starting number 001 (neither 01).
Strangely, it takes over the images of the second chapter (prefix image_chapter02_) with starting numbers 06, 07 etc.

Edit: Striked out, existing scheme (calibre pad it with the minimum necessary padding) was known, but simply overlooked by me.

Name:  image_chapter01_5 ... image_chapter02_06.png
Views: 309
Size:  14.7 KB
image_chapter01_5 ... image_chapter02_06

It should look like
Code:
image_chapter01_001.jpeg
image_chapter01_002.jpeg
...
image_chapter35_273.jpeg
image_chapter35_274.jpeg
HowToDo?

Last edited by chaot; 11-11-2015 at 06:52 AM. Reason: add Edit ... & modified image
chaot is offline   Reply With Quote
Old 10-30-2015, 03:04 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
No can do (as of today).

calibre automatically pads the number according to the renamed files.

If the renamed files start at 6 and go to 10, then they all get padded to two digits.
If they are all 1-digit numbers (1 to 5) they won't get padded.


I would name them chapter02-image-1 etc.
eschwartz is offline   Reply With Quote
Old 10-30-2015, 03:53 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The file name is for humans
I just number them in order appearance, just in case
theducks is online now   Reply With Quote
Old 10-30-2015, 07:38 PM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
While it might be desired to include the chapter number and a 'from 1' sequence number, like theducks says, it's just for people. Is there a reason to use that specific naming convention?

I never tried bulk renumbering images, but it does work: the image files are renamed and links are updated.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	223
Size:	58.4 KB
ID:	143319  
phossler is offline   Reply With Quote
Old 10-31-2015, 05:03 AM   #5
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Small intermediate question (detailed answer later): Where I can change the prefix to chapter? In this case, otherwise it would be possibly image etc.

Anyway, the possibility to change the prefix (as default) seems to me in some respects appropriate.

Click image for larger version

Name:	Prefix (Chapter-).png
Views:	222
Size:	15.6 KB
ID:	143322
Bulk rename items Prefix: Chapter-

Last edited by chaot; 10-31-2015 at 07:42 AM. Reason: appropriate
chaot is offline   Reply With Quote
Old 11-03-2015, 01:54 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If you mean, whee can you set the prefix so that it will be remembered, there is no setting to do so.

I think the most common form would be Chapter-01, but anytime you are changing it, it will be very situation-specific. How often is the default the wrong form?
eschwartz is offline   Reply With Quote
Old 11-06-2015, 01:15 PM   #7
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by eschwartz View Post
If you mean, whee can you set the prefix so that it will be remembered, there is no setting to do so.

I think the most common form would be Chapter-01 ...
To put it bluntly: I do not criticize the default prefix Chapter- but their immutability. And the numbering that can't start (as default) with 01 or 001 or whatever. So I had to help myself with Chapter-01_Image-1 to Chapter-01_Image-5 and Chapter-02_Image-1 ... etc.
Even roman numbers I, II, III, IV for old books (like my example from Mark Twain). I admit, may be this idea doesn't make really mind!?

Quote:
... but anytime you are changing it, it will be very situation-specific. How often is the default the wrong form?
Situation-specific or not, for a non-English one everything in English is wrong.
And what about Bulk rename ... of pictures? We write Image-01 etc.

Answer to your question: Very often!

Although Calibre's been a damn fine software, there's still something to do!?


Sometimes a thread starts (with a more or less definite opinion) and turns out in the course due to the meaning of others that own attitude was somehow wrong and needed to be revised.

Doing a good job always means a solid understanding of the matter and usable tools.
This maxim applies also for dealing with calibre.

There is also a difference whether there are a few dozen books to edit or some thousands - in the latter case one is willing more to invest (sweat).

And then we come to things like concepts. As a typical German (in this case) I do rarely something without a plan or concept. Commenting on what I mean here would be beyond the scope of this thread (will be dealt with in chaot's edit concepts (continuous thread).

@theducks wrote The filename is for humans ... and @phossler similar ... it's just for people.

That gave me reason for thinking. Before my claim was to put the File Browser entries in English, with lowercase letters for a professional look. BINGO, I admit that was wrong.

Since my edits made so far concern only a few books the upcoming changes is not too much hassle. The entries in the File Browser of my German, English and Spanish books are now will be set language-specific and start with capital letters.

Click image for larger version

Name:	File Browser Text entries.png
Views:	317
Size:	20.1 KB
ID:	143528 Click image for larger version

Name:	File Browser Images entries.png
Views:	238
Size:	19.8 KB
ID:	143529
File Browser Text & Images entries

Quote:
Originally Posted by phossler View Post
Is there a reason to use did specific naming convention?
I am not sure to got you right! But if, overview!

Last edited by chaot; 11-06-2015 at 01:25 PM.
chaot is offline   Reply With Quote
Old 11-07-2015, 08:28 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, for the sake of foreign-language users alone I'd say being able to change the default is a good thing. Excellent point.



As for padding the number, I guess you could always use the prefix:
Code:
image_chapter01_0
calibre will automatically pad it with the minimum necessary padding, based on the files it is renaming.
If you want extra padding (because you aren't renaming all of them at once) just add the extra padding to the prefix.
eschwartz is offline   Reply With Quote
Old 11-08-2015, 09:01 AM   #9
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by eschwartz View Post
Well, for the sake of foreign-language users alone I'd say being able to change the default is a good thing. Excellent point.

Maybe if Kovid does change the default prefix, he could make it a tiny bit smarter and have separate default prefixes for bulk rename of \text files (e.g. 'chap') and \images files (e.g. 'img')
phossler is offline   Reply With Quote
Old 11-09-2015, 02:59 AM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, it appears the prefix is already localized, so it will appear in whichever language the interface is set to.
Which seems more logical to me anyway. There is such a thing as too many settings.


In the morning I will submit a patch that customizes the default prefix according to file type.
eschwartz is offline   Reply With Quote
Old 11-09-2015, 11:20 PM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Filed: https://bugs.launchpad.net/bugs/1514468

Merged in source:
https://github.com/kovidgoyal/calibr...5013c8b05e0df6
https://github.com/kovidgoyal/calibr...b71951db1ad983

So now default prefixes depend on the type of file, which should help.
e.g. renaming a bunch of images will default to "Image-" instead of "Chapter-"
It still won't remember the last custom prefix you used though.

Hopefully this is enough to mitigate the problem.

And as I said, they are all translated -- actually, the new ones will need to have translations added on Transifex first -- so foreign-language users shouldn't feel left out.
(If you want to use the English GUI I guess it makes sense for calibre to offer the English prefixes...)
eschwartz is offline   Reply With Quote
Old 11-11-2015, 07:32 AM   #12
chaot
Head of lunatic asylum
chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.chaot will give the Devil his due.
 
chaot's Avatar
 
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
Quote:
Originally Posted by eschwartz View Post
As for padding the number, I guess you could always use the prefix:
Code:
image_chapter01_0
You are confusing about something already has been found to work well: Capitals at the beginning.
But your scheme is better than mine (the most important word Image should be at the beginning)(don't forget hyphens)(Images or anything else, please do not call zero), so Image_Chapter-xy_xy
or may be more clear Image-xy_Chapter-xy

Quote:
calibre will automatically pad it with the minimum necessary padding, based on the files it is renaming.
That's known!

Quote:
If you want extra padding (because you aren't renaming all of them at once) just add the extra padding to the prefix.
... renaming all of them at once ... is here not possible, and ... just add the extra padding ... cost so much labor and time. That's the point.

Quote:
Originally Posted by phossler View Post
Maybe if Kovid does change the default prefix, he could make it a tiny bit smarter and have separate default prefixes for bulk rename of \text files (e.g. 'chap') and \images files (e.g. 'img')
No change of default prefix Chapter-01, but add some default prefixes for bulk rename in form of a pick list (the tiny bit smart way) & own choice default prefix.

Quote:
Originally Posted by eschwartz View Post
And as I said, they are all translated -- actually, the new ones will need to have translations added on Transifex first -- so foreign-language users shouldn't feel left out.
I know Transiflex already and sure to be able to help.




@eschwartz Posts #10 & #11 were not considered currently by me. Let's wait for the new scheme and the practical use (as it feels like).

Be thanked for your nice attention of my plea.

Last edited by chaot; 11-11-2015 at 02:07 PM. Reason: considering→attention
chaot is offline   Reply With Quote
Old 11-12-2015, 01:35 AM   #13
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, happy to provide what help I can.

In about a day you can test out the changes, see how they integrate in your workflow.
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Microsoft Word not labeling Chapter Headers as <h1> Gary Friedman Conversion 5 10-22-2014 11:12 PM
Organizing versions ersesedi Library Management 1 10-07-2014 05:49 AM
need help organizing! Brixie Library Management 5 04-15-2013 04:22 PM
Organizing magazines Steven Lyle Jordan Nook Color & Nook Tablet 24 12-10-2010 02:12 PM
Organizing clippings manda243 Amazon Kindle 8 11-02-2010 12:52 AM


All times are GMT -4. The time now is 02:13 PM.


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