作者xlk (深深)
看板java
标题Re: [徵求] JAVA 电子书 教学
时间Wed Sep 30 02:37:18 2009
※ 引述《bluesjay (岚)》之铭言:
: 想请问板上各位大大了 ...
: 有办法 修改别人做好的 JAR 档案吗
: 小弟没学过 JAVA 可是很想制作一个 JAVA 的电子书 恢复本的 电子圣经
: 网路上已经有看到别人有做出功能很完善的电子书
: 可是他的内容是 合和本的圣经...
: 所以想请问各位
: 有办法 开启别人做好的电子书 软体 然後修改他的内容吗
: 我想修改的那套软体 叫做 GO BIBLE
: 还有请各位大大们 给小弟指导指导
Go Bible在Google Code(
http://code.google.com/p/gobible/)
首页就提到:
The Go Bible development environment consists of two components:
GoBibleCore and GoBibleCreator.
GoBibleCore is the JavaME application for viewing Bible texts,
however it does not contain any Bible data.
To produce a
Go Bible application GoBibleCreator is used to convert ThML or
OSIS Bible texts into GoBibleDataFormat which is packaged with
the Go Bible application (GoBibleCore).
If you are only interested in producing a new translation then
GoBibleCreator should be sufficient. If you are interested in
enhancing the Go Bible application then you will need to check out
the GoBibleCore source code.
If you are interested in writing some other software that uses
Go Bible data files then check out the
GoBibleDataFormat.
我从
http://gobible.jolon.org/ 首页下载繁中语言版的Go Bible。
发现JAR里的Bible Data下各资料夹除了index档,
其它都是可以UTF-8编码开启的纯文字的各章内容,
这些就是上述的GoBleDataFormat。
详细可以看这里的描述:
http://code.google.com/p/gobible/wiki/GoBibleDataFormat
以下只谈如何改内容,没有涉及软体修改。
一.快速作法
直接编辑Jar里Bible Data下各章节的文字档内容,再把档案覆盖回Jar里原位置。
补: 文字档开头要放文字内容总位元数,可能需用Hex(16位元)模式修改档案。
不清楚改错後遗症,後果自负@@
二.正规方法
改写OSIS或ThML档,再使用GoBibleCreatort产生Jad&Jar
(略,自行参考
http://gobible.jolon.org/developer/
GoBibleCreator/GoBibleCreator.html 原PO很懒惰 XD
补: 繁中ThML档 (自己接网址~
http://code.google.com/p/gobible/source/browse/
trunk/source_text/Chinese/Traditional/cnt-new.thm
补2: 补一下制作过程好了 (...
1.下载GoBibleCreator 2.2.6 并解压缩
2.下载繁中ThML档,在画面右边View raw file超连结 右键另存档案
与GoBibleCreator 2.2.6 Jar档放一起
这里面就是圣经内容,改成你要的 (UNIX换行格式的UTF-8 XML
3.接着下载
http://code.google.com/p/gobible/source/browse/
Collections/Chinese Traditional/Chinese Traditional/
Chinese Traditional.txt
与GoBibleCretor 2.2.6 Jar档放一起
改档名为Collections.txt
打开档案找到Source-Text: Chinese/Traditional/cnt-new.thm
改为Source-Text: cnt-new.thm
4.在Jar档所在资料夹 执行
java -jar GoBibleCreator.jar ./Collections.txt
p.s.1 Collections.txt里 Book-Name-Map 可以改Go To的书名选项显示结果
p.s.2 Collections.txt里 加 "UI-Goto: 去到"
手机上Go To功能就会显示"去到" 其见前面提的参考网页
p.s.3 如果不会,找会的人帮你比较快..
--
我不骗P币很久了..
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.223.209.157
※ 编辑: xlk 来自: 61.223.209.157 (09/30 02:58)
1F:→ xlk:连index可能也需要修改,不建议使用做法一... 09/30 03:15
2F:推 PsMonkey:欢迎骗 P 币阿.... \囧/ 09/30 03:31
※ 编辑: xlk 来自: 61.223.209.157 (09/30 07:24)