Previous Up HOME Importing books to Thwab Next

Importing books to Thwab

Importing books to Thwab

There are so many scripts I wrote by not all of them have sufficient quality or generality.

* "th-dict-to-th": imports a 'dictd' on-line dictionary file format (it does not result TOC), just pass the .index file followed by number of digits followed by 0 like this: "th-dict-to-th path/to/dictd/some.index 6 0"

* "th-po-to-th": convert a dictionary in PO file format (used by Wordlist projects like that of Arabeyes.org) also no TOC is generated.

use it like this "cat full_wordlist_*.po | th-po-to-th"

* "extract-bang-txt.pl": a special plain text file format having :

a leading @ followed by repeated ! (to reflect depth) followed by title of chapter or section

a leading @ followed by a single * followed by leaf content title followed by content lines.

a leading @ followed by repeated ! (to reflect depth) not followed by any thing on same line.

Here an example

@! Chapter 1

@!! Section 1.1

@* Subsection 1.1.1

This text is in 1.1.1

@* Subsection 1.1.2

This text is in 1.1.2

@!! Section 1.2

@* Subsection 1.2.1

This text is in 1.2.1

@!

@* Section 1.3

This text is in section 1.3 which is a child of Chapter 1 not Section 1.2 as we have used @! to change depth to be the same as @! Chapter 1

scripts having .pl suffix are experimental they are not installed by default, they are kept in a sub-directory of "scripts" called "experimental"

After converting the content edit the 0 control file in + directory then run 'th-gen-stub-search-cache' and 'th-pack'

Previous Up HOME Importing books to Thwab Next
Thwab.Net, Copyright © 2007, Muayyad Saleh AlSadi<alsadi@gmail.com>