Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2015, 06:19 PM   #1
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
html or xhtml: does it matter?

I know the basics: xhtml is an extension of html and the tags neeed to be lower case and closed etc etc. But I'm a non-techie and I'm using Sigil and the 'Add Blank html file' in the Book Browser seems to sometimes create an html and sometimes an xhtml file. I'm adding a "Also By Gregg Bell" section after the "About the Author" in my ebooks and I've looked at some of the books that have been made in the past and some have AlsoByGreggBell.html and others AlsoByGreggBell.xhtml.

Does it matter which it is? (I'm really hoping it doesn't.) And if it needs to be either xhtml or html how do I manipulate Sigil to do that? Thanks.
Gregg Bell is offline   Reply With Quote
Old 03-17-2015, 07:38 PM   #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: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Gregg Bell View Post
Does it matter which it is? (I'm really hoping it doesn't.) And if it needs to be either xhtml or html how do I manipulate Sigil to do that? Thanks.
It doesn't matter a whit, functionally. The file's extension does not determine how Sigil treats the content.

Sigil should (depending on the version of course) create a new, Blank HTML File with a .xhtml extension (ironic, I know). Splitting, merging, or importing existing files will retain the original extension (whatever it was). But your Sigil epub will work equally well with all .html extensions, all .xhtml extensions or any mixture of the two.

Many just find a nice, consistent file extension to be aesthetically ... soothing. I hardly ever notice the file extensions myself...

...until I DO notice them...

...and then I can't un-notice them...

...not until they once again fade into the comforting obscurity that conformity provides, anyway.

Bottom line is: if you don't mind ... Sigil doesn't either. It also doesn't mind if you DO mind.

Last edited by DiapDealer; 03-17-2015 at 07:43 PM.
DiapDealer is offline   Reply With Quote
Advert
Old 03-17-2015, 07:51 PM   #3
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by DiapDealer View Post
It doesn't matter a whit, functionally. The file's extension does not determine how Sigil treats the content.

Sigil should (depending on the version of course) create a new, Blank HTML File with a .xhtml extension (ironic, I know). Splitting, merging, or importing existing files will retain the original extension (whatever it was). But your Sigil epub will work equally well with all .html extensions, all .xhtml extensions or any mixture of the two.

Many just find a nice, consistent file extension to be aesthetically ... soothing. I hardly ever notice the file extensions myself...

...until I DO notice them...

...and then I can't un-notice them...

...not until they once again fade into the comforting obscurity that conformity provides, anyway.

Bottom line is: if you don't mind ... Sigil doesn't either. It also doesn't mind if you DO mind.
Thanks Diap. That's a big relief. Now I just have to make sure if I have links that they match up with the .html or .xhtml endings. What's weird though is I have several Sigil windows open right now and using the 'add blank html file' some of the windows create an html file and using the 'add blank html file' in other windows they create xhtml files.

I guess it really doesn't matter but I wonder why it's doing that.

Thanks man. I have a ton of work to do and your reply is really freeing me up.
Gregg Bell is offline   Reply With Quote
Old 03-17-2015, 08:03 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The links should be automatically handled by Sigil. Or calibre's editor -- in fact, it has a very nice autocomplete fuzzy-matching thingy.

As far as the file extensions thing goes -- As DiapDealer said, it doesn't matter. The file needs to be valid xhtml (or else you know because Flightcrew or Epubcheck yells at you ) but it happily treats .html or .htm as .xhtml --although nitpicky perfectionists like myself seem to have congregated in this thread here: https://www.mobileread.com/forums/sho...d.php?t=257089

Totally optional, no one will ever know or care other than you... I wouldn't even bother if I were you.
eschwartz is offline   Reply With Quote
Old 03-17-2015, 08:11 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: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Gregg Bell View Post
What's weird though is I have several Sigil windows open right now and using the 'add blank html file' some of the windows create an html file and using the 'add blank html file' in other windows they create xhtml files.

I guess it really doesn't matter but I wonder why it's doing that.
That really shouldn't be. I know older versions of Sigil created .html files, but at some point, it was changed to .xhtml. But it really shouldn't be doing both in the same version (regardless of how many instances are open). Perhaps that's one of the bugs fixed since 0.7.2.
DiapDealer is offline   Reply With Quote
Advert
Old 03-17-2015, 08:22 PM   #6
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by eschwartz View Post
The links should be automatically handled by Sigil. Or calibre's editor -- in fact, it has a very nice autocomplete fuzzy-matching thingy.

As far as the file extensions thing goes -- As DiapDealer said, it doesn't matter. The file needs to be valid xhtml (or else you know because Flightcrew or Epubcheck yells at you ) but it happily treats .html or .htm as .xhtml --although nitpicky perfectionists like myself seem to have congregated in this thread here: https://www.mobileread.com/forums/sho...d.php?t=257089

Totally optional, no one will ever know or care other than you... I wouldn't even bother if I were you.
Thanks eschwartz. Yeah, it's good to know that Flightcrew and eEpubcheck will catch the mismatches. And yeah, I don't care in the least about the aesthetics of the guts. I just want to get this done right so it looks good to the reader.

P.S. Pretty funny thread.
Gregg Bell is offline   Reply With Quote
Old 03-17-2015, 08:28 PM   #7
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by DiapDealer View Post
That really shouldn't be. I know older versions of Sigil created .html files, but at some point, it was changed to .xhtml. But it really shouldn't be doing both in the same version (regardless of how many instances are open). Perhaps that's one of the bugs fixed since 0.7.2.
Who knows. I double checked though. In the screenshot I can't create an xhtml file. (I was trying to for the "Also by Gregg Bell." It just creates an html file. But in blank Sigil it creates an xhtml file. Who knows.
Attached Thumbnails
Click image for larger version

Name:	Selection_014.png
Views:	228
Size:	225.1 KB
ID:	136124  
Gregg Bell is offline   Reply With Quote
Old 03-18-2015, 02:01 AM   #8
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Could it be that it will use the extension xhtml if it is a blank ePUB or all the files are xhtml and html if the majority of the files uses the html extension?
Toxaris is offline   Reply With Quote
Old 03-18-2015, 07:20 AM   #9
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
I write my books in WordStar 7d, last updated about 1991. It saves all files as CAPITALS.HTM and Sigil will dutifully open the file as CAPITALS.HTM and all future splits as Section0001.HTM etc with no apparent (not apparent to me, anyhow) change in functionality. I would be very distressed to discover that my books are somehow not as sophisticated as the other kids'.
Notjohn is offline   Reply With Quote
Old 03-18-2015, 04:19 PM   #10
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by Toxaris View Post
Could it be that it will use the extension xhtml if it is a blank ePUB or all the files are xhtml and html if the majority of the files uses the html extension?
You may be right, and if you're not, it's a very good theory.
Gregg Bell is offline   Reply With Quote
Old 03-18-2015, 04:22 PM   #11
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by Notjohn View Post
I write my books in WordStar 7d, last updated about 1991. It saves all files as CAPITALS.HTM and Sigil will dutifully open the file as CAPITALS.HTM and all future splits as Section0001.HTM etc with no apparent (not apparent to me, anyhow) change in functionality. I would be very distressed to discover that my books are somehow not as sophisticated as the other kids'.
Notjohn, I'm probably the least techie person in this forum but FWIW I remember reading about xhtml's stuff needing to be lower case. http://www.landofcode.com/xhtml-tuto...-and-xhtml.php
Gregg Bell is offline   Reply With Quote
Old 03-18-2015, 04:58 PM   #12
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Its only the TAGS need to be in lowercase; not the file names.
PeterT is offline   Reply With Quote
Old 03-18-2015, 05:22 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Gregg Bell View Post
Thanks eschwartz. Yeah, it's good to know that Flightcrew and eEpubcheck will catch the mismatches. And yeah, I don't care in the least about the aesthetics of the guts. I just want to get this done right so it looks good to the reader.

P.S. Pretty funny thread.
Actually, you should care about the aesthetics of the guts. The cleaner it is, the simpler the code and the easier to find any mistakes. Also, messy code can turn off some people from buying any more of your eBooks. I don't buy from Smashwords all that much because the code is mostly a Word > ePub conversion and the code can be a real mess.

You want code that's clean so it's easier for you to deal with. Take an average Word file (not one done with proper styles or cleaned using Toxaris' Word add-in), convert it to ePub using Calibre and just see how poor the guts can be and how much work you have to do to clean it up.
JSWolf is offline   Reply With Quote
Old 03-18-2015, 05:45 PM   #14
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: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@JSWolf - I wonder what percentage of book buyers look at the code, even if the typography is not exactly as they would prefer. At a guess I would think 1-2% tops, if indeed, even that.

Books are bought because of the quality of their content, not their markup.

BR
BetterRed is offline   Reply With Quote
Old 03-18-2015, 06:00 PM   #15
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: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's a teensy-weensy, OCD/hobbyist fraction, of a sliver of the ebook-buying/reading public that will give two squats about the guts of your epub. The rest don't even know the book has guts to give squats about. So as long as it renders well on most devices (and the code doesn't look like pure soup), let your own conscience guide you about how nitpicky you ought to be about your code. The seven people your code could possibly offend will secretly be happier than a hog in mud that they have some new code to clean up and complain about anyway.

Last edited by DiapDealer; 03-18-2015 at 06:03 PM.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html vs xhtml cybmole Sigil 4 04-29-2014 11:22 AM
HTML Or XHTML? fcm52 Workshop 2 09-29-2013 01:10 PM
Does xhmtl or html extension matter? Ripplinger Workshop 2 10-28-2012 07:23 PM
HTML Anchor in XHTML arreke Sigil 3 12-27-2010 01:28 PM
Jetbook HTML (XHTML) rogue_ronin Ectaco jetBook 19 02-12-2010 09:13 PM


All times are GMT -4. The time now is 03:09 AM.


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