Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2024, 09:40 PM   #1
zodac
Junior Member
zodac began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2014
Device: Kindle PaperWhite 2
Possible to set default page to open?

Is there an option in Sigil (using 2.0.2) where I can choose which page should open by default when opening an epub? I'm updating a few files and want to edit their .opf file. Is there a way I can configure Sigil to open that file by default for a book?
zodac is offline   Reply With Quote
Old 01-24-2024, 09:19 AM   #2
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No. Currently there's no way to do that. Sigil always opens to the first xhtml page.
DiapDealer is offline   Reply With Quote
Advert
Old 01-24-2024, 09:53 AM   #3
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: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
If your goal is to update or change OPF metadata, then you are best to use the Metadata Editing tool which is part of Sigil. It works by a single click on the toolbar no matter which file is open in CodeView.

Please remember to use Sigil menus to add or remove files, update manifest properties, maintain spine order, erc. As trying to manually edit the opf is fraught with difficulties as Sigil maintains the opf as fully machine parseable at ALL times. This can cause errors if focus leaves the OPF tab before all your desired changes are made.
KevinH is offline   Reply With Quote
Old 01-24-2024, 03:10 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
No. Currently there's no way to do that. Sigil always opens to the first xhtml page.
Be good if there was.

I use Sigil->Tools-> MD editor late in my workflow for the sole purpose of removing unwanted MD elements (e.g. subjects, description etc), I always load the opf file first to see what's there, and look again after exiting the MD Editor.

A command line option would be my preference e.g. sigil -open <something>.

BR
BetterRed is offline   Reply With Quote
Old 01-24-2024, 03:18 PM   #5
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
A command line option would be my preference e.g. sigil -open <something>.
That's not likely to happen. Anything after Sigil is considered to be a path to an epub to open. Sigil is never going to be that command-line friendly. It's a gui tool. No batch epub processing, no headless functionality. No checking to see if a filename even exists to launch first.

Last edited by DiapDealer; 01-24-2024 at 03:25 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 01-24-2024, 03:33 PM   #6
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: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Agreed. Not happening.
KevinH is offline   Reply With Quote
Old 01-24-2024, 05:00 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
Sigil is never going to be that command-line friendly. It's a gui tool.
Fair enough, but so is MS Notepad ==>> Notepad command line switches - Microsoft

BR
BetterRed is offline   Reply With Quote
Old 01-24-2024, 06:47 PM   #8
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sigil is just never going to be geared toward opening a bunch of epubs quickly for minor changes. It's not a tool to quickly make changes to an entire library.

Notepad opens one file. Sigil opens an epub that can contain hundreds of files that are intimately linked. Your comparison is not very apt.
DiapDealer is offline   Reply With Quote
Old 01-25-2024, 11:46 AM   #9
nabsltd
Evangelist
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 417
Karma: 6913952
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe
Quote:
Originally Posted by DiapDealer View Post
Notepad opens one file.
Windows 11 Notepad with tabs can open multiple files at the same time, as long as Notepad is the default app for those files. So, multi-select in Explorer, hit ENTER, and all the files open...mostly.

There are reports of bugs where the new Notepad tries to open files with the same name in the same tab, even if the files are not located at the same place on the disk. You can easily trigger this sort of bug if you search for "README.txt" in a directory tree, then try to open all of them at the same time.

What you say about Sigil is correct, though.
nabsltd is offline   Reply With Quote
Old 01-25-2024, 06:19 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
Sigil is just never going to be geared toward opening a bunch of epubs quickly for minor changes. It's not a tool to quickly make changes to an entire library.

Notepad opens one file. Sigil opens an epub that can contain hundreds of files that are intimately linked. Your comparison is not very apt.
I never mentioned or even implied opening a 'bunch of files'? Nor in my opinion did the OP. At the command level Sigil opens one file e.g sigil whatever.epub, notwithstanding nabsltd's post, so does Notepad.

If you don't want to do it fair enough. But please don't claim its because I suggested something I didn't suggest, and never have or would suggest.

BR
BetterRed is offline   Reply With Quote
Old 01-25-2024, 07:06 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by BetterRed View Post
I never mentioned or even implied opening a 'bunch of files'? Nor in my opinion did the OP. At the command level Sigil opens one file e.g sigil whatever.epub, notwithstanding nabsltd's post, so does Notepad.

If you don't want to do it fair enough. But please don't claim its because I suggested something I didn't suggest, and never have or would suggest.

BR
The problem is that the normal usage for Notepad is opening a single file while Sigil is opening a bunch of files collected into a .zip container.

notepad foo.bar.txt opens a single text file.

sigil font-tester-v4r.epub opens a .zip container with 103 files. The minimum number of files in a valid epub file would be 4 plus a directory (META-INF).

For me, it is easy enough to click on the M icon to open the metadata editor (probably safer to unless I find a real need to manually edit the .opf file).
DNSB is offline   Reply With Quote
Old 01-25-2024, 07:17 PM   #12
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: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
I never mentioned or even implied opening a 'bunch of files'? Nor in my opinion did the OP.
No kidding. I'm the one who implied it. Because it's always relevant whenever someone attempts to compare the features of a file editor to the features of an epub editor. And as DNSB mentioned, an epub is not one file. No matter how much you might want to pretend it is.
DiapDealer is offline   Reply With Quote
Old 02-17-2024, 11:52 PM   #13
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by BetterRed View Post
I use Sigil->Tools-> MD editor late in my workflow for the sole purpose of removing unwanted MD elements (e.g. subjects, description etc), I always load the opf file first to see what's there, and look again after exiting the MD Editor.
Be aware that Sigil purges anything non-standard in the OPF on opening.
You need to use another tool to open the epub as a zip and look at the OPF if you want to see everything there. Some apps put HTML style
<!-- comments --> in OPFs, which Sigil discards, for instance. Calibre tags will survive.
AlanHK is offline   Reply With Quote
Old 02-18-2024, 08:42 AM   #14
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: 7,647
Karma: 5433388
Join Date: Nov 2009
Device: many
Yes, all comments are removed from the opf, as Sigil auto parses and auto generates bits of it while you use Sigil. Sigil has always been that way.
KevinH is offline   Reply With Quote
Old 02-18-2024, 05:17 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by AlanHK View Post
Be aware that Sigil purges anything non-standard in the OPF on opening.
You need to use another tool to open the epub as a zip and look at the OPF if you want to see everything there. Some apps put HTML style
<!-- comments --> in OPFs, which Sigil discards, for instance. Calibre tags will survive.
Aware of that.

My objective is to reduce the opf down to the bare essentials. I remove non DC elements with calibre's Modify EPUB plugin, and then I use Sigil to remove any description, subject and bookstore identifier DC elements.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set my default reader app in CC? nano5 Calibre Companion 0 06-17-2021 03:14 AM
Why does Firefox keep getting set to Non-default? Darqref Lounge 2 11-27-2017 08:29 PM
Any way to set just default PDF margins? phossler Conversion 3 04-04-2017 02:17 PM
Can't set Calibre as default for epub sespr Devices 5 09-24-2016 08:35 PM
Default font set? brainycat PocketBook 13 06-03-2010 03:19 AM


All times are GMT -4. The time now is 04:16 PM.


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