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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2012, 05:15 PM   #1
congngo
Member
congngo began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Device: kindle dx
Adding existing files problem

When adding existing files to book browse text section, it tends to add at the bottom of the list. For example if I have these chapters under text:


chapter1.xhtml
chapter10.xhtml

If I want to add chapter2.xhtml under chapter1.xhtml, it does not do that but it will add to the bottom like bellow.

chapter1.xhtml
chapter10.xhtml
chapter2.xhtml

Furthermore, if I want to add chapter2-5. Chapter 5 will go to the top like this



chapter1.xhtml
chapter10.xhtml
chapter5.xhtml <------- This should go to the bottom.
chapter2.xhtml
chapter3.xhtml
chapter4.xhtml


This will be a problem if you have more than 100 of xhtml files.
congngo is offline   Reply With Quote
Old 01-09-2012, 06:10 PM   #2
theducks
Grand Sorcerer
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: 14,501
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
All you have to do is drag it to the correct position.
This has been made easy to determine by you foresight in naming the pieces.
I have worked with over 100 files. It is a PITA, but drag to almost the bottom of th window and it will start scrolling. Drop at the correct place. Do not drop if you overshoot. it must drop inside Text section

Last edited by theducks; 01-09-2012 at 06:12 PM.
theducks is offline   Reply With Quote
Old 01-09-2012, 07:05 PM   #3
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 2,319
Karma: 12068769
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
Quote:
Originally Posted by theducks View Post
All you have to do is drag it to the correct position.
This has been made easy to determine by you foresight in naming the pieces.
I have worked with over 100 files. It is a PITA, but drag to almost the bottom of th window and it will start scrolling. Drop at the correct place. Do not drop if you overshoot. it must drop inside Text section
Ducky, darling:

Yes, of course s/he can, but it's not an invalid point that the mis-ordering is a bit of a pain in the cheroots, dear boy. And it IS a giant pain if you have to drag 100+ files around (trust me, I know this first-hand).

Hitch
Hitch is offline   Reply With Quote
Old 01-09-2012, 07:34 PM   #4
theducks
Grand Sorcerer
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: 14,501
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Hitch View Post
Ducky, darling:

Yes, of course s/he can, but it's not an invalid point that the mis-ordering is a bit of a pain in the cheroots, dear boy. And it IS a giant pain if you have to drag 100+ files around (trust me, I know this first-hand).

Hitch
True! But why were the out of order? No NCX?

If you are adding without a NCX, doing so in smaller chunks (and tune as you go). Unfortunately Windows 8.3 (the underlying, DOS filename) does not always follow the Sort file order , resulting in out of order Long Filenames.
theducks is offline   Reply With Quote
Old 01-09-2012, 07:39 PM   #5
congngo
Member
congngo began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Device: kindle dx
it is a he. Yes I can drop it in place. But it should be dropped in the correct place.
congngo is offline   Reply With Quote
Old 01-09-2012, 08:54 PM   #6
theducks
Grand Sorcerer
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: 14,501
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by congngo View Post
it is a he. Yes I can drop it in place. But it should be dropped in the correct place.
How does it Know for multiple drops? (see my long filename discussion).
Or are you assuming dropping a single file is always is placed last? (that I agree with)

Sigil does NOT sort filenames. Ever.
theducks is offline   Reply With Quote
Old 01-09-2012, 09:09 PM   #7
congngo
Member
congngo began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Device: kindle dx
I think the file or files should place where they are designated not last. If the files are already in a numerical order should they go in as that order?
congngo is offline   Reply With Quote
Old 01-09-2012, 09:30 PM   #8
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
FWIW, when adding multiple files, in the file dialogue window, the order with which you select the files - e.g. the mouse pointer while holding Ctrl down - matters e.g. if you select chapter5.html then chapter1.html then chapter3.html they'll be added in that order in the book browser (look in the Name box in the open file dialogue, the files are added in the same order as they appear there).

IIUC, file names don't matter, it's how the files are ordered in the epub spine in the opf that matters.
Ahmad Samir is offline   Reply With Quote
Old 01-09-2012, 09:32 PM   #9
theducks
Grand Sorcerer
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: 14,501
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by congngo View Post
I think the file or files should place where they are designated not last. If the files are already in a numerical order should they go in as that order?
The file name in then Limited to 4 characters and a 3 char Extension for that to work.

This is a Windows file system issue, Not Sigil
\
Attached is how the filesystem shows the names in native 8.3 mode and in windows
Attached Thumbnails
Click image for larger version

Name:	dosfn.jpg
Views:	65
Size:	39.4 KB
ID:	81025   Click image for larger version

Name:	winfn.jpg
Views:	59
Size:	55.2 KB
ID:	81026  
theducks is offline   Reply With Quote
Old 01-10-2012, 03:43 AM   #10
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,909
Karma: 3017317
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Actually, I don't think it is a Windows issue. The real issue is, how would Sigil know how to order the files? Perhaps I would use a,b,c,d as numbering. Or put the number in the middle of the filename. Or perhaps no numbering at all.

Fact of the matter is, that numbering makes life easier but is no requirement for having it. How should Sigil react in all those matters?

Dragging is not always handy, especially with a long list, but it works.
Toxaris is offline   Reply With Quote
Old 01-10-2012, 04:35 AM   #11
opitzs
Avid Reader
opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.opitzs can successfully navigate the Paris bus system.
 
opitzs's Avatar
 
Posts: 161
Karma: 36472
Join Date: Sep 2008
Location: Look for rain, hail and snow...
Device: PRS-505, PRS-600, PRS T1, Kobo Glo
I prefer to edit the opf file in such a case. I copy the interesting part to vim, let it work its magic (in cases like this a simple :sort can work magic), copy them back over the old text, save, close, open and voilà all is good.
opitzs is offline   Reply With Quote
Old 01-10-2012, 05:35 AM   #12
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
It seems possible to have Sigil help here, although its not completely straightforward.

Adding a new blank section should probably stay as being added to the bottom and not be placed in what Sigil thinks is the correct sorted order - it might be too confusing and not what you want, not to mention tricky to implement. Easy enough to go to the end and rename/move.

There might be an argument for adding it after the item you selected for right click instead of to the end of the list. Its probably possible to implement this - but is there much of a desire for (or against) this change?

As to sorting the items, it should also be possible to have Sigil re-sort the html list on request. In fact I just implemented a test of that in a few minutes by adding a right-click option to re-sort by filename and update the book. The problem is of course, how to sort them.

The default sort is Case-Sensitive Alphabetic. But if you sort this way it ends up apparently being exactly the same as the imported files, so nothing gained.

What seems to be requested is a way to sort them in an alphanumeric approach (case-sensitive/in-sensitive, numbers first/last?). This requires re-implementing the sorting method as the standard model only sorts by alphabetic, and possibly having to deal with or ignore non simple characters.

I'm thinking something like a1 a10 a2 A3 7B 70b 8b sorting to 7B 8b 70b a1 a2 A3 a10.

Is this something worth looking into? How would you want them sorted?
meme is offline   Reply With Quote
Old 01-10-2012, 06:12 AM   #13
WS64
WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.WS64 ought to be getting tired of karma fortunes by now.
 
WS64's Avatar
 
Posts: 528
Karma: 504888
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / Bookeen Frontlight / Kobo Mini / Kindle 3 / Nook Color
Sigil always adds files in alphabetical order, not the order you click the files when you select them.
IMHO it is best to use a tool like Rename1-4 and rename all the files from
chapter1.xhtml
chapter2.xhtml
chapter10.xhtml

to something like

chapter001.xhtml
chapter002.xhtml
chapter010.xhtml

This is a bit tricky (but not really that much), but it can be done in a few steps (no matter how many files you need to rename)
If you add them then the result will be as expected.
WS64 is offline   Reply With Quote
Old 01-10-2012, 09:18 AM   #14
theducks
Grand Sorcerer
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: 14,501
Karma: 5567067
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Yikes!
Alpha-Sorting the Book Browser list would make a hash out of most of my books.
FM comes before CH, EP comes before BM ..., jacket, TP...
Not all sections are 'chapters'

Sort selected (only) would be useful if using Alpha-Numeric sort compatible naming as WS64 showed
theducks is offline   Reply With Quote
Old 01-10-2012, 11:05 AM   #15
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
Quote:
Originally Posted by WS64 View Post
Sigil always adds files in alphabetical order, not the order you click the files when you select them.
That's not how it works here; e.g. if the file names in the Name box in the open file dialogue are:
"oeb_c07_r1.html" "oeb_c06_r1.html" "oeb_c01_r1.html" "oeb_c02_r1.html" "oeb_c03_r1.html"
as I selected them in the that order, then they'll be added to the Text directory tree in that same order in Sigil.

This is on Linux (KDE4, Qt-4.8.0).
Ahmad Samir is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with adding .mobi files Bowman Kindle Fire 14 12-28-2011 07:31 PM
Touch Problem syncing new Kobo to existing account FJames Kobo Reader 1 12-24-2011 11:11 PM
Adding another version to existing book Agama Upload Help 4 04-11-2011 12:19 PM
Adding existing collection of ebooks to calibre Chris_147 Calibre 2 09-30-2010 08:35 AM
Adding meta data picture to existing lrf with librprs500 Kypt Calibre 4 04-10-2008 07:05 PM


All times are GMT -4. The time now is 08:46 PM.


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