Auto update
This commit is contained in:
parent
4ee83775a9
commit
78fc216ae4
24 changed files with 175 additions and 111 deletions
Binary file not shown.
Binary file not shown.
|
|
@ -1,11 +1,11 @@
|
||||||
…
|
…
|
||||||
※
|
※
|
||||||
常用符號=,、。.?!;︰‧‥﹐﹒˙·‘’“”〝〞‵′〃~$%@&#*
|
常用符號=,、。.?!;:‧‥﹐﹒˙·‘’“”〝〞‵′〃~$%@&#*
|
||||||
左右括號=()「」〔〕{}〈〉『』《》【】﹙﹚﹝﹞﹛﹜
|
左右括號=()「」〔〕{}〈〉『』《》【】﹙﹚﹝﹞﹛﹜
|
||||||
上下括號=︵︶﹁﹂︹︺︷︸︿﹀﹃﹄︽︾︻︼
|
上下括號=︵︶﹁﹂︹︺︷︸︿﹀﹃﹄︽︾︻︼
|
||||||
希臘字母=αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
|
希臘字母=αβγδεζηθικλμνξοπρστυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
|
||||||
數學符號=+-×÷=≠≒∞±√<>﹤﹥≦≧∩∪ˇ⊥∠∟⊿㏒㏑∫∮∵∴╳﹢
|
數學符號=+-×÷=≠≒∞±√<>﹤﹥≦≧∩∪ˇ⊥∠∟⊿㏒㏑∫∮∵∴╳﹢
|
||||||
特殊圖形=↑↓←→↖↗↙↘㊣◎○●⊕⊙○●△▲☆★◇◆□■▽▼§¥〒¢£※♀♂
|
特殊圖形=↑↓←→↖↗↙↘㊣◎○●⊕⊙△▲☆★◇◆□■▽▼§¥〒¢£※♀♂
|
||||||
Unicode=♨☀☁☂☃♠♥♣♦♩♪♫♬☺☻
|
Unicode=♨☀☁☂☃♠♥♣♦♩♪♫♬☺☻
|
||||||
單線框=├─┼┴┬┤┌┐╞═╪╡│▕└┘╭╮╰╯
|
單線框=├─┼┴┬┤┌┐╞═╪╡│▕└┘╭╮╰╯
|
||||||
雙線框=╔╦╗╠═╬╣╓╥╖╒╤╕║╚╩╝╟╫╢╙╨╜╞╪╡╘╧╛
|
雙線框=╔╦╗╠═╬╣╓╥╖╒╤╕║╚╩╝╟╫╢╙╨╜╞╪╡╘╧╛
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,12 @@ extern "C" {
|
||||||
* specific functionality.
|
* specific functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
#include "chewingio.h"
|
#include "chewingio.h"
|
||||||
#include "global.h"
|
|
||||||
#include "mod_aux.h"
|
#include "mod_aux.h"
|
||||||
|
|
||||||
/* backward compatibility */
|
/* backward compatibility */
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYSTROKE_IGNORE 1
|
#define KEYSTROKE_IGNORE 1
|
||||||
#define KEYSTROKE_COMMIT 2
|
#define KEYSTROKE_COMMIT 2
|
||||||
|
|
@ -498,6 +502,30 @@ CHEWING_API int chewing_get_phraseChoiceRearward(const ChewingContext *ctx);
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
|
/*! \name Behavior of automatic learning after committing
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*@{*/
|
||||||
|
/**
|
||||||
|
* @brief Set the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @param mode AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API void chewing_set_autoLearn(ChewingContext *ctx, int mode);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @return AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API int chewing_get_autoLearn(const ChewingContext *ctx);
|
||||||
|
|
||||||
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
/*! \name Phonetic sequence in Chewing internal state machine
|
/*! \name Phonetic sequence in Chewing internal state machine
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -552,6 +580,8 @@ CHEWING_API ChewingContext *chewing_new2(const char *syspath,
|
||||||
void (*logger) (void *data, int level, const char *fmt, ...),
|
void (*logger) (void *data, int level, const char *fmt, ...),
|
||||||
void *loggerdata);
|
void *loggerdata);
|
||||||
|
|
||||||
|
CHEWING_API int chewing_phone_to_bopomofo(unsigned short phone, char *buf, unsigned short len);
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#endif /* _CHEWING_IO_H */
|
#endif /* _CHEWING_IO_H */
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#define SYMBOL_MODE 0
|
#define SYMBOL_MODE 0
|
||||||
#define FULLSHAPE_MODE 1
|
#define FULLSHAPE_MODE 1
|
||||||
#define HALFSHAPE_MODE 0
|
#define HALFSHAPE_MODE 0
|
||||||
|
#define AUTOLEARN_DISABLED 1
|
||||||
|
#define AUTOLEARN_ENABLED 0
|
||||||
|
|
||||||
/* specified to Chewing API */
|
/* specified to Chewing API */
|
||||||
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
||||||
|
|
@ -73,30 +75,6 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following macros are modified from GLIB.
|
|
||||||
* from GNU cpp Manual:
|
|
||||||
* C99 introduces the _Pragma operator. This feature addresses a major problem
|
|
||||||
* with `#pragma': being a directive, it cannot be produced as the result of
|
|
||||||
* macro expansion. _Pragma is an operator, much like sizeof or defined, and
|
|
||||||
* can be embedded in a macro.
|
|
||||||
*/
|
|
||||||
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic push") \
|
|
||||||
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic pop")
|
|
||||||
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (push)) \
|
|
||||||
__pragma (warning (disable : 4996))
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (pop))
|
|
||||||
#else
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS
|
|
||||||
# define END_IGNORE_DEPRECATIONS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MIN_SELKEY 1
|
#define MIN_SELKEY 1
|
||||||
#define MAX_SELKEY 10
|
#define MAX_SELKEY 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Chewing the state for input context during commit process
|
* @brief Chewing the state for input context during commit process
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -44,8 +44,12 @@ extern "C" {
|
||||||
* specific functionality.
|
* specific functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
#include "chewingio.h"
|
#include "chewingio.h"
|
||||||
#include "global.h"
|
|
||||||
#include "mod_aux.h"
|
#include "mod_aux.h"
|
||||||
|
|
||||||
/* backward compatibility */
|
/* backward compatibility */
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYSTROKE_IGNORE 1
|
#define KEYSTROKE_IGNORE 1
|
||||||
#define KEYSTROKE_COMMIT 2
|
#define KEYSTROKE_COMMIT 2
|
||||||
|
|
@ -498,6 +502,30 @@ CHEWING_API int chewing_get_phraseChoiceRearward(const ChewingContext *ctx);
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
|
/*! \name Behavior of automatic learning after committing
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*@{*/
|
||||||
|
/**
|
||||||
|
* @brief Set the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @param mode AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API void chewing_set_autoLearn(ChewingContext *ctx, int mode);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @return AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API int chewing_get_autoLearn(const ChewingContext *ctx);
|
||||||
|
|
||||||
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
/*! \name Phonetic sequence in Chewing internal state machine
|
/*! \name Phonetic sequence in Chewing internal state machine
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -552,6 +580,8 @@ CHEWING_API ChewingContext *chewing_new2(const char *syspath,
|
||||||
void (*logger) (void *data, int level, const char *fmt, ...),
|
void (*logger) (void *data, int level, const char *fmt, ...),
|
||||||
void *loggerdata);
|
void *loggerdata);
|
||||||
|
|
||||||
|
CHEWING_API int chewing_phone_to_bopomofo(unsigned short phone, char *buf, unsigned short len);
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#endif /* _CHEWING_IO_H */
|
#endif /* _CHEWING_IO_H */
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#define SYMBOL_MODE 0
|
#define SYMBOL_MODE 0
|
||||||
#define FULLSHAPE_MODE 1
|
#define FULLSHAPE_MODE 1
|
||||||
#define HALFSHAPE_MODE 0
|
#define HALFSHAPE_MODE 0
|
||||||
|
#define AUTOLEARN_DISABLED 1
|
||||||
|
#define AUTOLEARN_ENABLED 0
|
||||||
|
|
||||||
/* specified to Chewing API */
|
/* specified to Chewing API */
|
||||||
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
||||||
|
|
@ -73,30 +75,6 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following macros are modified from GLIB.
|
|
||||||
* from GNU cpp Manual:
|
|
||||||
* C99 introduces the _Pragma operator. This feature addresses a major problem
|
|
||||||
* with `#pragma': being a directive, it cannot be produced as the result of
|
|
||||||
* macro expansion. _Pragma is an operator, much like sizeof or defined, and
|
|
||||||
* can be embedded in a macro.
|
|
||||||
*/
|
|
||||||
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic push") \
|
|
||||||
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic pop")
|
|
||||||
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (push)) \
|
|
||||||
__pragma (warning (disable : 4996))
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (pop))
|
|
||||||
#else
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS
|
|
||||||
# define END_IGNORE_DEPRECATIONS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MIN_SELKEY 1
|
#define MIN_SELKEY 1
|
||||||
#define MAX_SELKEY 10
|
#define MAX_SELKEY 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Chewing the state for input context during commit process
|
* @brief Chewing the state for input context during commit process
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -44,8 +44,12 @@ extern "C" {
|
||||||
* specific functionality.
|
* specific functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
#include "chewingio.h"
|
#include "chewingio.h"
|
||||||
#include "global.h"
|
|
||||||
#include "mod_aux.h"
|
#include "mod_aux.h"
|
||||||
|
|
||||||
/* backward compatibility */
|
/* backward compatibility */
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYSTROKE_IGNORE 1
|
#define KEYSTROKE_IGNORE 1
|
||||||
#define KEYSTROKE_COMMIT 2
|
#define KEYSTROKE_COMMIT 2
|
||||||
|
|
@ -498,6 +502,30 @@ CHEWING_API int chewing_get_phraseChoiceRearward(const ChewingContext *ctx);
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
|
/*! \name Behavior of automatic learning after committing
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*@{*/
|
||||||
|
/**
|
||||||
|
* @brief Set the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @param mode AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API void chewing_set_autoLearn(ChewingContext *ctx, int mode);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @return AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API int chewing_get_autoLearn(const ChewingContext *ctx);
|
||||||
|
|
||||||
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
/*! \name Phonetic sequence in Chewing internal state machine
|
/*! \name Phonetic sequence in Chewing internal state machine
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -552,6 +580,8 @@ CHEWING_API ChewingContext *chewing_new2(const char *syspath,
|
||||||
void (*logger) (void *data, int level, const char *fmt, ...),
|
void (*logger) (void *data, int level, const char *fmt, ...),
|
||||||
void *loggerdata);
|
void *loggerdata);
|
||||||
|
|
||||||
|
CHEWING_API int chewing_phone_to_bopomofo(unsigned short phone, char *buf, unsigned short len);
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#endif /* _CHEWING_IO_H */
|
#endif /* _CHEWING_IO_H */
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#define SYMBOL_MODE 0
|
#define SYMBOL_MODE 0
|
||||||
#define FULLSHAPE_MODE 1
|
#define FULLSHAPE_MODE 1
|
||||||
#define HALFSHAPE_MODE 0
|
#define HALFSHAPE_MODE 0
|
||||||
|
#define AUTOLEARN_DISABLED 1
|
||||||
|
#define AUTOLEARN_ENABLED 0
|
||||||
|
|
||||||
/* specified to Chewing API */
|
/* specified to Chewing API */
|
||||||
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
||||||
|
|
@ -73,30 +75,6 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following macros are modified from GLIB.
|
|
||||||
* from GNU cpp Manual:
|
|
||||||
* C99 introduces the _Pragma operator. This feature addresses a major problem
|
|
||||||
* with `#pragma': being a directive, it cannot be produced as the result of
|
|
||||||
* macro expansion. _Pragma is an operator, much like sizeof or defined, and
|
|
||||||
* can be embedded in a macro.
|
|
||||||
*/
|
|
||||||
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic push") \
|
|
||||||
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic pop")
|
|
||||||
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (push)) \
|
|
||||||
__pragma (warning (disable : 4996))
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (pop))
|
|
||||||
#else
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS
|
|
||||||
# define END_IGNORE_DEPRECATIONS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MIN_SELKEY 1
|
#define MIN_SELKEY 1
|
||||||
#define MAX_SELKEY 10
|
#define MAX_SELKEY 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Chewing the state for input context during commit process
|
* @brief Chewing the state for input context during commit process
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -44,8 +44,12 @@ extern "C" {
|
||||||
* specific functionality.
|
* specific functionality.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
#include "chewingio.h"
|
#include "chewingio.h"
|
||||||
#include "global.h"
|
|
||||||
#include "mod_aux.h"
|
#include "mod_aux.h"
|
||||||
|
|
||||||
/* backward compatibility */
|
/* backward compatibility */
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYSTROKE_IGNORE 1
|
#define KEYSTROKE_IGNORE 1
|
||||||
#define KEYSTROKE_COMMIT 2
|
#define KEYSTROKE_COMMIT 2
|
||||||
|
|
@ -498,6 +502,30 @@ CHEWING_API int chewing_get_phraseChoiceRearward(const ChewingContext *ctx);
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
|
/*! \name Behavior of automatic learning after committing
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*@{*/
|
||||||
|
/**
|
||||||
|
* @brief Set the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @param mode AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API void chewing_set_autoLearn(ChewingContext *ctx, int mode);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the behavior of automatic learning
|
||||||
|
*
|
||||||
|
* @param ctx
|
||||||
|
* @return AUTOLEARN_ENABLED or AUTOLEARN_DISABLED
|
||||||
|
*/
|
||||||
|
CHEWING_API int chewing_get_autoLearn(const ChewingContext *ctx);
|
||||||
|
|
||||||
|
/*@}*/
|
||||||
|
|
||||||
|
|
||||||
/*! \name Phonetic sequence in Chewing internal state machine
|
/*! \name Phonetic sequence in Chewing internal state machine
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -552,6 +580,8 @@ CHEWING_API ChewingContext *chewing_new2(const char *syspath,
|
||||||
void (*logger) (void *data, int level, const char *fmt, ...),
|
void (*logger) (void *data, int level, const char *fmt, ...),
|
||||||
void *loggerdata);
|
void *loggerdata);
|
||||||
|
|
||||||
|
CHEWING_API int chewing_phone_to_bopomofo(unsigned short phone, char *buf, unsigned short len);
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
#endif /* _CHEWING_IO_H */
|
#endif /* _CHEWING_IO_H */
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@
|
||||||
#define SYMBOL_MODE 0
|
#define SYMBOL_MODE 0
|
||||||
#define FULLSHAPE_MODE 1
|
#define FULLSHAPE_MODE 1
|
||||||
#define HALFSHAPE_MODE 0
|
#define HALFSHAPE_MODE 0
|
||||||
|
#define AUTOLEARN_DISABLED 1
|
||||||
|
#define AUTOLEARN_ENABLED 0
|
||||||
|
|
||||||
/* specified to Chewing API */
|
/* specified to Chewing API */
|
||||||
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
#if defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)
|
||||||
|
|
@ -73,30 +75,6 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The following macros are modified from GLIB.
|
|
||||||
* from GNU cpp Manual:
|
|
||||||
* C99 introduces the _Pragma operator. This feature addresses a major problem
|
|
||||||
* with `#pragma': being a directive, it cannot be produced as the result of
|
|
||||||
* macro expansion. _Pragma is an operator, much like sizeof or defined, and
|
|
||||||
* can be embedded in a macro.
|
|
||||||
*/
|
|
||||||
#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic push") \
|
|
||||||
_Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
_Pragma ("GCC diagnostic pop")
|
|
||||||
#elif defined (_MSC_VER) && (_MSC_VER >= 1500)
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (push)) \
|
|
||||||
__pragma (warning (disable : 4996))
|
|
||||||
# define END_IGNORE_DEPRECATIONS \
|
|
||||||
__pragma (warning (pop))
|
|
||||||
#else
|
|
||||||
# define BEGIN_IGNORE_DEPRECATIONS
|
|
||||||
# define END_IGNORE_DEPRECATIONS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define MIN_SELKEY 1
|
#define MIN_SELKEY 1
|
||||||
#define MAX_SELKEY 10
|
#define MAX_SELKEY 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,11 @@
|
||||||
* \author libchewing Core Team
|
* \author libchewing Core Team
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "global.h"
|
#ifdef WITH_RUST
|
||||||
|
# include "chewing_rs.h"
|
||||||
|
#else
|
||||||
|
# include "global.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Chewing the state for input context during commit process
|
* @brief Chewing the state for input context during commit process
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -2,5 +2,5 @@
|
||||||
"cmake": "3.22.1",
|
"cmake": "3.22.1",
|
||||||
"ndk": " 25.2.9519653",
|
"ndk": " 25.2.9519653",
|
||||||
"platform": 23,
|
"platform": 23,
|
||||||
"prebuilder": "ebcc7fa3c2658d8bf4b884661528d4e9cafbc415"
|
"prebuilder": "7260db47ae26bb65111df1d2aa8b29dd66d7d988"
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue