Introduction ============ This is a patched version of less-278. Following paragraph taken from less.man describes the function of less: Less is a program similar to more (1), but which allows backward movement in the file as well as forward movement. Also, less does not have to read the entire input file before starting, so with large input files it starts up fas- ter than text editors like vi (1). The patches enable reading of Chinese characters. A macro, HANZI, is added to initiate the patches. Therefore if you wish to compile the original less-252 you can follow the installation instructions in README and INSTALL, and ignore the rest of this file. Name of the target program (i.e. less) is unchanged. The default is to read BIG5 code or GB code. You can switch to reading of normal ASCII text by setting the environment LESSCHARSET to 'ascii' (under C-shell, the command is 'setenv LESSCHARSET ascii'). Included are the less.bg5 and less.gb help files in BIG5 code and GB code respectively. You can use either one as the help file by setting the environment LESSHELP to the appropriate full path (e.g. 'setenv LESSHELP /usr/local/lib/less/less.bg5'). Please refer to less.man for the details. If you have written a better version of help file in Chinese, please send it to me (in uuencoded form). Note that the default directory where these help files will be installed is /usr/local/share. Installation ============ Here is a suggested installation procedure (commands to execute): 1. configure 2. Edit defines.h to indicate your preferences. Probably you will only need to consider the SECURE, HAVE_LOCALE and PROMPTEND macro. 3. make CFLAGS="-O2 -DHANZI" LDFLAGS=-s - or, if you wish to place the help file somewhere else - make CFLAGS="-O2 -DHANZI" LDFLAGS=-s datadir=/usr/local/lib/less 4. make install - or, if you wish to place the help file somewhere else - make datadir=/usr/local/lib/less install In case -O2 does not work with your compiler, try -O in step 2. Acknowledgement =============== Thanks to Jiong-Yuan Su and Hai-Qing Zhu who translated the less.hlp file and prepared less.bg5 and less.gb respectively for the earlier versions. -- Paul W. Shew (paul@vlsi.cis.nctu.edu.tw)