Apple macOS "Sogou Pinyin Input Method" custom double spelling program tutorial

Recently, I was playing Black Apple. As a Shuangpin user, I tried to install the Mac version of Sogou input method. However, the Shuangpin solution I used was a solution I modified from Smart ABC many years ago. It has been used for many years and I can't change it. When I tried to open the input method settings, I was surprised to find:

The Sogou input method does not have a custom Shuangpin function, and can only choose several built-in solutions.

After searching the Internet for a while, netizens all think that the macOS version of the Sogou input method cannot customize Shuangpin. Just when I was about to switch to other input methods, I suddenly found out a method and successfully customized the Shuangpin scheme. Let me try to introduce it in detail.

Step One: Install Your Favorite Text Editor

Here I am using Visual Studio Code.

Step 2: Enter the specified directory in the Finder

In the Finder menu, click Go -> Go to Folder , and enter the following directory:

/Library/Input Methods/SogouInput.app/Contents/Resources/ShuangPinSchemes

The content in the file is the scheme you see in the input method settings.

Step 3: Open one of the schemes you don’t use with a text editor and modify the content

It is useless to create a new file in this folder, but we can modify the content of the file to achieve the effect of customizing the Shuangpin scheme. For example, if I modify the content of ABC.ini, then when I use the "Smart ABC" double-fighting plan, I actually use my own modified plan.

Therefore, you can choose a double-fighting plan that you don't usually use, and work on it. The file format is as follows:

[metadata]
title=智能ABC

[声母]
ch=U
sh=V
zh=I
empty=O

[韵母]
ai=L
an=J
ang=H
...
ve=V

[零声母音节的韵母]
a=OA
ai=OL
an=OJ
...
ou=OB

The content in the file is actually the correspondence between the initials and finals in the original Chinese pinyin and the letters in the Shuangpin scheme. It is very easy to understand, so I won't explain too much.

Things to note are:

  • Pro-test, modifying the title in metadata is useless .
  • The permission of the ShuangPinSchemes folder in Sogou Input Method is " staffuser group can read and write", and the user you are using belongs to staffthe user group, so you don't need to worry about permission issues.
  • Modifying this location does not require re-signing the application, which saves a lot of trouble.

Finally, after saving this file, the custom Shuangpin solution is complete.

Step 4: Set your magically modified file as the current Shuangpin scheme

Open the preference settings of Sogou input method and modify the Shuangpin scheme.

How about it? it's actually really easy. In the mobile version of Baidu input method, there is a bug in the Shuangpin scheme that comes with it. It can also be fixed by modifying the ini to customize the Shuangpin scheme. It can be said that this is a very general solution. In the future, with the custom Shuangpin scheme and the auxiliary code of the Sogou input method, I believe that even Sogou can complete the daily work.

Guess you like

Origin blog.csdn.net/llbbzh/article/details/128394683