| |

VerySource

 Forgot password?
 Register
Search
View: 553|Reply: 3

A question about the input method generator

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-27 23:20:01
| Show all posts |Read mode
Using the input method generator (imegen.exe) can be more convenient to create special input methods, but I am a bit unclear about the information in the [Rule] field in the input code table. Reversed into the input code table file, the content of the beginning part is as follows, which hero can explain the meaning of the [Rule] field?
Thank you so much ~
[Description]
Name = Quan Pin
MaxCodes = 12
MaxElement = 1
UsedCodes = abcdefghijklmnopqrstuvwxyz
WildChar =?
NumRules = 3
[Rule]
ca4 = p10 + p20 + p30 + p40
ce2 = p10 + p20
ce3 = p10 + p20 + p30
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-2-22 21:45:01
| Show all posts
I have found the usage, haha,

Some of the original text is as follows:

3 Stopwatch original file format
The original code table file is a text file with the extension .TXT. It contains all the feature information and encoding rule information of the target input method. It is a complete description of the target input method.
The stopwatch source file must be in Unicode file format. To convert the original stopwatch file to Unicode format, you can use Notepad in the Attachment to open it, select the Save As command in the File menu, and enter the Save As dialog box. Select the "Save as Unicode" checkbox and click the "Save" button.
The original code table file is divided into three sections: Description, Rule, and Text sections.
· [Description] section
This section describes the basic properties of the target input method, including six entries:
Entry Meaning Description
Name Name of the target input method After the computer is installed, this custom name appears in the Input Method Name box on the prompt line.
MaxCode The maximum encoding length of the target input method. The user sets the maximum encoding length. When the number of input keys reaches the maximum code length, the program searches for the corresponding Chinese language and displays Chinese language. At this time, if there is a double code, the user can use "0" ~ "9" or the mouse to select input. For encodings with a maximum code length that is less than the maximum, use the space bar as the end.
Information element of MaxElement target input method 1: single character 2: multiple character
UsedCodes The set of symbols of the target input method constitutes the basic elements of the encoding. Some encodings use the English letters "a" ~ "z" as symbols, and some use ten Arabic numbers as symbols. Some special characters cannot be used as symbols, such as "<", ">", "-", "=", "+", etc.
Query key of the WildChar target input method If you are not sure about one of the encoded keys during entry, you can use the query key to quickly find the required word or word. Generally use "z" or "?" To define the query key. The user can also specify the characters he is used to as the query key. The query key is only valid for one code point. You cannot query two or more code points at the same time.
Number of word formation rules for NumRules target input method
· [Rule] section
This section describes the word formation rules of the target input method. The word formation rule is composed of several word formation rule expressions, and the definition of the word formation rule expression is given below:
c [Logical character] [Word length] = {[Serial ID] [Chinese character serial number] [Code serial number] + {[Serial ID] [Chinese character serial number] [Code serial number] + {[Serial ID] [Chinese character serial number] [ Code number] + ...}}}
Explanation:
Word formation c
Logical symbol e: equal to a: greater than or equal to
Word length is represented by '1'-'f', range 1-15
Serial number identification p: positive order n: reverse order
Chinese character serial number Use '1'-'f' to represent the 1st to 15th characters, respectively
Code sequence number The sequence code sequence number of this word, value range: '0'-MaxCodes. '0' means take all encodings of the word; for words without word-formation codes, take the Chinese character encoding.
Example:
Ce2 = p11 + p12 + p21 + p22 represents two-word words, take the first and second codes of the first word, and the first and second codes of the second word.
Ce2 = p10 + p20 represents a two-word word, taking all the codes of the first word and all the codes of the second word.
Ca4 = p11 + p21 + p31 + n11 means four or more words, take the first code of the first word, the first code of the second word, the first code of the third word, and the first to last word First yard.
· [Text] section
Give specific coding table.
Each line defines a Chinese character / encoding mapping in the format "Chinese character string + encoded character string". There are no characters between the Chinese character string and the encoded character string, and the order is sorted by the encoded character string. The characters in the encoded string must be the characters defined in the symbol set.
Sample stopwatch file
[Description]
Name = Zheng Ma
MaxCodes = 4
MaxElement = 2
UsedCodes = abcdefghijklmnopqrstuvwxyz
WildChar =?
NumRules = 3
 
[Rule]
ce2 = p11 + p12 + p21 + p22
ce3 = p11 + p21 + p32 + p31
ca4 = p11 + p21 + p31 + p41
 
[Text]
A av
Aa
Can sing and cry aaav
Aaez
Helpless aagn
 
·prompt
The original code table file can only have the [Text] section, and [Description] and [Rule] can be omitted and left to fill in when creating an input method.
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-5-2 21:15:01
| Show all posts
Now there is still a question, how to install the code table into the system after generating the code table file (* .mb)?
Which one with experience can prompt one or two?
Thanks ~~
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-9-3 17:45:01
| Show all posts
After the code table file (*.mb) is generated, how to install the code table into the system?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list