CN108572776A - Rendering processing method, device and equipment based on special characters and storage medium - Google Patents

Rendering processing method, device and equipment based on special characters and storage medium Download PDF

Info

Publication number
CN108572776A
CN108572776A CN201810411399.0A CN201810411399A CN108572776A CN 108572776 A CN108572776 A CN 108572776A CN 201810411399 A CN201810411399 A CN 201810411399A CN 108572776 A CN108572776 A CN 108572776A
Authority
CN
China
Prior art keywords
rendering
target
filling
writing
special character
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.)
Granted
Application number
CN201810411399.0A
Other languages
Chinese (zh)
Other versions
CN108572776B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810411399.0A priority Critical patent/CN108572776B/en
Publication of CN108572776A publication Critical patent/CN108572776A/en
Application granted granted Critical
Publication of CN108572776B publication Critical patent/CN108572776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/109Font handling; Temporal or kinetic typography

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a rendering processing method, a rendering processing device, rendering processing equipment and a storage medium based on special characters. The method comprises the following steps: receiving target writing handwriting, wherein the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area; and rendering an associated area corresponding to the target writing script, wherein the associated area is determined according to a preset punctuation mark corresponding to the target writing script. According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved.

Description

Rendering processing method, device and equipment based on special characters and storage medium
Technical Field
The embodiment of the invention relates to the technical field of interactive intelligent panels, in particular to a rendering processing method, a rendering processing device, rendering processing equipment and a storage medium based on special characters.
Background
In recent years, touch screens are widely applied to various terminals, and a user can input corresponding characters by performing handwriting input operations such as clicking, swiping and the like on the touch screen, so that the touch screen can make human-computer interaction more straightforward.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art: the display content is single, and if characters are processed in a rich display mode, complicated operation steps are needed, so that the user experience of a user in the writing process is influenced.
Disclosure of Invention
The invention provides a rendering processing method, a rendering processing device, rendering processing equipment and a rendering processing storage medium based on special characters, which are used for optimizing writing contents of a user and improving the writing experience effect of the user.
In a first aspect, an embodiment of the present invention provides a special character-based rendering processing method, including:
receiving target writing handwriting, wherein the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and rendering an associated area corresponding to the target writing script, wherein the associated area is determined according to a preset punctuation mark corresponding to the target writing script.
In a second aspect, an embodiment of the present invention further provides a special character-based rendering processing apparatus, including:
the target handwriting receiving module is used for receiving target writing handwriting, the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and the rendering module is used for rendering the associated area corresponding to the target writing handwriting, and the associated area is determined according to the preset punctuation mark corresponding to the target writing handwriting.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a special character-based rendering processing method as in any one of the embodiments.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a special character-based rendering processing method according to any one of the embodiments.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a rendering processing method based on special characters according to an embodiment of the present invention;
fig. 2 is a flowchart of a rendering processing method based on special characters according to a second embodiment of the present invention;
FIG. 3 is a diagram illustrating the effect of various punctuation marks displayed on a touch screen;
fig. 4 is a flowchart illustrating a process of filling a rendering area for a place holder in an association area according to a third embodiment of the present invention;
FIG. 5 is an effect display diagram when a placeholder fill rendering is displayed on a touch screen;
fig. 6 is a flowchart illustrating a case where an associated area is a visual effect rendering area according to a fourth embodiment of the present invention;
fig. 7 is a block diagram of a rendering apparatus based on special characters according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a rendering processing method based on special characters according to an embodiment of the present invention. The method can be executed by a special character-based rendering processing device, the device can be realized in a software and/or hardware mode and integrated in equipment, and the method is mainly applied to touch screen equipment.
Wherein, the touch screen includes: resistive touch screens, capacitive touch screens, and electromagnetic touch screens. Resistive touch screens are a type of sensor that converts the physical location of a touch point (X, Y) in a rectangular area to a voltage representing an X coordinate and a Y coordinate. Many LCD modules employ resistive touch screens that can use four, five, seven or eight lines to generate the screen bias voltage while reading back the voltage at the touch point. The capacitive touch screen is different from a resistive touch screen, the capacitive touch screen is a four-layer composite glass screen, the inner surface and the interlayer of the glass screen are respectively coated with Indium Tin oxide (IOT), the outermost layer is a silica glass protective layer with the thickness of only 0.0015mm, the interlayer ITO coating is used as a working surface, four corners are led out with four electrodes, and the inner ITO layer is used as a screen layer to ensure the working environment. The electromagnetic touch screen is called as electromagnetic induction touch screen, and its basic principle is that it is judged by means of the magnetic field change produced by inductor under the panel and in the operation process of electromagnetic pen, the electromagnetic pen is signal transmitting end, and the antenna board is signal receiving end, when the electromagnetic pen is close to induction, the magnetic flux is changed, and the position point is defined by operation. In this embodiment, the type of the touch screen is not limited as long as it conforms to: the touch screen arranged at the front end of the display can be touched by fingers or other objects, and then the system can position and select basic functions of the information input touch screen according to the positions of icons or menus touched by the fingers.
With reference to fig. 1, this embodiment specifically includes the following steps:
and S110, receiving the target writing.
The target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area. The preset punctuation marks refer to punctuation marks preset in a word stock. And requires that the punctuation mark often represent a particular expression, such as: the exclamation sentence is a sentence giving the primary emotion, which is expressed by the lyric, and the emotion is like praise, joy, anger, sigh, surprise, mourness, etc. Such as a colon, typically represents a pause after a prompt or represents a prompt context or summary. The associated area refers to a preset area to be processed corresponding to the preset punctuation mark.
Specifically, if the currently received writing is determined to be the target writing, the target writing is received.
And S120, rendering the associated area corresponding to the target writing.
And determining the associated area according to the preset punctuation marks corresponding to the target handwriting. Rendering refers to the processing of the associated region. The set rendering types can be divided into two types, one is occupied filling rendering, the other is visual effect rendering, and the two rendering types correspond to different preset punctuation marks. The preset punctuation marks of the occupancy filling rendering are filling lines, brackets and the like, and belong to special characters waiting for filling of specific contents for prompting that the space should be reserved. The preset punctuation marks corresponding to the visual effect rendering are colons, exclamation marks, double quotation marks, question marks and the like, and special characters containing important information are prompted. The rendering format of the visual effect rendering may be effects of tilting, bolding, and changing font color, and combinations thereof.
Specifically, the target writing trace is received, and the rendering processing is performed on the associated area corresponding to the target writing trace according to the rendering mode corresponding to the preset punctuation mark corresponding to the target writing trace.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a rendering processing method based on special characters according to a second embodiment of the present invention. The present embodiment is a refinement made on the basis of the above-described embodiments. Specifically, the method comprises the following steps:
receiving the target writing, specifically comprising:
acquiring writing handwriting in real time, and determining the stroke number of the writing handwriting;
if the stroke number is less than or equal to a set threshold value, determining that the writing handwriting meets a special character condition;
and comparing the writing handwriting with a preset punctuation mark in a preset word stock, and if the comparison is successful, determining the writing handwriting as the target writing handwriting.
Rendering the associated area corresponding to the target writing trace, specifically comprising:
if the associated area is an occupied filling rendering area, determining a position area occupied by the target writing, and taking the position area as a target to be rendered of the target writing;
if the associated area is a visual effect rendering area, determining a target to be rendered of the target writing according to the rendering attribute set for the target writing;
and rendering the associated area according to a rendering rule corresponding to the target writing.
Rendering the associated area according to a rendering rule corresponding to the target writing handwriting, including:
searching a rendering rule corresponding to the target writing handwriting in a preset rule base, wherein the rendering rule is an occupation filling rendering rule or a visual effect rendering rule;
according to the occupation filling rendering rule corresponding to the target writing handwriting, carrying out occupation filling rendering on the target to be rendered; or,
and performing visual effect enhanced rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing handwriting.
Referring to fig. 2, the specific method provided in this embodiment includes:
s210, collecting the handwriting in real time, and determining the stroke number of the handwriting.
The handwriting refers to the information of characters, symbols and images input through a touch screen. The handwriting writing mainly comprises two presentation modes, one mode is that handwriting is automatically recognized during writing, and after writing is finished, a handwritten note is converted into an editable character. The other is to directly present the handwritten script. The special character condition is a threshold value set for the number of strokes, and if the number of strokes is less than or equal to the set threshold value, the writing handwriting is determined to meet the special character condition. The stroke number of the handwriting can be any method related to the Hand Writing Recognition (Hand Writing Recognition) technology, and the invention is not described herein.
Specifically, the handwriting is collected in real time, and the stroke number of the handwriting is determined for subsequent judgment.
S220, if the stroke number is less than or equal to a set threshold value, determining that the handwriting meets a special character condition.
The set threshold of the stroke number can be set to three strokes, because the number of strokes of the special character is not large, generally, the number of strokes is below three strokes.
Specifically, the writing handwriting is collected in real time, and if the stroke number of the writing handwriting is determined to be less than three, the writing handwriting is determined to meet the special character condition.
And S230, comparing the writing handwriting with a preset punctuation mark in a preset word stock, and if the comparison is successful, determining the writing handwriting as the target writing handwriting.
The content of the preset word stock comprises punctuations which belong to special characters and rendering effects which specifically correspond to the punctuations which belong to the special characters.
Specifically, the special characters with the stroke number smaller than three of the handwriting are compared with the special characters in the preset word stock, and if the comparison is successful, the handwriting is determined to be the target handwriting.
S240, judging whether the associated area is an occupied filling rendering area. If yes, executing S260; if the rendered area is not filled for the placeholder, S250 is performed.
Specifically, whether the associated area is an occupied filling rendering area or not is judged according to the type of a preset punctuation mark in a preset word stock. If the rendering area is occupied, determining a position area occupied by the target writing, and taking the position area as a target to be rendered of the target writing; and if the rendering area is not occupied, determining a target to be rendered of the target writing according to the rendering attribute set for the target writing.
And S250, determining a target to be rendered of the target writing according to the rendering attribute set for the target writing.
Wherein the rendering attribute is a classification of the visual effect rendering, including forward rendering and backward rendering. The rendering attributes further describe how the target to be rendered is determined. As shown in fig. 3, the exclamation mark 15 correspondingly sets the rendering type not to be the space occupying filling rendering, the target 151 to be rendered is three specific characters, "children", and the rendering effect is selected to be thickened.
Specifically, according to a set rendering type of a special character in a preset word stock, if the set rendering type is not occupied filling rendering, determining a target to be rendered of the special character according to a rendering attribute set for the special character.
And S251, searching a rendering rule corresponding to the target writing handwriting in a preset rule base.
Wherein the rendering rule includes: and occupying the rendering rules of filling rendering and the rendering rules of visual effect rendering. Rendering rules for placeholder filling rendering include: the display form of the content corresponding to the space occupying filling target handwriting, the font and the font size of the content corresponding to the space occupying filling, whether the content is thickened or not and the like. Rendering rules for visual effect rendering include: effects of tilting, bolding, and changing font color, and combinations thereof.
Specifically, a rendering rule corresponding to the target writing script is searched in a preset rule base, and subsequent processing is performed.
And S252, performing visual effect enhanced rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing.
Specifically, the rendering processing device based on the special characters receives and judges that the writing handwriting collected through the touch screen meets the special character condition. The rendering processing instruction carries information: the rendering type corresponding to the target writing handwriting is visual effect rendering; the target to be rendered is the display content between the special character and the first set terminator or the second set terminator. And performing visual effect rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing handwriting.
S260, determining a position area occupied by the target writing, and taking the position area as a target to be rendered of the target writing.
FIG. 3 is a diagram showing effects when various punctuation marks are displayed on a touch screen, and as shown in FIG. 3, two special characters of space-filling lines 11 and brackets 13 are shown in the touch screen 10, the number of the space-filling lines 11 is first 12, the number of the brackets 13 is second 14, the position area occupied by the space-filling lines 11 is 111, and the position area occupied by the brackets 13 is 131.
Specifically, the handwriting is matched with the special characters according to the set rendering type of the special characters in the preset word stock. And if the set rendering type is space occupying filling rendering, determining a position area occupied by the special character, and taking the position area as a target to be rendered of the special character.
S261, searching a rendering rule corresponding to the target writing in a preset rule base.
Wherein the rendering rule includes: and occupying the rendering rules of filling rendering and the rendering rules of visual effect rendering. Rendering rules for placeholder filling rendering include: the display form of the content corresponding to the space occupying filling target handwriting, the font and the font size of the content corresponding to the space occupying filling, whether the content is thickened or not and the like. Rendering rules for visual effect rendering include: effects of tilting, bolding, and changing font color, and combinations thereof.
Specifically, a rendering rule corresponding to the target writing script is searched in a preset rule base, and subsequent processing is performed.
And S262, performing occupation filling rendering on the target to be rendered according to the occupation filling rendering rule corresponding to the target handwriting.
Specifically, the rendering processing device based on the special characters receives and judges that the writing handwriting collected through the touch screen meets the special character condition. The rendering processing instruction carries information: the rendering type corresponding to the target writing handwriting is occupied filling rendering; the target to be rendered is the area occupied by the special character. And performing occupation filling rendering on the target to be rendered according to the occupation filling rendering rule corresponding to the target writing handwriting.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved. Meanwhile, the embodiment provides a mechanism and a specific method for performing different processing on the received different target writing traces, so that the operation steps of a user in the writing process are further simplified, and the user experience is improved.
EXAMPLE III
Fig. 4 is a flowchart illustrating a process of filling a rendering area for a place holder in an association area according to a third embodiment of the present invention. The present embodiment is a refinement made on the basis of the above-described embodiments. Specifically, the method comprises the following steps:
the space occupying, filling and rendering the target to be rendered according to the space occupying, filling and rendering rule corresponding to the target writing script comprises the following steps:
displaying the unique identification value distributed to the special character at the associated position of the special character, and sending the unique identification value to an intelligent terminal for establishing communication connection;
and receiving the occupation filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the occupation filling information, wherein the occupation filling information corresponds to the unique identification value and is formed by the intelligent terminal.
Receiving the place occupying filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the place occupying filling information, wherein the method comprises the following steps:
when the place occupying filling information fed back by an intelligent terminal is received, directly filling and rendering the place occupying filling information into the target to be rendered of the special character;
when the place occupying filling information fed back by at least two intelligent terminals is received, displaying preview information of each place occupying filling information in a set area in a set format, and filling and rendering the corresponding place occupying filling information to the target to be rendered of the special character when a user triggers any preview information.
Referring to fig. 4, the specific method provided in this embodiment includes:
s310, determining a position area occupied by the target writing, and taking the position area as a target to be rendered of the target writing.
Specifically, according to the type of the special character in the preset word stock, if the set rendering type is the space occupying filling rendering, the position area occupied by the target writing is determined, and the position area is used as the target to be rendered of the target writing.
S320, searching a rendering rule corresponding to the target writing in a preset rule base.
Specifically, the rendering rule of the placeholder filling rendering includes: the display form of the content corresponding to the space occupying filling target handwriting, the font and the font size of the content corresponding to the space occupying filling, whether the content is thickened or not and the like.
S330, displaying the unique identification value distributed to the special character at the relevant position of the special character, and sending the unique identification value to the intelligent terminal for establishing communication connection.
the related positions are generally near special characters, as shown in fig. 3, two special characters of space-occupying filling rendering are shown in a touch screen 10, namely a space-occupying filling line 11 and a bracket 13, a number ① 12) is an identification value of the space-occupying filling line 11, a number ① 14) is an identification value of the bracket 13, the identification values are set for distinguishing a large number of special characters of space-occupying filling rendering in the touch screen, the identification values can be given in different manners, for example, the identification value of a second special character of space-occupying filling rendering of a second page is 2-2, or direct sequence numbering, if the special character of space-occupying filling rendering of the second page is the fifth of all space-occupying filling rendering special characters, the identification value can be given as fifth of all space-occupying filling rendering special characters, the intelligent terminal refers to more than one intelligent terminal, and can include a touch screen device and/or other intelligent terminals, that when the space-occupying filling rendering special characters appear in the touch screen, the space-occupying filling rendering special characters need to be filled with content, the space-occupying filling characters need to be filled in the space-filling rendering special characters, the space-occupying filling rendering special characters, the space-filling character rendering special characters can be filled in the touch screen itself, if the space-filling connection between the space-occupying filling terminal and the space-filling terminal is established by a special character connection with the space-filling character connection established by a special character input connection established by a special character connection mode, or a special character connection with a special character connection established by a special character input terminal, or a special character connection established by a special character input terminal, such as a special character connection established by a special character input method, and a special character connection established by a special character input terminal, or a special character connection established by a special character.
Specifically, the unique identification value is displayed at the associated position of the special character, and the specific display mode of the unique identification value can be predetermined by setting. The intelligent terminal can establish connection with the special characters rendered by the space occupying filling through the identification value.
S340, receiving the occupation filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the occupation filling information.
And the occupation filling information corresponds to the unique identification value and is formed by the intelligent terminal. The methods of filling and rendering can be divided into two types, one is full display rendering, and the other is thumbnail display rendering. And (4) rendering all the displays, namely all the information of the information input to the special character position by the intelligent terminal. And all display rendering is suitable for directly filling and rendering the space occupying filling information to the target to be rendered of the special character when the space occupying filling information fed back by the intelligent terminal is received. And the thumbnail display rendering is suitable for displaying preview information of each occupancy filling information in a set area in a set format when the occupancy filling information fed back by at least two intelligent terminals is received, and filling and rendering the corresponding occupancy filling information to the target to be rendered of the special character when a user triggers any preview information. The thumbnail display rendering refers to that only part of information is displayed by information input to the position of the placeholder character by the intelligent terminal, and by taking a mobile phone as an example, the four-digit tail number and part of input content of the mobile phone are displayed in a thumbnail mode. The display may be provided by a bubble 25 in the display area 24 as in fig. 5, with a plurality of bubbles, if any, arranged in a partially overlapping arrangement in the display area 24. The presentation area 24 may also be populated with a table as shown in table one:
watch 1
Intelligent terminal number (Mobile phone tail number) Intelligent terminal fill content
1122 May be …
0206 Suspected of being above ground …
3399 Floor cream …
Specifically, the occupation filling information fed back by the intelligent terminal is received, and the content filled into the special characters by the intelligent terminal is rendered according to a preset mode.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved. The embodiment refines the specific rendering process when the associated area is the occupied filling rendering area, realizes the effect of automatically rendering the occupied filling rendering area, simplifies the operation steps of a user in the writing process, and improves the user experience.
Example four
Fig. 6 is a flowchart illustrating a case where an associated area is a visual effect rendering area according to a fourth embodiment of the present invention. The present embodiment is a refinement performed on the basis of the above embodiments, specifically:
determining the target to be rendered of the special character according to the rendering attribute set for the target writing handwriting, wherein the method comprises the following steps:
if the rendering attribute set for the target writing is forward rendering, determining the display content before the target writing and after a first set terminator as a target to be rendered;
and if the rendering attribute set for the target writing is backward rendering, determining display content acquired after the target writing until a second set terminator is recognized as the target to be rendered.
And performing visual effect enhanced rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing handwriting, wherein the visual effect enhanced rendering method comprises the following steps:
obtaining a visual rendering format corresponding to the special character setting, wherein the visual rendering format comprises at least one of the following: bold rendering, italic rendering and underlining rendering;
and controlling the target to be rendered to perform enhanced rendering of the visual effect in the visual rendering format.
Referring to fig. 6, the specific method provided in this embodiment includes:
and S410, if the rendering attribute set for the special character is forward rendering, determining the display content before the special character and after the first set terminator as the target to be rendered.
The forward rendering is that when a special character mainly acts on the characters before the special character (such as an exclamation mark, a question mark and the like are forward special characters), the content between the special character before the forward rendering and the first set terminator is determined as the target to be rendered. The first set terminator is typically the first period end punctuation preceding the forward rendering of the corresponding special character.
Specifically, if the rendering attribute set for the special character is determined to be rendered forward, the contents before the special character and after the first set terminator are determined as the target to be rendered.
S420, if the rendering attribute set for the special character is backward rendering, determining the display content acquired after the special character until the second set terminator is identified as the target to be rendered.
The backward rendering refers to determining the content between a second set terminator and a corresponding special character from the backward rendering to a target to be rendered when the special character mainly acts on characters behind the special character (such as a colon, a dash and the like are backward special characters). The second set terminator is typically the first period end punctuation located after the backward rendering of the corresponding special character.
Specifically, if the rendering attribute set for the special character is determined to be rendering backward, the content after the special character and before the second set terminator is determined to be the target to be rendered.
S430, searching a rendering rule corresponding to the target writing in a preset rule base.
Specifically, the rendering rule of the visual effect rendering includes: effects of tilting, bolding, and changing font color, and combinations thereof.
S440, obtaining a visual rendering format corresponding to the special character setting, wherein the visual rendering format comprises at least one of the following: bold rendering, italic rendering, and underline rendering.
Wherein the rendering format includes: at least one of bold rendering, italic rendering, and underline rendering. Other common rendering modes, such as changing the font color, setting the emphasis font type, and framing, are also included.
Specifically, the received rendering instruction is analyzed, and a rendering format carried by the instruction is selected to perform rendering processing on the target to be rendered.
S450, controlling the target to be rendered to perform enhanced rendering of the visual effect in the visual rendering format.
Specifically, after the target to be rendered is confirmed, enhanced rendering of the visual effect is performed according to the visual rendering format, and the rendered effect is displayed on the touch screen.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved. Meanwhile, the embodiment provides the effect of automatically rendering when the associated area is the visual effect rendering area, simplifies the operation steps of the user in the writing process, and improves the user experience.
EXAMPLE five
Fig. 7 is a block diagram of a rendering apparatus based on special characters according to a fifth embodiment of the present invention. The device specifically includes: an object handwriting receiving module 51 and a rendering module 52.
A target handwriting receiving module 51, configured to receive a target writing handwriting, where the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and the rendering module 52 is configured to render an associated region corresponding to the target writing trace, where the associated region is determined according to a preset punctuation mark corresponding to the target writing trace.
According to the method and the device, the problem that a user needs to emphasize rendering and editing through the toolbars arranged around the touch screen is solved by presetting the corresponding rendering processing method when the special character appears, the effect of automatically performing rendering processing according to the special character is achieved, the operation steps of the user in the writing process are simplified, and the user experience is improved.
On the basis of the above embodiment, the target writing receiving module 51 further includes:
acquiring writing handwriting in real time, and determining the stroke number of the writing handwriting; if the stroke number is less than or equal to a set threshold value, determining that the writing handwriting meets a special character condition; and comparing the writing handwriting with a preset punctuation mark in a preset word stock, and if the comparison is successful, determining the writing handwriting as the target writing handwriting.
On the basis of the above embodiment, the rendering module 52 further includes:
an occupation filling area identification unit, configured to determine a position area occupied by the target writing if the associated area is an occupation filling rendering area, and use the position area as a target to be rendered of the target writing;
the visual effect area identification unit is used for determining a target to be rendered of the target writing handwriting according to the rendering attribute set for the target writing handwriting if the associated area is a visual effect rendering area;
and the rendering processing unit is used for rendering the associated area according to a rendering rule corresponding to the target writing.
On the basis of the above embodiment, the rendering processing unit further includes:
a rendering rule judging subunit, configured to search a preset rule base for a rendering rule corresponding to the target writing, where the rendering rule is an occupancy filling rendering rule or a visual effect rendering rule;
the occupation filling rendering subunit is used for carrying out occupation filling rendering on the target to be rendered according to an occupation filling rendering rule corresponding to the target writing handwriting; or,
and the visual effect enhancement rendering subunit is used for performing visual effect enhancement rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing handwriting.
On the basis of the above embodiment, the placeholder filling rendering subunit may be configured to:
displaying the unique identification value distributed to the special character at the associated position of the special character, and sending the unique identification value to an intelligent terminal for establishing communication connection;
and receiving the occupation filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the occupation filling information, wherein the occupation filling information corresponds to the unique identification value and is formed by the intelligent terminal.
On the basis of the above embodiment, the placeholder filling rendering subunit may be configured to:
when the place occupying filling information fed back by an intelligent terminal is received, directly filling and rendering the place occupying filling information into the target to be rendered of the special character;
when the place occupying filling information fed back by at least two intelligent terminals is received, displaying preview information of each place occupying filling information in a set area in a set format, and filling and rendering the corresponding place occupying filling information to the target to be rendered of the special character when a user triggers any preview information
On the basis of the above embodiment, the visual effect enhancement rendering subunit may be configured to:
if the rendering attribute set for the target writing is forward rendering, determining the display content before the target writing and after a first set terminator as a target to be rendered;
and if the rendering attribute set for the target writing is backward rendering, determining display content acquired after the target writing until a second set terminator is recognized as the target to be rendered.
On the basis of the above embodiment, the visual effect enhancement rendering subunit may be configured to:
obtaining a visual rendering format corresponding to the special character setting, wherein the visual rendering format comprises at least one of the following: bold rendering, italic rendering and underlining rendering;
and controlling the target to be rendered to perform enhanced rendering of the visual effect in the visual rendering format.
The special character-based rendering processing device provided by the embodiment can be used for executing the special character-based rendering processing method provided by any one of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention. As shown in fig. 8, the apparatus includes a processor 60, a memory 61, a communication module 62, an input device 63, and an output device 64; the number of processors 60 in the device may be one or more, and one processor 60 is taken as an example in fig. 8; the processor 60, the memory 61, the communication module 62, the input device 63 and the output device 64 in the apparatus may be connected by a bus or other means, and fig. 8 illustrates the connection by a bus as an example.
The memory 61 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as modules corresponding to a special character-based rendering processing method in the embodiment (for example, the target writing receiving module 51 and the rendering module 52 in a special character-based rendering processing device). The processor 60 executes various functional applications of the device and data processing by running software programs, instructions and modules stored in the memory 61, that is, implements one of the special character-based rendering processing methods described above.
The memory 61 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 61 may further include memory located remotely from the processor 60, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And the communication module 62 is used for establishing connection with the display screen and realizing data interaction with the display screen. The input device 63 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 64 may also include a speaker, or other devices that may be used for output.
The device provided by this embodiment may execute the rendering processing method based on the special character provided by any embodiment of the present invention, and its corresponding functions and advantages are described in detail.
EXAMPLE seven
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a special character-based rendering processing method, including:
receiving target writing handwriting, wherein the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and rendering an associated area corresponding to the target writing script, wherein the associated area is determined according to a preset punctuation mark corresponding to the target writing script.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the special character-based rendering processing method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the special character-based rendering processing apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A special character-based rendering processing method is characterized by comprising the following steps:
receiving target writing handwriting, wherein the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and rendering an associated area corresponding to the target writing script, wherein the associated area is determined according to a preset punctuation mark corresponding to the target writing script.
2. The method according to claim 1, wherein the receiving the target writing script specifically comprises:
acquiring writing handwriting in real time, and determining the stroke number of the writing handwriting;
if the stroke number is less than or equal to a set threshold value, determining that the writing handwriting meets a special character condition;
and comparing the writing handwriting with a preset punctuation mark in a preset word stock, and if the comparison is successful, determining the writing handwriting as the target writing handwriting.
3. The method according to claim 1, wherein the rendering of the associated area corresponding to the target writing script specifically comprises:
if the associated area is an occupied filling rendering area, determining a position area occupied by the target writing, and taking the position area as a target to be rendered of the target writing;
if the associated area is a visual effect rendering area, determining a target to be rendered of the target writing according to the rendering attribute set for the target writing;
and rendering the associated area according to a rendering rule corresponding to the target writing.
4. The method as claimed in claim 3, wherein the determining the target to be rendered for the special character according to the rendering property set for the target writing script comprises:
if the rendering attribute set for the target writing is forward rendering, determining the display content before the target writing and after a first set terminator as a target to be rendered;
and if the rendering attribute set for the target writing is backward rendering, determining display content acquired after the target writing until a second set terminator is recognized as the target to be rendered.
5. The method according to claim 3, wherein the rendering the associated area according to the rendering rule corresponding to the target writing script comprises:
searching a rendering rule corresponding to the target writing handwriting in a preset rule base, wherein the rendering rule is an occupation filling rendering rule or a visual effect rendering rule;
according to the occupation filling rendering rule corresponding to the target writing handwriting, carrying out occupation filling rendering on the target to be rendered; or,
and performing visual effect enhanced rendering on the target to be rendered according to the visual effect rendering rule corresponding to the target writing handwriting.
6. The method according to claim 5, wherein the performing a space-occupying filling rendering on the target to be rendered according to a space-occupying filling rendering rule corresponding to the target writing script comprises:
displaying the unique identification value distributed to the special character at the associated position of the special character, and sending the unique identification value to an intelligent terminal for establishing communication connection;
and receiving the occupation filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the occupation filling information, wherein the occupation filling information corresponds to the unique identification value and is formed by the intelligent terminal.
7. The method according to claim 6, wherein receiving placeholder filling information fed back by the intelligent terminal, and performing filling rendering on the target to be rendered of the special character based on the placeholder filling information comprises:
when the place occupying filling information fed back by an intelligent terminal is received, directly filling and rendering the place occupying filling information into the target to be rendered of the special character;
when the place occupying filling information fed back by at least two intelligent terminals is received, displaying preview information of each place occupying filling information in a set area in a set format, and filling and rendering the corresponding place occupying filling information to the target to be rendered of the special character when a user triggers any preview information.
8. The method according to claim 5, wherein the performing, according to the visual effect rendering rule corresponding to the target writing trace, the enhanced rendering of the visual effect on the target to be rendered comprises:
obtaining a visual rendering format corresponding to the special character setting, wherein the visual rendering format comprises at least one of the following: bold rendering, italic rendering and underlining rendering;
and controlling the target to be rendered to perform enhanced rendering of the visual effect in the visual rendering format.
9. A special character-based rendering processing apparatus, comprising:
the target handwriting receiving module is used for receiving target writing handwriting, the target writing handwriting corresponds to a preset punctuation mark, and the preset punctuation mark is provided with a corresponding association area;
and the rendering module is used for rendering the associated area corresponding to the target writing handwriting, and the associated area is determined according to the preset punctuation mark corresponding to the target writing handwriting.
10. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a special character based rendering process method as recited in any of claims 1-8.
11. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a special character-based rendering processing method according to any one of claims 1 to 8.
CN201810411399.0A 2018-05-02 2018-05-02 Rendering processing method, device and equipment based on special characters and storage medium Active CN108572776B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810411399.0A CN108572776B (en) 2018-05-02 2018-05-02 Rendering processing method, device and equipment based on special characters and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810411399.0A CN108572776B (en) 2018-05-02 2018-05-02 Rendering processing method, device and equipment based on special characters and storage medium

Publications (2)

Publication Number Publication Date
CN108572776A true CN108572776A (en) 2018-09-25
CN108572776B CN108572776B (en) 2020-11-03

Family

ID=63575514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810411399.0A Active CN108572776B (en) 2018-05-02 2018-05-02 Rendering processing method, device and equipment based on special characters and storage medium

Country Status (1)

Country Link
CN (1) CN108572776B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949141A (en) * 2020-06-28 2020-11-17 大众问问(北京)信息科技有限公司 Handwritten character input method and device, electronic equipment and storage medium
CN114692567A (en) * 2020-12-31 2022-07-01 广州视源电子科技股份有限公司 Format adjustment method and device and interactive panel

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777896A (en) * 2014-01-13 2015-07-15 Lg电子株式会社 Mobile terminal and method for controlling the same
US20160062637A1 (en) * 2014-09-03 2016-03-03 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Method, apparatus and non-transitory storage medium for processing punctuation mark
CN106547534A (en) * 2016-09-19 2017-03-29 华为技术有限公司 The device and method of displayed page extension point
CN106951168A (en) * 2017-03-03 2017-07-14 宇龙计算机通信科技(深圳)有限公司 A kind of literal processing method and mobile terminal
CN107368205A (en) * 2017-07-26 2017-11-21 维沃移动通信有限公司 A kind of hand-written inputting method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104777896A (en) * 2014-01-13 2015-07-15 Lg电子株式会社 Mobile terminal and method for controlling the same
US20160062637A1 (en) * 2014-09-03 2016-03-03 Fu Tai Hua Industry (Shenzhen) Co., Ltd. Method, apparatus and non-transitory storage medium for processing punctuation mark
CN106547534A (en) * 2016-09-19 2017-03-29 华为技术有限公司 The device and method of displayed page extension point
CN106951168A (en) * 2017-03-03 2017-07-14 宇龙计算机通信科技(深圳)有限公司 A kind of literal processing method and mobile terminal
CN107368205A (en) * 2017-07-26 2017-11-21 维沃移动通信有限公司 A kind of hand-written inputting method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949141A (en) * 2020-06-28 2020-11-17 大众问问(北京)信息科技有限公司 Handwritten character input method and device, electronic equipment and storage medium
CN111949141B (en) * 2020-06-28 2024-04-26 大众问问(北京)信息科技有限公司 Handwritten character input method and device, electronic equipment and storage medium
CN114692567A (en) * 2020-12-31 2022-07-01 广州视源电子科技股份有限公司 Format adjustment method and device and interactive panel

Also Published As

Publication number Publication date
CN108572776B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
US20210406578A1 (en) Handwriting-based predictive population of partial virtual keyboards
US9547439B2 (en) Dynamically-positioned character string suggestions for gesture typing
WO2020187118A1 (en) Page presentation method and apparatus
CN106484266A (en) A kind of text handling method and device
CN101576783B (en) User interface, equipment and method for hand input
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
KR101846238B1 (en) Chinese character input apparatus and controlling method thereof
CN112153206B (en) Contact person matching method and device, electronic equipment and storage medium
CN104808807A (en) Method and device for Chinese phonetic input
EP2909702B1 (en) Contextually-specific automatic separators
CN108572776B (en) Rendering processing method, device and equipment based on special characters and storage medium
CN108700978B (en) Assigning textures to graphical keyboards based on subject textures of an application
US10146764B2 (en) Dynamic key mapping of a graphical keyboard
CN106568431A (en) A navigation information providing method and device
KR20040043454A (en) Pen input method and apparatus in pen computing system
CN104572593A (en) Method, system and electronic device for processing letters
CN104281560A (en) Memory text information display method and device and terminal
US20140331160A1 (en) Apparatus and method for generating message in portable terminal
CN106066706B (en) A kind of data processing method and intelligent terminal
CN113034649B (en) Chinese character drawing and displaying method and device, electronic equipment and medium
CN104298457A (en) Character input method and device
CN106293368B (en) Data processing method and electronic equipment
KR20140139702A (en) Method and apparatus for correcting text
CN113436297A (en) Picture processing method and electronic equipment
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant