加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Nook2看epub乱码解决方法

(2015-02-09 13:18:33)
标签:

nook

epub

乱码

分类: 自由软件
之前从网上下载epub文件,放入nook2中乱码,用CssSTAR软件转码一下就行。
现在用linuxmint,无法使用
CssSTAR软件,没想到有个更简单的方法,就是直接替换一下epub中的stylesheet.css即可。可以从一本正常的epub文件中拷贝出stylesheet.css文件,再用winrar打开epub(epub文件其实是个压缩包),把里面的stylesheet.css替换掉即可。以下附上一个我在用的CSS文件,可以保存成
stylesheet.css替换掉乱码的epub文件中的文件。

@font-face {
font-family:"cnepub";
src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf),
url(res:///tt0011m_.ttf),
url(res:///opt/sony/ebook/FONT/zw.ttf),
url(res:///Data/FONT/zw.ttf),
url(res:///fonts/ttf/zw.ttf),
url(res:///../../media/mmcblk0p1/fonts/zw.ttf),
url(res:///DK_System/system/font/zw.ttf),
url(res:///abook/fonts/zw.ttf),
url(res:///system/fonts/zw.ttf),
url(res:///system/media/sdcard/fonts/zw.ttf),
url(res:///sdcard/fonts/zw.ttf),
url(res:///system/fonts/DroidSansFallback.ttf);
}
body {
    padding: 0%;
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 1%;
    margin-right: 1%;
    line-height:130%;
    text-align: justify;
    font-family:"cnepub";
}
div {
    margin:0px;
    padding:0px;
    line-height:130%;
    text-align: justify;
    font-family:"cnepub";
}
p {
    text-align: justify;
    text-indent: 2em;
    line-height:130%;
    margin-bottom:-0.8em;
}
.cover {
    width:100%;
    padding:0px;
}
.center {
    text-align: center;
    margin-left: 0%;
    margin-right: 0%;
}
.left {
    text-align: center;
    margin-left: 0%;
    margin-right: 0%;
}
.right {
    text-align: right;
    margin-left: 0%;
    margin-right: 0%;
}
.quote {
    margin-top: 0%;
    margin-bottom: 0%;
    margin-left: 1em;
    margin-right: 1em;
    text-align: justify;
    font-family:"cnepub", serif;
}
h1 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:xx-large;
}
h2 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:x-large;
}
h3 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:large;
}
h4 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:medium;
}
h5 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:small;
}
h6 {
    line-height:130%;
    text-align: center;
    font-weight:bold;
    font-size:x-small;
}

0

阅读 收藏 喜欢 打印举报/Report
前一篇:Diary 2015-02-08
后一篇:Diary 2015-02-09
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有