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 05-11-2014, 12:18 AM   #1
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
how to import files in specific order.

Can there be a option added to import files into book, in the order they are selected in Windows explorer, (or the equivalent on any os,) or based on alphanumeric order.

Edit
i found a easy (relatively) way around this problem (for Windows 7), if anyone is interested, here it is:

select all files you want to add.
press shift + right click on the first file.
select "copy full path", then paste it in a html file.
search for the folder path without quotations (normal mode) and replace with nothing.
search for \s (regex mode) and replace with
Code:
></a><br/> <a href=
fix the first and last tag.
add html body and p tags.
change the file extension to .html
now add the file to edit-ebook.

Last edited by user743; 05-21-2014 at 07:28 PM.
user743 is offline   Reply With Quote
Old 05-11-2014, 03:21 AM   #2
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
For HTML there is a alternative way do do this with an index html file. You will find an example in calibre User Manual:

How do I convert a collection of HTML files in a specific order?

Last edited by Divingduck; 05-11-2014 at 03:24 AM.
Divingduck is offline   Reply With Quote
Advert
Old 05-11-2014, 09:10 AM   #3
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
First of all i dont want to do a conversion.
And second, what a hassle.

Dont people usually want to add files in order.

Last edited by user743; 05-11-2014 at 09:18 AM.
user743 is offline   Reply With Quote
Old 05-11-2014, 09:19 AM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
You can manually shuffle them around in 5 minutes and you usually only do it once. I think that is why it hasn't been a big priority for Kovid.
mrmikel is offline   Reply With Quote
Old 05-11-2014, 09:40 AM   #5
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: 30,939
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by user743 View Post
First of all i dont want to do a conversion.
And second, what a hassle.

Dont people usually want to add files in order.
People add BOOKS

Calibre creates Organization out of (semi-)randomness

Adding a Index file is not conversion, it is a control file

Hassle or Laziness? A book is created one time.

Windows NEVER moves/copies multiple files in a repeatable order, even if they are 8.3 named. I know, I tried copying MP3's I ripped from my vinyl collection. I could never get them to play in the sorted order without using a playlist (m3u)
theducks is offline   Reply With Quote
Advert
Old 05-11-2014, 10:19 AM   #6
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
Quote:
Originally Posted by theducks View Post
People add BOOKS
This is the editor forum.
Quote:
Calibre creates Organization out of (semi-)randomness

Adding a Index file is not conversion, it is a control file

Hassle or Laziness? A book is created one time.
5-50 = laziness.
50+ = hassle.
Quote:
Windows NEVER moves/copies multiple files in a repeatable order, even if they are 8.3 named.
so least sort them alphanumericly, like calibre already does in the main window.
user743 is offline   Reply With Quote
Old 05-11-2014, 10:40 AM   #7
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Why would you want them sorted alphanumerically? That puts appendix at the top. Some file names will be roman letters depending on what the original author decided, but foreword or introduction might well need to be at the top.
mrmikel is offline   Reply With Quote
Old 05-11-2014, 11:17 AM   #8
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
In my case they're numbered. but even if not numbered at least the bulk of the book will be in order, something like this:
chater x
ch.x
part x
x
if not then dont use this option.

Last edited by user743; 05-11-2014 at 11:30 AM.
user743 is offline   Reply With Quote
Old 05-11-2014, 01:08 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by user743 View Post
In my case they're numbered. but even if not numbered at least the bulk of the book will be in order, something like this:
chater x
ch.x
part x
x
if not then dont use this option.
What's the point of someone making the effort to write code (that works across all supported platforms) that only almost does what a very small subset of users might ever need it to do?

The fact that those who don't need the option wouldn't have to use it isn't a real compelling argument here. That's almost always a given with these kinds of features, in fact. The question is if an "it-almost-does-what-it's-intended-to-do" feature is going to be used by enough people to warrant the effort spent on writing the code? I'm guessing no.

While it's certainly possible to create new ebooks with calibre-edit, I think it's quite clear that editing existing ebooks has always been its primary focus.
DiapDealer is offline   Reply With Quote
Old 05-11-2014, 01:38 PM   #10
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
I believe the code is already being used in the calibre library to sort books and I'm sure it's used in many open source programs. If you want i can find you a some.
user743 is offline   Reply With Quote
Old 05-11-2014, 05:17 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,505
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by user743 View Post
I believe the code is already being used in the calibre library to sort books and I'm sure it's used in many open source programs. If you want i can find you a some.
If you have the ability to track down (and test for cross-platform compliance) the code you want to see implemented in calibre-edit, I would suggest submitting a patch to calibre's source.
DiapDealer is offline   Reply With Quote
Old 05-11-2014, 07:08 PM   #12
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,894
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by theducks View Post
Adding a Index file is not conversion, it is a control file
What happens if you add an index file to a blank template of a book via Edit Book? Does it grab the associated files and add those too?
DoctorOhh is offline   Reply With Quote
Old 05-11-2014, 07:17 PM   #13
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
To DiepDealer. There should be a file called "DEFAULT_SORT", but i cant find it, because there is no search option, when viewing the code online.

Last edited by user743; 05-11-2014 at 07:30 PM.
user743 is offline   Reply With Quote
Old 05-11-2014, 07:27 PM   #14
user743
Addict
user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.user743 has never been to obedience school.
 
Posts: 243
Karma: 44444
Join Date: Mar 2014
Device: Kindle PW2 special offers removed by Amazon for FREE
Quote:
Originally Posted by DoctorOhh View Post
What happens if you add an index file to a blank template of a book via Edit Book? Does it grab the associated files and add those too?
From my experience it does. BUT it isn't referenced in the spine and in the file browser they are in the extra files, not in the "text" files ( - you can't edit them).
user743 is offline   Reply With Quote
Old 05-11-2014, 10:37 PM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by DoctorOhh View Post
What happens if you add an index file to a blank template of a book via Edit Book? Does it grab the associated files and add those too?
Use File->Import HTML files as a new book and all linked files will be auto-imported, just as is described here: http://manual.calibre-ebook.com/faq....specific-order

Last edited by kovidgoyal; 05-11-2014 at 10:51 PM.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit import to specific format(s) ChristopherLewis Library Management 2 09-28-2012 07:04 AM
Import order when adding multiple books Sparkling Library Management 5 07-08-2011 07:41 AM
iPad How can we import files to iPad? Over Apple Devices 15 10-20-2010 05:32 AM
Import pdf files pavlos555 Calibre 3 10-14-2010 10:18 AM
Combining multiple .gif or .png files into a specific PDF page. Raventhon PDF 0 10-03-2007 01:06 AM


All times are GMT -4. The time now is 10:25 AM.


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