02-26-2014, 01:11 PM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2014
Device: ipad
|
After changes to HTML in Sigil...
Hi! After I authored the word doc, I did the following:
a) Saved word doc as web page, filtered b) Opened the resulting html doc in Sigil c) Ran FlightCrew on the html It is showing a lot of errors, most of which require me to make some minor changes to the "html code". Suppose I make those html code changes, the issue I am facing is: Next time I perform any chance to my word doc, and again save it as web page, filtered (basically if I repeat the above process), then all the html code changes that I had performed earlier would obviously be over-written. So, how do people circumvent this? Seems to be that this should be a pretty common situation. |
02-26-2014, 01:23 PM | #2 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Make the (I would be expecting minor) changes in the EPUB (Sigil or Calibre editor). The validated EPUB is now the master (and most recent) format. |
|
02-26-2014, 03:58 PM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
I make the export in another way. Even the filtered HTML export of Word is full of ugly code. Clean code will result in a lot better results. That was one of the reasons that I created my add-in. It will create clean code and can even create a basic ePUB for you.
Once the ePUB is created, make any changes there. Mostly style but depending on the number of changes also the textual changes. |
02-26-2014, 04:35 PM | #4 |
Guru
Posts: 838
Karma: 3976266
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505, Pocketbook TL3, TL4, TL5
|
As an alternative you could use Open Office Writer instead of MS Word. This creates a HTML document with much cleaner code if you select 'File', 'Send' & then 'Create HTML Document' instead of 'File Save as'. Or you could add the Write2Epub extension (has it own forum on MR) to Writer and create your epub directly.
|
02-26-2014, 05:05 PM | #5 | |
Lector minore
Posts: 649
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Samsung Galaxy Tab S5e, Google Pixel Slate
|
Quote:
I usually do my editing in a text editor, though lately I have been working in Sigil more and more. I also used to use TacoEdit (for Mac) as an HTML editor, which gave simultaneous views of rendered and code. Something I've done in the past is open HTML documents in Word and editing there. I can't remember off the top of my head if the resulting HTML is cleaner or not. |
|
02-26-2014, 06:28 PM | #6 |
Grand Sorcerer
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
|
Another choice is to use Atlantis Word Processor. It can make a clean ePub directly from a DOC file and allow you to edit the source easily since it is simple to update the ePub by saving a new copy.
Dale |
02-26-2014, 07:19 PM | #7 | ||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Vis-a-vis this, from MickiTee: Quote:
That's the essence of it. Unless someone works in Markdown or code, I wouldn't expect that to change dramatically any time soon. Hitch |
||
02-27-2014, 01:10 AM | #8 |
Junior Member
Posts: 2
Karma: 10
Join Date: Feb 2014
Device: ipad
|
It is overwhelming to get responses from people, most of whom have thousands of posts to their credit.
The discouraging news seems to be that there seems to be no way of converting word into a good epub. Toxaris, you mention: "Once the ePUB is created, make any changes there". The issue is that I am not a html pro (I am just writing a book), but once I start editing directly in Sigil, it seems that it will soon require me to have a good working knowledge of html. So, I need to think about what to do going forward. As an aside, had a basic question. It looks like epub/sigil does not recognize "formatting styles" of word. For example, I created a style for "normal italic" and applied it to some portions of the word-doc, but when I view it in epub/sigil, those portions just come up as "normal" (and not "italicized). So, does it mean I have to "re-do" all the formatting (bold, italics, underline etc. etc.) that I had done in the word doc, in the epub file? |
02-27-2014, 01:23 AM | #9 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
A properly formatted .docx is supposed to convert quite well AND cleanly in calibre. So you should be able to use the .docx as your master format.
Instead of saving filtered html, save as .docx and convert to EPUB with calibre. Or use Toxaris' addon to make an EPUB and edit the code in Sigil. If you plan on fixing the FlightCrew errors in Sigil, you may have to learn html anyway. |
02-27-2014, 01:36 AM | #10 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Education - follow Hitch's advice and use Word Styles. Before saving I search for tabs (^t), double paragraph marks (^p^p) etc and eliminate via styling.
I save as DOCX and convert via calibre's conversion facilities (ebook-convert), I see very little cruft from that process. The Word Styles convert pretty much 1:1 with CSS styles. The only thing I might do is cosmetic and move things around a bit. I guess what I'm saying is that KG's DOCX to HTML converter is better than MS's is BR |
02-27-2014, 02:11 AM | #11 | ||
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Quote:
This will double your workload (fix/changes in EPUB, and fix/changes in the original DOC). Make sure that you have a finalized copy of your book BEFORE the EPUB conversion step. |
||
02-27-2014, 02:21 AM | #12 | ||
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Quote:
Hitch |
||
02-27-2014, 02:40 AM | #13 | ||
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
[QUOTE=Education;2774334]The discouraging news seems to be that there seems to be no way of converting word into a good epub.[.QUOTE]
There are, several actually. They were mentioned here. I am not in favor of the Calibre route myself, since I really don't like the code Calibre produces. Utterly chaos and counter-intuitive in my opinion. After all, they are different formats all together. There is no 'automagic converter that read your mind on how it must look'. Quote:
Quote:
My add-in at the moment retains the stylesheet names if you want, but not the formatting. That is by design. However, since the names can be retained, the semantics are preserved. So, when you create a stylesheet, you can add classes with that name to control the formatting. In the next version I will add the possibility to retain some formatting, it will be put in the stylesheet automatically. That should help people without HTML/CSS knowledge to get started. |
||
02-27-2014, 02:58 AM | #14 | |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
02-27-2014, 04:50 AM | #15 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
If this has changed in the past year, I need to check it out again to see if this is still the case. Tables, lists, images and so on are supported in full, minus the formatting and that has been a deliberate choice. The macro is a crude version and not really supported anymore with me. It is an alternative if the add-in cannot be used. The add-in has much more features. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
When Calibre Goes to Sigil in HTML *and* XHTML | Tulpana | Sigil | 6 | 07-09-2012 10:03 AM |
html to epub via Sigil or Calibre? | Bigo2 | Calibre | 2 | 07-01-2012 02:07 AM |
How to stop Sigil from changing my HTML? | seanos | Sigil | 29 | 05-25-2012 12:49 AM |
Question about using Sigil to convert HTML | ficbot | Sigil | 9 | 03-06-2011 08:12 AM |
Sigil, HTML Tidy or PEBCAK? | DTM | Sigil | 6 | 09-26-2010 08:49 PM |