CN113988006B - Digitalized and dynamic generation method of guqin abbreviated characters - Google Patents

Digitalized and dynamic generation method of guqin abbreviated characters Download PDF

Info

Publication number
CN113988006B
CN113988006B CN202111303569.1A CN202111303569A CN113988006B CN 113988006 B CN113988006 B CN 113988006B CN 202111303569 A CN202111303569 A CN 202111303569A CN 113988006 B CN113988006 B CN 113988006B
Authority
CN
China
Prior art keywords
character
reduction
attributes
data structure
rendering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111303569.1A
Other languages
Chinese (zh)
Other versions
CN113988006A (en
Inventor
刘雪锋
刘星星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Ruoye Infernal Network Technology Co ltd
Original Assignee
Hefei Ruoye Infernal Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Ruoye Infernal Network Technology Co ltd filed Critical Hefei Ruoye Infernal Network Technology Co ltd
Priority to CN202111303569.1A priority Critical patent/CN113988006B/en
Publication of CN113988006A publication Critical patent/CN113988006A/en
Application granted granted Critical
Publication of CN113988006B publication Critical patent/CN113988006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Auxiliary Devices For Music (AREA)

Abstract

The invention discloses a method for digitally and dynamically generating a guqin abbreviated character, and relates to the technical field of computer information processing. The invention comprises the following steps: creating a reduced character data structure including all attributes constituting the reduced character; sorting character-reducing stroke components used for character reduction; dynamically displaying the minus characters according to the attribute values of the data structures and the stroke components; the character reduction attributes contained in the character reduction data structure comprise left-hand fingering, logo bit, right-hand fingering, string order and mark bit attributes, and all the attributes are contained in a data structure defined by a program; all the character-reducing strokes needed for sorting out the character-reducing are coded, and each stroke part contains different attributes. The invention avoids establishing a set of large and complete word stock, but uses a digital mode to describe the composition attribute and the attribute value of the reduced word, and the required reduced word can be selectively displayed according to the content of the digitized music score, so that the occupied space is very small, but the reduced word can be displayed greatly.

Description

Digitalized and dynamic generation method of guqin abbreviated characters
Technical Field
The invention belongs to the technical field of computer information processing, and particularly relates to a method for digitally and dynamically generating a guqin abbreviated character.
Background
The ancient lyre is an ancient Chinese musical instrument, the abbreviated character notation is a method for recording the performance of the ancient Chinese musical instrument, and one abbreviated character comprises fingering information of the performance, including information of right-hand fingering, string order, left-hand fingering, logo and the like. A music score is composed of a series of characters. At first, the ancient musical instrument is mostly used for handwriting in the process of manufacturing the ancient musical instrument, and with the progress of science and technology. The reduced-spectrum word stock may subsequently be generated by various methods using computer assistance. Once the Word stock is established, the Word stock can be used in the general field, and the Word stock can be input after being retrieved by an input method and the like, for example, the Word stock is input after the Word stock is established.
The inventors have found that there are many disadvantages to the way in which word libraries are created by computer methods. The number of the character reduction of the guqin is large, if only a part of commonly used character libraries are established, the character reduction is not enough to be used, and if a very complete character library is established, the character library is abnormally large. Retrieving such a reduced database is also a very time consuming operation. Taking the word reduction of the "pinch" type as an example, this type includes, but is not limited to, the following eight types: "gather, raise, pour on, sting, pour on peppery, play, two plays, three plays" etc., five kinds of left-hand fingering: big, food, middle, famous, kneeling, emblem, including 36 according to the sound positions, seven strings, tone color including nick, zhu, overtone. The number of combinations of the left-bottom substructures of the word pinch is approximately 5x36x7x4 to 5040, and by only roughly estimating the combination mode of the above type values, the combination mode of the above type values has the possibility of billions of levels (5040x5040x8), and although the combination mode contains a lot of unusual or unreasonable combination modes, the reduction of the word such as overtone and scattered combination is not considered. Therefore, if a very comprehensive word reduction library is to be established, the task is almost impossible to be completed, and even if such a word library can be established, the number of the word library is very large.
Disclosure of Invention
The invention provides a method for digitally and dynamically generating a guqin abbreviated character, which solves the problems.
In order to solve the technical problems, the invention is realized by the following technical scheme:
the invention discloses a method for digitally and dynamically generating a guqin jianzi character, which comprises the following steps of:
s01, creating a character reduction data structure comprising all attributes forming the character reduction;
s02, sorting character-reducing stroke components used for character reduction;
and S03, dynamically displaying the minus characters according to the data structure attribute values and the stroke parts.
Further, in step S01, the abbreviated character attributes included in the abbreviated character data structure include left-hand fingering, logo, right-hand fingering, chord order and flag bit attributes, and all the attributes are included in the program-defined data structure.
Further, in step S02, all the minus strokes needed for the word minus character are encoded, and each stroke part contains some different attributes, including the "chord" or "badge" for the word minus, and the length and width attributes of the part.
Further, in the step S03, a set of dynamic display generation rules is established, and the font reduction is dynamically rendered based on different values of different attributes and the position size factor of the control.
Further, the dynamic rendering of the abbreviated character is specifically performed by the following steps:
p01, defining characteristic points, display positions, combination modes and the like of each attribute in the character reduction data structure, selecting stroke parts according to attribute values, calculating coordinates and then rendering;
p02, selecting stroke components with different weights for the same attribute value according to the zoom factor of the font combination component, so that the whole is displayed more beautifully, and the finally displayed character reduction symbol is obtained.
Furthermore, the dynamic rendering and character reduction is to dynamically establish a structure based on "tree" rendering according to an actual attribute value, each "tree" represents a character reduction, different organization nodes and rendering nodes Sprite of a specific display component are available according to the actual character reduction, the rendering nodes Sprite are hung on the organization nodes, and each organization Node controls the size, position and coordinate information of the "tree" rendered structure to realize the display of the character reduction.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention provides a method for digitalizing and dynamically generating a guqin jianzhu character, which is used for effectively solving the problems of incomplete character library or overlarge character library, digitalized propagation of a network and the like and comprises the following steps: defining a data structure, disassembling the reduced characters into component attributes, and generating a corresponding data structure containing the attributes for describing the reduced characters; the data structure of the technical scheme refers to a complex character reduction type to meet the requirement, and simple character reduction is easy to express; under the rule, any character reduction can be described by using the data structure, the character reduction can digitally describe hundreds of millions of permutation and combination modes, and information such as chordal sequence, fingering, logo and the like is described in the digital content; in addition, after the digital description of the character reduction, the technical scheme establishes a set of display rules for typesetting according to the actual attribute value, thereby displaying the character reduction reasonably in real time according to the requirement.
2. The technical scheme avoids establishing a set of large and complete word stock, but describes the composition attribute and the attribute value of the character reduction in a digital mode, and the required character reduction can be displayed only according to the content of the digitized musical instrument spectrum selectively according to actual conditions although the character reduction is numerous in arrangement and combination. Only the information such as the attribute, the attribute value and the like is saved, and only a small number of character reduction components need to be prepared, so that the occupied space is very small, but the number of the character reduction components which can be displayed is large.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a step diagram of a method for the digital, dynamic generation of guqin minus characters in accordance with the present invention;
FIG. 2 is a flowchart illustrating the detailed procedure of step S03 in FIG. 1;
FIG. 3 is a case picture of a guqin notation with a minus notation;
FIG. 4 is a sample analysis diagram of a word reduction spectrum shown by taking a word reduction of the "pan" type as an example;
FIG. 5 is a schematic diagram of a word-reducing data structure definition and attribute value description "pinch" case based on the present technical solution;
FIG. 6 is the reduced stroke parts set sorted out in step S02 of FIG. 1;
FIG. 7 is a table illustrating dynamic typesetting according to feature values when multiple attributes have values in this embodiment;
FIG. 8 is a case diagram showing the dynamic construction of an attribute-based rendering structure in this embodiment, taking "nine big six" as an example;
FIG. 9 is a case diagram of a digital description of a reduced word using different attribute values of the present data structure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The basic principle that this technical scheme can implement is: any complex word reduction can be separated into component types and values of basic components, and a universal computer data structure is established by analyzing all word reduction structures to describe all existing word reduction type components, so that the data structure can be used for describing any word reduction. Then, a set of display rules is established for typesetting and displaying the data structure. Thus, the digital definition of the reduced characters and the dynamic generation display method are completed. Based on the above principle and rules, the technical solution will be described in detail by the following specific embodiments:
referring to fig. 1 to 9, a method for digitizing and dynamically generating guqin jia characters according to the embodiment includes the following steps:
s01, creating a reduced word data structure comprising all attributes of the component reduced characters;
s02, sorting character reduction stroke components used for character reduction;
and S03, dynamically displaying the minus characters according to the data structure attribute values and the stroke parts.
In step S01, the abbreviated character attributes included in the abbreviated character data structure include nine attributes of left-hand fingering, logo, right-hand fingering, string order, special mark, left-hand fingering 2, logo 2, string order 2, and special mark 2, and all the attributes are included in the data structure defined by the program; as shown in fig. 5, a preferred complex word "pinch" structure according to this technical solution is shown to define its Go voice data structure, and an example attribute value of a word "pinch" is given.
In step S02, all the minus strokes needed for the word minus character is encoded, each stroke part contains some different attributes, including the "chord" or "badge" for the word minus, and the length and width attributes of the part.
In step S03, a set of dynamic display generation rules is established, and the font reduction is dynamically rendered based on different values of different attributes and the position size factor of the control.
The dynamic rendering and the character reduction are specifically performed through the following steps:
p01, defining characteristic points, display positions, combination modes and the like of each attribute in the character reduction data structure, selecting stroke parts according to attribute values, calculating coordinates and then rendering;
p02, selecting stroke components with different weights for the same attribute value according to the scaling coefficient of the font combination component, so that the whole is more beautiful to display, and the final displayed character reduction symbol is obtained.
As shown in fig. 7, when attribute values exist independently, feature values are not used, and the attribute values are displayed in a centered manner, only when a plurality of attribute values exist, dynamic typesetting is performed according to the feature values, what parts are used is determined according to the attribute values, how to organize the parts is determined according to the feature values, when "up" meets "down", the parts are combined up and down, when "left" meets "right", the parts are combined left and right, and appear in pairs (such as left emblem), and when not appearing in pairs, the parts are displayed in a centered manner in different directions (such as "big nine").
In fig. 8, the dynamic rendering minus character is a structure based on "tree" rendering, which is dynamically established according to actual attribute values, as shown in fig. 8, taking "big ninety six" as an example, each "tree" represents a minus character, according to the actual word reduction, there are different organization nodes Node and rendering nodes Sprite of the specific display component, in this specific embodiment, the organization Node is 1-5 nodes, the rendering Node Sprite is hung on the organization Node, as the display contents of the nodes in fig. 1, 2 and 4, each organization Node controls the size position and the coordinate information of the structure of the tree-shaped rendering to realize the display of the reduced characters, fig. 8 shows a method for constructing and rendering a simple base tree structure, and similarly, a more complex character reduction can be split into different tree-type rendering structures, for example, a node 5 can be displayed as a child node of a more complex character reduction (matching method);
in this embodiment, the minus sign of "nine six major" is shown, and occupies three attribute values, including "left-hand fingering", "logo", and "chordal sequence", to explain the specific implementation details of the step S03, and define a set of characteristic values for the three attributes, as follows:
1. left-handed fingering, eigenvalues (up, left);
2. and (4) a logo position: eigenvalues (upper, right);
3. and (3) string order: eigenvalues (lower);
as shown in fig. 9, the values of different attributes of the data structure can be used to complete the digital description of any reduced character, and the permutation and combination results of the values of different attributes are numerous, and are all enough to represent any reduced character to complete the digitization of the reduced character.
The design principle of the scheme describes basic displayed structural information through digitalization of the subtractive characters, and then is matched with a set of real-time dynamic display rules based on the structural information. The method is characterized in that a fixed word stock is not available, a word stock does not need to be searched, real-time dynamic rendering is performed, and the problem of huge word stock reduction is solved. The preferred embodiments provide an implementation that is within the scope of the invention, in variations or combinations that are within the principles of the invention.
Has the advantages that:
1. the invention provides a method for digitalizing and dynamically generating a guqin abbreviated character, which is used for effectively solving the problems of incomplete character library, overlarge character library, digitalized transmission of a network and the like and comprises the following steps: defining a data structure, disassembling the reduced characters into component attributes, and generating a corresponding data structure containing the attributes for describing the reduced characters; the data structure of the technical scheme refers to a complex character reduction type to meet the requirement, and simple character reduction is easy to express; under the rule, any character can be described by using the data structure, the data structure can digitally describe hundreds of millions of permutation and combination modes in the above, and information such as chord sequence, fingering, logo and the like is described in the digital content; in addition, after the digital description of the character reduction, the technical scheme establishes a set of display rules for typesetting according to the actual attribute values, thereby reasonably displaying the character reduction in real time according to the requirement.
2. The technical scheme avoids establishing a set of large and complete word stock, but uses a digital mode to describe the composition attributes and the attribute values of the reduction words, and although the arrangement and the combination of the reduction words are numerous, the required reduction words can be selectively displayed according to the content of the digitized musical instrument spectrum according to the actual situation. Only the information such as the attribute, the attribute value and the like is saved, and only a small number of character reduction components need to be prepared, so that the occupied space is very small, but the number of the character reduction components which can be displayed is large.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (2)

1. A digitalized and dynamic generation method of guqin minus characters is characterized by comprising the following steps:
s01, creating a character reduction data structure comprising all attributes forming the character reduction; the character reduction attributes contained in the character reduction data structure comprise left-hand fingering, logo bit, right-hand fingering, string order and mark bit attributes, and all the attributes are contained in a data structure defined by a program;
s02, sorting character-reducing stroke components used for character reduction;
s03, dynamically displaying the minus characters according to the data structure attribute values and the stroke components; dynamically rendering the font reduction by establishing a set of dynamic display generation rules based on different values of different attributes and position size factors of the control;
the dynamic rendering and word reduction are specifically carried out through the following steps:
p01, defining the feature point, the display position and the combination mode of each attribute in the character reduction data structure, selecting stroke parts through attribute values, calculating coordinates and then rendering;
p02, selecting stroke components with different thicknesses for the same attribute value according to the scaling coefficient of the font combination component, so that the whole is displayed more beautifully, and finally displayed character reduction symbols are obtained;
the dynamic rendering and character reduction is to dynamically establish a structure based on tree-shaped rendering according to actual attribute values, each tree represents a character reduction, different organization nodes and rendering nodes Sprite of specific display components can be generated according to the actual character reduction, the rendering nodes Sprite are hung on the organization nodes, and each organization Node controls the size, position and coordinate information of the tree-shaped rendering structure to realize the display of the character reduction.
2. The method for digitized and dynamic generation of guqin minus character as claimed in claim 1, wherein in step S02, all the minus strokes needed for the word reduction are encoded, each stroke component contains some different attributes, the attributes include "string" or "badge" for the word reduction, and the length and width of the component.
CN202111303569.1A 2021-11-05 2021-11-05 Digitalized and dynamic generation method of guqin abbreviated characters Active CN113988006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111303569.1A CN113988006B (en) 2021-11-05 2021-11-05 Digitalized and dynamic generation method of guqin abbreviated characters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111303569.1A CN113988006B (en) 2021-11-05 2021-11-05 Digitalized and dynamic generation method of guqin abbreviated characters

Publications (2)

Publication Number Publication Date
CN113988006A CN113988006A (en) 2022-01-28
CN113988006B true CN113988006B (en) 2022-07-12

Family

ID=79746639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111303569.1A Active CN113988006B (en) 2021-11-05 2021-11-05 Digitalized and dynamic generation method of guqin abbreviated characters

Country Status (1)

Country Link
CN (1) CN113988006B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5438909B2 (en) * 2008-03-14 2014-03-12 ソニーモバイルコミュニケーションズ株式会社 Character input device, character input support method, and character input support program
CN102402297B (en) * 2010-09-16 2015-04-22 北大方正集团有限公司 Component organization and input method of abbreviated character notation of seven-stringed plucked instrument
CN101944081A (en) * 2010-09-17 2011-01-12 厦门大学 Computer generation, edition method of Guqin abbreviated character notation and system thereof
CN101944356B (en) * 2010-09-17 2012-07-04 厦门大学 Music rhythm generating method suitable for playing music of abbreviated character notation of seven-stringed plucked instrument
CN102467491B (en) * 2010-11-15 2015-09-30 北京大学 The generation method and apparatus of Guqin abbreviated character notation character
CN103176616A (en) * 2011-12-21 2013-06-26 北京大学 Input method and device for guqin abbreviated character notation characters
WO2019049294A1 (en) * 2017-09-07 2019-03-14 ヤマハ株式会社 Code information extraction device, code information extraction method, and code information extraction program
CN113571031B (en) * 2021-07-23 2024-03-15 合肥若叶无间网络科技有限公司 Automatic error correction and intelligent prompting method for Guqin music score

Also Published As

Publication number Publication date
CN113988006A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
De Nooy et al. Exploratory social network analysis with Pajek: Revised and expanded edition for updated software
JP7000341B2 (en) Machine learning-based web interface generation and testing system
CN107330109B (en) A kind of trade mark inquiry result degree of approximation evaluation and sort method, device
CN108363697B (en) Text information generation method and device, storage medium and equipment
CN107680580B (en) Text conversion model training method and device, and text conversion method and device
Mitchell et al. Digital design media
CN110457672B (en) Keyword determination method and device, electronic equipment and storage medium
WO2019102533A1 (en) Document classification device
WO2005004004A1 (en) Sentence classification device and method
CN112559885B (en) Training model determining method and device for map interest points and electronic equipment
CN113205160B (en) Model training method, text recognition method, model training device, text recognition device, electronic equipment and medium
US20140267302A1 (en) Method and apparatus for personalized handwriting avatar
CN113988006B (en) Digitalized and dynamic generation method of guqin abbreviated characters
KR20190110174A (en) A core sentence extraction method based on a deep learning algorithm
CN111428479A (en) Method and device for predicting punctuation in text
Van Altena et al. Spatial analysis of new testament textual emendations utilizing confusion distances
CN108920560A (en) Generation method, training method, device, computer-readable medium and electronic equipment
CN115525728A (en) Method and device for Chinese character sorting, chinese character retrieval and Chinese character insertion
JP5436868B2 (en) Correct answer determination apparatus, correct answer determination system, correct answer determination method, and correct answer determination program
WO2015029158A1 (en) Data conversion device, data conversion method, and data conversion program
US20230005385A1 (en) Literacy Method and System
JP7431379B1 (en) Data processing device and data processing method
CN110335586A (en) A kind of information conversion method and system
CN115982358B (en) Document splitting method, device, terminal equipment and computer readable storage medium
CN112883684B (en) Information processing method of multipurpose visual transmission design

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220329

Address after: 230000 room 1608, Zhuoyu center, Qianshan Road, Shushan District, Hefei City, Anhui Province

Applicant after: Hefei RUOYE infernal Network Technology Co.,Ltd.

Address before: 230000 room 103, building 11, Hengsheng royal garden, 1166 Mengcheng North Road, Luyang District, Hefei City, Anhui Province

Applicant before: Liu Xuefeng

GR01 Patent grant
GR01 Patent grant