Thread: Embedding fonts
View Single Post
Old 01-02-2010, 11:42 AM   #7
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 erik5000 View Post
Not fonts: they just have to be zipped into the epub, in the exact place where you say they must be (youe "say" that in the content.opf file AND in the .CSS file of course), eg. in a .\font folder.
Only the container.xml has a pre-defined place AND name: .\META-INF\container.xml.

As it is a real nuisance to have to tell the reader IN TWO PLACES, where a file must be found, I am currently building a little program to automatically make an epub FROM JUST THE HTML AND CSS files. Nothing more, nothing less. If you make valid XHTML "pages" and adhere to some easy extra rules when writing the XHTML, you need not be concerned with difficulties like building an .opf or .ncx or even an TableOfContents.html file yourself. The idea behind the program will be: if you can write XHTML and CSS, you get an epub for free.
I have Perl and ANT scripts that do just this, but i want to make a Windows program. That may be even easier to install. To get Perl, ANT and the XHTML/XML/CSS validation programs working is a little bit cumbersome for some.
If there is any interest in the two scripts, I may publish them on my site.
Do you know that this already exists? If you zip your html and css in a file it can be used in Calibre to generate the ePUB and many other formats.
DaleDe is offline   Reply With Quote