File: README

package info (click to toggle)
cttex 1.22-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,804 kB
  • ctags: 133
  • sloc: ansic: 2,299; makefile: 53; perl: 21
file content (61 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Changes:
========
	New features in version 1.19 and beyond are described in
README.th

Description:
============
	The main part of Cttex is A Thai Word Separator algorithm using
a dictionary. A wrapper for formatting Thai LaTeX document file is provided
to demonstrate the use of this word-sep routine. The program can also
be used as a simple word-sep filter.

Contents:
=========
	cttex.c		The word-sep routine & LaTeX wrapper
	dictsort.c	Sort contents of dictionary file
	tdict.txt	Dict file
	dict2c.pl	Perl script to convert tdict.txt -> tdict.h

Usage:
======
	cttex [cutcode] < infile > outfile

	'cutcode' specifies the ASCII code of character to be inserted
in filter mode.

Examples

	- LaTeX mode 

		cttex < foo.ttex > foo.tex

	- Filter mode

		cttex 32 < infile > outfile

	Here, the blank (ascii 32) is inserted at every breakable
	point.

Build:
======
	Just type 'make'

Note:
=====
	If you only need the word-sep routine, remove everyting
in main() but the line
	
	cutcode = CUTCODE;

This line defines what character to be inserted at word-breakable
points. The main word-sep routine is dooneline().

Let me know if you find any bugs or have any comment.

Thank you.

-------------------------------------------------------------------------
Hui :>
vuthi@ctrl.titech.ac.jp
-------------------------------------------------------------------------