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 05-13-2010, 08:39 PM   #1
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Justification by Sigil

In the HTML file, all chapter headings are centered. After loading into Sigil, all chapter headings are left justified.

Is this intentional or an artifact of the tools incorporated into Sigil?
crutledge is offline   Reply With Quote
Old 05-14-2010, 03:16 AM   #2
paulpeer
Zealot
paulpeer is on a distinguished road
 
paulpeer's Avatar
 
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
Quote:
Originally Posted by crutledge View Post
In the HTML file, all chapter headings are centered.
Strange. If they are, there must be some instruction in the CSS-file or CSS-headers of the original HTML. Try adding this to the CSS-file if you want headings to be centered:

Code:
h1, h2, h3, h4, h5, h6 {text-align: center}
paulpeer is offline   Reply With Quote
 
Advertisement
Old 05-14-2010, 05:56 AM   #3
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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by crutledge View Post
In the HTML file, all chapter headings are centered. After loading into Sigil, all chapter headings are left justified.

Is this intentional or an artifact of the tools incorporated into Sigil?
I'd have to see the file. Can't tell what the problem is blind.
Valloric is offline   Reply With Quote
Old 05-14-2010, 07:03 AM   #4
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by paulpeer View Post
Strange. If they are, there must be some instruction in the CSS-file or CSS-headers of the original HTML. Try adding this to the CSS-file if you want headings to be centered:
That was my thinking, also. The style sheet seems to cover it but Sigil seems to pay no attention. Below, is the style sheet from sigil.

Code:
<style type="text/css">
BODY {
        MARGIN-LEFT: 15%; MARGIN-RIGHT: 15%
  }
  P {
        TEXT-ALIGN: justify; MARGIN-TOP: 0.75em; MARGIN-BOTTOM: 0.75em
  }
  H1 {
        TEXT-ALIGN: center; CLEAR: both
  }
  H2 {
        TEXT-ALIGN: center; CLEAR: both
  }
  H3 {
        TEXT-ALIGN: center; CLEAR: both
  }
  H5 {
        TEXT-ALIGN: center; CLEAR: both
  }
  H6 {
        TEXT-ALIGN: center; CLEAR: both
  }
  H4 {
        TEXT-ALIGN: center; CLEAR: both; FONT-WEIGHT: normal
  }
  HR {
        MARGIN: 2em auto; WIDTH: 45%; HEIGHT: 1px; CLEAR: both
  }
  A:link {
        COLOR: navy; TEXT-DECORATION: none
  }
  A:visited {
        COLOR: maroon; TEXT-DECORATION: none
  }
  A:hover {
        TEXT-DECORATION: underline
  }
  A:active {
        COLOR: navy
  }
  .pagenum {
        POSITION: absolute; TEXT-ALIGN: right; COLOR: gray; FONT-SIZE: smaller; LEFT: 92%
  }
  .hoverlink {
        BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; BORDER-LEFT-STYLE: none
  }
  .hoverbox {
        BORDER-BOTTOM: gray 0.07em dotted
  }
  .center {
        TEXT-ALIGN: center
  }
  .right {
        TEXT-ALIGN: right
  }
  .left {
        TEXT-ALIGN: left
  }
  .dropcap {
        TEXT-INDENT: -0.5em; MARGIN-LEFT: 0px
  }
  .frstltr {
        DISPLAY: none
  }
  .smcap {
        FONT-VARIANT: small-caps
  }
  .smfont {
        FONT-SIZE: smaller
  }
  .lgfont {
        FONT-SIZE: larger
  }
  .serfont {
        FONT-FAMILY: serif
  }
  .sansfont {
        FONT-FAMILY: sans-serif
  }
  .figcenter {
        TEXT-ALIGN: center; MARGIN: auto
  }
  .figcenter P {
        TEXT-ALIGN: center; FONT-SIZE: smaller; FONT-WEIGHT: bold
  }
  .figcap {
        TEXT-ALIGN: center; PADDING-BOTTOM: 0px; MARGIN: -0.25em 0.5em 0px 0px; PADDING-LEFT: 0px; WIDTH: auto; PADDING-RIGHT: 0px; FLOAT: left; CLEAR: left; PADDING-TOP: 0px
  }
  .tranotes {
        PADDING-LEFT: 1em; WIDTH: 85%; PADDING-RIGHT: 1em; BACKGROUND: #fbf5e6; MARGIN-LEFT: auto; FONT-SIZE: smaller; MARGIN-RIGHT: auto
  }

  a.sgc-3 {font-weight: bold}
  h2.sgc-2 {font-style: italic}
  a.sgc-1 {font-style: italic}
</style>
crutledge is offline   Reply With Quote
Old 05-14-2010, 07:51 AM   #5
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by Valloric View Post
I'd have to see the file. Can't tell what the problem is blind.
Here's one The Sigil file.
Edit: Should have also have sent the HTML.
Attached Files
File Type: epub The Queen's Cup.epub (206.1 KB, 115 views)
File Type: zip The Queen's Cup.zip (216.7 KB, 97 views)

Last edited by crutledge; 05-14-2010 at 08:14 AM.
crutledge is offline   Reply With Quote
Old 05-14-2010, 08:38 AM   #6
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
Posts: 119
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
Unless I'm mistaken, the css instructions need to be in lower-case. I changed the case of the css in the file and headings were then centered.
GeneS is offline   Reply With Quote
Old 05-14-2010, 08:54 AM   #7
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by GeneS View Post
Unless I'm mistaken, the css instructions need to be in lower-case. I changed the case of the css in the file and headings were then centered.
So simple when you know what you are doing.

Are there provision in Sigil to convert text to Upper Case, Lower case, and Proper case?
crutledge is offline   Reply With Quote
Old 05-14-2010, 09:11 AM   #8
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
Posts: 119
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
It doesn't seem to matter to my browsers or to the calibre epub reader ...
Apparently Sigil is sensitive to case.
GeneS is offline   Reply With Quote
Old 05-14-2010, 09:34 AM   #9
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 716
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
You browsers wouldn't care about the case as they read HTML which isn't case sensitive, but epub uses XHTML which required the case to be lower-case for all your tags. Sigil is an epub editor, so the book view would need the tags to be in lower-case.

Hence why changing the case resolved the problem.

I imagine Calibre doesn't have a problem with the case of the tags due to it being able to also display HTML files as well as epub.

Sigil has HTML Tidy embedded in it and does a resonable job trying to correct the case of the tags in the XHTML files but doesn't get everything. So to make sure everything works, only work in lowercase in your tags. The exception to this is SVG as it has some special parameters (I think) that are in upper and mixed case.
ghostyjack is offline   Reply With Quote
Old 05-14-2010, 10:41 AM   #10
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
With the bevy of experts watching this thread, I have one more problem.

After making changes of the style sheet to lower case, the Sigil file looks great and the calibre epub viewer shows everything well.

However, ADE shows a problem.

Each chapter begins the first paragraph with a graphic as the first letter. Initially, ADE showed the image centered and the text beside it run off the page to the right. I cured the image by changing the css for the image to align: left. I have tried several changes to the css for the text but my lack of knowledge and experience have shined through.

Can someone lead this sinner to the path of true right and proper CSS?
Attached Files
File Type: epub Out on the Pampas.epub (703.3 KB, 111 views)
crutledge is offline   Reply With Quote
Old 05-14-2010, 11:47 AM   #11
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 716
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
I can't quite remember the exact code but what you need is a class for those image files that float the image to where you want.

something like:

<style>
img.floatleft {float:left;}
</style>

<img class="floatleft" .....
ghostyjack is offline   Reply With Quote
Old 05-14-2010, 11:58 AM   #12
GeneS
eBook Enthusiast
GeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enoughGeneS will become famous soon enough
 
GeneS's Avatar
 
Posts: 119
Karma: 726
Join Date: Dec 2007
Location: US
Device: Sony PRS-350, Astak PocketPro, iPhone, Asus eee Pad Transformer
In addition to floating the image to the left, you might consider setting the class of the first character of the paragraph to something like:

p.noshow {display: none }

otherwise it will still print next to the image.
GeneS is offline   Reply With Quote
Old 05-14-2010, 12:06 PM   #13
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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by ghostyjack View Post
Sigil has HTML Tidy embedded in it and does a resonable job trying to correct the case of the tags in the XHTML files but doesn't get everything.
Actually since I hacked Tidy a bit in 0.2.0beta3 it should catch everything. If your tags or attributes are upper case, they will be converted to lower case. If they are mixed case, they will be left as is.

If you find some input on which this fails, please make an issue on the tracker.
Valloric is offline   Reply With Quote
Old 05-14-2010, 01:25 PM   #14
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 15,714
Karma: 13575467
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Valoric,

You are a wonder. Don't you ever sleep?
crutledge is offline   Reply With Quote
Old 05-14-2010, 01:57 PM   #15
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,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
Quote:
Originally Posted by crutledge View Post
Don't you ever sleep?
It's been known to happen.
Valloric 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
Justification Georgiegirl2012 General Discussions 21 09-27-2010 10:38 AM
Can justification be changed on the K2? dwallbaum Amazon Kindle 5 07-13-2010 11:33 PM
PRS-900 Epub and Justification luqmaninbmore Sony Reader 9 05-08-2010 09:21 PM
DX justification jlinden Amazon Kindle 7 01-18-2010 08:22 AM
Help with text justification jament Calibre 4 11-10-2009 06:27 PM


All times are GMT -4. The time now is 02:12 AM.


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