Nook2看epub乱码解决方法
(2015-02-09 13:18:33)
标签:
nookepub乱码 |
分类: 自由软件 |
之前从网上下载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;
}
现在用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 {
}
div {
}
p {
}
.cover {
}
.center {
}
.left {
}
.right {
}
.quote {
}
h1 {
}
h2 {
}
h3 {
}
h4 {
}
h5 {
}
h6 {
}
前一篇:Diary 2015-02-08
后一篇:Diary 2015-02-09