Difference between revisions of "Punctuation"
Weng Xuetian (talk | contribs) (Created page with "<languages /> <translate> {{Infobox module | name = Punctutation | version = 4.2.1 | programming language = C | license ...") |
Weng Xuetian (talk | contribs) m (Text replacement - "<translate1>" to "<translate>") |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <languages /> | + | <languages/> |
+ | |||
<translate> | <translate> | ||
+ | <!--T:1--> | ||
{{Infobox module | {{Infobox module | ||
| name = Punctutation | | name = Punctutation | ||
Line 10: | Line 12: | ||
}} | }} | ||
− | == Intro == | + | == Intro == <!--T:2--> |
Punctuation is a module that can convert punctuation to other format punctuation. For example, in simplified Chinese, people usually use "," instead of ",". | Punctuation is a module that can convert punctuation to other format punctuation. For example, in simplified Chinese, people usually use "," instead of ",". | ||
− | == Configuration == | + | == Configuration == <!--T:3--> |
=== Path === | === Path === | ||
− | The punctuation is based on language of input method. For example, Simplified Chinese will use data/punc.mb.zh_CN and traditional Chinese will use data/punc.mb.zh_TW. | + | The punctuation is based on language of input method. For example, Simplified Chinese will use data/punc.mb.zh_CN and traditional Chinese will use data/punc.mb.zh_TW. (Base Path for user is ~/.config/fcitx, and system path usually will be /usr/share/fcitx ), so for example complete user path for Simplified Chinese will be ~/.config/fcitx/data/punc.mb.zh_CN. |
+ | |||
+ | === Format === <!--T:4--> | ||
+ | Following is the content of data/punc.mb.zh_CN in Fcitx. As you can see, you need a single character in the first column, and one or two space separated string after that, the file encoding is required to be UTF-8. If there is two string, for example " “ ”, the first time you use it will be “ and the second time will be ”. | ||
+ | |||
+ | <!--T:5--> | ||
+ | . 。 | ||
+ | , , | ||
+ | ? ? | ||
+ | " “ ” | ||
+ | : : | ||
+ | ; ; | ||
+ | ' ‘ ’ | ||
+ | < 《 | ||
+ | > 》 | ||
+ | \ 、 | ||
+ | ! ! | ||
+ | $ ¥ | ||
+ | ^ …… | ||
+ | * × | ||
+ | _ —— | ||
+ | ( ( | ||
+ | ) ) | ||
+ | [ · | ||
+ | ] [ ] | ||
− | |||
− | |||
− | + | <!--T:6--> | |
− | + | [[Category:Built-in Addon]] | |
− | + | [[Category:Addon]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</translate> | </translate> |
Latest revision as of 22:54, 2 February 2016
Version | 4.2.1 |
---|---|
Written In | C |
License | GPLv2 |
Type | Module |
Intro
Punctuation is a module that can convert punctuation to other format punctuation. For example, in simplified Chinese, people usually use "," instead of ",".
Configuration
Path
The punctuation is based on language of input method. For example, Simplified Chinese will use data/punc.mb.zh_CN and traditional Chinese will use data/punc.mb.zh_TW. (Base Path for user is ~/.config/fcitx, and system path usually will be /usr/share/fcitx ), so for example complete user path for Simplified Chinese will be ~/.config/fcitx/data/punc.mb.zh_CN.
Format
Following is the content of data/punc.mb.zh_CN in Fcitx. As you can see, you need a single character in the first column, and one or two space separated string after that, the file encoding is required to be UTF-8. If there is two string, for example " “ ”, the first time you use it will be “ and the second time will be ”.
. 。 , , ? ? " “ ” : : ; ; ' ‘ ’ < 《 > 》 \ 、 ! ! $ ¥ ^ …… * × _ —— ( ( ) ) [ · ] [ ]