Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-18-2009, 12:57 AM   #1
kome17
kome
kome17 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Location: Hong Kong
Device: Cybook
Embedding Chinese font using CSS override?

Hi there,

I am new to Calibre, yet I have been trying all my best to make chinese epub file viewable on ADE.

At first I have really no idea on what's going on with the content of a epub file with all those opf, xhmtl, css...etc. (Im a Business Student). Then I browse around here and raise one and two questions, with all the helps from you guys and comparing different epub file's content, I am now be able to turn a unedited chinese epub file into a a readable chinese epub in ADE.

This is what I did to make it.
  1. Open a new folder inside the OEBPS folder named "Font", and place a chinese font inside (I name it f1.otf)
  2. then I edit the stylesheet.css file and place this code inside:

    @font-face {
    font-family: "f1";
    src:url(Fonts/f1.otf);
    }
    p.f1{
    font-family: "f1";
    }

  3. after that, I edit the content file, (in my case, chapter1.html), putting this
    class="f1"
    in every <p>, like this
    <p class="f1">

  4. Save it all and re-make it into a epub file, then I am able to read this chinese epub in ADE.

I have attached my file in case you would like to read it.
I have only turn one chapter (chapter1) into readable, as only chapter 1 cause me quite a time to turn all <p> into <p class="f1">

Is that I can use Calibre to make all these progress generated by Calibre?
Can Calibre turn epub into epub (edited)??

Thanks for reading my post, really looking forward to your comments.
Attached Files
File Type: epub xiao test.epub (10.98 MB, 145 views)
kome17 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
css override code for margins? Amalthia Calibre 15 08-11-2009 07:20 PM
IMG css override not working anymore? Amalthia Calibre 10 08-03-2009 01:12 AM
help with Claibre CSS override sideburnt Calibre 7 05-28-2009 08:25 PM
centering images with css override? Amalthia Calibre 2 03-30-2009 01:53 PM
css override code for <h2> and <h1> tags Amalthia Calibre 2 03-29-2009 06:51 PM


All times are GMT -4. The time now is 05:10 AM.


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