TxtSplit is a filter program for text files with macro capibilities.
Our internet pages and the englisch and german online help of
PTime are created with TxtSplit.
With TxtSplit you can have e.g. text for more then one language in
a single file. Text alternatives (e.g. different languages) are
separated in groups of brackets. Every pair of bracket in such a
group can hold a piece of text or a whole paragraph for one language.
Pairs of brackets in one group can be separates by whitespaces
(Space, Tab, CR, LF) if this is need. If normal chars apear
between two pairs of brackets then a new group begins.
The advantech of TxtSplit ist, that you hold text alternatives verry
close together.:
[English text][German text][..] any text [Englisch text][German text][..]
^ ^ ^ ^
Group-1 Group-1 Group-2 Group-2
DestLevel-1 DestLevel-2 DestLevel-1 DestLevel-2
Calling:
txtsplit [<Opt>] <SrcFile> /d<DstLevel> <DstFile> [<Opt>]
<Opt>:
/h or /? Help
/x Convert some special chars for HTML. E.g. ü to ü
/b"<Chr1><Chr2>" Bracket chars. Default is /b"[]"
/d<DstLevel> DstLevel is in the range from 1..99
Samples:
txtsplit mytxt.ipf /d1 mytxt_ge.ipf /b"<>"
txtsplit /b"{}" mytxt.ipf /d2 mytxt_en.ipf
txtsplit index.htm /d2 index_en.htm /x
|