Re: [徵求] JAVA 電子書 教學

看板java作者 (深深)時間16年前 (2009/09/30 02:37), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串3/3 (看更多)
※ 引述《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)

09/30 03:15, , 1F
連index可能也需要修改,不建議使用做法一...
09/30 03:15, 1F

09/30 03:31, , 2F
歡迎騙 P 幣阿.... \囧/
09/30 03:31, 2F
※ 編輯: xlk 來自: 61.223.209.157 (09/30 07:24)
文章代碼(AID): #1AmbFVey (java)
文章代碼(AID): #1AmbFVey (java)