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 08-19-2009, 11:51 AM   #1
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
SIGIL format

What is the difference between the .sgf format and ePUB file format? They look very similar to me. Is there an advantage to using .sgf?

Dale
DaleDe is offline   Reply With Quote
Old 08-19-2009, 12:23 PM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by DaleDe View Post
What is the difference between the .sgf format and ePUB file format? They look very similar to me. Is there an advantage to using .sgf?
SGF just takes whatever the state of your XHTML code is in currently and dumps it as one large XHTML file (in an epub-like container, with the included images etc). The source file looks exactly like what you see in Code View.

Exporting an epub takes your source code, splits it up on chapter breaks, filters out Sigil-specific CSS and XHTML, creates CSS files from <style> tags and then writes it all out. It's a bit more involved than that. So there is some (a lot actually) pre-processing going on.

With SGF, there is no preprocessing. It's your "working" code dumped raw. The benefit here is that you are isolated from the changes that are made when exporting an epub. With time, I'll add dialogs that pop up on import and export (like what Photoshop does for instance) that let you fine-tune how your file is imported or exported. You could perhaps add margins on export, or on import filter out the cruft from HTML exported from Word etc. None of this will happen for SGF, because that format is already "the way it should be". Think of it as Photoshop's PSD.

In the future, when Sigil supports loading and saving of different file formats (RTF, Mobi, LIT, LRF etc... who knows), those formats will conceivably need some specific information recorded that you can't just store in an epub. So when working on it, you would store it as an SGF, and it would have all the possible information you could record in Sigil.

Again, the idea is to have something like Photoshop's PSD. A "neutral", application-specific format that could be extended, changed, updated etc.
Valloric is offline   Reply With Quote
Advert
Old 08-19-2009, 01:24 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Thanks for the explanation. And the product.

Dale
DaleDe is offline   Reply With Quote
Old 08-20-2009, 04:03 AM   #4
mtravellerh
book creator
mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.mtravellerh ought to be getting tired of karma fortunes by now.
 
mtravellerh's Avatar
 
Posts: 9,635
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: PB360°
Quote:
Originally Posted by Valloric View Post
SGF just takes whatever the state of your XHTML code is in currently and dumps it as one large XHTML file (in an epub-like container, with the included images etc). The source file looks exactly like what you see in Code View.

Exporting an epub takes your source code, splits it up on chapter breaks, filters out Sigil-specific CSS and XHTML, creates CSS files from <style> tags and then writes it all out. It's a bit more involved than that. So there is some (a lot actually) pre-processing going on.

With SGF, there is no preprocessing. It's your "working" code dumped raw. The benefit here is that you are isolated from the changes that are made when exporting an epub. With time, I'll add dialogs that pop up on import and export (like what Photoshop does for instance) that let you fine-tune how your file is imported or exported. You could perhaps add margins on export, or on import filter out the cruft from HTML exported from Word etc. None of this will happen for SGF, because that format is already "the way it should be". Think of it as Photoshop's PSD.

In the future, when Sigil supports loading and saving of different file formats (RTF, Mobi, LIT, LRF etc... who knows), those formats will conceivably need some specific information recorded that you can't just store in an epub. So when working on it, you would store it as an SGF, and it would have all the possible information you could record in Sigil.

Again, the idea is to have something like Photoshop's PSD. A "neutral", application-specific format that could be extended, changed, updated etc.
I was just thinking if it might be possible to edit the sgf file directly with an editor to make up for that missing Search & Replace feature. What compression method did you use. I would like to uncompress it, edit the SGF file with my editor and save it back to sgf so that I could reopen it in Sigil.

Edit: Okay, I found it out myself: The SGF file is a zip file, so editing it is simple. That solves a lot of my problems until S&R is done.

Last edited by mtravellerh; 08-20-2009 at 07:07 AM.
mtravellerh is offline   Reply With Quote
Old 08-20-2009, 04:54 PM   #5
astra
The Introvert
astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.astra ought to be getting tired of karma fortunes by now.
 
astra's Avatar
 
Posts: 8,307
Karma: 1000077497
Join Date: Jan 2007
Location: United Kingdom
Device: Sony Reader PRS-650 & 505 & 500
Thanks for the product.
I haven't used it yet, but I am looking forward to it.

Last edited by astra; 08-23-2009 at 10:55 AM. Reason: format/forward...?
astra is offline   Reply With Quote
Advert
Old 08-23-2009, 09:59 AM   #6
zelda_pinwheel
zeldinha zippy zeldissima
zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.zelda_pinwheel ought to be getting tired of karma fortunes by now.
 
zelda_pinwheel's Avatar
 
Posts: 27,827
Karma: 921169
Join Date: Dec 2007
Location: Paris, France
Device: eb1150 & is that a nook in her pocket, or she just happy to see you?
Quote:
Originally Posted by mtravellerh View Post
I was just thinking if it might be possible to edit the sgf file directly with an editor to make up for that missing Search & Replace feature. What compression method did you use. I would like to uncompress it, edit the SGF file with my editor and save it back to sgf so that I could reopen it in Sigil.

Edit: Okay, I found it out myself: The SGF file is a zip file, so editing it is simple. That solves a lot of my problems until S&R is done.
actually, this is precisely how i've been working, but i just open the file in sigil, copy the entire code window to notepad (ctrl A ctrl C, then ctrl V in notepad) and do all my searches there. then i delete the code from sigil and paste in the updated version, and save. it's a bit less efficient than being able to search directly in sigil but it works quite well nonetheless.

and it's nice having two windows so i can easily display (for instance) my css codes in sigil while i'm working in notepad, if i want to update some styles or refer to them.
zelda_pinwheel is offline   Reply With Quote
Old 09-04-2009, 09:20 PM   #7
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Great explanation-makes total sense now. Thanks!
kjk is offline   Reply With Quote
Old 10-13-2009, 11:00 AM   #8
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,600
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Quote:
Originally Posted by zelda_pinwheel View Post
actually, this is precisely how i've been working, but i just open the file in sigil, copy the entire code window to notepad (ctrl A ctrl C, then ctrl V in notepad) and do all my searches there. then i delete the code from sigil and paste in the updated version, and save. it's a bit less efficient than being able to search directly in sigil but it works quite well nonetheless.

and it's nice having two windows so i can easily display (for instance) my css codes in sigil while i'm working in notepad, if i want to update some styles or refer to them.


Interesting, thanks for that idea Zelda.
GeoffC 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
iPhone Convert epub format to kindle for iPhone format. Is it possible? thecyberphotog Apple Devices 16 03-14-2013 01:04 AM
Preserving format from ePub (Sigil) to Mobi jeff47 Calibre 9 10-22-2010 10:17 PM
Ebook in PRC format will not convert to any other format Katelyn Calibre 0 10-01-2010 07:02 PM
Kindle format to Sony PRS700 format TinkerbellT Kindle Formats 9 06-23-2009 02:43 PM
Master Format for multi-format eBook Generation? cerement Workshop 43 04-01-2009 12:00 PM


All times are GMT -4. The time now is 10:40 PM.


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