/*
Copyright 1990-2003 Sun Microsystems, Inc. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial
portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF
ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES.


Except as contained in this notice, the names of The Open Group and/or
Sun Microsystems, Inc. shall not be used in advertising or otherwise to
promote the sale, use or other dealings in this Software without prior
written authorization from The Open Group and/or Sun Microsystems,
Inc., as applicable.


X Window System is a trademark of The Open Group

OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF
logo, LBX, X Window System, and Xinerama are trademarks of the Open
Group. All other trademarks and registered trademarks mentioned herein
are the property of their respective owners. No right, title or
interest in or to any trademark, service mark, logo or trade name of
Sun Microsystems, Inc. or its licensors is granted.

*/

#ifndef _CTFILE_H_
#define _CTFILE_H_

/**********************************************************************

                Structure Of CodeTable Binary File  

        1.   CodeTable Flag:        		"CODETABLE"
        2.   CodeTable Version:     		
	3.   CodeTable Header Structure:	
	4.   CodeTable Node List:
	5.   CodeTable HanZi List:
	6.   CodeTable Key Prompt List:
	7.   CodeTable Function Key List:
	8.   Comment 

**********************************************************************/

/* Default Defination */
#define DEFAULT_CODETABLE_UUID  "11111111-1111-1111-1111-111111111111"
#define DEFAULT_CODETABLE_VERSION    "1"
#define DEFAULT_CODETABLE_AUTHOR     "Ervin Yan <Ervin.Yan@sun.com>"
#define DEFAULT_CODETABLE_COPYRIGHT  "Copyright (c) 2004 Sun Microsystems"
#define DEFAULT_CODETABLE_HINTING    "Codetable input method"
#define DEFAULT_CODETABLE_NAME  "ASCII"
#define DEFAULT_USEDCODES  	"abcdefghijklmnopqrstuvwxyz"
#define DEFAULT_WILDCHARS  	"?"
#define DEFAULT_MAXCODES  	4

/* Section Name String */
#define DESCRIPTION_STR		"Description"
#define COMMENT_STR		"Comment"
#define KEYPROMPT_STR		"Key_Prompt"
#define FUNCTIONKEY_STR		"Function_Key"
#define PHRASE_STR		"Phrase"
#define SINGLE_STR		"Single"
#define OPTIONS_STR		"Options"

/* Description Section Items Name */
#define UUID_STR		"UUID:"
#define VERSION_STR		"Version:"
#define ICONPATH_STR		"IconPath:"
#define AUTHOR_STR		"Author:"
#define COPYRIGHT_STR		"Copyright:"
#define HINTING_STR		"Hinting:"
#define NAME_STR		"Name:"
#define ENCODE_STR		"Encode:"
#define WILDCHAR_STR		"WildChar:"
#define USEDCODES_STR		"UsedCodes:"
#define MAXCODES_STR		"MaxCodes:"

/* Function Key Section Items Name */
#define PAGEUP_KEY_STR		"PageUp:"
#define PAGEDOWN_KEY_STR	"PageDown:"
#define BACKSPACE_KEY_STR	"BackSpace:"
#define CLEARALL_KEY_STR	"ClearAll:"

/* Options Section Items Name */
#define DISPLAYONSPOT_MODE_STR	"DisplayOnSpot_Mode:"
#define SELECTKEY_MODE_STR	"SelectKey_Mode:"
#define HELPINFO_MODE_STR	"HelpInfo_Mode:"
#define KEYPROMPT_MODE_STR	"KeyPrompt_Mode:"
#define KEYBYKEY_MODE_STR	"KeyByKey_Mode:"
#define AUTOSELECT_MODE_STR	"AutoSelect_Mode:"

/* Options value strings for DisplayOnSpot_Mode,HelpInfo_Mode,and          */
/*                           KeyPrompt_Mode,KeyByKey_Mode,Autoselect_Mode  */
#define OPTION_OPEN_STR		"ON"
#define OPTION_CLOSE_STR	"OFF"

/* Options value strings for SelectKey_Mode */
#define NUMBER0_MODE_STR	"Number0"
#define NUMBER_MODE_STR		"Number"
#define LOWER_MODE_STR		"Lower"
#define UPPER_MODE_STR		"Upper"

/* Comment Section Defination */
#define MAX_COMMENT_LEN		10240	/* 10K comment, large enough? */

#endif /* _CT_FILE_H_ */
