当前位置:   article > 正文

python编程输入法_PIME:用于利用Python开发Windows的输入法

pime安装设置

PIME

68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6a7538633232356e74397167786565653f7376673d7472756568747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f45617379494d452f50494d452e737667

Implement input methods easily for Windows via Text Services Framework:

LibIME contains a library which aims to be a simple wrapper for Windows Text Service Framework (TSF).

PIMETextService contains an backbone implementation of Windows text service for using libIME.

The python server part requires python 3.x and pywin32 package.

All parts are licensed under GNU LGPL v2.1 license.

Development

Tool Requirements

How to Build

Get source from github. git clone https://github.com/EasyIME/PIME.git

cd PIME

git submodule update --init

Use the following CMake commands to generate Visual Studio project. cmake -G "Visual Studio 16 2019" -A Win32

cmake -G "Visual Studio 16 2019" -A x64

Open generated project with Visual Studio and build it.

TSF References

Windows ACL (Access Control List) references

Install

Copy PIMETextService.dll to C:\Program Files (X86)\PIME\x86.

Copy PIMETextService.dll to C:\Program Files (X86)\PIME\x64.

Copy the folder python to C:\Program Files (X86)\PIME\

Copy the folder node to C:\Program Files (X86)\PIME\

Use regsvr32 to register PIMETextService.dll. 64-bit system need to register both 32-bit and 64-bit PIMETextService.dll regsvr32 "C:\Program Files (X86)\PIME\x86\PIMETextService.dll" (run as administrator)

regsvr32 "C:\Program Files (X86)\PIME\x64\PIMETextService.dll" (run as administrator)

NOTICE: the regsvr32 command needs to be run as Administrator. Otherwise you'll get access denied error.

In Windows 8, if you put the dlls in places other than C:\Windows or C:\Program Files, they will not be accessible in metro apps.

Uninstall

Use regsvr32 to unregister PIMETextService.dll. 64-bit system need to register both 32-bit and 64-bit PIMETextService.dll regsvr32 /u "C:\Program Files (X86)\PIME\x86\PIMETextService.dll" (run as administrator)

regsvr32 /u "C:\Program Files (X86)\PIME\x64\PIMETextService.dll" (run as administrator)

Remove C:\Program Files (X86)\PIME

NOTICE: the regsvr32 command needs to be run as Administrator. Otherwise you'll get access denied error.

Bug Report

Please report any issue to here.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/601028
推荐阅读
相关标签
  

闽ICP备14008679号