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 09-17-2012, 09:46 AM   #1
Jorge Junior
Member
Jorge Junior began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
Font size won't change

Hi.

I created an epub with Sigil. When I open it in Mantano, it's impossible to change the font or the font size.

I read somewhere that if you want to keep text formatting (italics, colored letters...), you can't copy a text and paste it in Sigil. First you have to save the text in html and then open it in Sigil. That's what I did.

I wrote a text in Microsoft Word, saved it as html, opened the html with Sigil, edited and saved it as epub. When I open it with Mantano, the text formatting was preserved, but it uses the same font Word used. I can't change it.
Jorge Junior is offline   Reply With Quote
Old 09-17-2012, 10:51 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Probably there's some CSS that's setting a fixed font size. Remove it.
Jellby is offline   Reply With Quote
Advert
Old 09-17-2012, 11:52 AM   #3
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
If you export in (filtered) html from Word, all font sizes are in pt. That breaks the resize options. You really need to clean the HTML from Word and create font sizes in em or percentages.
Toxaris is offline   Reply With Quote
Old 09-17-2012, 01:52 PM   #4
Jorge Junior
Member
Jorge Junior began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
Quote:
Originally Posted by Toxaris View Post
You really need to clean the HTML from Word and create font sizes in em or percentages.
Does it mean I'll loose all the italics and colored letters?
Jorge Junior is offline   Reply With Quote
Old 09-17-2012, 02:54 PM   #5
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
Not if you clean right... Colored letters might be, but those can easily fixes by your own stylesheet. I never use colored letters, my devices are B/W.
Toxaris is offline   Reply With Quote
Advert
Old 09-18-2012, 04:02 AM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I suggest you learn the basics of CSS and HTML (it's very easy), and you'll know what you can and cannot remove.

Briefly, if the style says a piece of text is "Arial, 14pt, blue, bold", it's fixing the properties, and you generally cannot change them on the fly. Remove the "14pt" part and the size will be the default one, which lets you change it in the reader. It will still be blue and bold.
Jellby is offline   Reply With Quote
Old 09-18-2012, 06:06 AM   #7
exaltedwombat
Guru
exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.exaltedwombat ought to be getting tired of karma fortunes by now.
 
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
If you want to get readable information onto an ebook reading device, the various "conversion" methods can be useful. But if you want control over layout, you really have to strip everything, dump plain text into Sigil and TAKE full control.
exaltedwombat is offline   Reply With Quote
Old 09-18-2012, 06:31 AM   #8
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,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
I would not go so far as use plain text, at least in the beginning. Just do a search for references to font size and face and eliminate them and save it with a new file name and see if you like the result. Just keep changing, always working with a copy, until you are happy with the result.

You can check out this website: http://www.w3schools.com/css/
to learn about CSS and html in general to get an idea of how things work.
mrmikel is offline   Reply With Quote
Old 09-18-2012, 10:14 AM   #9
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,659
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I would never go the plain text route unless the source styling has been destroyed by discarding or substituting (the wrong) CSS.

Reverse engineer what you have. The Code inspector in Book View will help decode the style Cascades you need to look at.
I use 'free CSS Toolbox' (the installer loads a lot of buy these favorites , which is why I don't make this a link) to sort my stylesheet to make finding a selector easier.
Learn basic CSS.. Think Contained boxes (Each outer box can affect an inner box, so start there)
theducks is offline   Reply With Quote
Old 09-23-2012, 05:19 PM   #10
Jorge Junior
Member
Jorge Junior began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
Quote:
Originally Posted by Jorge Junior View Post
Does it mean I'll loose all the italics and colored letters?
I finally did it.
I wrote the text in Dreamweaver, saved as html and opened the html in Sigil.
Now all the italics and colored letters were preserved in the epub and I can change the font size using the e-reader options.

But now I have another problem. The cover book is perfect on my 10' tablet, but when I open it on a 7' screeen, the cover does not fit.

This is the code of the xhtml containing the cover image. What must I include so that the image always fits perfectly, no matter the size of the e-reader screen?

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<title>Cover</title>
<style type="text/css">
/*<![CDATA[*/

@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
/*]]>*/
</style>
</head>

<body>
<div>
<img alt="" src="../Images/cover.jpg" /><br />
</div>
</body>
</html>
Jorge Junior 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
How to change font size and font style? butterbescotch Sigil 20 09-06-2013 08:22 PM
How to change font size? Mike L Calibre 17 07-04-2013 11:39 AM
Can't change font or font size in ereaders jmacg Sigil 30 10-23-2010 09:21 PM
Change font size? Jabby Sigil 1 10-23-2010 05:59 PM
PDF Won't Change text size TGNY PDF 1 10-24-2009 01:20 PM


All times are GMT -4. The time now is 10:15 PM.


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