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-14-2009, 03:55 PM   #1
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Font sizes

When I move (via save html) a doc file to Sigil the html source is full of hard coded font sizes. These get remembered in Sigil which means that the font size changes in ADE don't work. It would be nice if there was a command that would strip out all hardcoded fixed size font specifications. Currently I make the ePUB file and them rebuild it in Calibre to remove this information. This is automatic in Calibre but I really would prefer it was a manual step as some users may want to control this for some reason. Is there an easier way to make this work in Sigil?

Dale
DaleDe is offline   Reply With Quote
Old 09-14-2009, 04:57 PM   #2
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 DaleDe View Post
When I move (via save html) a doc file to Sigil the html source is full of hard coded font sizes. These get remembered in Sigil which means that the font size changes in ADE don't work. It would be nice if there was a command that would strip out all hardcoded fixed size font specifications. Currently I make the ePUB file and them rebuild it in Calibre to remove this information. This is automatic in Calibre but I really would prefer it was a manual step as some users may want to control this for some reason. Is there an easier way to make this work in Sigil?
So what you're saying is that Word hard-codes font sizes into the HTML, and you would want Sigil to remove this for you? Preferably as an option?

BTW I'd like to see a sample of this HTML, just so that I have an idea of what you're talking about.
Valloric is offline   Reply With Quote
Old 09-15-2009, 06:50 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Here is a test case. It is the first few chapters of a book I am trying to convert. There is some font boiler plate at the front that would be good to remove also. This is a typical Word file saved as html. I chopped the main part of the file off so some rules such as /html entry are missing and some links won't work. There is also an @page entry that I trimmed the margins out of so that they wouldn't get in the way of a good ePUB.

Dale
Attached Files
File Type: zip testcase.zip (48.8 KB, 124 views)
DaleDe is offline   Reply With Quote
Old 09-15-2009, 07:36 PM   #4
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 DaleDe View Post
Here is a test case. It is the first few chapters of a book I am trying to convert. There is some font boiler plate at the front that would be good to remove also. This is a typical Word file saved as html. I chopped the main part of the file off so some rules such as /html entry are missing and some links won't work. There is also an @page entry that I trimmed the margins out of so that they wouldn't get in the way of a good ePUB.
You still haven't said what do you want Sigil to do with this.

If you want Sigil to remove the various junk with which Word fills the exported HTML, then that's already planned. Tidy has some nice flags for this and I'll be extending that behavior too. This would be available through a dialog that pops up on import and asks the user to check importing options like "Remove excessive Word markup" or whatever.

If this is what you want, add it to the tracker so I don't forget. But bear in mind that this is not high on my list of priorities because there are more important things to implement first.
Valloric is offline   Reply With Quote
Old 09-16-2009, 10:48 AM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
I was responding for your request for a sample. My original request was to trim the font size hard coded implementation as Calibre does. This is the most troublesome feature so far as ePUB is concerned.

Dale
DaleDe is offline   Reply With Quote
Old 09-16-2009, 11:48 AM   #6
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 DaleDe View Post
I was responding for your request for a sample. My original request was to trim the font size hard coded implementation as Calibre does. This is the most troublesome feature so far as ePUB is concerned.
Add it to the tracker. It would be implemented as part of the aforementioned "Remove Word cruft" feature.
Valloric is offline   Reply With Quote
Old 03-13-2010, 08:51 AM   #7
blvd
Junior Member
blvd began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: iPod touch
DaleDe
This topic, hard coded font size information from a doc file, is this the reason why the font size won't actually change on my reader (Stanza on an iPod touch)? The spacing will change, but not the actual font size.
Thanks
blvd is offline   Reply With Quote
Old 03-13-2010, 12:45 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,560
Karma: 4597554
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by blvd View Post
DaleDe
This topic, hard coded font size information from a doc file, is this the reason why the font size won't actually change on my reader (Stanza on an iPod touch)? The spacing will change, but not the actual font size.
Thanks
I suspect so. It happens in a lot of formats but it also seems to happen in DOC sourced files unless you edit the intermediate format.

Dale
DaleDe is offline   Reply With Quote
Old 03-13-2010, 05:52 PM   #9
blvd
Junior Member
blvd began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: iPod touch
Hey, thanks for your reply. Actually you were a great help.

I just heard about this Sigil this morning. I downloaded, installed and set to work on one of my favorite novels that I had converted with the Aspose plug-in for Word. A big book (250,000 words and close to eighty chapters) that really slowed my device down and drained the battery in nothing flat. No pleasure.

Anyways, due to your reply, I was forced to actually view the CODE. I was really hoping to avoid that because I know just next to nothing about html and had never heard of CSS until today. But it worked out for me. I just deleted the very beginning CSS tags? that instructed about various fonts and sizes. I retained a few for italics and some centering I had done. Then I broke the document up into Chapters, applied Header formatting. Et voila! And I even have a TOC! I have to say that this document looks and performs better than some that I have purchased specifically for the ePub format!

So,I guess what *you* were referring to is all of the css stuff left in the body of the document, clutter. Hey, Stanza and my iPod touch clearly don't care that it is there. But I guess it makes the file size a bit bigger? Perhaps conflicts with other readers, like ADE?
Anyways, thanks again. I am a very happy reader now!
blvd 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
font sizes ? rbeset ePub 21 07-22-2010 03:49 PM
Font Sizes Roya Sigil 7 06-18-2010 09:28 AM
Font Sizes brewt Amazon Kindle 9 06-12-2009 03:03 PM
Font Sizes on DX wallcraft Amazon Kindle 1 05-06-2009 11:08 PM
Only five font sizes in K2? KlondikeGeoff Amazon Kindle 6 02-25-2009 10:21 PM


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


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