Linux system Chinese typing method, device, equipment, medium and product

By simulating the local Chinese input method of the Windows system in the Linux cloud desktop, the problem of poor user experience of the Linux cloud desktop is solved, and the input experience and functions consistent with the Windows system is achieved, which improves user satisfaction and work efficiency. .

CN118963564AInactive Publication Date: 2024-11-15BEIJING JINGXING RUICHUANG SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411427814.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The Chinese input method of Linux cloud desktop has obvious shortcomings in terms of user experience, functionality, compatibility and personalization options, which leads to users who need to adapt to the new input method operation methods when switching to Linux cloud desktop, which affects work efficiency and user experience.

Method used

Monitor the keyboard input of Linux cloud desktop through the cloud desktop client, capture the user's local Chinese input method operation on the Windows system, encapsulate and upload it to the cloud desktop server, the server parses and simulates keyboard events on the Linux cloud desktop to realize the local Windows system The use of Chinese input method in Linux cloud desktop.

Benefits of technology

Improves the Chinese input experience of Linux cloud desktop, provides the same input method operation method as that of Windows system, enhances user convenience and efficiency, ensures the stability and functional integrity of input method, and meets users' personalized needs. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963564A_ABST
    Figure CN118963564A_ABST
Patent Text Reader

Abstract

The invention discloses a Linux system Chinese typing method, device and equipment, a medium and a product, and relates to the field of computer software application, the method comprises the following steps: monitoring keyboard input of a Linux cloud desktop by using a cloud desktop client, capturing local Chinese input method operation of a user in a Windows system, packaging captured Chinese input data, and storing the packaged Chinese input data in a database; uploading to a cloud desktop server; the cloud desktop client is built in the local control end; the cloud desktop server is built in a cloud server side; and analyzing and verifying the packaged Chinese input data by utilizing the cloud desktop server, simulating a keyboard event on a screen of the Linux cloud desktop, and typing the verified Chinese input data through the keyboard event. According to the method and the device, a local Chinese input method of a Windows system familiar to a user can be directly used in the Linux cloud desktop, so that the user experience is improved, and the user experience is improved. And the experience of typing Chinese in the Linux system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software applications, and in particular to a method, device, equipment, medium and product for typing Chinese characters in a Linux system. Background Art

[0002] As cloud desktop related technologies mature, Linux cloud desktops are increasingly used in work and production. However, the Chinese input methods that come with the mainstream distributions of the Linux operating system (Linux system for short) or that are installed through network sources have a significant difference in user experience compared to the Chinese input methods under Windows systems. Especially for users who are new to Linux cloud desktops, it is often difficult to adapt to the Chinese input experience under Linux systems. Therefore, in order to further promote and popularize the use of Linux cloud desktops in various fields, it is particularly important to improve the experience of Chinese input methods.

[0003] The existing Linux cloud desktop technology mainly relies on the Chinese input method that comes with the Linux system or only supports English input. Compared with the Windows operating system that most users are more accustomed to, whether it is the built-in Chinese input method of the Windows system or third-party commercial or free input method products, it is more convenient to use overall. For example, the Chinese input method of the Linux system has the following inconveniences.

[0004] Poor user experience: The user experience is significantly different from the built-in Chinese input method in Windows. There are differences in their user interface, input method switching method, input method word selection speed, etc., which causes users to need to adapt to the new input method operation mode when switching to Linux cloud desktop, which brings unnecessary trouble to users.

[0005] Functional limitations: It cannot provide input method functions comparable to those of Windows systems. For example, some commonly used input method functions, such as handwriting input, intelligent error correction, word library customization, etc., may not be available in Linux cloud desktops, limiting the user's input experience and efficiency.

[0006] Compatibility issues: There are compatibility issues with certain specific applications or working environments. When using specific applications or handling specific tasks, users may encounter problems such as the input method not working properly or garbled characters appearing, which affects the smooth progress of work.

[0007] Lack of personalization options: Usually lack of personalization options, unable to meet the user's personalized needs for input method appearance, theme, layout, etc. This makes it impossible for users to personalize according to their preferences and habits, reducing user satisfaction and usage experience.

[0008] The Chinese input method that comes with the Linux system has inconveniences in terms of user experience, functionality, compatibility, and personalized options, which limits users' acceptance and willingness to use Linux cloud desktops and has a certain negative impact on user work efficiency. Therefore, improving the usability of the Chinese input method for Linux cloud desktops is of great significance for promoting and popularizing the application of Linux cloud desktops. Summary of the invention

[0009] The purpose of this application is to provide a method, device, equipment, medium and product for typing Chinese in a Linux system, which can directly use the local Chinese input method of the Windows system familiar to users in the Linux system, thereby improving the experience of typing Chinese in the Linux system.

[0010] To achieve the above objectives, this application provides the following solutions.

[0011] In a first aspect, the present application provides a method for typing Chinese characters in a Linux system, comprising the following steps.

[0012] The cloud desktop client is used to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operations in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server.

[0013] The cloud desktop server is used to parse and verify the encapsulated Chinese input data, and keyboard events are simulated on the screen of the Linux cloud desktop, and the verified Chinese input data is entered through the keyboard events.

[0014] In a second aspect, the present application provides a Chinese typing device for a Linux system, comprising the following structure.

[0015] The cloud desktop client is used to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operations in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server.

[0016] The cloud desktop server is used to parse and verify the encapsulated Chinese input data, and simulate keyboard events on the screen of the Linux cloud desktop, and type the verified Chinese input data through the keyboard events.

[0017] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any one of the above-mentioned Chinese typing methods for the Linux system.

[0018] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-mentioned Chinese typing methods for a Linux system.

[0019] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned Chinese typing methods for the Linux system.

[0020] According to the specific embodiments provided by the present application, the present application discloses the following technical effects: the present application has a built-in cloud desktop client in the local control end, and a built-in cloud desktop server in the cloud server end, and monitors the keyboard input of the Linux cloud desktop through the cloud desktop client. Based on the keyboard input, the user's local Chinese input method operation in the Windows system is captured, and the captured Chinese input data is packaged and uploaded to the cloud desktop server for parsing and verification, and keyboard events are simulated on the screen of the Linux cloud desktop. The verified Chinese input data is typed through the keyboard events, so as to realize the direct use of the local Chinese input method of the Windows system familiar to the user in the Linux cloud desktop, thereby improving the experience of typing Chinese in the Linux system. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 This is a flow chart of a Chinese input method for a Linux system in one embodiment of the present application.

[0023] Figure 2 A communication interaction diagram between a cloud desktop client and a cloud desktop server provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0026] The embodiment of the present application provides a method for typing Chinese characters in a Linux system. The method is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. Figure 1 As shown, in the embodiment of the present application, the method includes the following steps 101 to 102.

[0027] Step 101: Use a cloud desktop client to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operation in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server; the cloud desktop client is built into the local control end; the cloud desktop server is built into the cloud server end.

[0028] Step 102: Utilize the cloud desktop server to parse and verify the encapsulated Chinese input data, and simulate keyboard events on the screen of the Linux cloud desktop, and enter the verified Chinese input data through the keyboard events.

[0029] like Figure 2 As shown, both the Linux desktop environment and the cloud desktop server are running in the remote desktop session. The cloud desktop client program is installed on the local control terminal and uses the network socket (SOCKET) mechanism to communicate with the cloud desktop server to achieve Linux cloud desktop access control and image rendering display. In addition, the cloud desktop client is also responsible for monitoring keyboard input for the Linux cloud desktop and triggering system messages when valid input method behavior is detected.

[0030] The cloud desktop server program is installed on the cloud server and is responsible for starting the Linux desktop environment and receiving connections and operation controls from the cloud desktop client.

[0031] When the cloud desktop server receives Chinese input (i.e., a string encapsulated in Unicode) from the cloud desktop client, it verifies the legitimacy of the Unicode encoding and uses the Linux system's Xlib library function XTestFakeKeyEvent to simulate a keyboard event on the specified Linux cloud desktop screen to achieve the effect of simulating Chinese input. Xlib is a core library of the X Window System that provides a basic API for interacting with the X server, allowing developers to create and manage windows, process input events, and draw graphics.

[0032] Network transmission: The cloud desktop client encapsulates the obtained Chinese information into a Unicode-encoded string and transmits it to the cloud desktop server through the network. The cloud desktop server parses and processes the received Unicode-encoded string.

[0033] In an exemplary embodiment, before step 101, it further includes: using a network socket mechanism to enable the cloud desktop client to communicate with the cloud desktop server over the network.

[0034] In an exemplary embodiment, before step 101, it further includes: when starting the cloud desktop server, starting the Linux desktop environment, capturing image data on the Linux cloud desktop, and sending the image data to the cloud desktop client; using the cloud desktop client to decode and display the image data to achieve remote access to the Linux cloud desktop.

[0035] In an exemplary embodiment, encapsulating the captured Chinese input data and uploading it to the cloud desktop server specifically includes: encapsulating the captured Chinese input data into a Unicode-encoded string and transmitting it to the cloud desktop server over the network.

[0036] In an exemplary embodiment, using the cloud desktop server to parse and verify the encapsulated Chinese input data specifically includes: using the cloud desktop server to parse the Unicode-encoded string and verify the legality of the Unicode encoding so that the string is within a legal range, generating the verified Chinese input data.

[0037] Furthermore, the parsing process of the Unicode-encoded string is as follows.

[0038] Receiving data: The cloud desktop server receives the Unicode-encoded string sent by the client through the network interface.

[0039] Data conversion: Decoding the received Unicode-encoded string into a processable uint32_t format.

[0040] Furthermore, detecting whether the keyboard input is a Chinese character specifically involves judging the range of the Unicode encoding.

[0041] Unicode encoding is a character encoding standard that contains characters for almost all languages in the world; in Unicode encoding, Chinese characters are mainly concentrated in several specific ranges.

[0042] The range of Chinese, Japanese, and Korean (CJK Unified Ideographs) is from 0x4E00 to 0x9FA5. This range contains common Chinese characters and covers most of the characters in modern Chinese. Among them, 0x4E00 is the first Chinese character (one), and 0x9FA5 is the last common Chinese character (龥).

[0043] In an exemplary embodiment, keyboard events are simulated on the screen of the Linux cloud desktop, and verified Chinese input data is typed through the keyboard events, specifically including: using the Xlib library function XTestFakeKeyEvent of the Linux system to simulate keyboard events on the screen of the Linux cloud desktop, and verifying Chinese input data is typed through the keyboard events.

[0044] The function prototype of XTestFakeKeyEvent is defined as follows: void XTestFakeKeyEvent(Display display, KeyCode keycode, Bool isPress, Time delay).

[0045] The parameters are described as follows.

[0046] Display display: A pointer to an open display connection, usually obtained via XOpenDisplay.

[0047] KeyCode keycode: The key code of the key to be simulated. It can be converted from the keysym through XKeysymToKeycode.

[0048] Bool isPress: A Boolean value indicating whether the event is a press (True) or release (False).

[0049] Time delay: The timestamp of the event. Usually CurrentTime can be used to represent the current time.

[0050] Function: This function is used to simulate keyboard events, so that the program can send keyboard press and release events to the X server without actual user input.

[0051] XTestFakeKeyEvent is a function in X11 that is used to simulate keyboard events.

[0052] X11 (also known as X Window System) is a system for graphical user interfaces, widely used in Unix-like operating systems. It provides basic window management and graphics display functions.

[0053] For example, the code uses the XTestFakeKeyEvent function to send keyboard events.

[0054] XTestFakeKeyEvent(display, keycode, True, CurrentTime) / / Send the key press event.

[0055] XTestFakeKeyEvent(display, keycode, False, CurrentTime) / / Send the key release event.

[0056] Simulate Chinese input: Enter "汉". int keycode = XKeysymToKeycode(display, XStringToKeysym("汉")); XTestFakeKeyEvent(display, keycode, True, CurrentTime); XTestFakeKeyEvent(display, keycode, False, CurrentTime).

[0057] Through the above technical solutions, this application realizes the direct use of the local Chinese input method of the Windows system under the Linux cloud desktop. The cloud desktop client is responsible for listening to and transmitting the keyboard input of the local Chinese input method of the Windows system, and the cloud desktop server receives and simulates keyboard events to realize the forwarding and display of Chinese input within the local Chinese input method of the Windows system. In this way, users can enjoy the same Chinese input experience as the local Windows system in the Linux cloud desktop, improving the convenience and efficiency of use.

[0058] Based on the same inventive concept, the embodiments of this application also provide a Linux system Chinese typing device for implementing the above-mentioned Linux system Chinese typing method. The implementation solutions provided by this device to solve problems are similar to those described in the above method. Therefore, the specific limitations in one or more of the following embodiments of the Linux system Chinese typing device can refer to the limitations on the Linux system Chinese typing method in the above text, and will not be repeated here.

[0059] In an exemplary embodiment, this application provides a Linux system Chinese typing device including the following modules.

[0060] A cloud desktop client, which is used to monitor the keyboard input of the Linux cloud desktop, capture the operations of the user on the local Chinese input method of the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server.

[0061] The cloud desktop server is used to parse and verify the encapsulated Chinese input data, and simulate keyboard events on the screen of the Linux cloud desktop, and type the verified Chinese input data through the keyboard events.

[0062] This application can directly use the local Chinese input method of the Windows system under the Linux cloud desktop. This application includes the following features.

[0063] Seamless Chinese input experience: Users can directly use the familiar local Chinese input method of Windows system in Linux cloud desktop without adapting to new operation methods. This feature improves user convenience and efficiency, and maintains the continuity of user workflow and habits, thereby improving user satisfaction.

[0064] Enhanced stability: This application can ensure the stability between Linux cloud desktop and the local Chinese input method of Windows system. Users can use various feature-rich local input methods without worrying about the system input method crashing, which improves the smoothness of work.

[0065] Expanded function selection: Users can make full use of the various functions provided by the local Chinese input method of the Windows system, such as handwriting input, intelligent error correction and personalized settings. The expansion of these functions increases the accuracy and efficiency of input and meets the personalized requirements of users for different input needs.

[0066] In an exemplary embodiment, a computer device is provided, which may be a server or a terminal. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store Chinese typing data of the Linux system. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a Chinese typing method of the Linux system is implemented.

[0067] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the above method is implemented when the processor executes the computer program.

[0068] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the above method when executed by a processor.

[0069] In an exemplary embodiment, a computer program product is provided, including a computer program, which implements the above method when executed by a processor.

[0070] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0072] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0073] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A Chinese typing method for Linux system, characterized in that: The Linux system Chinese typing method comprises: The cloud desktop client is used to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operation in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server; the cloud desktop client is built into the local control terminal; the cloud desktop server is built into the cloud server terminal; The cloud desktop server is used to parse and verify the encapsulated Chinese input data, and keyboard events are simulated on the screen of the Linux cloud desktop, and the verified Chinese input data is entered through the keyboard events.

2. The Chinese input method for Linux system according to claim 1, characterized in that: Use the cloud desktop client to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operation in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server. Previously, it also included: The network socket mechanism is used to enable the cloud desktop client to perform network communication with the cloud desktop server.

3. The Chinese input method for Linux system according to claim 1, characterized in that: Use the cloud desktop client to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operation in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server. Previously, it also included: When starting the cloud desktop server, start the Linux desktop environment, capture image data on the Linux cloud desktop, and send the image data to the cloud desktop client; The image data is decoded and displayed using the cloud desktop client to achieve remote access to the Linux cloud desktop.

4. The Chinese input method for Linux system according to claim 1, characterized in that: The captured Chinese input data is packaged and uploaded to the cloud desktop server, including: The captured Chinese input data is encapsulated into a Unicode-encoded string and transmitted to the cloud desktop server via the network.

5. The Chinese input method for Linux system according to claim 4, characterized in that: The cloud desktop server is used to parse and verify the encapsulated Chinese input data, specifically including: The cloud desktop server is used to parse the Unicode-encoded string and verify the legality of the Unicode encoding, so that the string is within a legal range, and verified Chinese input data is generated.

6. The Chinese input method for Linux system according to claim 1, characterized in that: Simulating keyboard events on the screen of the Linux cloud desktop, and typing verified Chinese input data through the keyboard events, specifically including: The Xlib library function XTestFakeKeyEvent of the Linux system is used to simulate keyboard events on the screen of the Linux cloud desktop, and the verified Chinese input data is typed through the keyboard events.

7. A Chinese input device for Linux system, characterized in that: The Linux system Chinese typing device comprises: The cloud desktop client is used to monitor the keyboard input of the Linux cloud desktop, capture the user's local Chinese input method operation in the Windows system, and encapsulate the captured Chinese input data and upload it to the cloud desktop server; The cloud desktop server is used to parse and verify the encapsulated Chinese input data, and simulate keyboard events on the screen of the Linux cloud desktop, and type the verified Chinese input data through the keyboard events.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the Chinese typing method for a Linux system according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the Chinese input method for a Linux system according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the Chinese input method for a Linux system according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Input method performance test method and device

    CN108829606A

  • Method, system and electronic device for achieving game controller computer game remote control

    CN109395372A

  • Automated keyboard mapping for virtual desktops

    CN113454577A

  • Cloud desktop control method and device, electronic equipment, storage medium and program product

    CN113778593A

  • Cloud desktop keyboard event processing method and device, equipment and storage medium

    CN113778622A