WO2013075477A1 - Remote text inputting method and system - Google Patents

Remote text inputting method and system Download PDF

Info

Publication number
WO2013075477A1
WO2013075477A1 PCT/CN2012/076995 CN2012076995W WO2013075477A1 WO 2013075477 A1 WO2013075477 A1 WO 2013075477A1 CN 2012076995 W CN2012076995 W CN 2012076995W WO 2013075477 A1 WO2013075477 A1 WO 2013075477A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
text
client
encoding information
text encoding
Prior art date
Application number
PCT/CN2012/076995
Other languages
French (fr)
Chinese (zh)
Inventor
刘亮
缪敬
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013075477A1 publication Critical patent/WO2013075477A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities

Definitions

  • the present invention relates to the field of remote technologies, and in particular, to a method and system for remotely inputting characters. Background technique
  • Remote Desktop is to pull the desktop of a host (Server) to the remote, display it on the screen of a client (Client), use the Client to operate the server, and achieve the effect of using the server locally. user experience.
  • the remote desktop implementation method generally takes a screen shot at the server, and appropriately processes the obtained image, such as cropping and compression, and then uses the network to transmit the image to the client, and decompresses and stitches the image in the client to restore the whole. desktop.
  • the user sitting in front of the Client can directly operate the remote Server machine, which feels like sitting in front of the Server.
  • Virtual Desktop is a virtual desktop.
  • the biggest difference between Virtual Desktop Deskto and Remote Deskto is that the desktop displayed by Virtual Deskto in Client is not a real desktop. It is a virtual desktop generated by a program. This desktop may be spliced by some applications of several servers. However, Client does not know this, it is only a real desktop to display; many companies have their own remote desktop technology, we are familiar with Remote Desktop Protocol (RDP), SPICE, VNC (Virtual Network Computing ) 0 These technologies are similar, and ultimately can be attributed to the above implementation.
  • RDP Remote Desktop Protocol
  • SPICE SPICE
  • VNC Virtual Network Computing
  • the PC intercepts the keyboard message input by the user, sends the message to the local input method, and the local input method converts the keyboard message into text encoding information and sends it to the application.
  • Program such an application can display Chinese characters It is.
  • PCI Client
  • PC2 Server
  • Server receives this keyboard message and treats it as a local (locally referred to as Server) keyboard message;
  • the local keyboard message is actually sent to the local input method, and the local input method converts the keyboard message into text encoding information.
  • Local input method 4 bar text encoding information is sent to the application; this way the application can display Chinese characters.
  • Another feature of this process is that the input actually uses the server-side local input method, not the client-side input method.
  • the input process is actually not related to the client-side input method.
  • the touch screen device input method converts these English letters into keyboard messages
  • the RDP client intercepts these keyboard messages and sends them to the PC (server);
  • the PC receives this message and processes it as a local (locally referred to as Server) keyboard message; the local keyboard message is actually sent to the local input method, and the local input method converts the keyboard message into text encoding information;
  • Local input method 4 bar text encoding information is sent to the application; this way the application can display Chinese characters.
  • This method only uses the simplest function of the client input method, using the English input method to simulate the keyboard; but in fact, there are many good input methods on the terminal, such as a good touch screen full-screen handwriting input. Law, Pinyin input method, etc. These input methods can be input into Chinese characters or English, but they are not fully utilized. Summary of the invention
  • a method for remotely inputting text comprising:
  • the client converts the text input by the user into text encoding information, and sends the text encoding information to the server;
  • the server After receiving the text encoding information, the server decodes and displays the corresponding text.
  • the method further includes:
  • the client and the server are connected to each other.
  • the client and the server are connected to each other as:
  • the client uses Remote Desktop Protocol (RDP) to communicate with the server over the IP network.
  • RDP Remote Desktop Protocol
  • the client sends the text encoding information to the server:
  • the client sends the text encoding information to the server through the pre-established RDP extension channel Ime Channel.
  • the server After receiving the text encoding information, the server decodes and displays the corresponding text as:
  • the server receives the text encoding information through an Ime Channel of the pre-established RDP, and decodes and displays the text encoding information by using an application.
  • a system for remotely inputting text comprising: a client and a server; wherein the client is configured to convert text input by the user into text encoding information, and send the text encoding information to the server ;
  • the server is configured to receive the text encoding information, decode and display the corresponding text.
  • the client and the server are connected to each other.
  • the client is specifically configured to communicate with the server through an IP network by using an RDP.
  • the client is specifically configured to send the text encoding information to the server through the Ime Channel of the pre-established RDP.
  • the server is specifically configured to receive the text encoding information through an Ime Channel of a pre-established RDP, and decode and display the text encoding information by using an application.
  • the invention converts the text input by the user on the client into the text encoding information, sends the text encoding information to the remote server, and then displays the text, and can fully utilize the text input method of the client, such as full-screen handwriting input method, etc.
  • Figure 1 is a schematic diagram of the operation of the existing PC input method
  • Figure 2 is a schematic diagram of the operation of the remote desktop input method of the existing PC to PC;
  • FIG. 3 is a schematic diagram of a working process of a remote desktop input method of a conventional touch screen device to a PC;
  • FIG. 4 is a schematic diagram showing an implementation flow of a method for remotely inputting text according to the present invention
  • FIG. 5 is a schematic structural diagram of a system for remotely inputting characters according to the present invention.
  • FIG. 6 is a schematic diagram showing the working process of a specific embodiment of a method for remotely inputting text according to the present invention. detailed description
  • the basic idea of the present invention is: the client converts the text input by the user into text encoding information, and sends the text encoding information to the server; after receiving the text encoding information, the server decodes and displays the corresponding text.
  • FIG. 4 shows an implementation flow of a method for remotely inputting text according to the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 The client converts the text input by the user into text encoding information, and sends the text encoding information to the server;
  • the client first uses the RDP to communicate with the server through the IP network.
  • the IP network may be a wireless network data channel, such as GPRS, or may be a WIFI, a wireless LAN authentication and privacy infrastructure (Wireless LAN Authentication and Privacy Infrastructure, WAPI), etc.; where the server establishes the RDP extension channel Ime Channel, the client starts the RDP client, and opens the Ime Channel;
  • the client intercepts the keyboard message input by the user according to the local input method, and converts it into text encoding information, which may be represented by a Unicode code, and then sends the text encoding information to the server through the Ime Channel of the RDP.
  • Step 402 After receiving the text encoding information, the server decodes and displays the corresponding text.
  • the server receives the text encoding information through the Ime Channel of the pre-established RDP, and decodes and displays the text encoding information by using an application.
  • the present invention also provides a system for remotely inputting characters.
  • the structure of the remote input text system is as shown in FIG. 5, and includes: a client and a server; wherein the client may be a touch device.
  • the server may specifically be a PC;
  • the client is configured to convert text input by the user into text encoding information, and send the text encoding information to the server;
  • the server is configured to receive the text encoding information, decode and display the corresponding text. Further, the client and the server are in communication with each other.
  • the client is specifically configured to communicate with the server through an IP network by using an RDP.
  • the client is specifically configured to send the text encoding information to the server through the Ime Channel of the pre-established RDP.
  • the server is specifically configured to receive the text encoding information through an Ime Channel of a pre-established RDP, and decode and display the text encoding information by using an application.
  • Step 1 Establish an RDP extension channel on the server, and specifically use the WTSVirtualChannelOpen function.
  • the name of the extended channel is defined as "IMECHNL";
  • the server may specifically be a PC with a Microsoft Windows XP system.
  • Step 2 Open the extension channel "IMECHNL" on the client, which can be implemented by using the VirtualChannelOpen function.
  • the 1 ⁇ 2 terminal can be a touch device with an Android system; after the second step, the RDP Client program can be used to connect to the RDP Server on the Android touch device, and the PC with the Microsoft Windows XP system can be seen on the Android device. On the desktop, you can do the following.
  • Step 3 The client intercepts the Chinese input by the input method according to the touch message input by the user, and converts it into text encoding information through an input connection (InputConnection) object;
  • Step 4 The RDP client of the client sends the converted text encoding information to the server through the RDP extension channel IMECHNL;
  • the above has overloaded the commitText function.
  • This function is automatically called by the Android system when inputting Chinese input method; WTSVirtualChannelWrite function is used when sending information; the information sent is text encoding information, which can be Unicode encoded characters. String
  • Step 5 The server receives the text encoding information from the RDP extension channel; specifically, the VirtualChannelRead function may be used when receiving the data;
  • the above code demonstrates sending a Unicode character to the current window, the encoding is 0x4e2d, which is the "medium” word; thus, the application can display the input Chinese characters;
  • the method and system of the present invention take the client as an Android tablet device as an example; it should be understood that the method described in the present invention can also be applied to other similar devices.

Abstract

Provided are a remote text inputting method and system. The method includes: a client converting the text input by a user into text coding information and sending the text coding information to a serving end; and after receiving the text coding information, the serving end decoding and displaying corresponding text. By way of converting the text input by a user to a client into text coding information and sending the text coding information to a remote serving end for text display, the present invention can make the best of the text input method of the client, such as full-screen handwriting input method and so on, for remotely inputting characters, improving the user experience.

Description

一种远程输入文字的方法及系统 技术领域  Method and system for remotely inputting characters
本发明涉及远程技术领域, 尤其涉及一种远程输入文字的方法及系统。 背景技术  The present invention relates to the field of remote technologies, and in particular, to a method and system for remotely inputting characters. Background technique
远程桌面( Remote Desktop )是把一台主机 ( Server )的桌面拉到远程, 在一台客户机(Client ) 的屏幕上显示, 利用 Client来操作 Server, 达到跟 在本地使用 Server—样的效果和用户体验。  Remote Desktop is to pull the desktop of a host (Server) to the remote, display it on the screen of a client (Client), use the Client to operate the server, and achieve the effect of using the server locally. user experience.
远程桌面的实现方法, 一般都是在 Server进行截屏, 把得到的图片进 行适当处理, 比如裁剪、 压缩, 然后利用网络将图片传到 Client, 在 Client 对图片进行解压、 拼接等操作, 以便还原整个桌面。 这样, 用户坐在 Client 前面, 就可以直接操作使用远程的 Server机器, 感觉就如同坐在 Server机 前面一样。  The remote desktop implementation method generally takes a screen shot at the server, and appropriately processes the obtained image, such as cropping and compression, and then uses the network to transmit the image to the client, and decompresses and stitches the image in the client to restore the whole. desktop. In this way, the user sitting in front of the Client can directly operate the remote Server machine, which feels like sitting in front of the Server.
远程桌面的一种变形叫 Virtual Desktop, 即虚拟桌面。 Virtual Desktop Deskto 跟 Remote Deskto 的最大差别就是, Virtual Deskto 在 Client显示 的桌面, 不是一个真实的桌面, 是一个由程序生成的虚拟的桌面, 这个桌 面有可能是由几个 Server的部分应用拼接成的; 但 Client不知道这个事, 它只当是一个真实的桌面来显示; 目前很多公司都有自己的远程桌面技术, 我们熟知的有远程桌面协议(Remote Desktop Protocol, RDP )、 SPICE、 VNC ( Virtual Network Computing )0 这些技术都大同小异, 最后都能够归结到上 述的实现方法上。 One variant of Remote Desktop is called Virtual Desktop, which is a virtual desktop. The biggest difference between Virtual Desktop Deskto and Remote Deskto is that the desktop displayed by Virtual Deskto in Client is not a real desktop. It is a virtual desktop generated by a program. This desktop may be spliced by some applications of several servers. However, Client does not know this, it is only a real desktop to display; many companies have their own remote desktop technology, we are familiar with Remote Desktop Protocol (RDP), SPICE, VNC (Virtual Network Computing ) 0 These technologies are similar, and ultimately can be attributed to the above implementation.
目前, 个人计算机(PC ) 中文字输入的工作示意参照图 1 , PC截获用 户输入的键盘消息, 把这个消息发给本地输入法, 本地输入法再把键盘消 息转换成文字编码信息, 并发给应用程序; 这样应用程序就可以显示汉字 了。 At present, the operation of the text input in the personal computer (PC) is shown in Figure 1. The PC intercepts the keyboard message input by the user, sends the message to the local input method, and the local input method converts the keyboard message into text encoding information and sends it to the application. Program; such an application can display Chinese characters It is.
在远程桌面环境中, 如 PC到 PC的远程桌面输入时, 其工作示意参照 图 2; 向远程的 Server输入文字的实现一般都是如下方法:  In a remote desktop environment, such as a PC to PC remote desktop input, its operation is shown in Figure 2; the implementation of inputting text to a remote server is generally as follows:
Client ( PCI )截获自己的键盘消息, 把这个消息发给 Server ( PC2 ); Client (PCI) intercepts its own keyboard message and sends this message to Server (PC2);
Server收到这个键盘消息, 把它按本地(本地指 Server端 )键盘消息 处理; Server receives this keyboard message and treats it as a local (locally referred to as Server) keyboard message;
本地键盘消息实际上发给了本地输入法, 本地输入法再把键盘消息转 换成文字编码信息;  The local keyboard message is actually sent to the local input method, and the local input method converts the keyboard message into text encoding information.
本地输入法 4巴文字编码信息发给应用程序; 这样应用程序就可以显示 汉字了。  Local input method 4 bar text encoding information is sent to the application; this way the application can display Chinese characters.
这个过程, 跟在本地敲键盘输入只有一个区别, 就是键盘消息来自网 络, 是从 Client发过来的。  This process, only one difference from the local keyboard input, is that the keyboard message comes from the network and is sent from the client.
这个过程还有一个特点, 就是输入实际上使用的是 Server端本地的输 入法, 不是使用的 Client端的输入法, 其输入过程, 其实跟 Client端的输入 法一点关系都没有。  Another feature of this process is that the input actually uses the server-side local input method, not the client-side input method. The input process is actually not related to the client-side input method.
在 PC到 PC的远程桌面环境中, 输入不是一个大问题, 因为 Client也 有完整的键盘。 但近些年来, 随着各种终端的出现和普及, 特别是很多非 PC类的终端, 比如智能手机、 Tablet等设备的出现, 远程桌面客户端也蔓 延到这些终端上; 然而, 这些终端上的远程桌面, 要实现输入, 就不是那 么容易; 很多手机、 Tablet没有键盘, 或者没有完整的键盘, 相反, 很多智 能手机和 Tablet等设备配备了相当好用的触摸屏, 安装了很方便的输入法 比如全屏手写输入法等; 目前触摸屏设备到 PC的远程桌面输入法的工作示 意参照图 3; —般都是这样实现的远程输入:  In a PC to PC remote desktop environment, typing is not a big issue because the client also has a full keyboard. However, in recent years, with the emergence and popularity of various terminals, especially the emergence of many non-PC-like terminals, such as smart phones, tablets, etc., remote desktop clients have also spread to these terminals; however, these terminals Remote desktop, it is not so easy to implement input; many mobile phones, tablets do not have a keyboard, or there is no complete keyboard. On the contrary, many smart phones and tablets and other devices are equipped with a very good touch screen, and a convenient input method is installed. For example, the full-screen handwriting input method, etc.; the current work of the touch screen device to the PC remote desktop input method is shown in Figure 3; the remote input is generally implemented like this:
在触摸屏设备(客户端)调出输入法, 切换到英文输入;  In the touch screen device (client) to call up the input method, switch to English input;
使用触摸屏, 在屏幕上点英文字母; 触摸屏设备输入法会把这些英文字母转换成键盘消息; Use the touch screen to point the English letters on the screen; The touch screen device input method converts these English letters into keyboard messages;
RDP客户端截获这些键盘消息, 把这些消息发给 PC (服务端);  The RDP client intercepts these keyboard messages and sends them to the PC (server);
PC收到这个消息, 把它按本地(本地指 Server端)键盘消息处理; 本 地键盘消息实际上发给了本地输入法, 本地输入法再把键盘消息转换成文 字编码信息;  The PC receives this message and processes it as a local (locally referred to as Server) keyboard message; the local keyboard message is actually sent to the local input method, and the local input method converts the keyboard message into text encoding information;
本地输入法 4巴文字编码信息发给应用程序; 这样应用程序就可以显示 汉字了。  Local input method 4 bar text encoding information is sent to the application; this way the application can display Chinese characters.
这个方法的特点, 同样实际上使用的是 Server端本地的输入法, 不是 使用的 Client端的输入法; 只是其输入过程,跟 Client端的输入法有一点关 系, 若此种终端上没有这些英文输入法, 则完全没法模拟键盘;  The characteristics of this method, the same is actually the server-side local input method, not the client-side input method; only the input process is related to the client-side input method. If there is no such input method on the terminal. , it is completely impossible to simulate the keyboard;
这种方法只用到了客户端输入法的最简单的功能, 使用英文输入法来 模拟键盘; 但实际上, 这种终端上有很多很好用的输入法, 比如很好用的 触摸屏全屏手写输入法、 拼音输入法等等, 这些输入法都可以输入汉字或 英文等, 但并没有得到充分的利用。 发明内容  This method only uses the simplest function of the client input method, using the English input method to simulate the keyboard; but in fact, there are many good input methods on the terminal, such as a good touch screen full-screen handwriting input. Law, Pinyin input method, etc. These input methods can be input into Chinese characters or English, but they are not fully utilized. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种远程输入文字的方法及系 统, 能够充分利用客户端的文字输入方法实现远程文字的输入。  In view of the above, it is a primary object of the present invention to provide a method and system for remotely inputting text, which can fully utilize the text input method of the client to implement remote text input.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种远程输入文字的方法, 所述方法包括:  A method for remotely inputting text, the method comprising:
客户端将用户输入的文字转换为文字编码信息, 并将所述文字编码信 息发送给服务端;  The client converts the text input by the user into text encoding information, and sends the text encoding information to the server;
服务端接收所述文字编码信息后, 解码并显示相应的文字。  After receiving the text encoding information, the server decodes and displays the corresponding text.
进一步地, 所述方法还包括:  Further, the method further includes:
客户端与服务端相互连通。  The client and the server are connected to each other.
其中, 所述客户端与服务端相互连通为: 客户端利用远程桌面协议 ( RDP )通过 IP网络与服务端相互连通。 其中, 所述客户端并将所述文字编码信息发送给服务端为: The client and the server are connected to each other as: The client uses Remote Desktop Protocol (RDP) to communicate with the server over the IP network. The client sends the text encoding information to the server:
客户端通过预先建立的 RDP的扩展通道 Ime Channel将文字编码信息 发送给服务端。  The client sends the text encoding information to the server through the pre-established RDP extension channel Ime Channel.
其中, 所述服务端接收所述文字编码信息后, 解码并显示相应的文字 为:  After receiving the text encoding information, the server decodes and displays the corresponding text as:
服务端通过预先建立的 RDP的 Ime Channel接收所述文字编码信息, 并通过应用程序对所述文字编码信息进行解码并显示。  The server receives the text encoding information through an Ime Channel of the pre-established RDP, and decodes and displays the text encoding information by using an application.
一种远程输入文字的系统, 所述系统包括: 客户端和服务端; 其中, 所述客户端, 用于将用户输入的文字转换为文字编码信息, 并将所述 文字编码信息发送给服务端;  A system for remotely inputting text, the system comprising: a client and a server; wherein the client is configured to convert text input by the user into text encoding information, and send the text encoding information to the server ;
所述服务端, 用于接收所述文字编码信息, 解码并显示相应的文字。 其中, 所述客户端与服务端相互连通。  The server is configured to receive the text encoding information, decode and display the corresponding text. The client and the server are connected to each other.
其中,所述客户端,具体用于利用 RDP通过 IP网络与所述服务端相互 连通。  The client is specifically configured to communicate with the server through an IP network by using an RDP.
其中, 所述客户端, 具体用于通过预先建立的 RDP的 Ime Channel将 文字编码信息发送给服务端。  The client is specifically configured to send the text encoding information to the server through the Ime Channel of the pre-established RDP.
其中, 所述服务端, 具体用于通过预先建立的 RDP的 Ime Channel接 收所述文字编码信息, 并通过应用程序对所述文字编码信息进行解码并显 示。  The server is specifically configured to receive the text encoding information through an Ime Channel of a pre-established RDP, and decode and display the text encoding information by using an application.
本发明通过将用户在客户端上输入的文字转换为文字编码信息, 将文 字编码信息发送给远程的服务端, 进而进行文字显示, 能够充分利用客户 端的文字输入方法如全屏手写输入法等, 向远程输入汉字, 提升了用户体 附图说明 The invention converts the text input by the user on the client into the text encoding information, sends the text encoding information to the remote server, and then displays the text, and can fully utilize the text input method of the client, such as full-screen handwriting input method, etc. Remote input of Chinese characters, improved user body DRAWINGS
图 1为现有的 PC输入法的工作示意图;  Figure 1 is a schematic diagram of the operation of the existing PC input method;
图 2为现有 PC到 PC的远程桌面输入法的工作示意图;  Figure 2 is a schematic diagram of the operation of the remote desktop input method of the existing PC to PC;
图 3为现有触摸屏设备到 PC的远程桌面输入法的工作示意图; 图 4为本发明远程输入文字的方法的实现流程示意图;  3 is a schematic diagram of a working process of a remote desktop input method of a conventional touch screen device to a PC; FIG. 4 is a schematic diagram showing an implementation flow of a method for remotely inputting text according to the present invention;
图 5为本发明远程输入文字的系统的结构示意图;  FIG. 5 is a schematic structural diagram of a system for remotely inputting characters according to the present invention; FIG.
图 6为本发明远程输入文字的方法的具体实施例的工作过程示意图。 具体实施方式  FIG. 6 is a schematic diagram showing the working process of a specific embodiment of a method for remotely inputting text according to the present invention. detailed description
本发明的基本思想为: 客户端将用户输入的文字转换为文字编码信息, 并将所述文字编码信息发送给服务端; 服务端接收所述文字编码信息后, 解码并显示相应的文字。  The basic idea of the present invention is: the client converts the text input by the user into text encoding information, and sends the text encoding information to the server; after receiving the text encoding information, the server decodes and displays the corresponding text.
为使本发明的目的、 技术方案和优点更加清楚明白, 以下举实施例并 参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
图 4示出了本发明远程输入文字的方法的实现流程, 如图 4所示, 所 述方法包括下述步驟:  4 shows an implementation flow of a method for remotely inputting text according to the present invention. As shown in FIG. 4, the method includes the following steps:
步驟 401 ,客户端将用户输入的文字转换为文字编码信息, 并将所述文 字编码信息发送给服务端;  Step 401: The client converts the text input by the user into text encoding information, and sends the text encoding information to the server;
具体地, 首先客户端利用 RDP通过 IP网络与服务端相互连通, 这里, 所述 IP网络可以为无线网络数据通道, 如 GPRS, 也可以是 WIFI、 无线局 域网鉴别和保密基础结构 ( Wireless LAN Authentication and Privacy Infrastructure, WAPI )等; 其中,服务端建立 RDP的扩展通道 Ime Channel, 客户端启动 RDP客户端, 打开 Ime Channel;  Specifically, the client first uses the RDP to communicate with the server through the IP network. Here, the IP network may be a wireless network data channel, such as GPRS, or may be a WIFI, a wireless LAN authentication and privacy infrastructure (Wireless LAN Authentication and Privacy Infrastructure, WAPI), etc.; where the server establishes the RDP extension channel Ime Channel, the client starts the RDP client, and opens the Ime Channel;
客户端截获用户依据本地输入法输入的键盘消息, 并将其转换为文字 编码信息, 具体可以为统一码(Unicode )表示, 然后通过所述 RDP的 Ime Channel将文字编码信息发送给服务端。 步驟 402, 服务端接收所述文字编码信息后, 解码并显示相应的文字。 其中, 服务端通过预先建立的 RDP的 Ime Channel接收所述文字编码 信息, 并通过应用程序对所述文字编码信息进行解码并显示。 The client intercepts the keyboard message input by the user according to the local input method, and converts it into text encoding information, which may be represented by a Unicode code, and then sends the text encoding information to the server through the Ime Channel of the RDP. Step 402: After receiving the text encoding information, the server decodes and displays the corresponding text. The server receives the text encoding information through the Ime Channel of the pre-established RDP, and decodes and displays the text encoding information by using an application.
本发明还提供了一种远程输入文字的系统, 所述远程输入文字的系统 的结构具体如图 5 所示, 包括: 客户端和服务端; 其中, 所述客户端具体 可以为触摸设备, 所述服务端具体可以为 PC;  The present invention also provides a system for remotely inputting characters. The structure of the remote input text system is as shown in FIG. 5, and includes: a client and a server; wherein the client may be a touch device. The server may specifically be a PC;
所述客户端, 用于将用户输入的文字转换为文字编码信息, 并将所述 文字编码信息发送给服务端;  The client is configured to convert text input by the user into text encoding information, and send the text encoding information to the server;
所述服务端, 用于接收所述文字编码信息, 解码并显示相应的文字。 进一步地, 所述客户端与服务端相互连通。  The server is configured to receive the text encoding information, decode and display the corresponding text. Further, the client and the server are in communication with each other.
其中,所述客户端,具体用于利用 RDP通过 IP网络与所述服务端相互 连通。  The client is specifically configured to communicate with the server through an IP network by using an RDP.
进一步地,所述客户端,具体用于通过预先建立的 RDP的 Ime Channel 将文字编码信息发送给服务端。  Further, the client is specifically configured to send the text encoding information to the server through the Ime Channel of the pre-established RDP.
其中, 所述服务端, 具体用于通过预先建立的 RDP的 Ime Channel接 收所述文字编码信息, 并通过应用程序对所述文字编码信息进行解码并显 示。  The server is specifically configured to receive the text encoding information through an Ime Channel of a pre-established RDP, and decode and display the text encoding information by using an application.
下面结合图 6示出的本发明远程输入文字的方法的具体实施例的工作 过程, 通过一具体实施例进一步进行详细说明:  The working process of the specific embodiment of the method for remotely inputting characters according to the present invention shown in FIG. 6 will be further described in detail through a specific embodiment:
步驟一, 在服务端建立 RDP 扩展通道, 具体可以使用 WTSVirtualChannelOpen 函数, 本实施例中, 所述扩展通道的名字定义为 "IMECHNL";  Step 1: Establish an RDP extension channel on the server, and specifically use the WTSVirtualChannelOpen function. In this embodiment, the name of the extended channel is defined as "IMECHNL";
其中, 所述服务端具体可以为具有 Microsoft Windows XP系统的 PC。 步驟二, 在客户端打开扩展通道 " IMECHNL " , 具体可以使用 VirtualChannelOpen函数进行实现; 其中,所½户端具体可以为具有 Android系统的触摸设备;步驟二后, Android触摸设备上即可以使用 RDP Client程序连接 RDP Server,在 Android 设备上就可以看到具有 Microsoft Windows XP系统的 PC的桌面,可以进行 下面的操作了。 The server may specifically be a PC with a Microsoft Windows XP system. Step 2: Open the extension channel "IMECHNL" on the client, which can be implemented by using the VirtualChannelOpen function. Among them, the 1⁄2 terminal can be a touch device with an Android system; after the second step, the RDP Client program can be used to connect to the RDP Server on the Android touch device, and the PC with the Microsoft Windows XP system can be seen on the Android device. On the desktop, you can do the following.
步驟三, 客户端通过输入连接(InputConnection )对象, 截获输入法根 据用户输入的触摸消息输入的中文, 并转换为文字编码信息;  Step 3: The client intercepts the Chinese input by the input method according to the touch message input by the user, and converts it into text encoding information through an input connection (InputConnection) object;
具体方法是: 1 , 定义 InputConnection类, 从 BascInputComicction类 继承, 在这个类中, 重载 commitText函数, 具体实现如下: The specific methods are: 1. Define the InputConnection class, inherit from the BascInputComicction class, in this class, overload the commitText function, the specific implementation is as follows:
Figure imgf000009_0001
Figure imgf000009_0001
public MyInputConnection(View tv) {  Public MyInputConnection(View tv) {
super(tv, false);  Super(tv, false);
©Override ©Override
public boolean commitText(CharSequence text, newCursorPo sition) {  Public boolean commitText(CharSequence text, newCursorPo sition) {
WTSVirtualChannelWrite ("IMECHNL", text.toStringO); return true;  WTSVirtualChannelWrite ("IMECHNL", text.toStringO); return true;
2, 重载 View的 onCreatelnputConnection函数, 在这个函数返回上述 定义的 InputConnection对象; 2, overload the View's onCreatelnputConnection function, in this function returns the InputConnection object defined above;
public InputConnection onCreateInputConnection(EditorInfo outAttrs) return new MylnputConnection(this); 步驟四, 客户端的 RDP客户端把转换得到文字编码信息通过 RDP扩 展通道 IMECHNL发给服务端; Public InputConnection onCreateInputConnection(EditorInfo outAttrs) return new MylnputConnection(this); Step 4: The RDP client of the client sends the converted text encoding information to the server through the RDP extension channel IMECHNL;
具体的, 上述已经重载了 commitText函数, 这个函数在输入法输入中 文的时候, 会被 Android 系统 自 动调用 ; 发送信息时利用 WTSVirtualChannelWrite 函数; 发送的信息为文字编码信息, 具体可以为 Unicode编码的字符串;  Specifically, the above has overloaded the commitText function. This function is automatically called by the Android system when inputting Chinese input method; WTSVirtualChannelWrite function is used when sending information; the information sent is text encoding information, which can be Unicode encoded characters. String
步驟五, 服务端从 RDP扩展通道接收到文字编码信息; 具体地, 接收 数据时可以使用 VirtualChannelRead函数;  Step 5: The server receives the text encoding information from the RDP extension channel; specifically, the VirtualChannelRead function may be used when receiving the data;
步驟六, 服务端的 RDP服务端将收到的文字编码信息发给应用程序; 具体方法如下: 1 , 得到 当前窗口 句柄: HWND hwnd = GetForegroundWindow();  Step 6: The RDP server of the server sends the received text encoding information to the application; the specific method is as follows: 1. Obtain the current window handle: HWND hwnd = GetForegroundWindow();
2, 向当前窗口发消息: SendMessage(hwnd, WM_IME_CHAR, 0x4e2d, 2, send a message to the current window: SendMessage (hwnd, WM_IME_CHAR, 0x4e2d,
1); 1);
其中 ,上述代码演示了向当前窗口发一个 Unicode字符 ,编码是 0x4e2d, 即为 "中" 字; 这样, 应用程序就可以显示出输入的中文字了;  The above code demonstrates sending a Unicode character to the current window, the encoding is 0x4e2d, which is the "medium" word; thus, the application can display the input Chinese characters;
本发明所述的方法及系统,以客户端为 Android平板设备为例;应当理 解, 实际上本发明所述的方法也可以用于其它类似的设备。  The method and system of the present invention take the client as an Android tablet device as an example; it should be understood that the method described in the present invention can also be applied to other similar devices.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种远程输入文字的方法, 其特征在于, 所述方法包括: 客户端将用户输入的文字转换为文字编码信息, 并将所述文字编码信 息发送给服务端;  A method for remotely inputting a character, the method comprising: converting, by a client, text input by a user into text encoding information, and transmitting the text encoding information to a server;
服务端接收所述文字编码信息后, 解码并显示相应的文字。  After receiving the text encoding information, the server decodes and displays the corresponding text.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 客户端与服务端相互连通。  2. The method according to claim 1, wherein the method further comprises: the client and the server are in communication with each other.
3、 根据权利要求 2所述的方法, 其特征在于, 所述客户端与服务端相 互连通为:  3. The method according to claim 2, wherein the client and the server are interconnected as:
客户端利用远程桌面协议 RDP通过 IP网络与服务端相互连通。  The client uses the remote desktop protocol RDP to communicate with the server through the IP network.
4、 根据权利要求 1所述的方法, 其特征在于, 所述客户端并将所述文 字编码信息发送给服务端为:  The method according to claim 1, wherein the client sends the text encoding information to the server:
客户端通过预先建立的 RDP的扩展通道 Ime Channel将文字编码信息 发送给服务端。  The client sends the text encoding information to the server through the pre-established RDP extension channel Ime Channel.
5、 根据权利要求 1所述的方法, 其特征在于, 所述服务端接收所述文 字编码信息后, 解码并显示相应的文字为:  The method according to claim 1, wherein after receiving the text encoding information, the server decodes and displays the corresponding text as:
服务端通过预先建立的 RDP的 Ime Channel接收所述文字编码信息, 并通过应用程序对所述文字编码信息进行解码并显示。  The server receives the text encoding information through an Ime Channel of the pre-established RDP, and decodes and displays the text encoding information by using an application.
6、 一种远程输入文字的系统, 其特征在于, 所述系统包括: 客户端和 服务端; 其中,  6. A system for remotely inputting a character, wherein the system comprises: a client and a server; wherein
所述客户端, 用于将用户输入的文字转换为文字编码信息, 并将所述 文字编码信息发送给服务端;  The client is configured to convert text input by the user into text encoding information, and send the text encoding information to the server;
所述服务端, 用于接收所述文字编码信息, 解码并显示相应的文字。 The server is configured to receive the text encoding information, decode and display the corresponding text.
7、 根据权利要求 6所述的系统, 其特征在于, 所述客户端与服务端相 互连通。 7. The system according to claim 6, wherein the client and the server are in communication with each other.
8、 根据权利要求 7所述的系统, 其特征在于, 所述客户端, 具体用于 利用 RDP通过 IP网络与所述服务端相互连通。 The system according to claim 7, wherein the client is specifically configured to communicate with the server through an IP network by using an RDP.
9、 根据权利要求 6所述的系统, 其特征在于, 所述客户端, 具体用于 通过预先建立的 RDP的 Ime Channel将文字编码信息发送给服务端。  The system according to claim 6, wherein the client is specifically configured to send the text encoding information to the server through the Ime Channel of the pre-established RDP.
10、 根据权利要求 6所述的系统, 其特征在于, 所述服务端, 具体用 于通过预先建立的 RDP的 Ime Channel接收所述文字编码信息, 并通过应 用程序对所述文字编码信息进行解码并显示。  The system according to claim 6, wherein the server is specifically configured to receive the text encoding information through an Ime Channel of a pre-established RDP, and decode the text encoding information by using an application program. And display.
PCT/CN2012/076995 2011-11-25 2012-06-15 Remote text inputting method and system WO2013075477A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011103804326A CN102413139A (en) 2011-11-25 2011-11-25 Method and system for remotely inputting characters
CN201110380432.6 2011-11-25

Publications (1)

Publication Number Publication Date
WO2013075477A1 true WO2013075477A1 (en) 2013-05-30

Family

ID=45914989

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/076995 WO2013075477A1 (en) 2011-11-25 2012-06-15 Remote text inputting method and system

Country Status (2)

Country Link
CN (1) CN102413139A (en)
WO (1) WO2013075477A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838375A (en) * 2014-02-28 2014-06-04 深圳市深信服电子科技有限公司 Terminal input method and terminal

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413139A (en) * 2011-11-25 2012-04-11 中兴通讯股份有限公司 Method and system for remotely inputting characters
CN103067571A (en) * 2012-12-12 2013-04-24 蓝盾信息安全技术股份有限公司 Chinese input method of mobile terminal device to remote desktop
CN103902056B (en) * 2012-12-28 2018-02-23 华为技术有限公司 Dummy keyboard input method, equipment and system
CN105573518A (en) * 2015-12-15 2016-05-11 上海贝锐信息科技有限公司 Remote input method scheduling method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523865A (en) * 2003-02-20 2004-08-25 英保达股份有限公司 Remote information transmission method and system
CN1980104A (en) * 2005-12-09 2007-06-13 赵春良 Wire-less character broadcasting system and method
US20100011299A1 (en) * 2008-07-10 2010-01-14 Apple Inc. System and method for syncing a user interface on a server device to a user interface on a client device
CN102413139A (en) * 2011-11-25 2012-04-11 中兴通讯股份有限公司 Method and system for remotely inputting characters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523865A (en) * 2003-02-20 2004-08-25 英保达股份有限公司 Remote information transmission method and system
CN1980104A (en) * 2005-12-09 2007-06-13 赵春良 Wire-less character broadcasting system and method
US20100011299A1 (en) * 2008-07-10 2010-01-14 Apple Inc. System and method for syncing a user interface on a server device to a user interface on a client device
CN102413139A (en) * 2011-11-25 2012-04-11 中兴通讯股份有限公司 Method and system for remotely inputting characters

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838375A (en) * 2014-02-28 2014-06-04 深圳市深信服电子科技有限公司 Terminal input method and terminal

Also Published As

Publication number Publication date
CN102413139A (en) 2012-04-11

Similar Documents

Publication Publication Date Title
US10805380B2 (en) Data transmission method and device
Richardson et al. The remote framebuffer protocol
JP5451397B2 (en) An architecture for delivering video content in response to remote interaction
WO2022062623A1 (en) Remote control method and apparatus, and device, and storage medium, and system
WO2022188595A1 (en) Method and apparatus for displaying application picture, and terminal, screen projection system and medium
CN103838375B (en) Terminal input method and terminal
WO2013075477A1 (en) Remote text inputting method and system
JP2008524879A (en) File transmission method, system, virtual printer apparatus and restoration apparatus in network
WO2018107717A1 (en) Method and system for mitigating feeling of lag of mouse cursor action in kvm system
TW200537851A (en) Computer network architecture and method of providing display data
WO2017045190A1 (en) Method, apparatus and device for instructing operations on terminal device
US8370525B2 (en) Transmitting new data format under existing infrastructure
CN102968190A (en) Local input method mapping device and method based on remote application
CN106570405B (en) Method and device for encrypting/decrypting characters in input method
CN103607654A (en) A mobile terminal auxiliary input apparatus based on a multi-screen cooperation system and a method
CN110601969A (en) Universal remote desktop gateway implementation
JP2009530703A (en) How to provide international SMS
CN104394200A (en) A method for performing simultaneous preview and display between a mobile device and a web terminal
CN102983889A (en) Method of information cooperative processing between smart mobile phone and computer through Bluetooth wireless pairing
CN106341453A (en) High-speed virtual desktop agent building method and high-speed virtual desktop agent building system based on HTML5
CN104023057A (en) Data sharing method and data sharing system
CN101587373B (en) Method, system and device for displaying input information
CN103036897A (en) Communication method based on long distance desktop connection between thin client-side and server-side
WO2021097892A1 (en) Translation system, translation method, translation machine, and storage medium
WO2023088198A1 (en) Network connection method and apparatus, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12851957

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12851957

Country of ref document: EP

Kind code of ref document: A1