Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-30-2016, 02:08 PM   #46
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by Toxaris View Post
In that case the title is part of the citation/reference. It is not the title of the book/document itself.

To me it seems they are trying to make HTML more semantic, but they do it only partially and not consistent. Anyway, I don't want to be depending on a renderer to decide who things must look as this is not defined in the standard. If they would specify the standard rendering of a semantic tag, it could be easily used and overruled. It is almost impossible to prevent every possible layout that a renderer could apply to a tag as their standard.
Just a title on its own they regard as something for <cite>. See their Doctor Who example. But I tend to agree it is a bit flaky, since they regard an author name as something to use <cite> on too, whereas in actual practice you wouldn't usually want to differentiate such text. They have the strange example of Charles Bukowski. As far as I'm concerned, that's just a name. But Love is a dog from hell is a book title and should be italicised.
bookman156 is offline   Reply With Quote
Old 03-30-2016, 02:15 PM   #47
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by st_albert View Post
Seems no one has answered this question, at least directly, so I'll give you my reasons.

In some cases, I create epubs via export from InDesign CS4, which implements character styles with spans. It loves spans so much it even wraps all paragraphs in a "generic span" that has a null definition in the stylesheet, just in case you want to define them later (I suppose). IIRC, later versions of ID will let the user define the HTML used to implement a given style.
Thanks. I had a suspicion it might be as a result of InDesign export. Fair enough.
bookman156 is offline   Reply With Quote
Advert
Old 03-30-2016, 02:23 PM   #48
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by st_albert View Post
In either case, the epubs so obtained require considerable tweaking in Sigil, and I like my saved clips and S/R's to be applicable to epubs from either source, to the extent possible.
Out of interest, do you leave the span class italics you get from InDesign export or do you replace them when tweaking in Sigil?
bookman156 is offline   Reply With Quote
Old 03-31-2016, 05:45 PM   #49
rube
rube
rube began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by bookman156 View Post
Be interesting to hear how people generally approach making an EPUB from scratch.
I don't do a lot of epubs so my experience level is lower than most here, but I've been trying to work out the simplest quickest way of doing every simple epubs (reflowable, no links or fancy formatting etc). I used to mark up with a html editor first but I've found starting from a .txt is pretty nice with Sigil because all the paragraphs are already marked in. Sigil puts in <p>s for what it sees as blank lines but I can remove them all in one go with a find and replace and that only leaves me changing heading and putting in microscopic css in the header. Of course this wouldn't work for anything more complicated but starting from scratch in Sigil works for very basic epubs.
rube is offline   Reply With Quote
Old 04-02-2016, 08:15 AM   #50
sanjon
Junior Member
sanjon began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: Kindle Paperwhite
Quote:
Originally Posted by bookman156 View Post
Be interesting to hear how people generally approach making an EPUB from scratch. I suppose if you have an InDesign file already you'd make one from that, but if I wanted to kinda write the book itself from scratch into an EPUB? Maybe it would seem natural to write it as webpages in Dreamweaver, as I'm quite used to that and it uses the tags I prefer. Or perhaps it would be better to design it in InDesign. Do people create EPUBs from scratch in Sigil?
I think I would start from a Word file because you can visualize the book as you write it. Then save the document as Web Page, Filtered to get the HTML file. Of course Word introduces a lot of garbage and inline styles but I have a script that cleans all of that out and adds some custom styles.

Otherwise I would just use something like Notepad++ (or in your case Dreamweaver) to write the book in HTML and just view it in the browser every once in a while. Although I feel like the writing experience wouldn't be the same.

Calibre is quite good at making the actual EPUB if you supply it with a single HTML file and will break it up into separate files. So there is no need to start with an EPUB.

I must say though that I don't have much experience with writing, this is just what I do for conversions. And I don't even know if those are best practices

Last edited by sanjon; 04-02-2016 at 08:18 AM.
sanjon is offline   Reply With Quote
Advert
Old 04-02-2016, 12:33 PM   #51
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
It generally makes sense to write a book in a word processor, Word or the LibreOffice one. Although I also write on a manual typewriter and scan it in later. But if I want a web page from a Word document I wouldn't export as HTML I would copy and paste it into Notepad to strip it of crap and from there into a blank XHTML file that I'd already styled with CSS, usually because it is another page of an already existing website. (I guess you could also just save the Word doc as .txt but I prefer copy and paste.) You wouldn't have to worry about bad Word formatting and could tag from scratch in XHTML. You'd only have to refer to the original document to see if anything was italic.

Alternatively, you'd place the Word document in InDesign and style it there, particularly if a print book is your first concern rather than an ebook. I do write directly into Dreamweaver if I'm writing for the web as I can see what it will look like as I'm writing without having to view it in a browser. But I don't think I would want to write a whole book in Dreamweaver, notwithstanding that you can end up with a million word website solely created that way. (Although I suppose most websites these days use a CMS and don't 'hand-roll' any more.)

I don't think I would want to produce solely an ebook without a print book, but if I did I think Word > Text > Dreamweaver XHTML > Sigil would be the way I would do it. But as I would want a print book first and foremost (and may never actually do an ebook) it would be Word > InDesign. So any EPUB would inevitably be made from the InDesign file.

Last edited by bookman156; 04-02-2016 at 02:11 PM.
bookman156 is offline   Reply With Quote
Old 04-02-2016, 01:08 PM   #52
sanjon
Junior Member
sanjon began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: Kindle Paperwhite
Quote:
Originally Posted by bookman156 View Post
I don't think I would want to produce solely an ebook without a print book, but if I did I think Word > Text > Dreamweaver XHTML > Sigil would be the way I would do it. But as I would want a print book first and foremost (and may never actually do an ebook) it would be Word > InDesign. So any EPUB would inevitably be made from the InDesign file.
I don't have much experience with print books, but going through a .txt file (as you and rube both say) after having the book in Word sounds like a good idea when focusing on ebooks.

When you go from Word > InDesign > EPUB, does InDesign get rid of all of the garbage that Word generates? Or is the resulting EPUB still filled with tons of inline styles? Because that's one thing I try hard to avoid.
sanjon is offline   Reply With Quote
Old 04-02-2016, 01:11 PM   #53
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
I usually work from a Word file, often result of an OCR scan process. Then I clean the whole document up and fix the OCR errors with my add-in. Then I directly export from Word to an ePUB. Often I use a standard stylesheet which is automatically inserted into the ePUB (and linked of course) when I export it as an ePUB from Word. As a final touch I load the ePUB into Sigil for some work if needed.

Needless to say is that the XHTML in the ePUB created in this way does NOT contain any of the Word HTML garbage and that it can handle things like tables, foot- and endnotes, images, equations and so on. If you want, you can even generate a stylesheet based on the styles used in the Word document.

Last edited by Toxaris; 04-02-2016 at 01:14 PM.
Toxaris is offline   Reply With Quote
Old 04-02-2016, 01:12 PM   #54
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by sanjon View Post
When you go from Word > InDesign > EPUB, does InDesign get rid of all of the garbage that Word generates? Or is the resulting EPUB still filled with tons of inline styles? Because that's one thing I try hard to avoid.
You can have a 'Clean imported text' workflow in InDesign to scrub up Word files, and then you style it, so no, you won't have any Word rubbish if you clean it up right.

But InDesign > EPUB may introduce its own stuff.
bookman156 is offline   Reply With Quote
Old 04-02-2016, 01:30 PM   #55
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by Toxaris View Post
I usually work from a Word file, often result of an OCR scan process. Then I clean the whole document up and fix the OCR errors with my add-in.
That looks pretty handy, particularly its ability to check that an opening quote is definitely followed by a closing quote, that's often a very annoying OCR error. Do you know if there is any way to check that in Sigil in an EPUB itself?
bookman156 is offline   Reply With Quote
Old 04-02-2016, 01:34 PM   #56
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
Quote:
Originally Posted by bookman156 View Post
That looks pretty handy, particularly its ability to check that an opening quote is definitely followed by a closing quote, that's often a very annoying OCR error. Do you know if there is any way to check that in Sigil in an EPUB itself?
As far as I know, there is no plugin that does the same or similar thing. It is quite a unique (and handy if I say so myself) feature.
Toxaris is offline   Reply With Quote
Old 04-02-2016, 01:36 PM   #57
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by bookman156 View Post
That looks pretty handy, particularly its ability to check that an opening quote is definitely followed by a closing quote, that's often a very annoying OCR error. Do you know if there is any way to check that in Sigil in an EPUB itself?
But an opening quote isn't always followed by a close quote. When you have multi-paragraph quotes, for example, it's conventional to only have a close quote on the final paragraph. Ie:

"The first paragraph of my speech.
"And I carry on talking here.
"And go on here.
"And finally finish."
HarryT is offline   Reply With Quote
Old 04-02-2016, 01:38 PM   #58
bookman156
Addict
bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.bookman156 ought to be getting tired of karma fortunes by now.
 
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
Quote:
Originally Posted by HarryT View Post
But an opening quote isn't always followed by a close quote. When you have multi-paragraph quotes, for example, it's conventional to only have a close quote on the final paragraph. Ie:
That's a very good point, although thankfully it wouldn't occur too often.
bookman156 is offline   Reply With Quote
Old 04-02-2016, 03:00 PM   #59
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
Quote:
Originally Posted by bookman156 View Post
That's a very good point, although thankfully it wouldn't occur too often.
It depends on the language. In some languages it is even different. In those languages the next paragraph in the same dialogue would start with a closing quote.
I have taken that into account.
Toxaris is offline   Reply With Quote
Old 04-02-2016, 05:56 PM   #60
sanjon
Junior Member
sanjon began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2016
Device: Kindle Paperwhite
Quote:
Originally Posted by Toxaris View Post
I clean the whole document up and fix the OCR errors with my add-in. Then I directly export from Word to an ePUB. Often I use a standard stylesheet which is automatically inserted into the ePUB (and linked of course) when I export it as an ePUB from Word. As a final touch I load the ePUB into Sigil for some work if needed.
That Word add-in sound a bit like what I have tried to do in the past using RegEx and the like, but much more advanced

Definitely need to check that out, cheers! Does that handle things like italic and bold tags as well? But I guess you wouldn't have that in an OCR generated document anyway.

Last edited by sanjon; 04-02-2016 at 06:01 PM.
sanjon is offline   Reply With Quote
Reply

Tags
semantic, semantic markup


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using italic and bold instead of emphasis and strong hardbound ePub 12 05-24-2014 07:20 AM
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic MHC Apple Devices 4 03-03-2014 01:50 PM
The bold and italic buttons on the bar Artha Sigil 15 12-04-2011 04:52 PM
italic, bold etc to normal cybmole Sigil 11 03-04-2011 10:37 AM
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? EatingPie Sony Reader Dev Corner 9 04-07-2007 01:06 AM


All times are GMT -4. The time now is 01:38 AM.


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