Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-22-2016, 01:25 AM   #16
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Hitch View Post
I would have said, had we done so.
And had you said so I might have been tempted to ask - W(hy)TF would you wanna do that?

The only reason I can imagine is that one has a must-have in one's toolchain that only runs on Windows - such as Atlantis, or the so-called grammar checker that I recently took for a test drive. Can't remember its name, it was an experience best forgotten

As you say it's bizarre - but the OP says he's going to install the Mac version so we'll know soon enough if that fixes it.

BR
BetterRed is online now   Reply With Quote
Old 02-22-2016, 01:27 AM   #17
DrewBoyd
Member
DrewBoyd began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2016
Device: Kindle Fire
When I tried it on just a space between words, it looks the same way as the screen grab with a very large space and the code view looks like this:

He escaped<i>&nbsp;</i>from the jail cell and...


The screen grab above is from the BookView within Sigil (for PC) but it also looks the same in the Sigil preview and when imported into Calibre.

The display font was set to Times New Roman. I downloaded the Mac version and it's doing the same thing.


I got the idea to try again with a <span> set-up and try setting the margins for the words like so:

span.italic {
margin-left: 0.35em;
margin-right: 0.35em;
font-style: italic;
}

This makes it display properly whether in left alignment or when justified. What I'm wondering is if there is any downside to doing it this way? I'm not opposed to this work-around if it won't cause any other troubles.
DrewBoyd is offline   Reply With Quote
Advert
Old 02-22-2016, 01:51 AM   #18
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by DrewBoyd View Post
When I tried it on just a space between words, it looks the same way as the screen grab with a very large space and the code view looks like this:

He escaped<i>&nbsp;</i>from the jail cell and...
Hunh? That can't be right, or we could be on the track of the issue. Why do you have an italics coding surrounding an nbsp? Are you seeing these nbsp's in the other areas with the "gaps?"

(Methinks we're getting somewhere.)


Quote:
The screen grab above is from the BookView within Sigil (for PC) but it also looks the same in the Sigil preview and when imported into Calibre.

The display font was set to Times New Roman. I downloaded the Mac version and it's doing the same thing.
Have you opened this in anything like ADE, Readium, Nook (for PC/Mac, whatever)?

Quote:
I got the idea to try again with a <span> set-up and try setting the margins for the words like so:

span.italic {
margin-left: 0.35em;
margin-right: 0.35em;
font-style: italic;
}

This makes it display properly whether in left alignment or when justified. What I'm wondering is if there is any downside to doing it this way? I'm not opposed to this work-around if it won't cause any other troubles.
Uh...do you have that styling for i and b? Because if you do, that's why you are getting those gaps. Why do you have .35em surrounding the spans? That's not right at all. You should't have margins (or padding) around elements in a sentence. Either bold, italic, underscored, etc. That's what spaces are for.

Can you confirm that you're seeing the "nbsp" every place you're putting in the bold/italic? Are you adding that in Bookview, by the way?

Hitch
Hitch is offline   Reply With Quote
Old 02-22-2016, 02:38 AM   #19
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Hitch View Post
(Methinks we're getting somewhere.)
yep, I think thee is on the money.

@DrewBoyd - in Sigil Code View if you select the words you want italicised and press ctrl/i then the words will be wrapped in <i>...</i> tags, same for bold and underline. There's rarely (never ?) any need for non-breaking spaces mid sentence.

BR
BetterRed is online now   Reply With Quote
Old 02-22-2016, 02:39 AM   #20
DrewBoyd
Member
DrewBoyd began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2016
Device: Kindle Fire
So as not to confuse the issue, I thought I'd lay things out in a more orderly manner.

This book is built using Sigil for Mac, the font in Sigil's BookView is "Times New Roman" and I created the italics/bold both by using the buttons on the Bookview and by adding the tags manually in the CodeView.

This is the code view:



This is the paragraph in Sigil's BookView:



This is the paragraph in Calibre:



And this is the paragraph in Readium:



~~~~~~~~~
As for the whole <span> idea that I mentioned earlier, that was just something I thought of from my frustration as a possible work-around -- that wasn't how I actually do italics, etc.
DrewBoyd is offline   Reply With Quote
Advert
Old 02-22-2016, 02:55 AM   #21
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
Again, the most essential thing is missing: the stylesheet.
rubeus is offline   Reply With Quote
Old 02-22-2016, 03:01 AM   #22
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@DrewBoyd - to post the style sheet, select it all in codeview, copy to clipboard, then paste into a post wrapped in code tags (that's the # icon in advanced)

Sample from a crutledge upload

Code:
a {
color:black;
}

a:link {
color:black;
}

a:visited {
color:black;
}

a:hover {
color:blue;
}

a:active {
color:black;
}

a {
text-decoration:none;
}


big {
font-size:200%;
font-weight:bold;
}

.bilbd {
margin-top:2em;
margin-bottom:2em;
text-align:center;
font-weight:bold;
text-indent:0;
}

body {
margin-top:0;
margin-bottom:0;
margin-left:15px;
margin-right:15px;
font-family:Arial,"Times New Roman", Times, serif;
}

.center {
text-align:center;
}

h1,h2,h3,h4,h5,h6 {
margin-top:0;
margin-bottom:1em;
margin-right:0;
margin-left:0;
text-align:center;
}

img {
margin-top:1em;
margin-bottom:1em;
margin-right:0;
margin-left:0;
}

.italic {
font-style:italic;
}

.noindent {
text-indent:0;
}

p,div {
margin-right:0;
margin-left:0;
text-indent:1.5em;
}

pre {
font-size:100%;
margin-left:25%;
}

.right {
text-align:right;
text-indent:0;
}

.smcap{
 font-variant:small-caps;
 } 
 
.blockquot {
margin-bottom: 5%;
margin-top: 5%;
margin-left: 5%;
margin-right: 2%;
font-size: 100%;
}

blockquote{
margin-bottom: 5%;
margin-top: 5%;
margin-left: 5%;
margin-right: 2%;
font-size: 100%;
font-style: italic;
}

.first_letter{
 font-size:150%;
 font-weight:bold;
}

.hang1 {
margin-left:1%;
text-indent:-1%;
}

.i8{
margin-left:8em;
}

.centerpage{
margin-top:8em;
}
BR
BetterRed is online now   Reply With Quote
Old 02-22-2016, 03:48 AM   #23
DrewBoyd
Member
DrewBoyd began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2016
Device: Kindle Fire
Thanks so much, @BetterRed! I wasn't sure how to get the whole thing posted. Here it is:

Code:
/* Structure */
body {
 oeb-column-number: 1;
 font-size: 100%;
}


/* Typeography */

* {
 margin-left: 20px;
 margin-right: 20px;
 padding: 0em;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 500;
}

h1 {
 font-size: 1.5em;
 margin: 2em 20px 0.75em 20px;
 text-align: center;
}

h1.chaptertitle {
 font-size: 1.5em;
 margin: 25% 20px 1em 20px;
 text-align: center;
 page-break-before:always;
}

h1.titlepage1 {
 font-size: 2.5em;
 margin: 20% 20px 0.25em 20px;
 text-align: center;
}

h1.titlepage2 {
 font-size: 2.0em;
 margin: 0.05em 20px 0.5em 20px;
 letter-spacing: 5px;
 text-align: center;
}

h2 {
 font-size: 1.15em;
 font-style: italic;
 margin: 0 20px 1.25em 20px;
 text-align: center;
}

h2.titlepage {
 font-size: 1.25em;
 font-style: italic;
 text-align: center;
 margin: 0 20px 2.5em 20px;
}

h3 {
 font-size: 0.9em;
 text-align: center;
 margin: 20% 20px 1.0em 20px;
}

h4 {
 font-size: 1.125em; 
 font-style: italic;
 margin: 0 0 -.6em 0;
}

p {
 font-size: 1em;
 margin: 0.35em 20px 0 20px;
 text-indent: 1.6em;
 text-align: justify;
 line-height: 1.4em;
}

p.firstparagraph {
 margin: 0.6em 20px 0 20px;
 text-indent: 0.005em;
 text-align: justify;
}

p.italic {
 font-style: italic
}

p.caption {
 margin:0 0 1em 0;
}

p.center {
 margin: 0.35em 20px 0 20px;
 text-indent: 0.005em;
 text-align: center;
}

p.scenebreak {
 margin: 1.5em 20px 2em 20px;
 text-indent: 0.005em;
 text-align: center;
}

p.alsoby {
 margin:0.80em 20px 0 20px;
 font-size: 1.15em;
 text-indent: 0.005em;
 text-align: center;
}

p.copyright {
 margin:0.85em 20px 0 20px;
 font-size: 0.8em;
 text-indent: 0.005em;
 text-align: center;
}

a:link {
	text-decoration: none;
}

blockquote.quote {
 padding-left: .5em;
 border-left: .3em solid #ccc;
}


/* Images */

img.cover {
 max-width:100%; 
 border-style:none;
}

img.titlepage {
 max-width:80%; 
 border-style:none;
}

img.scenebreak {
 max-width:20%; 
 border-style:none;
}

div.center {
 margin-left:auto;
 margin-right:auto;
 width: 99%;
}

img.floatleft {
 float: left;
 margin: 0px 10px 5px 10px;
}

img.floatright {
 float: right;
 margin: 0px 10px 5px 10px;
}

img.border {
 border-style:solid;
 border-width:thin;
}



/* Lists */

ul {
 list-style-type: circle;
}

ul.disc {
 list-style-type: disc;
}

ul.square {
 list-style-type: square;
}



/* Misc */

/* Use with "Checkbox" in Clips to create an inline checkbox square */
.checkbox {
 font-size: 75%;
 border: .2em solid #ccc;
}
DrewBoyd is offline   Reply With Quote
Old 02-22-2016, 03:58 AM   #24
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,923
Karma: 185041098
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
I'm not one of the experts and so have never come across this weird * category:

Code:
* {
 margin-left: 20px;
 margin-right: 20px;
 padding: 0em;
}
I may be wrong, but I have a feeling this is the cause of the problem. Have you tried replacing the "*" with "body"?
doubleshuffle is offline   Reply With Quote
Old 02-22-2016, 04:23 AM   #25
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by DrewBoyd View Post
Thanks so much, @BetterRed! I wasn't sure how to get the whole thing posted. Here it is:

Code:
/* Typeography */

* {
 margin-left: 20px;
 margin-right: 20px;
 padding: 0em;
Ding-ding-ding! We have a winner. This specifies that all tags have a margin left and right. That includes empty spans, italics, bold, the works. What are you trying to accomplish with this? I guess you only want this for the paragraph tag. If so, replace the asterisk with p.
Toxaris is offline   Reply With Quote
Old 02-22-2016, 04:24 AM   #26
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,923
Karma: 185041098
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
***Obsolete post.***
doubleshuffle is offline   Reply With Quote
Old 02-22-2016, 05:59 AM   #27
rubeus
Banned
rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.rubeus ought to be getting tired of karma fortunes by now.
 
Posts: 272
Karma: 1224588
Join Date: Sep 2014
Device: Sony PRS 650
* {
margin-left: 20px;
margin-right: 20px;
padding: 0em;
}

This matches to everything. To <i>, <b>, <span>´etc
rubeus is offline   Reply With Quote
Old 02-22-2016, 07:00 AM   #28
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Code:
/* Typeography */
I'm not sure what this means, but if it does mean something, shouldn't it be Typography?
Notjohn is offline   Reply With Quote
Old 02-22-2016, 07:53 AM   #29
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That's a comment.
Anything between /* */ is ignored in css
DiapDealer is offline   Reply With Quote
Old 02-22-2016, 09:43 AM   #30
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: 29,809
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:
Originally Posted by Toxaris View Post
Ding-ding-ding! We have a winner. This specifies that all tags have a margin left and right. That includes empty spans, italics, bold, the works. What are you trying to accomplish with this? I guess you only want this for the paragraph tag. If so, replace the asterisk with p.
I pick this one also

WILDCARDS ARE DANGEROUS

in an earlier post you also had left and right margins in a span (but span.italic would only apply to <span class="italic"
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extra spaces between words Drybonz Conversion 4 12-14-2015 08:15 PM
Extra spaces in AZW3 format on Kindle ozshots Calibre 5 09-17-2013 05:04 AM
Extra spaces in Sigil noteon Sigil 2 04-08-2011 02:42 PM
removing extra spaces - kills images wmeyer Sigil 4 01-14-2011 01:37 PM
I'm having a problem with extra paragraph spaces akosimike Calibre 10 05-27-2010 06:53 PM


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


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