diff --git a/honoka-plugins/anthy/src/anthyconversion.cpp b/honoka-plugins/anthy/src/anthyconversion.cpp index f5c7ad0..40d9d98 100644 --- a/honoka-plugins/anthy/src/anthyconversion.cpp +++ b/honoka-plugins/anthy/src/anthyconversion.cpp @@ -46,6 +46,10 @@ current = false; anthy_init(); context = anthy_create_context(); + #ifdef HAS_ANTHY_CONTEXT_SET_ENCODING + // anthy-7929以上の逆変換制御を利用。 + anthy_set_reconversion_mode(context,ANTHY_RECONVERT_DISABLE); + #endif } @@ -70,7 +74,9 @@ } int AnthyConversion::ren_conversion() { + #ifndef HAS_ANTHY_CONTEXT_SET_ENCODING if (!current) return 0; + #endif /* WideString yt; for(int i = 0;i < yomiText.length();i ++) { @@ -143,7 +149,11 @@ } bool AnthyConversion::connect() { + #ifndef HAS_ANTHY_CONTEXT_SET_ENCODING return current; + #else + return true; + #endif } void AnthyConversion::disconnect() { return;