Method for processing tail syllable splitting of Yiberg Wen
Patent Information
- Application Number
- CN202411319112.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-21
- Publication Date
- 2025-01-28
AI Technical Summary
The prior art is difficult to effectively handle the syllable splitting at the end of the tibirsk text on electronic devices, resulting in unsightly layout and contrary to traditional aesthetic principles.
Adopt a automated Xiben line to disassemble the syllable processing method. By obtaining the contents of Xiben to be displayed, judge whether the words at the end of the line need to be disassembled, and use the zero -width connection rune U200D for processing to ensure that the space between the space between the words is consistent, optimize the typesetting, optimize the typesetting Essence
The efficient Xibavin's final syllable segmentation is achieved on electronic devices, and the relative width of the space between words is maintained. The overall typesetting is beautiful and generous, which is in line with the traditional typesetting principles of Xibavin.
Smart Images

Figure CN119378489A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the deepening application of Xibe script in the field of electronic equipment typesetting technology, and specifically, it relates to an advanced method for implementing syllable splitting at the end of a Xibe script text line on an electronic device. Background Art
[0002] Xibe has distinct typesetting characteristics. It follows a unique left-to-right, top-to-bottom order. At the same time, within a word, Xibe letters will undergo morphological changes depending on their position at the beginning, middle, or end of the word. At present, due to technical limitations, when Xibe articles are displayed on electronic devices, the display method of Xibe texts often takes the form of moving long words down to the next line as a whole and relying on increasing the space within the line to achieve the effect of two-end alignment. This practice not only violates the traditional aesthetic principle of Xibe in dealing with syllable segmentation, but may also visually cause excessive line spacing or uneven spaces, thereby affecting the overall aesthetics of the layout. In view of the above challenges, we urgently need to develop and apply more advanced typesetting technology solutions. These new technologies should be able to accurately identify and process the various morphological changes of Xibe letters, while maintaining respect for the syllable structure of words, avoiding unnecessary line breaks and excessively wide spaces, thereby presenting a typesetting effect that is both in line with the tradition of Xibe and modern and beautiful. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for processing syllable splitting at the end of a line in Xibe script in view of the above shortcomings. The method can automatically solve the syllable splitting and line breaking problems encountered in the process of Xibe script information processing without human intervention, and can efficiently achieve the end-of-line syllable segmentation of Xibe script on electronic devices, while ensuring that the spaces between words maintain a consistent relative width during the segmentation process, thereby optimizing the user experience, so that the overall typesetting is both beautiful and standardized, and strictly follows the traditional typesetting principles of Xibe script.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions: A method for processing syllables at the end of a line in Xibe script comprises the following steps: Step 1: Obtain the Xibe content to be displayed on the electronic device, and layout it from left to right and from top to bottom according to the Xibe layout rules; Step 2: determine whether the word at the end of the line needs to be split into syllables, process the word to be processed according to the syllable splitting rules of Xibe, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and the word that does not need to be split into syllables is processed as a whole word in Xibe; Step 3: After the word at the end of a line is split into syllables or the whole word is moved to the next line, some space will be left in the line. You need to stretch the space in the line to fill it up. Step 4: If the previous line has been syllable-split, in order to make the first Xibe letter of the next line appear in the correct form, you need to automatically insert the zero-width connector code U200D at the beginning of the line, set the connector attribute to automatically add, and then continue the typesetting process; Step 5: Repeat steps 2 to 4 until all the Xibe text to be displayed is finished. Step 6. When the software on the device copies or extracts the typeset Xibe text content, first delete all zero-width connector codes U200D marked as automatically added in the text to ensure the correctness of the extracted content.
[0005] Furthermore, the step 2 includes the following steps: Step 2.1, first calculate the number of vowel characters in the first half of the word at the end of the Xibe line. If the number of vowel characters is less than or equal to 1, the word will not be split into syllables, and the whole word will be moved to the next line, and then go to step three.
[0006] Furthermore, the step 2 further comprises the following steps: Step 2.2, record the end position Q of the Xibe typesetting line being processed as the current position to be processed.
[0007] Furthermore, the step 2 further comprises the following steps: Step 2.3, get the first Xibe vowel from Q onwards in the second half of the word at the end of the line. If found, record the vowel position as Q1, and determine whether the Xibe text at the position Q2 before Q1 is a vowel or consonant. If the text at position Q2 is a Xibe consonant, determine whether Q2 is less than or equal to Q. If so, split the syllables from position Q2, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and go to step three.
[0008] Furthermore, the step 2 further comprises the following steps: Step 2.4, calculate the number of Xibe vowel characters in front of the current processing position Q of the Xibe word. If the number of vowel characters is less than or equal to 1, the word will no longer be split into syllables, and the whole word will be placed in the next line for processing, and then go to step three.
[0009] Furthermore, the step 2 further comprises the following steps: Step 2.5, from the current processing position Q, get the first vowel of the first half of the word at the end of the line, record it as Q3, determine whether the Xibe character at the position Q4 before Q3 is a consonant or a vowel character, if the character at the Q4 position is a Xibe consonant character, then start the syllable splitting from the Q4 position, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and go to step 3; Step 2.6, determine whether the Xibe character Q4 before Q3 is a consonant or a vowel character. If the character at position Q4 is a Xibe vowel character, record Q4 as the current position Q and jump to step 2.4 to continue determining until a position is found where the syllable can be split or the entire word is moved to the next line.
[0010] Furthermore, the step three also includes the following steps: Step 3.1, starting from the beginning of the current typeset line, record and calculate the space position in the typeset line; Step 3.2, adopt the principle of average distribution, and stretch the space width at the corresponding position according to the line width to be filled, so that the typesetting effect will be more beautiful; Step 3.3, finally set the Xibe text to be typeset in a double-aligned style.
[0011] The present invention adopts the above technical solution, and has the following technical effects compared with the prior art: The method described in this article is used to perform Xibe typesetting processing, which can realize the typesetting processing of syllable splitting at the end of Xibe lines on all electronic devices, and the width of the spaces between Xibe words after syllable splitting remains basically unchanged. The overall typesetting is beautiful and elegant, and is more in line with the typesetting rules of Xibe. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0013] Figure 1 This is the typesetting effect diagram of the end of the Xibe line in this method, without syllable splitting. Figure 2 This is the typesetting effect diagram of Xibe typesetting after the end-of-line syllable splitting process is performed in this method; Figure 3 It is a display diagram of the second half and the first half of the word at the end of a Xibe line in this method; Figure 4 It is a schematic diagram of the position of the Xibe line-final consonant+vowel syllable split in the present invention; Figure 5 It is a schematic diagram of the positions of the Xibe line-final consonant + vowel + vowel syllable splitting in the present invention; DETAILED DESCRIPTION
[0014] Embodiment, a method for processing syllables at the end of a line in Xibe script, comprising the following steps: Step 1: Obtain the Xibe content to be displayed on the electronic device, and layout it from left to right and from top to bottom according to the Xibe layout rules; Step 2: Determine whether the word at the end of the line needs to be split into syllables, process the word to be processed according to the syllable splitting rules of Xibe, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and do not split the word into syllables. The word is processed as a whole word in Xibe. The specific process is as follows: Step 2.1, such as Figure 3 As shown, first calculate the number of vowel characters in the first half of the word at the end of the Xibe line (U1820, U1823, U185D, U185E, U185F, U1860, U1861, U1873). If the number of vowel characters is less than or equal to 1, the word will not be split into syllables, and the whole word will be moved to the next line, and go to step three.
[0015] Step 2.2, record the end position Q of the Xibe typesetting line being processed as the current position to be processed.
[0016] Step 2.3, such as Figure 4 As shown, the second half of the word at the end of the line gets the first Xibe vowel from Q onwards. If found, record the vowel position as Q1, and determine whether the Xibe text at the position Q2 before Q1 is a vowel or consonant. If the text at the Q2 position is a Xibe consonant, determine whether Q2 is less than or equal to Q. If so, split the syllables from the Q2 position, add the zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and go to step three.
[0017] Step 2.4, calculate the number of Xibe vowel characters in front of the current processing position Q of the Xibe word. If the number of vowel characters is less than or equal to 1, the word will no longer be split into syllables, and the whole word will be placed in the next line for processing, and then go to step three.
[0018] Step 2.5, such as Figure 5 As shown, the first vowel letter of the first half of the word at the end of the line is obtained from the current processing position Q and recorded as Q3. It is determined whether the Xibe character at the position Q4 before Q3 is a consonant or a vowel character. If the character at the Q4 position is a Xibe consonant character, the syllable splitting starts from the Q4 position, and a zero-width connector code U200D is added to the end of the line. The connector attribute is set to automatically add, and then go to step three.
[0019] Step 2.6, determine whether the Xibe character Q4 before Q3 is a consonant or a vowel character. If the character at position Q4 is a Xibe vowel character, record Q4 as the current position Q and jump to step 2.4 to continue determining until a position is found where the syllable can be split or the entire word is moved to the next line.
[0020] like Figure 1The effect of not breaking up syllables and Figure 2 As shown in the comparison of syllable splitting effects, after the Xibe word at the end of the line is split into syllables, the width of the spaces between the Xibe words remains basically unchanged, and the overall layout is beautiful and elegant.
[0021] Step 3: After the word at the end of a line is split into syllables or the whole word is moved to the next line, some space will be left in the line. You need to stretch the spaces in the line to fill the space.
[0022] Step 3.1, starting from the beginning of the current typeset line, record and calculate the space position in the typeset line; Step 3.2, adopt the principle of average distribution, and stretch the space width at the corresponding position according to the width of the line to be filled, so that the typesetting effect will be more beautiful.
[0023] Step 3.3, finally set the Xibe text to be typeset in a double-aligned style.
[0024] Step 4. If the previous line has been syllable-split, in order to make the first Xibe letter of the next line appear in the correct word form, it is necessary to automatically insert the zero-width connector code U200D at the beginning of the line, set the connector attribute to automatically add, and then continue with the typesetting process.
[0025] Step 5. Repeat steps 2 to 4 until all the Xibe content to be displayed has been arranged.
[0026] Step 6. When the software on the device copies or extracts the typeset Xibe text content, first delete all zero-width connector codes U200D marked as automatically added in the text to ensure the correctness of the extracted content.
[0027] The description of the present invention is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for particular uses.
Claims
1. A method for processing syllables at the end of a line in Xibe script, characterized by: The following steps are involved: Step 1: Obtain the Xibe content to be displayed on the electronic device, and layout it from left to right and from top to bottom according to the Xibe layout rules; Step 2: determine whether the word at the end of the line needs to be split into syllables, process the word to be processed according to the syllable splitting rules of Xibe, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and the word that does not need to be split into syllables is processed as a whole word in Xibe; Step 3: After the word at the end of a line is split into syllables or the whole word is moved to the next line, some space will be left in the line. You need to stretch the space in the line to fill it up. Step 4: If the previous line has been syllable-split, in order to make the first Xibe letter of the next line appear in the correct form, you need to automatically insert the zero-width connector code U200D at the beginning of the line, set the connector attribute to automatically add, and then continue the typesetting process; Step 5: Repeat steps 2 to 4 until all the Xibe text to be displayed is finished. Step 6. When the software on the device copies or extracts the typeset Xibe text content, first delete all zero-width connector codes U200D marked as automatically added in the text to ensure the correctness of the extracted content.
2. A method for processing syllables at the end of a line in Xibe script as claimed in claim 1, characterized in that: The step 2 comprises the following steps: Step 2.1, first calculate the number of vowel characters in the first half of the word at the end of the Xibe line. If the number of vowel characters is less than or equal to 1, the word will not be split into syllables, and the whole word will be moved to the next line, and then go to step three.
3. A method for processing syllables at the end of a line in Xibe script as claimed in claim 1, characterized in that: The step 2 also includes the following steps: Step 2.2, record the end position Q of the Xibe typesetting line being processed as the current position to be processed.
4. A method for processing syllables at the end of a line in Xibe script as claimed in claim 3, characterized in that: The step 2 also includes the following steps: Step 2.3, get the first Xibe vowel from Q onwards in the second half of the word at the end of the line. If found, record the vowel position as Q1, and determine whether the Xibe text at the position Q2 before Q1 is a vowel or consonant. If the text at position Q2 is a Xibe consonant, determine whether Q2 is less than or equal to Q. If so, split the syllables from position Q2, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and go to step three.
5. A method for processing syllables at the end of a line in Xibe script as claimed in claim 3, characterized in that: The step 2 also includes the following steps: Step 2.4, calculate the number of Xibe vowel characters in front of the current processing position Q of the Xibe word. If the number of vowel characters is less than or equal to 1, the word will no longer be split into syllables, and the whole word will be placed in the next line for processing, and then go to step three.
6. A method for processing syllables at the end of a line in Xibe script as claimed in claim 5, characterized in that: The step 2 also includes the following steps: Step 2.5, from the current processing position Q, get the first vowel of the first half of the word at the end of the line, record it as Q3, determine whether the Xibe character at the position Q4 before Q3 is a consonant or a vowel character, if the character at the Q4 position is a Xibe consonant character, then start the syllable splitting from the Q4 position, add a zero-width connector code U200D at the end of the line, set the connector attribute to automatically add, and go to step 3; Step 2.6, determine whether the Xibe character Q4 before Q3 is a consonant or a vowel character. If the character at position Q4 is a Xibe vowel character, record Q4 as the current position Q and jump to step 2.4 to continue determining until a position is found where the syllable can be split or the entire word is moved to the next line.
7. A method for processing syllables at the end of a line in Xibe script as claimed in claim 1, characterized in that: The step three also includes the following steps: Step 3.1, starting from the beginning of the current typeset line, record and calculate the space position in the typeset line; Step 3.2, adopt the principle of average distribution, and stretch the space width at the corresponding position according to the line width to be filled, so that the typesetting effect will be more beautiful; Step 3.3, finally set the Xibe text to be typeset in a double-aligned style.
Citation Information
Cited By
Combined word limited position line splitting processing method
CN119903836A