Difference between revisions of "Autoeng"

From Fcitx
Jump to navigation Jump to search
m
m (Text replacement - "<translate1>" to "<translate>")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<translate>
 
<translate>
 +
 +
<!--T:1-->
 
{{infobox module
 
{{infobox module
 
|name                  = autoeng
 
|name                  = autoeng
Line 9: Line 11:
 
}}
 
}}
  
== Intro ==
+
== Intro == <!--T:2-->
 
Autoeng is a module that can switch Fcitx to a temporary english mode, currently it's used with most Chinese input method.
 
Autoeng is a module that can switch Fcitx to a temporary english mode, currently it's used with most Chinese input method.
  
== Usage ==
+
== Usage == <!--T:3-->
 
There are two ways to trigger autoeng mode.
 
There are two ways to trigger autoeng mode.
  
 +
<!--T:4-->
 
* Enter a upper case character.
 
* Enter a upper case character.
 
* Enter a character and the [[Special:myLanguage/Raw buffer|Raw buffer]] is matched with a string in the list.
 
* Enter a character and the [[Special:myLanguage/Raw buffer|Raw buffer]] is matched with a string in the list.
  
 +
<!--T:5-->
 
The string list is placed under data/AutoEng.dat. By default it contains string such as "www.". For example, when you are typing "www.", and currently it's in [[Special:myLanguage/Built-in Pinyin|Pinyin]], it will trigger the autoeng mode.
 
The string list is placed under data/AutoEng.dat. By default it contains string such as "www.". For example, when you are typing "www.", and currently it's in [[Special:myLanguage/Built-in Pinyin|Pinyin]], it will trigger the autoeng mode.
  
== Disable it from code ==
+
== Disable it from code == <!--T:6-->
 
If your input method is conflicts with this function, you can use
 
If your input method is conflicts with this function, you can use
  
     boolean flag = false;
+
     <!--T:7-->
 +
boolean flag = false;
 
     FcitxInstanceSetContext(inst, CONTEXT_DISABLE_AUTOENG, &flag);
 
     FcitxInstanceSetContext(inst, CONTEXT_DISABLE_AUTOENG, &flag);
  
 +
<!--T:8-->
 
in your input method Init function.
 
in your input method Init function.
  
 +
<!--T:9-->
 
[[Category:Addon]]
 
[[Category:Addon]]
 
[[Category:Built-in Addon]]
 
[[Category:Built-in Addon]]
 
</translate>
 
</translate>

Latest revision as of 22:54, 2 February 2016

autoeng
Version 4.2.1
Written In C
License GPLv2
Type Module
Website http://code.google.com/p/fcitx

Intro

Autoeng is a module that can switch Fcitx to a temporary english mode, currently it's used with most Chinese input method.

Usage

There are two ways to trigger autoeng mode.

  • Enter a upper case character.
  • Enter a character and the Raw buffer is matched with a string in the list.

The string list is placed under data/AutoEng.dat. By default it contains string such as "www.". For example, when you are typing "www.", and currently it's in Pinyin, it will trigger the autoeng mode.

Disable it from code

If your input method is conflicts with this function, you can use

   boolean flag = false;
   FcitxInstanceSetContext(inst, CONTEXT_DISABLE_AUTOENG, &flag);

in your input method Init function.