Usage¶
Here is a some usage information for EB4J library.
Library API¶
See javadoc https://eb4j.github.io/eb4j/javadoc/index.html
Library: extensions against standard¶
appendix¶
The appendix is an amendment data for CD-ROM book, which is specific for eb library.
EB4J can understand appendix that eb library utility generated.
It provide following items.
Seperator character code.
Alternative string for external fonts(EUC-JP and/or Unicode escape sequence)
It provides alternative strings for external fonts defined in EPWING data. It also provides hint information for seperator of article, that is ordinally detect automatically but not implicitly defined in EPWING data. Otherwise, the hint provides hint what character is a seperator. Following is same description in Japanese.
appendix (付録) とは CD-ROM 書籍の補助データの ことです。 appendix は CD-ROM 書籍の出版社から提供されているものではなく、 EB および EB4J ライブラリに固有のものです。 EB4Jは、このデータを解釈利用することができます。
本文の区切りコード
外字の代替文字列(EUC-JPおよび Unicode escape sequence)
appendix のレイアウトは CD-ROM 書籍のものとよく似ています。 トップディレクトリには catalog もしくは catalogs ファイルが存在し、各副本のデータは対応する サブディレクトリに配置されています。
EB4J can handle the appendix contents and provide an API to get alternative string for external font griff codepoint.
It accept Unicode escape sequences, such as ‘u00E1’, and ‘U001F401’ form. The appendix can be produced by eb4j-tools appendix subcommand.
オリジナルのEBライブラリは、EUC-JPで代替文字列を生成します。EB4J-toolsのappendixコマンドは、 ASCII文字およびUnicode escape sequenceを生成します。
Unicode map file¶
Unicode map file is an amendment data for CD-ROM book, which is produced by EBStudio2 authoring tool.
EBStudio2 generates external fonts codepoints for unicode characters, and also generate .map file
which describe mapping between external fonts codepoints to unicode characters.
The .map file should be a TSV: tab-separated value text file, and WBWin4 EBook reader bundles .map files with applicaiton.
EB4J use .map file and provides API to get Unicode charecter code from external font codepoint.
User can put .map file on a same directory with dictionary CATALOG file.
Following is same description in Japanese.
Unicode mapファイルは、CDROM電子書籍のデータに追加するデータです。
EPWING形式の書籍をオーサリングするツールである、EBStudio2は、EPWINGでストレートに表現できないUnicodeの 文字を、
自動的に外字定義として変換する機能を有しています。そのとき同時に、外字とUnicode文字コードポイントの対応関係を
.map という拡張子のファイルに生成します。
.map ファイルは、TSV: タブ区切り値テキスト ファイルである必要があります。
通常、EBStudio2の作者が配布している 電子書籍リーダーであるEBWin4に同梱されており、インストールされた
アプリケーションのフォルダーにいくつかの著名な辞書のためのファイルが格納されています。
ユーザが、電子辞書のCATALOGファイルとおなじフォルダに、対応する``.map``ファイルを格納することで、 EB4Jは、自動的にそのファイルをよみこんで、処理します。 EB4Jには、この値を取得するための拡張されたAPIがあります。
JavaDoc for UnicodeMap class