------------------------------------------------------------------ CED. (C) Sun Shouxiang. Apr. 5, 1998. Email: xiang@metsun1.sci.hokudai.ac.jp ------------------------------------------------------------------ This is a simple Chinese editor featuring built-in input engine for GB-2312. You may copy and distribute it in any purpose and in any way. You are also welcome to modify and improve it, but I should apologize for the ugly codes, especially for some strange variable names and lack of remarks. This small editor supports basic edit operations only. However, it provides a clipboard. You can do copy, cut and paste with it. It uses Xlib functions only and no X font files are needed. Hence it should be very easy for you to build the executables. There is a .mb file (input1.mb) for Wubizixing input method within this package. ------------------------------------------------------------------ To install it, do the following steps. 1) unpack it to a temporary directory, for example, cd /home/xiang/tmp tar xzvf ced.tgz 2) compile and link gcc *.cpp -o ced -lX11 3) copy the executable to a directory included in your path. cp ced /usr/local/bin 4) copy cclib16j and wubi.mb to a directory and create an environment variable CEDDIR pointing to it. cp cclib16j wubi.mb /home/xiang/ced setenv CEDDIR /home/xiang/ced (csh) or CEDDIR=/home/xiang/ced; export CEDDIR (sh) 5) you can use CEDCOLORS to specify colors you like. setenv CEDCOLORS 0f:9f:9f:9f:9e:9c:b0 (csh) or CEDCOLORS=0f:9f:9f:9f:9e:9c:b0; export CEDDIR (sh) The seven hex values are colors of text, selected text, help board, status line, prompt, error messages and Chinese input. Bits 0-3 and 4-7 are for foreground and background respectively. Each of them varies from 0 to 15 denoting black, blue, ..., and white, as it should be in DOS text mode. ------------------------------------------------------------------ Usage: ced [-fn EnglishFont] [-fc ChineseFont] where EnglishFont and ChineseFont are X11 font files for English and Chinese. Specifying no or English font only will cause the editor to use the cclib16j (it's not X11 font). Specifying Chinese font only will cause it to load font 'fixed' for English. For more information, run ced and press F1 for help. ------------------------------------------------------------------ The file input1.mb is a text file and therefore you can add your own words easily. You can create other input methods in this simple format. Just name them as input2.mb, ... , input8.mb. Successfuly loaded input methods can be activated by pressing Alt-F4, ... , Alt-F10. The first line of wubi.mb shows the name of the input method, maximum size of code, and keys used. For Wubizixing, the keys used are a-y. The maximum size code should be less than 16. The following lines specify codes and their words. The codes must be expanded to maximum-size-of-code characters long with spaces if necessary and the words must follow the codes without any other characters. The words are separated by spaces. All the lines should be less than 80 characters long. ------------------------------------------------------------------ <<<<<<<<<<<<<<<<<<<<<<<<<<<< NOTE >>>>>>>>>>>>>>>>>>>>>>>>>>>> I WILL TAKE NO RESPONSIBILITY FOR ANY DAMAGES CAUSED BY THIS PROGRAM FOR ANY REASON!!! ------------------------------------------------------------------