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 02-27-2014, 06:02 AM   #16
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As a matter of fact the stylesheet that the calibre conversion produces contains exactly one class for every element that has a different style from the other elements. And it is flat, with no complex inheritance rules, which makes it really easy to tweak. For instance if you have 7 distinct paragraph styles used in your word document, and you dont define any per-paragraph overrides, there will be seven CSS classes in the output.

But, whatever, the work speaks for itself, I was just annoyed by your use of the words "chaos and counter intuitive". If you did not intend to attack calibre, then do not use words like that.
kovidgoyal is online now   Reply With Quote
Old 02-27-2014, 07:15 AM   #17
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: 3,188
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I will check out the current conversion process again. Again, it is my opinion as I directly stated. What you describe sounds solid, but I wonder what the effect will be on a Word document not so nicely built with styles like for example a doc output from ABBYY. Clean Word documents with correctly used styles are scarce to be honest.
Toxaris is offline   Reply With Quote
 
Advertisement
Old 02-27-2014, 07:19 AM   #18
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I think the problem is identifying in the epub what was the style in Word in the first place. They all come out as calibre something. Is there any way to carry over style names, for whatever use they might be? That would make decision making easier as to keep a given style or not.
mrmikel is offline   Reply With Quote
Old 02-27-2014, 07:37 AM   #19
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Toxaris View Post
Again, it is my opinion as I directly stated.
When you express your opinion in offensive terms, be prepared to get it thrown right back in your face.

Quote:
but I wonder what the effect will be on a Word document not so nicely built with styles like for example a doc output from ABBYY.
You cannot magically generate a "clean" document from garbage. In that case when you assert that you are generating a "clean" document, what you really mean is that you are arbitrarily throwing out almost all the formatting of the original. If you want to that in calibre, convert your word document to txt instead of html.
kovidgoyal is online now   Reply With Quote
Old 02-27-2014, 07:39 AM   #20
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
@mrmikel: No, there is not not. The cascading models for how styles work in docx and css are completely different. In docx styles are composed at the style level, in CSS at the element level. Therefore, for all but the simplest cases you cannot map one to another directly.
kovidgoyal is online now   Reply With Quote
Old 02-27-2014, 07:56 AM   #21
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
They are just about antithetical, aren't they? Sigh. That probably accounts for what confusion exists. We are fortunate you can take a left universe document and produce a right universe book.
mrmikel is offline   Reply With Quote
Old 02-27-2014, 08:42 AM   #22
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: 3,188
Karma: 7180223
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Quote:
Originally Posted by kovidgoyal View Post
You cannot magically generate a "clean" document from garbage. In that case when you assert that you are generating a "clean" document, what you really mean is that you are arbitrarily throwing out almost all the formatting of the original. If you want to that in calibre, convert your word document to txt instead of html.
No, you can't indeed. You are correct that I am throwing out formatting of the original, but not all. I throw out things like margins and font-sizes, not styling like centering, italic and bold and more. That was done on purpose, because those are in my opinion more important than margins for most books. The other formatting can then be set in the stylesheets.
The txt format looses of course everything.

Fortunately there are more ways to skin a cat and each can choose the one best suited for his/her own uses.
Toxaris is offline   Reply With Quote
Old 02-27-2014, 08:45 AM   #23
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,449
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Toxaris View Post
The txt format looses of course everything
No, it doesn't. You can choose to output either markdown or textile formatting in which case inline styling like bold/italic/etc., links and (IIRC) even images will be preserved.
kovidgoyal is online now   Reply With Quote
Old 02-27-2014, 12:49 PM   #24
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,284
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Education View Post

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.
Take 10 and stop and look at the HTML side of one of your properly formatted chapters in Sigil.

Complicated? H no! English Grammar is way harder.

Messy code? Probably, if it came from word. (IMHO Messy is unnecessary style divisions: <p class="indented"><span class="none1"> , when the attributes from 'none1' could be combined into 'indented')


CSS is where the real style work gets done (avoid those styling buttons in Sigil) They generate in FILE SGC codes (but valid CSS coding if you need it).
copy (and but RENAME) a SGC# block to your stylesheet as a starter. RENAME the SGC code to something else Easy to remember. both on the stylesheet and on the page (file) it came from. SGC# code style assignments DO NOT span document files . The same code may do something entirely different in the next chapter (file).
Use Sigils 'Clip Editor' to create your own styling menu (and hid those similar buttons in Sigil: view: <remove the tick from the appropriate toolbar>.

Again, for most cases, the CSS you will be using in the books body is very basic (not like a WEB page, which uses the full range of CSS).

Don't know HOW (or have not decided) how to do a styleing, just assign and USE a separate stylesheet class for that block. eg.
Code:
.chapter title { }
will show up with the default look for now , you can fill in the STYLESHEET details later. All the places that were used will follow (the beauty of a single place style assignment) .

Your main job is to get the words all in their proper places (lines) on the page.

NB For years, Webscriptions (Baen) shipped e-books with a TOTAL of 40 lines of CSS code . Nothing fancy was ever done, just a Basic, simple book layout.
theducks is online now   Reply With Quote
Old 03-18-2014, 11:39 AM   #25
JLius
Village idiot
JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.JLius ought to be getting tired of karma fortunes by now.
 
JLius's Avatar
 
Posts: 124
Karma: 519566
Join Date: Mar 2014
Location: Belgium
Device: sony PRS T-1
I didn't know a thing about html and css when I started reading up on it two months ago, with the intention of creating epub out of docx-documents. By now I know enough to clean up the CSS/html of "easy" novels (without to much styling, images etc). I just found out about this forum last week, people are really helpfull here when you're stuck on something - and if you want a novice's help, then I'll try and answer every question you've got :-)
JLius 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
When Calibre Goes to Sigil in HTML *and* XHTML Tulpana Sigil 6 07-09-2012 11:03 AM
html to epub via Sigil or Calibre? Bigo2 Calibre 2 07-01-2012 03:07 AM
How to stop Sigil from changing my HTML? seanos Sigil 29 05-25-2012 01:49 AM
Question about using Sigil to convert HTML ficbot Sigil 9 03-06-2011 09:12 AM
Sigil, HTML Tidy or PEBCAK? DTM Sigil 6 09-26-2010 09:49 PM


All times are GMT -4. The time now is 11:42 PM.


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