Thwab Scripts
Thwab Scripts
Yet we have mentioned the following scripts:
* 'th-update-toc': generate TOC from stubs or first line of contents
* 'th-add-toc-stubs': extract TOC stubs from 1 control file and add them to content file names
* 'th-rm-toc-stubs': remove TOC stubs from content filen ames
* 'th-rm-backup': remove files having ~ suffix (generated as backup by some text editors)
* 'th-add-dot-txt': add the .txt suffix to leaf content file names (to make file managers happy)
* 'th-rm-dot-txt': remove .txt suffix (should be done before packing)
* 'th-gen-stub-search-cache': generate fuzzy search cache control file
* 'th-pack': compress the book
There are some other scripts like:
* 'th-match-re RE':
searches for matching regular expression RE
(see perlre and perlunicode in perldoc)
Note: if there are too many lines you may want to pipe the out put to less with '-R' option like this
th-match-re 'foobar|bogo' | less -R
to search for foobar or bogo
* 'th-filter-re s RE REPLACEMENT'
substitute what matches RE with REPLACEMENT
* 'th-filter-re y SET1 SET2'
replace any member of SET1 with corresponding member of SET2
There are a set of built-in RE filters that could be used through the following two tools:
* 'th-filter-text'
* 'th-match-filter-text'
followed by filter name to take place or just matched
if no one is provided it will list installed filters
like: '_natural-text'
which format the punctuation marks and spaces
by removing space before full-stop mark and adding only a single space after marks and having no space between them.
and 'en_filter-out-indecent'
which filters-out some indecent words
there are several other filters for Arabic language specific filters.
|