Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2011, 12:45 PM   #16
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Perhaps this will help (adding a stylesheet & styles to your epub) part 1:

Danger is offline   Reply With Quote
Old 01-01-2011, 12:52 PM   #17
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
This is a stripped down example but whenever I convert a book with Calibre I take a look at the code it used particularly looking for any italics or bold print and strip out the rest of the garbage, example of garbage to come.

Danger is offline   Reply With Quote
Advert
Old 01-01-2011, 12:54 PM   #18
theducks
Well trained by Cats
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: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Picture is worth a 1000 words
theducks is offline   Reply With Quote
Old 01-01-2011, 01:13 PM   #19
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
What I call garbage code (green boxes are ones I change, red are ones I strip out completely):


My cleaned up code:


I'm not saying Calibre isn't a good program, it works really great for what it does. I just like my epub code to be as clean as I can get it and still have my ebooks as close as possible to the printed material.

Last edited by Danger; 01-01-2011 at 01:16 PM.
Danger is offline   Reply With Quote
Old 01-01-2011, 04:22 PM   #20
theducks
Well trained by Cats
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: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Sigil/webkit adds that upon switching to CV, (The jump is annoying)
@page exists for some reason

I like your clean style
Set the basics in Body
and code the exceptions to Basic.
I tend to strip <p..></p>, it does nothing
<p...>&nbsp;</p> does insert a (scene break) paragraph margin line

I also use "entities" rather than images for scene breakes and control their appearance and placement with their own style (class="scene" )
theducks is offline   Reply With Quote
Advert
Old 01-01-2011, 07:36 PM   #21
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Well I've run out of steam here - tried all I can think of including importing various other formats of the manuscript into Sigil. Have tried applying some of the code adjustments offered, even once totally re-wrote the template code using Danger's simplifications. Even found that importing plain text file of the manuscript rendered inside Sigil with most of the punctuation replaced by black diamonds with white question marks inside.

Nothing working... that is to say, same result consistently - the best I can achieve is most of the internal pages rendering correctly in iPad but still the leading 4 pages - title page, publisher page, dedication etc - all are being forced to left alignment.

I find it amazing that such total changes (as a new template) can be totally ineffectual.

I eagerly await any help offered.

Many thanks.
Happy New Year!
panda6855 is offline   Reply With Quote
Old 01-01-2011, 07:46 PM   #22
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Thanks

Last edited by panda6855; 01-01-2011 at 08:03 PM.
panda6855 is offline   Reply With Quote
Old 01-01-2011, 07:49 PM   #23
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Getting into overwhelm a little - I hadn't seen those charts you posted, Danger - they hadn't loaded but just saw them now. Thank you.

Last edited by panda6855; 01-01-2011 at 08:02 PM.
panda6855 is offline   Reply With Quote
Old 01-01-2011, 07:53 PM   #24
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Quote:
Originally Posted by theducks View Post
It is a line that should be in your normalcentreblock attributes
What it means is this style id unto itself, rather than a Modification of a master style.

Suppose you had a style "regularpara"
Now I want everything as it was in regularpara EXCEPT I want it Italic

<p class="regularpara makeitalic"> Words </p>

.makeitalic {font-style:italic }
simple, I only modified one attribute and inherited the rest.
Okay I think I got that now. Thank you. Sorry for being a bit dull on this but it's all new to me at this level (as you've no doubt realized).

Now i need a little time to clear my way, clear all the failed attempts off my computer, start the task all over again, and apply this stuff instead of working with evolving versions of the book as I have been.

I'll get back...
Again, thank you.
panda6855 is offline   Reply With Quote
Old 01-01-2011, 08:05 PM   #25
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Thanks Donna - much clearer. I never did get along with acronyms.
panda6855 is offline   Reply With Quote
Old 01-01-2011, 08:07 PM   #26
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
Thanks for that. As I said to Donna... me and acronyms don't get along so well.
panda6855 is offline   Reply With Quote
Old 01-02-2011, 05:04 AM   #27
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by theducks View Post
Sigil/webkit adds that upon switching to CV, (The jump is annoying)
@page exists for some reason
Nope, the @page rules come from Calibre.
Valloric is offline   Reply With Quote
Old 01-02-2011, 11:41 AM   #28
theducks
Well trained by Cats
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: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Valloric View Post
Nope, the @page rules come from Calibre.
Oh
Can you explain why, when the First time (into the file with Sigil) I switch from
BV to CV, a short delay and I see that CDATA block appear (cant tell what lines, only that it is that area, it happens rapidly. It happens the firs time I touch the file with CV.) Is this Tidy fixing a Calibre issue?
theducks is offline   Reply With Quote
Old 01-02-2011, 12:07 PM   #29
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by theducks View Post
Oh
Can you explain why, when the First time (into the file with Sigil) I switch from
BV to CV, a short delay and I see that CDATA block appear (cant tell what lines, only that it is that area, it happens rapidly. It happens the firs time I touch the file with CV.) Is this Tidy fixing a Calibre issue?
Possibly. I've see most (all?) QtWebKit quirks and I've never seen it add @page rules. OTOH, I have seen Calibre's epub conversion add them in the past on more than one occasion.
Valloric is offline   Reply With Quote
Old 01-02-2011, 09:06 PM   #30
panda6855
Enthusiast
panda6855 began at the beginning.
 
panda6855's Avatar
 
Posts: 26
Karma: 10
Join Date: Dec 2010
Device: iPad
ACTUAL PROBLEM IDENTIFIED!
Hi folks. I think I've found where the issue is. It appears that Sigil adds or changes formatting when I add a Chapter Break to the document. The chapter preceding the break changes to left alignment, but the chapter immediately following the break stays entirely with the original formatting that had been specified.

Can anyone now tell em how to override that Chapter Break function changing the formatting?

In finding this problem, I've made a gzillion step-by-step changes to the book, each step re-loading onto the iPad to check its appearance/rendering. When I finally returned to original text straight out of the IDCS5 file (using IDCS5's "Exported for ePub" function), imported it into Sigil and did NOTHING to it, it rendered fine, juts without any chapter breaks. And that's where the problems were starting for me - adding the chapter breaks.

Any help much appreciated.
Thank you for all the guidance you've provided thus far.
panda6855 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
erm, simple question , hope for simple answer! al zymers Amazon Kindle 5 09-25-2010 01:01 PM
Code needed so OI will mark chapters? PKFFW Sigil 4 07-05-2010 06:34 PM
Let's create a source code repository for DR 800 related code? jraf iRex 3 03-11-2010 12:26 PM
Simple question for a simple mind :) PKFFW OpenInkpot 6 08-27-2009 09:00 PM
would someone kindly explain this formatting code Book IMP 2 07-03-2009 10:53 PM


All times are GMT -4. The time now is 10:32 AM.


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