|  02-27-2014, 05:02 AM | #16 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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. | 
|   |   | 
|  02-27-2014, 06:15 AM | #17 | 
| Wizard            Posts: 4,520 Karma: 121692313 Join Date: Oct 2009 Location: Heemskerk, NL Device: PRS-T1, Kobo Touch, Kobo Aura | 
			
			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.
		 | 
|   |   | 
|  02-27-2014, 06:19 AM | #18 | 
| Color me gone            Posts: 2,089 Karma: 1445295 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.
		 | 
|   |   | 
|  02-27-2014, 06:37 AM | #19 | |
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			When you express your opinion in offensive terms, be prepared to get it thrown right back in your face.  Quote: 
 | |
|   |   | 
|  02-27-2014, 06:39 AM | #20 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  02-27-2014, 06:56 AM | #21 | 
| Color me gone            Posts: 2,089 Karma: 1445295 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.
		 | 
|   |   | 
|  02-27-2014, 07:42 AM | #22 | |
| Wizard            Posts: 4,520 Karma: 121692313 Join Date: Oct 2009 Location: Heemskerk, NL Device: PRS-T1, Kobo Touch, Kobo Aura | Quote: 
 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. | |
|   |   | 
|  02-27-2014, 07:45 AM | #23 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | |
|   |   | 
|  02-27-2014, 11:49 AM | #24 | |
| Well trained by Cats            Posts: 31,251 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 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 { }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. | |
|   |   | 
|  03-18-2014, 10:39 AM | #25 | 
| Village idiot            Posts: 157 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 :-)
		 | 
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |