Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2012, 08:16 AM   #16
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Jellby View Post
Don't expect embedded fonts to work in mobi.
Well, you can certainly have the expectation, but it may not be realised .

(Although, of course, if you build your book in the new "KF8" Mobi-ish format using the latest "Kindlegen" tool, embedded fonts will work just fine.)
HarryT is offline   Reply With Quote
Old 03-03-2012, 11:26 AM   #17
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: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by HarryT View Post
Well, you can certainly have the expectation, but it may not be realised .

(Although, of course, if you build your book in the new "KF8" Mobi-ish format using the latest "Kindlegen" tool, embedded fonts will work just fine.)
That may confuse users as KF8 is not mobi. It is ePub format except that the container is a Palm PDB file instead of a zip file. It has two halves to maintain compatibility with older Kindles and the mobi half behaves like other mobi files and does not have embedded fonts.

Dale
DaleDe is offline   Reply With Quote
Advert
Old 03-03-2012, 01:52 PM   #18
grumbles
Addict
grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.
 
grumbles's Avatar
 
Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
A clarification:

The opf file contains the following line (as generated by Sigil):

<item href="Fonts/Math2Regular.ttf" id="Math2Regular.ttf" media-type="application/x-font-ttf" />

the css on the other hand contains:

@font-face {
font-family: math2;
font-style : normal, italic;
src : url(../Fonts/Math2Regular.ttf);
}
.infinity { font-family : "math2";
font-weight : 600;
font-size : 125%; }

The space in my previous example was the result of a ham-fisted attempt to manually edit the opf file. I had renamed the file in case the space in the filename was causing the problem. It wasn't. Sigil got it right.

I know that I can use an html entity. I want to use this particular font because I want the specific style of infinity symbol. If use the "infin" entity it works, it just looks bad.

I'm attaching a stripped down version of the epub that demonstrates the problem. I've replaced all the text with "greeked" text. The problem symbol is in the Prologue chapter.
Attached Files
File Type: epub Demoproblem.epub (38.3 KB, 172 views)

Last edited by grumbles; 03-03-2012 at 01:55 PM.
grumbles is offline   Reply With Quote
Old 03-03-2012, 02:23 PM   #19
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: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It was mentioned earlier that it's not advisable to use a font that simply maps an entirely different character to a normal letter... in this case 'w'.

If the infinity entity doesn't look "right," keep in mind that the font used in the Book View of Sigil isn't very indicative of what it will look like on a reader. If it still looks "bad" in ADE, then embed a unicode font that produces an infinity character (using the html entity) that looks "better." (though I think it's a bit overkill to embed a font for a handful of special characters, unless there's absolutely no other way to produce them)
DiapDealer is offline   Reply With Quote
Old 03-03-2012, 03:55 PM   #20
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
@grumbles
Well I tossed out the rest, except for the absolute neccessary to test.

I lend a font from an epub here in MR (savage stories), which has a working layout.

I reproduced the fault with the Firefox-Pugin, where "Crom" is shown correctly while "math2" is not.

So i guess it's a problem with your font.

How does it look on your device (see attachment) ?
Attached Files
File Type: epub font_problem_demo_grumbles.epub (33.9 KB, 190 views)

Last edited by mmat1; 03-03-2012 at 03:58 PM.
mmat1 is offline   Reply With Quote
Advert
Old 03-05-2012, 09:40 PM   #21
grumbles
Addict
grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.
 
grumbles's Avatar
 
Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
Thank you mmat1!

The results are, well... interesting.

With Ubuntu 10.04, the infinity symbol shows up as an empty box but the Crom font displays properly. This happens in both Sigil and the Calibre viewer.

Under XP the results are different. Both Sigil and Calibre display the symbol and text properly. However ADE (Adobe Digital Editions) ignores the stylesheet completely and displays the text with the default font. Both the Math2 and the Crom font are ignored. I assume the same would happen on my reader (a Sony 650).

At this point I fell like turning to a more productive activity such as smashing my head against a concrete wall!

In Reply to DiapDealer: If a unicode font had an appropriate symbol I would have used it but the symbol is part of the page design. The style and appearance are important.

There is a problem with marking scene changes where the actual layout of the page is unknown. On a printed page, if a scene change occurs at the top or bottom of a page, usually and ornament of some sort is used, while scene changes in the page is usually shown with a blank line and the following paragraph is unindented. These separators can get lost when text reflows, a blank line at the bottom of the screen is not obvious and a paragraph that is unindented at the top of the screen is indistinguishable from a paragraph that continues from the previous screen. The only solution to this problem is some sort of graphic indication and what better than an ornament. I know of no unicode font that combines alphanumeric glyphs with ornaments. And all the ornament fonts remap characters to ornaments. It may not advisable to remap characters but there isn't any other way to do it.

I am toying with the idea of taking a unicode font such as DejaVu and adding a set of ornaments and symbols to the font in one of the private areas. Does anyone have any experience with doing this, maybe with a program like Font Forge? This might be one way of solving the problem for once and for all.

Apologies to jgawne. I may have high jacked your thread, but I think that your problem is similar if not the same as mine. I hope that anything that comes to light here helps you as well.
grumbles is offline   Reply With Quote
Old 03-05-2012, 10:14 PM   #22
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,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If ADE is ignoring the stylesheet, there is probably a (hard to see) error.

Run that puppy through the CSS validator: http://jigsaw.w3.org/css-validator/#validate_by_upload
CSS Font specification can be extremely fussy about case and nameing.
theducks is offline   Reply With Quote
Old 03-05-2012, 10:22 PM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
If ADE is ignoring the stylesheet, there is probably a (hard to see) error.

Run that puppy through the CSS validator: http://jigsaw.w3.org/css-validator/#validate_by_upload
CSS Font specification can be extremely fussy about case and nameing.
Neither sample work because the @font in both CSS are incorrect.

Last edited by JSWolf; 03-05-2012 at 10:26 PM.
JSWolf is offline   Reply With Quote
Old 03-06-2012, 12:00 AM   #24
grumbles
Addict
grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.
 
grumbles's Avatar
 
Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
OK -- I unzipped demoproblem.epub and ran style.css through the css validator. It told me that there were no errors but gave a warning for line 46:

Property font-family doesn't exist in CSS level 2.1 but exists in [css1, css2, css3]

which is in the @font-face definition.

I am now totally lost. If the "font-family" property is not valid, what do I use? What is correct?
grumbles is offline   Reply With Quote
Old 03-06-2012, 04:26 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 grumbles View Post
A clarification:
the css on the other hand contains:

@font-face {
font-family: math2;
font-style : normal, italic;
src : url(../Fonts/Math2Regular.ttf);
}
.infinity { font-family : "math2";
font-weight : 600;
font-size : 125%; }
You font-family in your @font-face must be between quotes. Otherwise it is not valid. If you don't put it between quotes, it must be either a family like Arial, Georgia, etc or a type like serif, non-serif.
Toxaris is offline   Reply With Quote
Old 03-06-2012, 09:36 AM   #26
Keroberos
Zealot
Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.Keroberos ought to be getting tired of karma fortunes by now.
 
Keroberos's Avatar
 
Posts: 128
Karma: 238654
Join Date: Aug 2009
Device: Kobo Mini (4GB), Nook Classic wi-fi, iPod Touch (Bluefire Reader)
@grumbles

All CSS errors aside, testing with the Math2Regular.ttf font shows it will not work with ADE.

Quote:
I am toying with the idea of taking a unicode font such as DejaVu and adding a set of ornaments and symbols to the font in one of the private areas. Does anyone have any experience with doing this, maybe with a program like Font Forge? This might be one way of solving the problem for once and for all.
Don't do this, even if it works it will break on readers that don't support embedded fonts or allows the user to override the embedded font. A better solution would be to use an .svg image and scale it to the desired size (which would also fix your current problem).
Keroberos is offline   Reply With Quote
Old 03-06-2012, 01:00 PM   #27
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by grumbles View Post
Thank you mmat1!
At this point I fell like turning to a more productive activity such as smashing my head against a concrete wall!
Please, let's try another aproach ...

Thanks to TheDucks & JSWolf: i made an really hefty error in my css example.

After clearing out, the behavior of the fonts didn't change. Math2 will not work in the ff-plugin (and as told by others, in ade as well)

So i ask if there's any font out in the world which will work with ADE ?

I'm sorry to say this, but continuing with this path will probably lead into an in-depht analysis of font files ...

So i'm with Keroberos and suggest to try some graphics instead of fonts.
mmat1 is offline   Reply With Quote
Old 03-06-2012, 01:06 PM   #28
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
When I need a quotation, I do it in SVG. I create the SVG via CodeCogs.

A lot of fonts do work, alas some don't.
Toxaris is offline   Reply With Quote
Old 03-06-2012, 02:22 PM   #29
grumbles
Addict
grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.grumbles ought to be getting tired of karma fortunes by now.
 
grumbles's Avatar
 
Posts: 238
Karma: 1500000
Join Date: Nov 2009
Location: Toronto
Device: Pandigital Novel (Black), T-2 and 3, Nexus 7
@Toxaris:
Adding the quotes makes no difference. The CSS validator was also quite happy with the css without quotes. Did you mean equation instead of quotation?

@mmat1:
I tried another font, Lucida Bright Math Symbol. It also fails to work. I will continue to look at this. I need to know what fonts work and why some don't.

I generated a svg file from the infinity glyph -- create a png with gimp and the use autotrace to create a svg file. That worked. I think Inkscape would also create a svg but I couln't quite figure out how to do it. Autotrace worked on the first try.

Does a graphic scale when the user changes the font size? The symbol is used as an ornament at the start of every scene as the first character of a paragraph. If the size of the font is changed, the symbol has to change in the same proportion. I also have no clue about using svg images. Is there a comprehensive tutorial somewhere?

The whole business of embedding fonts seems to be very hit and miss. I lifted the Charis font-face section from the css of a publication and pasted it into another epub I'm working on. I ended up with the text in bold face but the italics in normal weight. I then replaced the font with DejaVu and all was well. If anyone knows where I can find out more, I'd love to hear about it.
grumbles is offline   Reply With Quote
Old 03-06-2012, 02:30 PM   #30
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by grumbles View Post
The whole business of embedding fonts seems to be very hit and miss. I lifted the Charis font-face section from the css of a publication and pasted it into another epub I'm working on. I ended up with the text in bold face but the italics in normal weight. I then replaced the font with DejaVu and all was well. If anyone knows where I can find out more, I'd love to hear about it.
I know the solution to your CharisSIL bold problem. I have come across such before and with a lot of trial and error, figured out the solution.

Install Notepad++ under Windows and then load in the CSS. Go to the encoding menu and select Encode in UTF-8 without BOM. That will fix the problem with the bold where it should be displaying normal.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spanish symbols vidalpascual Amazon Kindle 1 11-24-2010 06:29 PM
Non-ascii symbols on Story James_Wilde iRiver Story 13 09-12-2010 05:15 AM
Any symbols not to use? roguefan99 Kobo Reader 1 07-24-2010 10:21 AM
PDF converts to symbols robkat Calibre 1 01-14-2010 12:02 PM
Music symbols rxsz Astak EZReader 1 12-19-2009 10:43 AM


All times are GMT -4. The time now is 11:39 AM.


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