Pinyin eight-direction sliding Chinese input method and system of a brand-new keyboard layout

With a brand-new matrix-style initial consonant keyboard layout and dynamic initial-final mapping algorithm, the problems of excessive gliding distance and difficulty in key input of existing Pinyin input methods have been solved, achieving more efficient and accurate Chinese input, and supporting tone and upper-level mark input.

CN122363534APending Publication Date: 2026-07-10江远
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
江远
Filing Date
2026-04-17
Publication Date
2026-07-10

Smart Images

  • Figure CN122363534A_ABST
    Figure CN122363534A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for eight-directional gliding Chinese input based on a novel keyboard layout, belonging to the field of human-computer interaction technology for touchscreen devices. Addressing the problems of existing gliding input methods, such as accidental touches during long-distance gliding, inconsistent input, inability to input uppercase letters and tones, and some keys easily sliding off the screen, this invention adopts an innovative matrix-style initial consonant keyboard layout. Through a dynamic initial-final mapping algorithm, gliding determination relies solely on directional changes, unaffected by path length. Simultaneously, dedicated keys are added and their layout optimized to enable uppercase letters and tones input, preventing keys from exceeding the screen and becoming unusable. The system collects the gliding trajectory, performs error correction, matches finals, verifies pinyin, and displays candidate words to complete the input. This invention offers simple and smooth operation, significantly improved input efficiency, greatly reduced accidental touch rate, and stronger error tolerance, making it suitable for efficient Chinese input on touchscreen devices such as mobile phones and tablets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Chinese Pinyin input technology for touchscreen devices, particularly for various touchscreen devices such as mobile phones and tablets. In the international patent classification system, this invention is categorized under G06F3 / 0488 (touchscreen interaction), G06F3 / 0323 (gesture control), and G06F 40 / 274 (Pinyin input method optimization). Background Technology

[0002] I. This invention makes partial improvements to the keyboard layout and key mapping rules of the prior patent application filed by inventors Zhang Xiaofeng and Jiang Yuan, entitled: A Chinese Pinyin Glide Input System and Method Based on Multi-directional Glide Gestures (Application No. / Patent No.: 2025113354623, Application Date: 2025-09-18, Publication Date: 2025-12-30, hereinafter referred to as the original patent), in order to optimize input efficiency, reduce the accidental touch rate, and increase the word selection accuracy. The invention aims to improve the following defects of the original patent: 1. When the gliding distance is too long, touching other buttons will increase the accidental touch rate and make gliding input less smooth.

[0003] 2. No upper tone mark or tone input function.

[0004] 3. Issue where the 'q' key cannot be input when it slides out of the interface in the original patented A and E layouts.

[0005] II. Solution of the Invention This invention features an innovative matrix-style initial consonant keyboard layout. By modifying the original patented keyboard layout and mapping, and employing a unique dynamic initial consonant mapping algorithm, the mapping logic is altered. This changes the mapping logic so that gliding is only related to whether the direction changes, regardless of the length of the gliding path. It eliminates the need to observe the precise position of the keys, resulting in smoother gliding, higher efficiency, and a lower rate of accidental touches. In particular, the addition of zh, ch, sh keys, as well as the "0" initial consonant key and the er key, makes mapping simpler and faster. The addition of "tone" input makes candidate words more accurate, and the addition of "upper tone mark" makes inputting numbers and characters more convenient. Summary of the Invention

[0006] To achieve the above-mentioned objectives, the present invention adopts the following technical solution: A method and system for eight-way gliding Chinese input using Pinyin, applied to a smart terminal with a touchscreen, includes a virtual keyboard layout module, a gliding direction recognition module, a vowel and tone mapping module, a continuous gliding parsing module, a Pinyin combination verification module, a candidate word output module, a superscript input module, and a tone input module, and Chinese input is achieved through the above modules. Attached Figure Description

[0007] Figure 1This is a key layout diagram for the F key, where the [space] key is represented by the "space" key.

[0008] Figure 2 The diagram shows the mapping logic for the vowel input during gliding. In the diagram, "□" represents any initial consonant key.

[0009] Figure 3 This is a flowchart showing the input process for the pinyin "huang" using the shortcut key "ang" in the lower right corner (↘). The arrows in the diagram indicate the gliding direction, and the parallelogram is the gliding recognition area. When gliding input, the gliding distance within this area can be any length and does not affect the pinyin input mapping logic; it only depends on whether the direction changes.

[0010] Figure 4 The overall system workflow diagram is as follows: 1. Initial state: The system enters the input method process and displays the eight-way Pinyin gliding virtual keyboard.

[0011] 2. Slide Trigger: The user presses and holds the initial consonant button and begins to perform a slide input operation.

[0012] 3. Trajectory processing: The system collects the user's gliding trajectory, calculates the gliding direction, and performs fault-tolerant corrections.

[0013] 4. Vowel Matching: Match the corresponding vowel according to the gliding direction and realize the vowel combination.

[0014] 5. Pinyin Verification: Verify the legality of the combined pinyin, and complete error correction and syllable conversion.

[0015] 6. Candidate word generation: Match the internal thesaurus based on the verification results and display candidate words in order of relevance.

[0016] 7. Input complete: The user selects a candidate word to complete one Pinyin input.

[0017] 8. Process Branches: If the user chooses to continue typing, the system returns to the swipe typing stage; If the user invokes the upper tone / tone gliding input function, the corresponding upper tone / tone gliding logic will be executed.

[0018] 9. Process End: The process terminates after the input or branch processing is completed. Detailed Implementation

[0019] I. Implementation Method of Virtual Keyboard Layout Module 1. Matrix-style full-consonant keyboard layout: This invention differs from the five keyboard layouts of the original invention; it will be referred to as layout F below. Layout F (e.g.) Figure 1As shown in the image, the layout is presented in a 5x11 matrix, basically following the 26-key QWERTY keyboard layout, with only some key adjustments: First row: [Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty] Second row: [empty] wqrty zh ch sh p [empty] Third row: [Empty] 0 sdfghjkl [Empty] Fourth row: [empty][empty] zxc er bnm [empty][empty] Fifth row: [Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty] In the keyboard layout above, the 'e' key has been removed from the qwertye26 keyboard layout. The 'u', 'i', 'o', 'a', and 'v' keys have been replaced with 'zh', 'ch', and 'sh' keys. The '0' initial consonant key and the 'er' key have been replaced. The 'q' key and the 'w' key have been swapped. The [empty] area is the input guide area keyboard, and function keys, number keys, symbol keys, etc. can be customized as needed.

[0020] 2. To input the up arrow key on the keyboard, slide down the corresponding key.

[0021] 3. Add the er key.

[0022] 4. Added the function of using "er" as a "tone key" to input and delete tones when swiping in different directions.

[0023] 5. Add a corresponding upper column indicator to the input keys, which corresponds one-to-one with the main input characters.

[0024] 6. The [space] key can be resized, for example, reduced to half the size of a letter key.

[0025] II. Implementation Method of the Gliding Direction Recognition Module Each initial consonant button or "er" button is a circular or square touch area. With the center point of the button as the origin, it is divided into eight equal sliding directions: up (↑), down (↓), left (←), right (→), upper left (↖), upper right (↗), lower left (↙), and lower right (↘). Each direction corresponds to an independent sliding trigger area, and the angle between the directions is 45° to ensure accurate recognition of the sliding direction.

[0026] III. Implementation Method of the Vowel and Tone Mapping Module 1. The sliding input vowel mapping logic of the virtual keyboard layout has been changed (e.g., Figure 2 The specific logic of its vowel mapping is as follows: (1) Glide upwards (↑) to map the vowel a; (2) The downward (↓) gliding mapping of the vowel n; (3) Continuous sliding down (↓) and then down (↑) triggers mapping g, generating ng; (4) Slide to the left (←) to map the vowel i; (5) Slide to the right (→) to map the vowel u. This applies to the initials j, q, x, and y. (6) Slide to the upper left (↖) to map the vowel v (ü); (7) Slide to the upper right (↗) to map the vowel e; (8) Swiping right (↘) is a shortcut path, mapping the vowel ang; (9) The dynamic binding for sliding to the lower left (↙) is o or ong; (10) Click the initial consonant key to dynamically bind the final vowel er; (11) Click the 0 initials key to enter the number 0; (12) When gliding from the 0 initial consonant key, the corresponding vowel pinyin in the mapping logic is directly generated, without initial consonant.

[0027] 2. The specific differences from the original patent's vowel mapping logic are as follows: (1) Continuous sliding down (↓) and then down (↑) triggers mapping g, generating ng; (2) Map the vowel ang to the lower right (↘) for a shortcut; (3) Click the "er" key to dynamically bind it to er; (4) Click the "0" initial key to enter the number 0; (5) When sliding from the "0" initial consonant key, the corresponding vowel pinyin in the mapping logic is directly generated, without initial consonant.

[0028] 3. Sliding the er key in different directions inputs and deletes tones. The specific sliding mapping logic is as follows: (1) Slide right (↘) to map a neutral tone; (2) Slide to the right (→) and make a sound; (3) Slide to the upper right (↗) to map the second tone; (4) Slide upwards (↑) to map the third tone; (5) Slide to the upper left (↖) to map the four tones; (6) Slide left (←) to map and delete tone.

[0029] IV. Implementation Method of Continuous Glide Analysis Module The original patent allowed users to start gliding from any initial consonant or the initial "0" and glide in different directions with a single keystroke. This has been improved to allow gliding in eight different directions. As long as the direction remains the same, the gliding distance is flexible. Users input the initial consonant and the corresponding vowel from the mapping logic. If the gliding direction changes during continuous gliding, other vowels or vowel combinations from the mapping logic are input. Each gliding inputs one pinyin syllable, covering all pinyin combinations without duplicate paths. The specific operation is as follows: For compound vowels (such as ao, ou, iu, ie, üe) and nasal vowels (such as ang, eng, ing, ong), a continuous gliding logic is used for input. The specific implementation steps are as follows: 1. One slide: The user presses and holds the target initial consonant button and slides it in one of the eight directions corresponding to the first basic vowel to complete the initial binding of the initial consonant and the first vowel. The system records the initial consonant information and the first vowel information. 2. Two consecutive swipes: Without leaving the touchscreen, you can continue swiping from the end point of the first swipe to the direction corresponding to the second vowel. There is no need to return to the initial consonant button. The system recognizes the continuous swipe trajectory and automatically combines the vowels corresponding to the two swipes into a compound vowel. 3. Multi-vowel continuous gliding: For three-vowel combinations (such as ian, uai), it supports three or more continuous glidings. The system will sequentially splice the vowels according to the gliding order to form a complete vowel combination. 4. Swipe Termination Judgment: If the finger leaves the touchscreen or pauses for more than 0.3 seconds, it is determined that a single Pinyin input is completed, and the system terminates the swipe trajectory analysis.

[0030] Example: Enter the pinyin "huang", use the shortcut key ang to go to the bottom right (↘), and enter the process (such as...). Figure 3 The sequence is as follows: Press and hold the H key → slide to the right (→) (mapped to u) → without lifting your hand, slide down to the right (↘) (mapped to ang). The system automatically combines the result into h+u+ang=huang. Or press and hold the H key → slide to the right (→) (mapped to u) → without lifting your hand, slide up (↑) (mapped to a) → without lifting your hand, slide down (↓) (mapped to n) → without lifting your hand, slide up (↑) (mapped to g). The system automatically combines the result into h+u+a+n+g=huang.

[0031] V. Logic Algorithm for Gliding Direction Recognition Module The core of this module is the acquisition of gliding trajectory, direction determination, and error-tolerant algorithms, ensuring the accuracy of direction recognition under different gliding speeds and slight trajectory deviations. Specific algorithm steps are as follows: 1. Track coordinate acquisition The touchscreen chip collects the user's touch coordinates in real time during the gliding process, with a sampling frequency of 100Hz. This acquires the starting coordinates (x0, y0) (center of the initial consonant button), and the coordinates of several trajectory points (x1, y1), (x2, y2), ..., (x...y0) during the gliding process. n ,y n ), endpoint coordinates (x) n ,y n ).

[0032] 2. Direction Vector Calculation Establish a Cartesian coordinate system with the starting point as the origin, and calculate the displacement vector Δx = x of the endpoint relative to the starting point. n -x0, Δy=y n -y0; Calculate the angle θ (in degrees) between the gliding direction and the positive direction using the vector angle formula, ranging from -180° to 180°. θ=arctan(Δy / Δx) (Δx≠0); θ=90° (Δx=0, Δy>0); θ=-90° (Δx=0, Δy<0).

[0033] 3. Eight-Direction Determination Rules The 360° plane is divided into eight 45° sector regions, each corresponding to a gliding direction. The judgment thresholds are as follows: Directional angle range (°) Right (→) -22.5° ≤ θ < 22.5° Top right (↗) 22.5° ≤ θ < 67.5° Up (↑) 67.5° ≤ θ < 112.5° Top left (↖) 112.5° ≤ θ < 157.5° Left (←) 157.5° ≤ θ ≤ 180° or -180° ≤ θ < -157.5° Bottom left (↙) -157.5° ≤ θ < -112.5° Down (↓) -112.5° ≤ θ < -67.5° Bottom right (↘) -67.5° ≤ θ < -22.5° Boundary handling instructions: The interval includes the lower limit but not the upper limit (except for the right boundary of 180° in the left direction, which is included). θ = 180° is classified as the left direction.

[0034] 4. Fault Tolerance Correction Algorithm A fault-tolerance mechanism is implemented to address issues such as slight finger slippage and curved trajectory. (1) Trajectory smoothing: The collected discrete coordinate points are filtered by mean to remove jitter noise points and fit a smooth sliding trajectory; (2) Directional deviation tolerance: If the angle between the gliding trajectory is within ±5° of the threshold critical zone of the two directions, the system will automatically match the direction of the most commonly used vowel by combining the high-frequency pinyin syllable library; (3) Minimum sliding distance determination: The minimum effective sliding distance is set to 5mm. If the distance is less than this, it is determined to be an invalid click to avoid accidental triggering of sliding operation.

[0035] VI. Logical Algorithm for Final Combination and Pinyin Verification Module 1. Algorithm for combining vowels The system extracts the vowel characters corresponding to each slide in the order of continuous sliding, and uses string concatenation logic to generate a complete vowel string. During the concatenation process, a preset vowel combination rule library is used to automatically filter invalid combinations that do not conform to the rules of Chinese Pinyin (such as the combination m+o / ong is automatically corrected to mo).

[0036] 2. Pinyin Validation Algorithm A standard Chinese Pinyin syllable database (containing all 400+ Mandarin syllables) was constructed. Initials and combined finals were concatenated to form complete Pinyin syllables, which were then compared with the syllable database. (1) If it is a valid syllable, proceed directly to the candidate word matching stage; (2) If it is an invalid syllable, the system starts the error correction algorithm, and replaces it with the closest valid syllable based on the probability of gliding direction deviation and the priority of high-frequency syllables, and pushes the error correction prompt to the user.

[0037] 3. Special syllable adaptation rules (1) Zero initial syllable: After clicking the zero initial button, directly slide the eight directions to input the final, and the system will automatically match the zero initial pinyin (such as a, an, ang). (2) The original patent's dynamic binding rules for o / ong remain unchanged: The system will automatically bind "o / ong" dynamically based on the validity of the initial consonant. If the combination of the initial consonant d, t, n, l, g, h, k, j, q, x, z, c, s, r, zh, ch, sh, y, w with "o" is invalid, the system will automatically bind it as "ong", such as "l + o / ong → long", "d + o / ong → dong"; if the combination of the initial consonant b, p, m, f with "o" is valid, such as "m + o / ong → mo". (3) ü finals are matched: after the initials j, q, x, y, ü is automatically corrected to u. The system automatically converts in the background without the need for any additional operation by the user.

[0038] VII. Implementation Method of Candidate Word Output and Association Module 1. Candidate word ranking algorithm Based on a Chinese word database that matches pinyin syllables, a high-frequency priority + contextual association sorting rule is adopted: first, single-character high-frequency words are pushed, followed by disyllabic and multi-syllable high-frequency words. The sorting weight of candidate words is dynamically adjusted in combination with the user's input history. 2. Continuous association function After a word is entered, the system automatically suggests the next candidate word based on Chinese grammar rules and the context (e.g., if you enter "China", it will suggest "people", "characteristics", and "development"). 3. Candidate word selection The candidate word bar is arranged horizontally. Users click on a candidate word to complete the input, and can swipe the candidate word bar to switch to more candidate content.

[0039] 8. Inputting the upper gear mark: Slide down on the input button corresponding to the upper gear mark to trigger the input of the upper gear mark. The triggering logic is the same as the above-mentioned pinyin vowel sliding input logic.

[0040] 9. Tone input: Slide the "er" key in different directions. The triggering logic is the same as the above-mentioned pinyin vowel sliding input logic. It executes tone input and deletion mapping logic, and adds the corresponding tone pinyin matching Chinese word library.

[0041] 10. Overall system workflow (e.g.) Figure 4 ) 1. The smart terminal touchscreen displays an eight-way sliding virtual keyboard for Pinyin; 2. The user presses and holds the target initial consonant button to begin the gliding operation; 3. The gliding direction recognition module collects the trajectory, calculates the direction, and completes fault correction in real time; 4. The vowel mapping module matches the corresponding vowel according to the gliding direction; continuous gliding will combine vowels. 5. The Pinyin combination verification module verifies the validity of the Pinyin, completes error correction and syllable conversion; 6. The candidate word output module matches the vocabulary, sorts, and displays the candidate words; 7. The user selects a candidate word, completes the Chinese input, and repeats the above process to achieve continuous input.

[0042] 8. Added the function of glide input for upper gear and tone.

[0043] Technical effect Based on the technical effects of the original patent, the following improvements have been made: 1. Significantly improved input efficiency: Adopting the "one-click initial consonant + eight-way final vowel" mode, each pinyin generally requires 1-2 swipes, occasionally 3, with short swipe distances. The swipe path is shortened by more than 60%, and the input speed of high-frequency syllables is increased by 50%; the addition of compound initial consonant keys zh, ch, sh, as well as the "0" initial consonant key and the er key, makes the input path simpler; the shortcut key for inputting ing by swiping down the right has been changed to inputting ang, which obviously includes more pinyin combinations and simplifies the input path.

[0044] 2. Improve the defect of not being recognized when the gliding path goes beyond the screen: Change the position of the q and w keys to solve the problem of inputting qiong and qiao beyond the boundary in the original patent A and E layout.

[0045] 3. Reduced learning cost: Compared with the qwerty 26-key keyboard layout, the basic key positions remain unchanged. Only five single vowel keys are replaced with zh, ch, sh, and the "0" initial consonant key and er key. One key is removed from the second row. At the same time, the size of the auxiliary keys is reduced to half the size of the letter keys, saving keyboard space. The space occupied is the same as the previous qwerty keyboard layout, which conforms to the existing keyboard input memory habits.

[0046] 4. The addition of upper-level punctuation input breaks through the barriers that the previous Pinyin gliding input method could not achieve, making it more convenient to input corresponding numbers, punctuation marks, etc.

[0047] 5. Improved word selection efficiency: By adding tone input, the efficiency of candidate word selection can be improved by continuing to input tone when necessary.

[0048] 6. Reduced accidental touch rate: Each pinyin syllable is basically glided 1-2 times, occasionally 3 times. The gliding distance is short, there is no repeated path, and it is not limited by the gliding distance, but only by the direction. The gliding is smoother, and you can memorize the gliding after you are proficient.

[0049] practicality This invention can be widely applied to various smart terminals with touch screens, such as smartphones, tablets, smartwatches, in-vehicle touch screens, and self-service terminal equipment. It is suitable for various Chinese input scenarios such as daily chat, office input, and in-vehicle control. It has strong industrial applicability and is valuable for large-scale promotion and application.

Claims

1. A novel keyboard layout for eight-way gliding Chinese input of Pinyin, characterized in that... It includes a virtual keyboard layout module, a gliding direction recognition module, a vowel and tone mapping module, a continuous gliding parsing module, a pinyin combination verification module, and a candidate word output module; Upper gear indicator input module; tone input module; The mapping logic module has a pre-stored direction mapping relationship, with different gliding directions corresponding to Pinyin input, tone, and upper gear input, respectively. When a key is pressed normally, the basic character is output; when a key is slid in different directions, the corresponding Pinyin code, tone code, or superscript code is called according to the preset mapping relationship to complete the input.

2. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The virtual keyboard layout module includes a 5x11 matrix layout, basically following the qwerty26 keyboard layout, with only some keys adjusted. First row: [Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty] Second row: [empty] wqrty zh ch sh p [empty] Third row: [Empty] 0 sdfghjkl [Empty] Fourth row: [empty][empty] zxc er bnm [empty][empty] Fifth row: [Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty][Empty] In the keyboard layout above, the 'e' key has been removed from the qwertye26 keyboard layout. The 'u', 'i', 'o', 'a', and 'v' keys have been replaced with 'zh', 'ch', 'sh', the '0' initial consonant key, and the 'er' key. The [empty] key serves as the input guide area, and function keys, number keys, and symbol keys can be customized as needed. The 'er' key has been added as a tone key, allowing input and deletion of tones when swiping in different directions. Input keys now correspond to shift indicators, one-to-one with the main input characters. The [empty] key can be resized, such as reducing it to half the size of a letter key.

3. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The sliding direction recognition module uses each initial consonant button or "er" button as a circular or square touch area, and divides it into eight equal sliding directions with the center point of the button as the origin: up (↑), down (↓), left (←), right (→), upper left (↖), upper right (↗), lower left (↙), and lower right (↘). Each direction corresponds to an independent sliding trigger area, and the angle between the directions is 45° to ensure accurate sliding direction recognition.

4. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The vowel and tone mapping module includes: (1) The improved part of the sliding input vowel mapping logic of the virtual keyboard layout is as follows: On any initial consonant key, sliding down (↓) and then down (↑) continuously triggers the mapping g, generating ng; On any initial consonant key, slide to the lower right (↘) to map the final vowel ang, which is a shortcut path; Click the "er" key to dynamically bind it to er; Click the "0" initial key to enter the number 0; When gliding from the "0" initial consonant key, the corresponding vowel pinyin in the mapping logic is generated directly, without an initial consonant; Sliding the "er" key in different directions inputs and deletes tones. The specific sliding mapping logic is as follows: Swipe right (↘) to map a neutral tone; Slide to the right (→) and a sound will be heard; Slide to the upper right (↗) to map the second tone; Slide upwards (↑) to map the third tone; Slide to the upper left (↖) to map the four tones; Swipe left (←) to map and delete tones.

5. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The continuous gliding analysis module includes: Starting from any initial consonant or the initial consonant "0", glide in eight different directions. As long as the direction remains the same, the glide distance is not important. Then input the initial consonant and the corresponding vowel in the mapping logic. If the glide direction changes during continuous glide, input other vowels or vowel combinations in the mapping logic. Input one pinyin per glide, which can fully cover all pinyin combinations without repeated paths. The specific implementation steps are as follows: (1) One slide: The user presses the target initial consonant button with their finger and slides it in the eight directions corresponding to the first basic vowel to complete the initial binding of the initial consonant and the first vowel. The system records the initial consonant information and the first vowel information. (2) Two consecutive slides: Without leaving the touch screen, the finger continues to slide from the end position of the first slide to the direction corresponding to the second vowel. There is no need to return to the initial consonant button. The system recognizes the continuous slide trajectory and automatically combines the vowels corresponding to the two slides into a compound vowel. (3) Multi-vowel continuous gliding: For three-vowel combinations, it supports three or more continuous glidings. The system splices the vowels in the gliding order to form a complete vowel combination. (4) Gradient termination judgment: If the finger leaves the touch screen or pauses for more than 0.3 seconds, it is judged as a single Pinyin input completed, and the system terminates the gliding trajectory analysis.

6. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The logic algorithm of the gliding direction recognition module includes: (1) Track coordinate acquisition The touchscreen chip collects the user's touch coordinates in real time during the gliding process, with a sampling frequency of 100Hz. This acquires the starting coordinates (x0, y0) (center of the initial consonant button), and the coordinates of several trajectory points (x1, y1), (x2, y2), ..., (x...y0) during the gliding process. n ,y n ), endpoint coordinates (x) n ,y n ); (2) Calculation of direction vector Establish a Cartesian coordinate system with the starting point as the origin, and calculate the displacement vector Δx = x of the endpoint relative to the starting point. n -x0, Δy=y n -y0; Calculate the angle θ (in degrees) between the gliding direction and the positive direction using the vector angle formula, ranging from -180° to 180°. θ=arctan(Δy / Δx) (Δx≠0); θ=90° (Δx=0, Δy>0); θ=-90° (Δx=0, Δy<0); (3) Eight-direction determination rules The 360° plane is divided into eight 45° sector regions, each corresponding to a gliding direction. The judgment thresholds are as follows: Directional angle range (°) Right (→) -22.5° ≤ θ < 22.5° Top right (↗) 22.5° ≤ θ < 67.5° Up (↑) 67.5° ≤ θ < 112.5° Top left (↖) 112.5° ≤ θ < 157.5° Left (←) 157.5° ≤ θ ≤ 180° or -180° ≤ θ < -157.5° Bottom left (↙) -157.5° ≤ θ < -112.5° Down (↓) -112.5° ≤ θ < -67.5° Bottom right (↘) -67.5° ≤ θ < -22.5° Boundary handling instructions: The interval includes the lower limit but does not include the upper limit (except for the right boundary of 180° in the left direction, which is included), and θ = 180° is classified as the left direction; (4) Fault-tolerant correction algorithm To address issues such as slight finger slippage and curved trajectory, a fault-tolerance mechanism is implemented, including: Trajectory smoothing: Mean filtering is applied to the collected discrete coordinate points to remove jitter noise points and fit a smooth sliding trajectory; Directional deviation tolerance: If the angle between the gliding trajectory is within ±5° of the threshold critical zone between the two directions, the system will automatically match the direction of the most commonly used vowel by combining the high-frequency pinyin syllable library; Minimum gliding distance determination: The minimum effective gliding distance is set to 5mm. Clicks below this distance are considered invalid to avoid accidental gliding operations.

7. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The logical algorithm of the glide vowel combination and pinyin verification module includes: (1) Algorithm for combining vowels The system extracts the vowel characters corresponding to each slide in the order of continuous sliding, and uses string concatenation logic to generate a complete vowel string; during the concatenation process, a preset vowel combination rule library is used to automatically filter invalid combinations that do not conform to the rules of Chinese Pinyin. (2) Pinyin Validation Algorithm A standard Chinese Pinyin syllable library (containing all 400+ Mandarin syllables) is constructed. The initial consonant and the combined final vowel are concatenated to form a complete Pinyin, which is then compared with the syllable library. If it is a valid syllable, it directly enters the candidate word matching stage. If it is an invalid syllable, the system activates an error correction algorithm, which replaces it with the closest valid syllable based on the probability of gliding direction deviation and the priority of high-frequency syllables, and pushes an error correction prompt to the user.

8. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The sliding candidate word output and association module includes: (1) Candidate word sorting algorithm Based on a Chinese word database that matches pinyin syllables, a high-frequency priority + contextual association sorting rule is adopted: first, single-character high-frequency words are pushed, followed by disyllabic and multi-syllable high-frequency words. The sorting weight of candidate words is dynamically adjusted in combination with the user's input history. (2) Continuous association function After a word is entered, the system automatically suggests the next candidate word based on Chinese grammar rules and the context. (3) Candidate word selection The candidate word bar is arranged horizontally. Users click on a candidate word to complete the input, and can swipe the candidate word bar to switch to more candidate content.

9. The Pinyin eight-way gliding Chinese input method and system according to claim 1, characterized in that... The tone and uppercase inputs include: (1) Tone input: Slide the "er" key in different directions. Its triggering logic is the same as the pinyin sliding input final logic above. It executes tone input and deletion mapping logic, and adds the corresponding tone pinyin matching Chinese word library at the same time. (2) Input of the upper gear mark: Slide down on the input button corresponding to the upper gear mark to trigger the input of the upper gear mark. The triggering logic is the same as the above-mentioned pinyin vowel sliding input logic.