|  05-11-2014, 12:18 AM | #1 | 
| Addict            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= 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. | 
|   |   | 
|  05-11-2014, 03:21 AM | #2 | 
| Wizard            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. | 
|   |   | 
|  05-11-2014, 09:10 AM | #3 | 
| Addict            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. | 
|   |   | 
|  05-11-2014, 09:19 AM | #4 | 
| Color me gone            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.
		 | 
|   |   | 
|  05-11-2014, 09:40 AM | #5 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 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. 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) | |
|   |   | 
|  05-11-2014, 10:19 AM | #6 | ||
| Addict            Posts: 243 Karma: 44444 Join Date: Mar 2014 Device: Kindle PW2 special offers removed by Amazon for FREE | 
			
			This is the editor  forum. Quote: 
 50+ = hassle. Quote: 
 | ||
|   |   | 
|  05-11-2014, 10:40 AM | #7 | 
| Color me gone            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.
		 | 
|   |   | 
|  05-11-2014, 11:17 AM | #8 | 
| Addict            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. | 
|   |   | 
|  05-11-2014, 01:08 PM | #9 | |
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | Quote: 
 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. | |
|   |   | 
|  05-11-2014, 01:38 PM | #10 | 
| Addict            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.
		 | 
|   |   | 
|  05-11-2014, 05:17 PM | #11 | 
| Grand Sorcerer            Posts: 28,880 Karma: 207000000 Join Date: Jan 2010 Device: Nexus 7, Kindle Fire HD | 
			
			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.
		 | 
|   |   | 
|  05-11-2014, 07:08 PM | #12 | 
| US Navy, Retired            Posts: 9,897 Karma: 13806776 Join Date: Feb 2009 Location: North Carolina Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen | |
|   |   | 
|  05-11-2014, 07:17 PM | #13 | 
| Addict            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. | 
|   |   | 
|  05-11-2014, 07:27 PM | #14 | 
| Addict            Posts: 243 Karma: 44444 Join Date: Mar 2014 Device: Kindle PW2 special offers removed by Amazon for FREE | 
			
			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).
		 | 
|   |   | 
|  05-11-2014, 10:37 PM | #15 | |
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | Quote: 
 Last edited by kovidgoyal; 05-11-2014 at 10:51 PM. | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 | 0 | 10-03-2007 01:06 AM | |