Difference between revisions of "QuickPhrase"

From Fcitx
Jump to navigation Jump to search
(Created page with "<languages /> <translate> {{Infobox module | name = Quick Phrase | version = 4.2.1 | programming language = C | license ...")
 
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages />
+
<languages/>
  
 
<translate>
 
<translate>
 +
 +
<!--T:1-->
 
{{Infobox module
 
{{Infobox module
 
| name                    = Quick Phrase
 
| name                    = Quick Phrase
| version                = 4.2.1
+
| version                = 4.2.7
 
| programming language    = C
 
| programming language    = C
 
| license                = GPLv2
 
| license                = GPLv2
Line 10: Line 12:
 
}}
 
}}
  
== Intro ==
+
== Intro == <!--T:2-->
Quick Phrase is a module provides a mode that triggered by grave or semicolon (by default is semicolon). Generally, it can be used as a temporary mode for type English, but it can also read from a configuration file and be used like [[Special:myLanguage/Table|Table]] input method.
+
Quick Phrase provides a mode triggered by hot key. It can be used as a temporary mode for type English (with spell hint provided by the fcitx-spell module), as well as a [[Special:myLanguage/Table|Table]] input method which reads from a configuration file.
  
== Configuration ==
+
== Configuration == <!--T:3-->
=== Path ===
 
The file is under data/QuickPhrase.mb
 
  
=== Format ===
+
=== Trigger Key === <!--T:11-->
Here is an example file for Quick Phrase, contains some [[wikipedia:Emoji|Emoji]] and [[wikipedia:Latex|Latex]] style method to type symbol.
+
In some Chinese input method, it's semicolon due to historical reason, if you want to use it every where, you'd better change configuration, the hotkey in configuration is global to any input method. But hotkey world is being occupied by so many application so fcitx doesn't introduce new key binding by default carelessly, but one of candidate can be Super+Grave (`).
  
  smell (・∀・)
+
=== Path === <!--T:12-->
 +
The file is a UTF-8 text file under ~/.config/fcitx/data/QuickPhrase.mb, if there is no such file or parent directory, create a new one (and necessary parent directory) yourself.
 +
 
 +
=== Format === <!--T:4-->
 +
Here is an example file for Quick Phrase, contains some [[wikipedia:Emoji|Emoji]] and [[wikipedia:LaTeX|LaTeX]] style method to type symbol.
 +
 
 +
<!--T:10-->
 +
Browse here for more example [[:Category:QuickPhrase]].
 +
 
 +
  <!--T:5-->
 +
smile (・∀・)
 
  kira (ゝ∀・)
 
  kira (ゝ∀・)
 
  angry ( ̄ー ̄)
 
  angry ( ̄ー ̄)
Line 42: Line 52:
 
  frac78 ⅞
 
  frac78 ⅞
  
 
+
== Disable it from code == <!--T:6-->
=== Disable it from code ===
 
 
If you find quickphrase conflict with your input method, you can use  
 
If you find quickphrase conflict with your input method, you can use  
  
  boolean flag = false;
+
  <!--T:7-->
 +
boolean flag = false;
 
  FcitxInstanceSetContext(inst, CONTEXT_DISABLE_QUICKPHRASE, &flag);
 
  FcitxInstanceSetContext(inst, CONTEXT_DISABLE_QUICKPHRASE, &flag);
  
 +
<!--T:8-->
 
in your input method Init function.  
 
in your input method Init function.  
  
 +
<!--T:9-->
 
[[Category:Built-in Addon]]
 
[[Category:Built-in Addon]]
 
[[Category:Addon]]
 
[[Category:Addon]]
 +
[[Category:QuickPhrase]]
  
 
</translate>
 
</translate>

Latest revision as of 15:51, 1 May 2016

Other languages:
English • ‎中文(简体)‎


Quick Phrase
Version 4.2.7
Written In C
License GPLv2
Type Module

Intro

Quick Phrase provides a mode triggered by hot key. It can be used as a temporary mode for type English (with spell hint provided by the fcitx-spell module), as well as a Table input method which reads from a configuration file.

Configuration

Trigger Key

In some Chinese input method, it's semicolon due to historical reason, if you want to use it every where, you'd better change configuration, the hotkey in configuration is global to any input method. But hotkey world is being occupied by so many application so fcitx doesn't introduce new key binding by default carelessly, but one of candidate can be Super+Grave (`).

Path

The file is a UTF-8 text file under ~/.config/fcitx/data/QuickPhrase.mb, if there is no such file or parent directory, create a new one (and necessary parent directory) yourself.

Format

Here is an example file for Quick Phrase, contains some Emoji and LaTeX style method to type symbol.

Browse here for more example Category:QuickPhrase.

smile (・∀・)
kira (ゝ∀・)
angry ( ̄ー ̄)
angry ヽ(`д´)ノ
cry (つД`)
shock (°Д°)
satisfy ( ̄ˇ ̄)
eeee 诶诶诶诶(((( ;°д°))))诶诶
frac14 ¼
frac12 ½
frac34 ¾
frac13 ⅓
frac23 ⅔
frac15 ⅕
frac25 ⅖
frac35 ⅗
frac45 ⅘
frac16 ⅙
frac56 ⅚
frac58 ⅝
frac78 ⅞

Disable it from code

If you find quickphrase conflict with your input method, you can use

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

in your input method Init function.