Death of a Prostitute is a Korean short story about a young prostitute found dead on a street. The ebook is written in Korean and meant for testing Korean on a digital reader supporting EPUB format.
Sunday, March 14, 2010
Vietnamese Novel 'Thoi Xa Vang'
Thoi Xa Vang is a Vietnamese novel in EPUB format. It will work with Adobe Digital Editions, Nook and Sony digital reader.
Wednesday, March 10, 2010
How to embed Unicode fonts in EPUB ebooks
I own a Barnes and Noble's Nook and recently had a trouble reading a Vietnamese novel on Nook. But I resolved the issue by hacking the EPUB ebook as explained below:
- Get the Unicode fonts that you want for your ebook. The following fonts come with Adobe Reader and cover enough Unicode ranges.
- MyriadPro-Bold.otf
- MyriadPro-It.otf
- MyriadPro-Regular.otf
With 7-zip, put the Unicode fonts in your ebook. - MyriadPro-Bold.otf
- Extract content.opf from your ebook and insert the following lines in the manifest section:
<item href="MyriadPro-Bold.otf" id="embedded.font.bold" media-type="font/opentype"/>
Put content.opt back into the ebook file.
<item href="MyriadPro-It.otf" id="embedded.font.italic" media-type="font/opentype"/>
<item href="MyriadPro-Regular.otf" id="embedded.font.regular" media-type="font/opentype"/> - Extract stylesheet.css from the ebook and append the following contents:
@font-face {Put stylesheet back in your ebook.
font-family: "Myriad Pro";
font-weight: normal;
font-style: normal;
src: url(MyriadPro-Regular.otf);
}
@font-face {
font-family: "Myriad Pro";
font-weight: normal;
font-style: italic;
src: url(MyriadPro-It.otf);
}
@font-face {
font-family: "Myriad Pro";
font-weight: bold;
font-style: normal;
src: url(MyriadPro-Bold.otf);
}
a {
color: inherit;
text-decoration: inherit;
}
em, i {
font-family: "Myriad Pro", sans-serif;
font-weight: normal;
font-style: italic;
}
strong, b, h1, h2, h3, h4, h5 {
font-family: "Myriad Pro", sans-serif;
font-weight: bold;
font-style: normal;
}
body {
font-family: "Myriad Pro", sans-serif;
margin-left: 5pt;
margin-right: 5pt;
text-align: justify;
}
p {
text-indent: 2em;
margin-top: 0pt;
margin-bottom: 0pt;
} - Try and read your ebook with Adobe Digital Editions or your favorite ebook reader.
Tuesday, May 5, 2009
Problem with saving OpenOffice.org documents as PDF
I use OpenOffice 2.4 in Debian Linux 5.0 Lenny, but recently had a problem with exporting OpenOffice.org documents to PDF. Debian Lenny doesn't have OpenOffice.org 3.0 packages yet. I think the problem originates from using obscure Postscript fonts. I used Caslon Book BE in my OpenOffice.org Writer document, but the output of the exported PDF file was unreadable. Actually, the problematic PDF file didn't display any spaces.
Eventually, I fixed this problem. I saved the document as a postscript printout and converted it to PDF using pstopdf13.
ps2pdf13 input.ps output.pdf
Another thing I did to fix the problem was to change Times New Roman fonts in my formulas to Times New Roman PS. I also had to convert all pictures in the document to encapsulated Postscript format and embed them in the document. For EPS conversion of the pictures, I used GIMP.






