Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 04:07 AM   #16
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Yep, I re-read the old post, remembered we do not settled our different view about how entries should work. And continued on solving crashes.

Maybe I should try vibe coding someday.
icearch is offline   Reply With Quote
Old Today, 09:24 AM   #17
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: 29,965
Karma: 212736643
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Still not convinced that moves of multiple, non-contiguous selections (spanning multiple levels) is something very many people are going to find useful.
DiapDealer is offline   Reply With Quote
Old Today, 10:26 AM   #18
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,270
Karma: 7640672
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by icearch View Post
May I ask how TOC editing is done in sigil?

Does every change applied to nav right after click? Or similarly, direct edit a temp and apply to real nav?

How about generate a new one after all editing? Will it cause problem?
Each book has its own table of contents item tree. When you start EditTOC it copies the book's item tree. All changes are made to this copy. Only when you press Save does it write its data to the nav or ncx depending on epub version.

But looking at the old thread, you argued against my initial attempt that moved only what was legal to move, leaving the rest out of the move. You wanted it to stop when an illegal move was attempted. I then changed it to how it works now in response and that all happened *before* bug hunting according to the commit history. So I am confused here. Was my initial attempt that you argued was wrong what you really wanted?
KevinH is offline   Reply With Quote
Old Today, 11:08 AM   #19
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by DiapDealer View Post
Still not convinced that moves of multiple, non-contiguous selections (spanning multiple levels) is something very many people are going to find useful.
Here is the thing, let's say you want to make the red quoted part a level down:

Click image for larger version

Name:	b1.png
Views:	7
Size:	182.6 KB
ID:	227561

How would you do it?

This?

Click image for larger version

Name:	b2.png
Views:	6
Size:	177.1 KB
ID:	227562

Or this?

Click image for larger version

Name:	b3.png
Views:	7
Size:	175.9 KB
ID:	227563


Of course from code point of view, the software should process as the latter one, but any human will just use the former one. It's just how human works.

Last edited by icearch; Today at 11:13 AM.
icearch is offline   Reply With Quote
Old Today, 11:10 AM   #20
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
The situation now is you only can do latter one, which is super inconvenient and counter intuitive, making user to work around software, which is both boring and can cause error.
icearch is offline   Reply With Quote
Old Today, 11:13 AM   #21
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
Each book has its own table of contents item tree. When you start EditTOC it copies the book's item tree. All changes are made to this copy. Only when you press Save does it write its data to the nav or ncx depending on epub version.

But looking at the old thread, you argued against my initial attempt that moved only what was legal to move, leaving the rest out of the move. You wanted it to stop when an illegal move was attempted. I then changed it to how it works now in response and that all happened *before* bug hunting according to the commit history. So I am confused here. Was my initial attempt that you argued was wrong what you really wanted?
Maybe some mis-commination before, what I want is the former one at the post above.

I really do not understand what is illegal and what is legal, I do not know how sigil works internally, I can just say what it should behave, sorry.

Thank you for your patience and effort.

Last edited by icearch; Today at 11:19 AM.
icearch is offline   Reply With Quote
Old Today, 11:36 AM   #22
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
And just to be clear, I'm definitely not trying to force anyone to do anything, it's completely freedom of anyone about whether, when, and how they want to do it.
icearch is offline   Reply With Quote
Old Today, 11:44 AM   #23
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,270
Karma: 7640672
Join Date: Nov 2009
Device: many
An illegal move in most cases is one of:

- trying to move left when no parent exists
- trying to move right when you are already a child of your immediate parent (you can not skip a generation),
- trying to move down when you are already at the end.

etc.

These are the rules for all tree strctures.

Last edited by KevinH; Today at 11:47 AM.
KevinH is offline   Reply With Quote
Old Today, 11:49 AM   #24
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,270
Karma: 7640672
Join Date: Nov 2009
Device: many
I will tweak the code back to what I did originally and we can make a test build for you to verify this time. Perhaps neither is what you expected.
KevinH is offline   Reply With Quote
Old Today, 11:56 AM   #25
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
An illegal move in most cases is one of:

- trying to move left when no parent exists
- trying to move right when you are already a child of your immediate parent (you can not skip a generation),
- trying to move down when you are already at the end.

etc.

These are the rules for all tree strctures.
I get it now, thanks.

But as I posted above, what people do may not be what they actually intended.

Surely they do not intended to do an illegal move when they just Shift select all entries they want to move, but you can not expect them to pick every legal ones manually, which defeated the purpose of multi-editing.
icearch is offline   Reply With Quote
Old Today, 11:58 AM   #26
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
I will tweak the code back to what I did originally and we can make a test build for you to verify this time. Perhaps neither is what you expected.
Very kind of you sir.
icearch is offline   Reply With Quote
Old Today, 12:05 PM   #27
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 10,270
Karma: 7640672
Join Date: Nov 2009
Device: many
But just so you know, when a move is illegal and we allow a single item to not move when the others around it do move, it can then change that items relationship to the others in unexpected ways.
KevinH is offline   Reply With Quote
Old Today, 12:13 PM   #28
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: 29,965
Karma: 212736643
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by icearch View Post
Here is the thing, let's say you want to make the red quoted part a level down:

How would you do it?
.
As I've said before: I would use regex to make sure the source code aligned with what I wanted and then regenerate the ncx/nav from h tags. I would only ever use the editor to make minor changes; not bulk ones. But that's just me. And probably a lot of Sigil users. Sorry, but this just seems like a pet project to me. It seemed that way back in August to be honest.

I hope Kevin can easily come up with something to satisfy you, but I'm not entirely sure that's going to be possible.
DiapDealer is offline   Reply With Quote
Old Today, 12:22 PM   #29
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by DiapDealer View Post
As I've said before: I would use regex to make sure the source code aligned with what I wanted and then regenerate the ncx/nav from h tags. I would only ever use the editor to make minor changes; not bulk ones. But that's just me. And probably a lot of Sigil users. Sorry, but this just seems like a pet project to me. It seemed that way back in August to be honest.

I hope Kevin can easily come up with something to satisfy you, but I'm not entirely sure that's going to be possible.
I hope everything can be easy too. But things just can get out of our hand. I accept if this will not be done what I prefer. And I hope you can accept others do things differently, and there are bad made epubs everywhere.

Hope the best.
icearch is offline   Reply With Quote
Old Today, 12:24 PM   #30
icearch
Addict
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 252
Karma: 2000
Join Date: Nov 2025
Device: none
Quote:
Originally Posted by KevinH View Post
But just so you know, when a move is illegal and we allow a single item to not move when the others around it do move, it can then change that items relationship to the others in unexpected ways.
Sure, let's see what will happen after some test. As I stated above, no pressure, I will say what I want, and you can totally say no.
icearch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi column TOC dawood Conversion 2 10-21-2013 02:18 PM
TOC for multi-volume work BobK99 Sigil 7 10-12-2012 08:07 AM
Multi-Level TOC edbro Calibre 4 09-16-2010 07:54 PM
Multi level TOC PAQUITO Bookeen 1 12-23-2009 04:57 AM
Opus Multi-Level TOC's in ePub AnemicOak Bookeen 1 11-08-2009 05:14 PM


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


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