home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
languages
/
chinese
/
zhongwen
/
Release131
Wrap
Text File
|
1994-08-16
|
11KB
|
270 lines
ÄãºÃ¡£ÕâÊÇ"ÖÐÎÄ"¡£
This is "ZhongWen" (pronounced "joong wuhn", roughly). It is a Chinese
editor, originally derived from my "!CCR" program but with many added
features and hopefully with fewer eccentricities 8-). It should be fully
compatible with the font setup used in !FlashCard and !CCR.
!ZhongWen is ShareWare - If you intend to use this program seriously, you
have the option of registering and receiving more advanced versions of the
program with fewer bugs and more features. See below for more info.
---------------------------------------------------------------------------------------
Features Included:
* The ability to view and edit Chinese texts in "Guobiao"
code format. Pinyin is used for entering Chinese characters,
with a selection window to display possible matches.
You can have up to five windows in use at the same time.
* "Big5" files (traditional characters) can be viewed but not edited.
* Colours - the foreground and background colour can be
set to your choice and can be saved as part of the default
set up.
* Zoom - display characters at twice their normal size.
* Goto Line facility.
* Saving - Standard drag-and-drop saving is used to save the
text.
* Latin characters can be entered by switching to text mode.
They are displayed in the RISC OS "Trinity" font.
* Basic Editing controls - backspace/delete and use of the
cursor keys is implemented.
* Clicking ADJUST on a character pops up a box showing
the pinyin for it (and the underlying two-byte code).
So if your knowledge of characters is a bit dodgy you
can easily find out what they are. I'm working on
assembling a simple dictionary file to give possible
meanings too.
* You can choose to either load all the characters into
memory (faster) or just load them as needed. With the
latter option, the program runs in a much smaller
wimp slot so will work on machines with less RAM. There
are over 7000 characters in the GuoBiao scheme and over
13000 in big5 but the average document will rarely contain
more than 2 or 3 thousand. The disadvantage of the latter
approach is that there may be delays as characters are
loaded from disc. If you have the memory available, I
would strongly reccommend loading them all - select
"Cache Hanzi" from the Options Menu on the icon bar.
In fact, for Big5 fonts, cacheing the characters only
loads the most frequently used ones (about 6000).
Any from the so-called `Level 2' set will be loaded as
necessary. (Loading an extra 7000 rare characters seems
a bit daft).
* Information on the current bitmap file being used - name,
style of font, number of bitmaps, number in memory etc.
can be found by choosing "Hanzi Info" from the "Misc"
menu.
*********************
How to use the program
Entering Text.
To enter normal text (ie non-Chinese) select "text" from the Edit menu and
just type as normal. It will appear at the cursor.
To enter Chinese, select "pinyin" from the Edit menu. Then type the
appropriate pinyin string for the character you want to enter.
This will pop up a window displaying all (known) possible character matches.
Tones are entered as numbers after the string - 1,2,3,4 and 5 (neutral). The
u-umlaut character is typed as `u:'. If you aren't sure of the tone, you can
cycle through them all in turn, by pressing the numbers, until you find the
character you are looking for. Clicking `select' on the character enters it
at the cursor.
NB. If you make a mistake while typing, press ESCAPE to clear the pinyin
string and hanzi (character) selection window.
Example:
Suppose you want to enter the character for `I' (or `me'). The pinyin for
this is `wo' with the third tone. Load up the program, click on the icon to
get a blank window up and click on the window to put the cursor in it. Then
type `w'. The hanzi window appears and displays over 200 possible characters.
When you type 'o', this drops to 18. Now press the numbers 1-4 one after the
other and you can see the characters for each tone. It's usually worth
entering a tone to help reduce the number of characters in the window. For
example `ma' will show not only the hanzi for `ma', but for `man',`mai' etc.
as well. If you type `ma1', though, you will eliminate the others.
Another method of entering characters is to make one window read-only,
(from the "File" menu) and use it as a selection window. A sample file
with the complete GuoBiao encoding is included for this purpose.
That's about it - I've tried to keep things as simple as possible, without
lots of separate icons to click for tones and so on, so that the program
is quick and easy to use.
*********************
Using Other Fonts.
As with the !FlashCard application, the system variable "ChineseFonts$Path"
is used to find the font files. Also, the 'HBF' header file is used to
interface with the file.
The variable <ZhongWenFont> specifies which font you want to use and is
set up in the !Run file. If you want to use different fonts you must alter
this. eg.
set ZhongWenFont "ChineseFonts:kcm24hbf"
Any font size up to 32x32 should work though not all types have been
tested.
*********************
Getting GB and Big5 Text Files.
Chinese text files can be obtained by ftp from IFCSS (ifcss.org) and may
other ftp sites. Some sample files from there are included in the directory
!ccr.samples. Just drag them to the icon or the open window. There are LOTS
more at IFCSS, including novels, poems, articles, etc. etc. There are news
groups on the internet which have postings in Chinese too, but the program
doesn't support the 7-bit HZ coding scheme, though it will at some stage. If
you can't get access to any texts I can supply them.
************************************************************************************
Conditions of Use.
!ZhongWen is a Shareware program. If you want to use it seriously and support
the writing of good Chinese programs for RISC OS computers then please
register. Registered users will get a more powerful version with more
features - see below for planned improvements.
However, the non-registered version may be freely used by individuals or by
non-profit-making, non-fee-paying, educational establishments.
It may not be used by fee-paying schools, commercial institutions, companies,
or businesses without consulting me first and obtaining my written
permission. It may not be distributed for profit of any kind.
It may be freely distributed through non-commercial ftp sites on the
internet, provided all files - including this one - are supplied unchanged.
Individuals are free to distribute copies but it may not be distributed by
any profit-making organisation or any organisation which also deals in
commercial software.
The author will not be responsible in any way for any damage or loss of files
caused by use of this program. You use it entirely at your own risk.
*****************************************************************************
Registration.
Please send the name and address of the person/organisation to be registered.
If you have an e-mail address I can send upgrades to that and you can ignore
the charge for postage and discs. Feel free to include any other info about
yourself - phone etc. If you give details of your machine I may be able to
provide additional advice.
Individuals may register for a flat fee of 10 Pounds (UKP) plus 2 Pounds for
disc and postage costs.
You can then install the program on any machines in your own home and on a
portable if you have one.
Other Users - Schools, University Departments, Companies can obtain a licence
for installation on up to 20 machines for 50 Pounds.
In either case, I will supply an improved copy of the program, when it is
available and possibly other utilities too.
You can obtain future upgrades free of charge (just send a disc and postage
costs).
I will also provide full support for all registered users - if you have any
questions or problems with the program I'll try to answer them. If you want
other features added, I'll try to put them in the next release.
*****************************************************************************
My Address:
Luke Taylor.
(0/2) 38 Thornwood Avenue,
Glasgow,
G11 7QY,
Scotland.
e-mail gapv76@udcf.gla.ac.uk
*********************
Known Problems.
Most of the most serious bugs have been removed (I hope 8-). It was not
always so and thanks are due to the people who helped testing the program:
Keith Hopper (New Zealand)
Tom Marx and his girlfriend (Germany)
Robert Olley (England)
Joss Smith (England)
Peter Stephens (Hong Kong)
There are still a few, minor failings which I hope to fix. For example, the
program doesn't work properly in 256 colour modes due to a bad pixel
translation table which I'm too dumb to fix. If anyone finds any bugs or
has incompatibility problems please let me know.
*********************
Future Additions.
I hope to have the registered version ready later this year ('94). It will
hopefully contain some (or maybe even all) of the following features. If
anyone has any suggestions or opinions about which features are most needed
please let me know.
* Full editing support for Big5 files.
* Unicode and HZ implementation - the whole program may change to unicode at some
stage. Programming would certainly be easier if all characters were coded with
two bytes.
* More editing features - search, select, cut, paste, undo etc.
* Printing - I'm not sure how this will be implemented yet. If you
want to save character text as sprites, remember that you can use
!Paint's snapshot facility to copy part of the screen.
* Allow more options to be saved as default.
* Choice of different RISC OS fonts and sizes.
* Different Delete and Backspace option. (To keep Tom happy 8-).
* Implementation of Jason Williams' External Edit Protocol - supported
by !Zap and !StrongEd. This will enable the user to type in a buffer
of pinyin, as text, and then convert it to characters all at once.
This is much faster and less tiring than continually swapping between
pinyin and characters. Thanks to !Zap author Dominic Symes for suggesting
this.
* Allow use of 16x16 bitmaps (and other sizes). ** STOP PRESS ** Already implemented
* Matching of pinyin phrases - again speeds things up.
* Flashcard writing option or separate utility.
* Faster and more efficient cacheing of characters - a bit slow at present.
* Stroke input method(s) such as cangjie or wubi.
* User defined input methods.
* File conversion utilities, gb <-> big5. Already roughly written.
* Show possible English meanings of characters - I'm currently trying to
assemble a suitable dictionary file for this.
* Learn Chinese in two weeks option (Only kidding).
* Probably something else I've forgotten.
Sigh! Back to the thesis.
If I'd spent less time writing Chinese programs I might have finished
on time.
ÔÙ¼û!
Luke.