A method and device for generating digital outline marks of guqin notation characters
By generating a digital outline identification sequence and using the connector to combine the encoding of the display characters, the problem of large storage volume and difficulty in expanding the guqin score characters is solved, and more efficient input and retrieval is achieved, and the scalability of the system is improved.
Patent Information
- Application Number
- CN202111387911.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-22
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2041-11-22
AI Technical Summary
In the prior art, the storage volume of guqin score characters is large and difficult to expand, resulting in slow input, retrieval and display speeds, which are not conducive to fingering expansion.
A method for generating numerical contour identification of guqin score characters is proposed. By entering a character string containing a string representing left-hand combination and/or right-hand combination, a sequence of digital contour identification is generated, and the encoding of the connector is combined with the display symbols is reduced to the storage amount and the scalability is improved.
Reduces storage, takes up less resources, improves input, retrieval and display speed, enables more convenient input and fast searches, and extends fingering flexibility.
Smart Images

Figure CN114067320B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for generating digital outline markings of ancient guqin notation characters. Background Art
[0002] Jianzi notation is a notation commonly used in ancient Chinese guqin, which is characterized by recording finger positions and left-hand playing techniques. It is a type of fingering notation. It is based on the fingering and terminology of guqin text notation, minus the more characteristic parts of its glyphs.
[0003] The characters in Jianzi notation represent the relationship between the fingers and the piano surface when playing the musical notes, and are the core framework of Jianzi notation. From the appearance, the large characters in Jianzi notation are similar to Chinese characters, but in fact, they are the result of selecting components of a sentence and then combining them in a square character frame.
[0004] In the digital age, fast and accurate input and retrieval of the abbreviated notation can promote the dissemination of guqin abbreviated notation and is beneficial to the protection and innovation of Chinese traditional culture.
[0005] In the prior art, computer processing is performed on the score characters, for example, CN102402297B, a component organization and input method of Guqin Jianzi score, each large character of Jianzi score is stored as a Jianzi score character, and in order to process the input, retrieval and computer display of Guqin score, it is necessary to pre-store the large character of each Jianzi score. Since the score characters are composed of Jianzi components that express fingering, fret position and string sequence, innovative score methods produce innovative characters. Guqin Jianzi score has about fourteen structural modes, with a total of more than 170,000 glyph combinations, of which more than 60,000 are commonly used. Each large character of Jianzi score is stored as a separate character, which will inevitably take up a lot of storage space, reduce the display running speed, and is not conducive to fingering expansion. Summary of the invention
[0006] The present application proposes a method and device for generating digital outline marks of guqin notation characters, which solves the problem of large storage capacity and difficulty in expansion of the notation characters in the prior art.
[0007] An embodiment of the present application proposes a method for generating digital outline identification of guqin notation characters, wherein an input character string includes a character string representing a left-hand combination and / or a character string representing a right-hand combination; the left-hand combination includes a first display symbol representing a left-hand fingering and a second display symbol representing a fret position; the right-hand combination includes a third display symbol representing a right-hand fingering and a fourth display symbol representing a string sequence.
[0008] When the input character string includes a character string representing a left-hand combination, a first digital outline identification sequence is generated, including a code of a first display symbol, a first connector, and a code of a second display symbol arranged in sequence; the first digital outline identification sequence is used to generate a digital outline of the left-hand combination;
[0009] When the input character string includes a character string representing a right-hand combination, a second digital outline identification sequence is generated, including the code of the third display symbol, the second connector, and the code of the fourth display symbol arranged in sequence; the second digital outline identification sequence is used to generate a digital outline of the right-hand combination;
[0010] When the input character string contains a character string representing a left-hand combination and a character string representing a right-hand combination, a third digital contour identification sequence is generated, and the third digital contour identification sequence contains the first digital contour identification sequence, the third connector, and the second digital contour identification sequence arranged in sequence; the third digital contour identification sequence is used to generate a digital contour that merges the left-hand combination and the right-hand combination.
[0011] Preferably, an embodiment of the present application also includes: a step of identifying that the input string contains a string representing a left-hand combination, further including: a first data table contains multiple groups of strings representing left-hand combinations, each left-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the first data table, it is determined that the input string contains a string representing the corresponding left-hand combination.
[0012] Preferably, an embodiment of the present application also includes: the step of identifying that the input string contains a string representing a right-hand combination, further including: a second data table contains multiple groups of strings representing right-hand combinations, each right-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the second data table, it is determined that the input string contains a string representing the corresponding right-hand combination.
[0013] Preferably, the character string representing the left-hand combination includes input characters representing left-hand fingering and input characters representing fret positions; the character string representing the right-hand combination includes input characters representing right-hand fingering and input characters representing chord sequence.
[0014] Preferably, the embodiment of the present application further comprises the following steps: generating a left-hand combination code corresponding to the first digital contour identification sequence, and / or generating a right-hand combination code corresponding to the second digital contour identification sequence.
[0015] Further preferably, the left-hand combination code includes a first structural code, and / or the right-hand combination code includes a second structural code. The first structural code is used to indicate the display position of the left-hand combination in the character frame; the second structural code is used to indicate the display position of the right-hand combination in the character frame.
[0016] Further preferably, the left-hand combination code includes a first scale code, and / or the right-hand combination code includes a second scale code. The first scale code is used to indicate the display size of the left-hand combination in the character box; the second scale code is used to indicate the display size of the right-hand combination in the character box.
[0017] Further preferably, the third data table contains structure codes and left-hand combination and right-hand combination matching relationships corresponding to the structure codes; and according to the left-hand combination code and the right-hand combination code, the corresponding structure code is retrieved in the third data table.
[0018] The present application also proposes a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described in any embodiment of the present application is implemented.
[0019] The present application also proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any embodiment of the present application when executing the computer program.
[0020] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0021] The method of the present application reduces the amount of storage and occupies fewer resources. The input, retrieval and display speeds are fast. Based on the digital outline identification of the present application, more convenient input and faster search can be achieved. For example, any component can be retrieved to find the component itself and any reduced-character large-character whole character containing the component. The method of the present application has strong scalability. For example, for uncommon reduced-character large-character scores, but musicians can create such large-character scores based on the expansion of existing character principles, the scheme of the present application can input and display newly created score characters. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 This is a flow chart of an embodiment of the method of this application;
[0024] Figure 2 The display symbol included in the left-hand combination and the left-hand combination digital outline embodiment;
[0025] Figure 3 The display symbol included in the right-hand combination and the right-hand combination digital outline embodiment;
[0026] Figure 4The displayed characters contained in the numerical outline of the middle left-hand combination are identified by coding;
[0027] Figure 5 The display characters contained in the digital outline of the right-hand combination are identified by coding;
[0028] Figure 6 Schematic diagram of an embodiment of the display positions of the left-hand combination and the right-hand combination in the unit character frame;
[0029] Figure 7 Schematic diagram of the digital outline replacement process for the left-hand combination;
[0030] Figure 8 It is a schematic diagram of the digital outline replacement process for the right hand combination;
[0031] Fig. 9 Schematic diagram of the character encoding replacement process for the digital outline of a complete musical notation character. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. 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 making creative work are within the scope of protection of the present application.
[0033] Since the existing character set of the punctuation character is that an entire visually separate large character occupies one code position, it must be encoded using a private protocol on a separate code position in the UCS or Unicode encoding space. Although it can be implemented using the Unicode encoding framework, it violates the Unicode minimum character set principle.
[0034] Different from the solution ideas of the prior art, this solution uses a sequence of fingering components with a fixed semantic order to present a visually separate large character, and inserts control symbols between each component to determine the range of the sequence.
[0035] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0036] Figure 1 This is a flow chart of an embodiment of the method of the present application, which is an embodiment of the present application and includes steps 101 to 105.
[0037] Step 101, a character string input process, the input character string includes a character string representing a left-hand combination and / or a character string representing a right-hand combination;
[0038] The left - hand combination includes a first display symbol representing left - hand fingering and a second display symbol representing the position on the fingerboard; the right - hand combination includes a third display symbol representing right - hand fingering and a fourth display symbol representing the string order.
[0039] It should be noted that the display symbol here refers to a recognizable component in which characters are presented in a display state, and this component represents fingering, the position on the fingerboard, or the string order. For example, a musical notation character is read as "thumb at the 9th position on the fingerboard, hook the 4th string"; the left - hand combination among them is The first display symbol included in the left - hand combination is "thumb", and the second display symbol is "9th position"; the right - hand combination among them is , and the third display symbol included in the right - hand combination is The fourth display symbol is "4th string".
[0040] The string representing the left - hand combination includes an input character representing left - hand fingering and an input character representing the position on the fingerboard. For example, the string "thumb 9" representing the left - hand combination includes the input character "thumb" representing left - hand fingering and the input character "9" representing the position on the fingerboard; the string representing the right - hand combination includes an input character representing right - hand fingering and an input character representing the string order. For example, the string "hook 4" identifying the right - hand combination includes the input character "hook" identifying right - hand fingering and the input character "4" representing the string order.
[0041] It also needs to be noted that the input string here corresponds to the mapping of an input tool such as a keyboard, and can also be other key - character combinations that can represent the reading of musical notation characters. For example, use the input string "da9" as the string representing the left - hand combination, or "gou4" as the string representing the right - hand combination. Preferably, the input method alternates between a syllable string represented by a basic Latin - alphabet string and a decimal Arabic - numeral string, which not only conforms to the character principle of abbreviated characters but also reduces the trouble of distinguishing syllable boundaries. The basic Latin alphabet represents the fingering of playing the instrument. In principle, any pinyin scheme corresponding to Chinese characters can be used, or even a shape - code scheme. Currently, it is defaulted to Chinese pinyin, and can also be switched to Cantonese pinyin, Wu dialect pinyin, or Wubi, Zhengma, Cangjie, etc.; Arabic numerals represent the positions on the fingerboard and strings with numerical magnitudes.
[0042] For another example, the key positions for the input of "pluck the fourth string at the ninth fret with the thumb" can have four pinyin spellings, namely "dazhi9gou4", "da9gou4", "dz9g4", and "d9g4". The more ambiguous the spelling, the higher the rate of external code homographs, the more times of selection are required, the slower the input speed, the lower the accuracy, and the overly long key position string will also reduce the input speed. For "pluck the fourth string at the ninth fret with the thumb", "da9gou4" is a relatively reasonable input method. Similarly, if it is in Shanghai dialect, the input is "da9keu4", in Cantonese, the input is "daai9ngau4", in Wubi input method, the input is "dddd9qtn4", in Zhengma input method, the input is "gd9ryaa4", and in Cangjie input method, the input is "k9hs4". The processing idea is the same.
[0043] Step 102: Identify the input string and determine the left-hand combination or the right-hand combination;
[0044] In step 102, preferably, the step of identifying that the input string contains a string representing the left-hand combination can identify the left-hand combination and right-hand combination characters in the input string through regular expression technology. For example, the key position (string) in pinyin needs to conform to the following regular expression:
[0045] (([bdfghjklmnpqrtwxy]|[csz]h?)?([iuv]|[iuv]?[aeo])([ioun]|ng)?'?){0,4}(\d{1,2}\.?\d{0,2})?(([bdfghjklmnpqrtwxy]|[csz]h?)?([iuv]|[iuv]?[aeo])([ioun]|ng)?'?){0,2}(\d{1,2}\.?\d{0,2})?(([bdfghjklmnpqrtwxy]|[csz]h?)?([iuv]|[iuv]?[aeo])([ioun]|ng)?'?){1,8}([0-7]{1,6}|(da)){1,6}(([bdfghjklmnpqrtwxy]|[csz]h?)?([iuv]|[iuv]?[aeo])([ioun]|ng)?'?){0,2}
[0046] Among them, for the musical notation characters composed of the conventional "one left - hand combination + one right - hand combination", the input method regular expression is [a - z]+\d+(.\d+)*[a - z_]+\d+. After the computer receives "da9gou4", it can be automatically segmented into four parts. Since there are only two groups of Arabic numerals (strings), for the first group, there are Latin letters before and after, and there is only one digit, that is, \d+(.\d+) in [a - z]+\d+(.\d+)*[a - z_]+\d+. The 5th to 16th digits in the regular expression can be determined as the fret number, which is "the 9th fret"; for the second group, there is a Latin letter before and no characters after, that is, \d+ in [a - z]+\d+(.\d+)*[a - z_]+\d+. The last three digits in the regular expression can be determined as the string number, which is "the 4th string". The Latin letter (string) before the first group of Arabic numerals (strings) can be determined as the left - hand fingering, and among the left - hand fingerings, the one pronounced as "da" is only "thumb / big", so it can only be "thumb / big"; the Latin letter (string) between the first group and the second group of Arabic numerals (strings) can be determined as the right - hand fingering and its auxiliary fingering, and among this part, the one pronounced as "gou" is only the right - hand fingering "hook".
[0047] Preferably, the step of identifying that the input string contains a string representing a left - hand combination may further include: The first data table contains multiple groups of strings representing left - hand combinations, and each left - hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the first data table, it is determined that the input string contains a string representing the corresponding left - hand combination. For example, "big nine" is a group of strings representing a left - hand combination and is included in the first data table.
[0048] Preferably, the embodiments of the present application further include: The step of identifying that the input string contains a string representing a right - hand combination further includes: The second data table contains multiple groups of strings representing right - hand combinations, and each right - hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the second data table, it is determined that the input string contains a string representing the corresponding right - hand combination. For example, "hook four" is a group of strings representing a right - hand combination and is included in the second data table.
[0049] Figure 2 Embodiment of the display symbol and digital outline of the left - hand combination.
[0050] Regarding the first data table, it includes the first display symbol and the second display symbol in the left - hand combination, or includes the font library codes used to identify the first and second display symbols, such as the encoding of the Unicode standard, the TrueType standard encoding, the OpenType standard encoding, or other custom encoding sets. In this application, an identifiable abstract graphic symbol that does not depend on a specific font design is called a "glyph" (ISO / IEC9541 - 1:1991). Further, the first data table also includes the glyphs of the left - hand combination, such as
[0051] It should be noted that in the left - hand combination, there can also be more display symbols representing emblems; for example Figure 2 In the second left - hand combination in [example], it includes the first display symbol "middle" representing the left - hand finger method, the second display symbol "seven" representing the emblem, and also includes another second display symbol representing the fractional position Correspondingly, a slightly more complex left - hand combination glyph is formed
[0052] Therefore, further, the first display symbol can be a combination divided into multiple display symbols, and the second display symbol can also be a combination divided into multiple display symbols. When the first display symbol is divided into a combination of multiple display symbols, each display symbol therein is an identifiable component representing the left - hand finger method; when the second display symbol is divided into a combination of multiple display symbols, each display symbol therein is an identifiable component representing the emblem (or fractional position).
[0053] Figure 3 Examples of the display symbols and glyphs included in the right - hand combination are as follows
[0054] Regarding the second data table, it includes the third display symbol and the fourth display symbol in the right - hand combination, or includes the font library codes used to identify the third and fourth display symbols, such as the encoding of the Unicode standard, the TrueType standard encoding, the OpenType standard encoding, or other custom encoding sets. Further, the second data table also includes the glyphs of the right - hand combination, such as
[0055] Multiple right - hand finger - method chord sequences form a slightly more complex right - hand combination. For example Figure 3 In the second right - hand combination in [example], it includes the third display symbol representing the right - hand finger method The fourth display symbol "three" representing the chord sequence, and also includes other third display symbols representing the right - hand finger method Together they form a slightly more complex right - hand combination glyph
[0056] Therefore, further, the third display symbol may be a combination of multiple display symbols, and the fourth display symbol may also be a combination of multiple display symbols. When the third display symbol is a combination of multiple display symbols, each of the display symbols is a recognizable component representing the right hand fingering; when the fourth display symbol is a combination of multiple display symbols, each of the display symbols is a recognizable component representing the string sequence.
[0057] refer to Figures 2-3 In the embodiment, a first data table (left-hand combination table) and a second data table (right-hand combination table) are established; the left-hand combination table combines the left-hand related components in a sequence into separate musical notation characters, and the right-hand combination table combines the right-hand related components in a sequence into separate musical notation characters.
[0058] Step 103: inserting a connector between the codes of the multiple display symbols included in the left-hand combination and the right-hand combination to generate a digital outline identification sequence of the left-hand combination or the right-hand combination;
[0059] Specifically, when the input character string includes a character string representing a left-hand combination, a first digital outline identification sequence is generated, including a code of a first display symbol, a first connector, and a code of a second display symbol arranged in sequence; the first digital outline identification sequence is used to generate a digital outline of the left-hand combination;
[0060] When the input character string includes a character string representing a right-hand combination, a second digital outline identification sequence is generated, including the code of the third display symbol, the second connector, and the code of the fourth display symbol arranged in sequence; the second digital outline identification sequence is used to generate a digital outline of the right-hand combination.
[0061] The connector described in this application, namely the Jianzi Fingering Joiner (JZFJ), is dedicated to Jianzi and is the first controller proposed in this technology. The function of the controller is to realize the splicing of various element components. When the same element components are input in the same order, the component splicing will not occur if the controller is missing.
[0062] In step 103, when the characters representing the components of the musical notation are input, a connector is automatically inserted between the codes of the corresponding display symbols; further, the outline of the combined digital image is automatically retrieved according to the connector.
[0063] Figure 4The digital outline of the left - hand combination, and the displayed characters it contains can be identified by encoding. Therefore, as described in step 103, when "uni5927 jzfj uni4E5D" constitutes a digital outline identification sequence of a left - hand combination, the computer can combine the digital outline represented by the encoding uni5927 and the digital outline represented by the encoding uni4E5D and display them within a character frame to form a complete digital outline.
[0064] Figure 5 The digital outline of the right - hand combination, and the displayed characters it contains can be identified by encoding. As described in step 103, when "uni52F9 jzfj uni56DB" constitutes a digital outline identification sequence of a right - hand combination, the computer can combine the digital outline represented by the encoding uni52F9 and the digital outline represented by the encoding uni56DB and display them within a character frame to form a complete digital outline.
[0065] Step 104: Insert a connector between the digital outline identification sequences of the left - hand combination and the right - hand combination to further combine the digital outline identification sequences of the left - hand combination and the right - hand combination, generating a digital outline identification sequence of the spectral character.
[0066] When the input string contains a string representing a left - hand combination and a string representing a right - hand combination, a third digital outline identification sequence is generated. The third digital outline identification sequence contains the first digital outline identification sequence, the third connector, and the second digital outline identification sequence arranged in sequence; the third digital outline identification sequence is used to generate a combined digital outline of the left - hand combination and the right - hand combination.
[0067] It should be noted that in some scenarios, some of the steps in steps 101 - 105 are not necessary. Although typical spectral characters contain left - hand combinations and right - hand combinations, such as the spectral character "the thumb at the ninth fret, hook the fourth string" but sometimes it only contains a left - hand combination or only a right - hand combination. For example, the spectral character "pluck the fifth string and hook the sixth string" which only contains 2 right - hand combinations
[0068] It also should be noted that Chinese classical musical instruments such as guqin are played with both hands. In order to be concise in the tablature, sometimes the left - hand combination or the right - hand combination is omitted, that is, a single right - hand combination or a single left - hand combination is used as a spectral character. For example, if the previous spectral character is "the thumb at the ninth fret, hook the third string" and the next spectral character is "the thumb at the ninth fret, pluck the fourth string", since the two actions are the same in the left - hand part, the next spectral character is abbreviated as "pluck the fourth string", only indicating the right - hand action; if the right - hand parts of the two consecutive characters are the same and the left - hand parts are different, then the right - hand part of the latter can be omitted and only the left - hand part is written. This kind of practice is called omission by the same previous part.
[0069] After classifying all the fingering combinations related to the left and right hands respectively, the results obtained are relatively limited and stable. Also, since the relative positions (mostly in the upper and lower structure) of the left - hand part and the right - hand part of the reduced - character large - character within the character frame of the same structure are stable, and within the left - hand part (the main structure is generally in the left - right structure) and within the right - hand part (the main structure is generally in the upper - lower structure or semi - enclosed structure), they follow the aesthetic avoidance and character formation of Chinese characters.
[0070] Examining all possible combinations, the display positions of the display symbols representing the left - hand combinations and the display symbols representing the right - hand combinations in the character frame are different. For example, in the notation character "Thumb at the 9th fret, hook the 4th string", the left - hand combination is in the upper part and the right - hand combination is in the lower part. Another example is "Pinch the name finger at the 10th fret, hook the 5th string, pluck open the 7th string", and the notation character is Among them, the positions of multiple left - hand combinations are respectively T - shaped, left - floating, and right - floating; the positions of multiple right - hand combinations are respectively left - sinking and right - sinking.
[0071] Figure 6 Schematic diagram of the display positions of the left - hand combination and the right - hand combination in the unit character frame. To specifically illustrate the display positions, we currently classify the digital outlines. The classification basis is the contact situation between the components and the four sides of the literal frame, which can be divided into 16 categories such as full - filled shape 1, T - shaped 2, upward - floating shape 3, left - upward - floating shape 4, right - upward - floating shape 5, downward - sinking shape 6, left - downward - sinking shape 7, right - downward - sinking shape 8, etc. In the figure, the dotted box in each character position indicates a match with other types of digital outlines. For example, digital outline type 3 can match digital outline type 6; digital outline type 3 can match digital outline types 7 - 8; digital outline type 6 can match digital outline types 4 - 5.
[0072] Therefore, create a third data table according to the 16 types of positions of the said digital outlines. The third data table contains the matching relationship between the left - hand combination and the right - hand combination and the indication information of the display positions of the corresponding left - hand combination and right - hand combination digital outlines in the character frame; in step 104, according to the left - hand combination code and the right - hand combination code, retrieve the corresponding display positions in the third data table, and display the left - hand combination and / or the right - hand combination included in a notation character at the corresponding positions in the character frame to generate the digital outline of a complete notation character.
[0073] As a further optimized embodiment of the present application, in step 103, preferably, the embodiment of the present application further includes the following steps 103A - C:
[0074] Step 103A, generate the left - hand combination code corresponding to the first digital outline identification sequence, and / or generate the right - hand combination code corresponding to the second digital outline identification sequence.
[0075] Figure 7 Schematic diagram of the digital outline replacement process of the left - hand combination ( Figures 7-8In the expression, “=” indicates a replacement relationship).
[0076] As described in step 103, when "uni5927 jzfj uni4E5D" constitutes a left-handed digital outline identification sequence, the computer can combine the display symbols represented by uni5927 and uni4E5D into a digital outline display through dynamic display technology.
[0077] Further, according to step 103A, a left-hand combination code corresponding to the first digital outline identification sequence is generated, namely uni5927_9, which represents a complete digital outline. , that is, to expand the font library.
[0078] Figure 8 Schematic diagram of the digital contour replacement process for the right-hand combination.
[0079] As described in step 103, when "uni52F9 jzfj uni56DB" constitutes a right-handed digital outline identification sequence, the computer can combine the display symbols represented by uni52F9 and uni56DB into a digital outline display through dynamic display technology.
[0080] Further, according to step 103A, a left-hand combination code corresponding to the first digital outline identification sequence is generated, namely "uni52F9_4", which represents a complete digital outline. , that is, to expand the font library.
[0081] Step 103B: Further preferably, the left-hand combination code includes a first structural code, and / or the right-hand combination code includes a second structural code. The first structural code is used to indicate the display position of the left-hand combination in the character frame; the second structural code is used to indicate the display position of the right-hand combination in the character frame.
[0082] Step 103C: Further preferably, the left-hand combination code includes a first scale code, and / or the right-hand combination code includes a second scale code. The first scale code is used to indicate the display size of the left-hand combination in the character box; the second scale code is used to indicate the display size of the right-hand combination in the character box.
[0083] When implementing steps 103B-C, further preferably, the third data table includes structure codes and left-hand combination and right-hand combination matching relationships corresponding to the structure codes; and the corresponding structure codes are retrieved in the third data table according to the left-hand combination codes and the right-hand combination codes.
[0084] The complete characters formed by reducing characters are often composed of multiple digital outlines. Therefore, a component needs to be replaced with different non-full forms in different combination types. For example, in Figure 6 In the embodiment of, further, according to steps 103B - C, the left - hand combination code is determined as: uni5927_9.inif01, where the structure code is inif and the size code is 01; the right - hand combination code is determined as: uni52F9_4.finf01, where the structure code is finf and the size code is 01. Therefore, in step 104, the digital outline identification sequence of the entire spectrum character is: uni5927_9.inif01 Jzfj uni52F9_4.finf01. The computer can read the font library according to the digital coding series of the entire spectrum and replace the digital identifiers. Since the digital codes of the left - hand combination and / or the right - hand combination contain structure codes and size codes, the computer displays the left - hand combination and / or the right - hand combination at the corresponding positions in the font box according to the structure codes and size codes.
[0085] For example, Figure 6 The encoding suffix formats of the digital outlines of various structures shown are as follows (the last two italicized "DD" in Italian represent Arabic numerals):
[0086] Serial number category Suffix 1, structure code Suffix 2, standard encoding 1 Full .full DD 2 T-Shape .tshp DD 3 Floating .inif DD 4 Upper left floating .inil DD 5 Floating right .inir DD 6 Sinking .finf DD 7 Left down shape .finl DD 8 Right down .finr DD … … … … 16 … … …
[0087] Fig. 9 It is a schematic diagram of the font library coding replacement process for the digital outline of a complete spectrum character.
[0088] Da, Jiu, Si, the connection symbol correspond to the unicode standard code positions: U + 5927, U + 4E5D, U + 52F9, U + 56DB, U + 1DAE0 respectively; the digital outline identifications in the font library are uni5927, uni4E5D, uni52F9, uni56DB and jzfj respectively.
[0089] Input the string "da9gou4" into the computer. The computer recognizes that the input string contains a left - hand combination and a right - hand combination. The computer queries the digital outline identifications corresponding to each display character in the left - hand combination in the font library, inserts the connection symbol "jzfj" between the code "uni5927" of the first display character "Da" and the code "uni4E5D" of the second display character "Jiu" to form the first digital outline identification sequence "uni5927jzfj uni4E5D" that identifies the left - hand combination. The computer queries the codes corresponding to each display character in the right - hand combination in the font library. At the third display character Insert the connector "jzfj" between the encoding "uni52F9" of the first display character and the encoding "uni56DB" of the fourth display character "四" to form the second digital outline identification sequence "uni52F9 jzfj uni56DB" that identifies the right - hand combination. Insert the connector "jzfj" between the first digital outline identification sequence and the second digital outline identification sequence to form the digital outline identification sequence of the entire spectral character "uni5927 jzfj uni4E5D jzfj uni52F9 jzfj uni56DB", that is, the third digital outline identification sequence.
[0090] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer - usable storage media (including but not limited to disk memory, CD - ROM, optical memory, etc.) that contain computer - usable program code.
[0091] Therefore, the present application also proposes a computer - readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the method described in any embodiment of the present application.
[0092] Furthermore, the present application also proposes an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the method described in any embodiment of the present application.
[0093] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general - purpose computer, a special - purpose computer, an embedded processor, or other programmable data - processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data - processing devices generate a device for implementing the specified function in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0094] These computer program instructions can also be stored in a computer - readable memory that can direct a computer or other programmable data - processing devices to work in a specific manner, so that the instructions stored in the computer - readable memory generate a manufactured product including an instruction device, and the instruction device implements the process in Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0096] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0097] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0098] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0099] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for generating digital outline marks of guqin notation characters, characterized in that: include: The input string includes a string representing a left-hand combination and / or a string representing a right-hand combination; The left-hand combination includes a first display symbol indicating the left-hand fingering and a second display symbol indicating the fret position; the right-hand combination includes a third display symbol indicating the right-hand fingering and a fourth display symbol indicating the string sequence; When the input character string includes a character string representing a left-hand combination, a first digital outline identification sequence is generated, including a code of a first display symbol, a first connector, and a code of a second display symbol arranged in sequence; the first digital outline identification sequence is used to generate a digital outline of the left-hand combination; When the input character string includes a character string representing a right-hand combination, a second digital outline identification sequence is generated, including the code of the third display symbol, the second connector, and the code of the fourth display symbol arranged in sequence; the second digital outline identification sequence is used to generate a digital outline of the right-hand combination; When the input character string contains a character string representing a left-hand combination and a character string representing a right-hand combination, a third digital contour identification sequence is generated, and the third digital contour identification sequence contains the first digital contour identification sequence, the third connector, and the second digital contour identification sequence arranged in sequence; the third digital contour identification sequence is used to generate a digital contour that merges the left-hand combination and the right-hand combination.
2. The method according to claim 1, characterized in that: The step of identifying that the input string contains a string representing a left-hand combination further comprises: The first data table contains multiple groups of strings representing left-hand combinations, and each left-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the first data table, it is determined that the input string contains a string representing the corresponding left-hand combination.
3. The method according to claim 1, characterized in that: The step of identifying that the input string contains a string representing a right-hand combination further comprises: The second data table contains multiple groups of strings representing right-hand combinations, and each right-hand combination corresponds to at least one group of strings; when a part of the input string is the same as a group of strings in the second data table, it is determined that the input string contains a string representing the corresponding right-hand combination.
4. The method according to claim 1, characterized in that: The character string representing the left-hand combination includes input characters representing left-hand fingering and input characters representing fret positions; the character string representing the right-hand combination includes input characters representing right-hand fingering and input characters representing string sequence.
5. The method according to claim 1, characterized in that: A left-hand combination code corresponding to the first digital contour identification sequence is generated, and / or a right-hand combination code corresponding to the second digital contour identification sequence is generated.
6. The method according to claim 5, characterized in that The left-hand combination code includes a first structural code, and / or the right-hand combination code includes a second structural code; The first structural code is used to indicate the display position of the left-hand combination in the character box; the second structural code is used to indicate the display position of the right-hand combination in the character box.
7. The method according to claim 5, characterized in that: The left-hand combination code includes a first scale code, and / or the right-hand combination code includes a second scale code; The first scale code is used to indicate the display size of the left-hand combination in the character box; the second scale code is used to indicate the display size of the right-hand combination in the character box.
8. The method according to claim 6, characterized in that: The third data table includes structure codes and the matching relationship between left-hand combination and right-hand combination corresponding to the structure codes; and the corresponding structure codes are retrieved in the third data table according to the left-hand combination codes and the right-hand combination codes.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Component organization and input method of abbreviated character notation of seven-stringed plucked instrument
CN102402297B
Method and device for generating guqin jianzi notation characters
CN102467491A
Process for automatic recognition of handwritten alphanumeric characters in an image and device intended for its implementation
FR2682207A1