CN111291533A - Sentence segment to be displayed display method and device, computer equipment and storage medium - Google Patents

Sentence segment to be displayed display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111291533A
CN111291533A CN202010073445.8A CN202010073445A CN111291533A CN 111291533 A CN111291533 A CN 111291533A CN 202010073445 A CN202010073445 A CN 202010073445A CN 111291533 A CN111291533 A CN 111291533A
Authority
CN
China
Prior art keywords
label
tag
displayed
information
preset
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
CN202010073445.8A
Other languages
Chinese (zh)
Other versions
CN111291533B (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.)
Wensihai Huizhike Technology Co Ltd
Original Assignee
Wensihai Huizhike 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 Wensihai Huizhike Technology Co Ltd filed Critical Wensihai Huizhike Technology Co Ltd
Priority to CN202010073445.8A priority Critical patent/CN111291533B/en
Publication of CN111291533A publication Critical patent/CN111291533A/en
Application granted granted Critical
Publication of CN111291533B publication Critical patent/CN111291533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a sentence segment display method, a sentence segment display device, a computer device and a storage medium, which are characterized in that the method comprises the following steps: identifying an initial label in the sentence segment to be displayed; acquiring target label information from a preset label list according to the initial label; configuring attribute information of a preset replacement tag according to the target tag information, and acquiring the preset replacement tag after updating the attribute information; replacing the initial label in the sentence segment to be displayed with the preset replacement label after updating the attribute information to obtain an updated sentence segment to be displayed; and analyzing and updating the sentence segments to be displayed, and displaying the sentence segments to be displayed. According to the display method of the sentence segments to be displayed, as how the specific attribute information of the preset replacement tags is configured can be set, compared with the existing tags, the display style of the preset replacement tags is more flexible, the functions are richer, and the display of the sentence segments is more diversified.

Description

Sentence segment to be displayed display method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a sentence segment to be displayed display method and apparatus, a computer device, and a storage medium.
Background
In daily life, people often use tags to record certain interesting information to remind people who see the tags to remember the information; in the scenario of online translation, tags (tags) are sometimes used to store some information in a sentence segment, and an interpreter does not need to translate the tags in the translation process, but the interpreter can know the relevant information of the sentence segment through the information stored in the tags, which is necessary in some scenarios, so that the tags are important for the translation work of the interpreter.
In the prior art, the tags in the sentence segments are usually represented by simple place-occupying pictures and numbers, which can only display a part of the content of the tags in a fixed manner and do not support adjustment, and the translator may face various scenes in the translation process, the existing tags cannot adapt to different operation manners or requirements, and the sentence segments using the tags are displayed more singly.
Disclosure of Invention
In view of the above, it is necessary to provide a sentence displaying method, apparatus, computer device and storage medium for displaying a sentence segment.
A method of displaying sentence segments to be displayed, said method comprising:
identifying an initial label in the sentence segment to be displayed;
acquiring target label information from a preset label list according to the initial label;
configuring attribute information of a preset replacement tag according to the target tag information, and acquiring the preset replacement tag after updating the attribute information;
replacing the initial label in the sentence segment to be displayed with the preset replacement label after updating the attribute information;
and analyzing the updated sentence segments to be displayed, and displaying the sentence segments to be displayed.
A display device for displaying sentence fragments, said device comprising:
the initial label identification module is used for identifying an initial label in the sentence segment to be displayed;
the target label information acquisition module is used for acquiring target label information from a preset label list according to the initial label;
the attribute information configuration module is used for configuring the attribute information of a preset replacement tag according to the target tag information and acquiring the preset replacement tag after the attribute information is updated;
the label replacing module is used for replacing the initial label in the sentence fragments to be displayed with the preset replacing label after the attribute information is updated;
and the display module is used for analyzing the updated sentence segments to be displayed and displaying the sentence segments to be displayed.
A computer device comprises a memory and a processor, wherein the memory stores computer programs, and the processor realizes the steps in the display method of the sentence segments to be displayed when executing.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps in the above-mentioned method for displaying sentence fragments to be displayed.
According to the display method, the display device, the computer equipment and the storage medium of the sentence segments to be displayed, for the sentence segments to be displayed, the initial labels are identified, the target label information is obtained from the preset label list according to the initial labels, the attribute information of the preset replacement labels is configured according to the target label information to obtain the preset replacement labels with updated attribute information, the initial labels in the sentence segments to be displayed are replaced by the preset replacement labels to obtain the updated labels to be displayed, and then the updated labels to be displayed are analyzed and displayed; the specific attribute information of the preset replacement label can be set, so that compared with the existing label, the display style of the preset replacement label is more flexible, the functions are richer, and the display of the sentence segments is more diversified.
Drawings
FIG. 1 is a flow diagram illustrating a method for displaying sentence segments to be displayed in one embodiment;
FIG. 2 is a flow chart illustrating a method for displaying sentence segments to be displayed in another embodiment;
FIG. 3 is a flowchart illustrating a method for displaying sentence segments to be displayed in another embodiment;
FIG. 4 is a flowchart illustrating a method for displaying sentence segments to be displayed in another embodiment;
FIG. 5 is a flowchart illustrating steps for switching a display mode according to a display mode switching command according to an embodiment;
FIG. 6 is a block diagram of a display device for displaying sentence segments in one embodiment;
FIG. 7 is a block diagram of a display device for displaying sentence segments in another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, the present application provides a method for displaying sentence segments to be displayed, as shown in fig. 1, including steps S110 to S150.
In step S110, the initial label in the sentence segment to be displayed is identified.
In this embodiment, the sentence segments to be displayed are sentence segments of extensible markup language (XML for short); the sentence segment to be displayed comprises a label and also comprises text content; the tags in the sentence segments can be tags used individually to represent the presentation, or tags that appear in pairs to serve as specific identifiers for the textual content of the package therein; but may also occur in pairs for formatting the textual content wrapped therein.
And step S120, acquiring target label information from a preset label list according to the initial label.
Wherein the initial label belongs to a simplified label, and the simplified label corresponds to the original label in the original sentence segment. The preset tag list stores target tag information corresponding to the original tag, such as tag type information, tag text information, tag numbers and the like. According to the initial label, the required label information can be obtained from the preset label list. The text content in the label comprises a label serial number, and in a preset label list, various label information and the label serial number are correspondingly stored. Therefore, in an embodiment, acquiring target tag information from a preset tag list according to an initial tag may further include: and analyzing the text content in the initial label, acquiring the label serial number from the text content, and acquiring corresponding label information from a preset label list according to the label serial number.
In a specific embodiment, the initial tag is < b1/>, and after the initial tag is analyzed, a tag sequence number "b 1" may be obtained, and according to the tag sequence number, corresponding tag information may be obtained from a preset tag list.
Step S130, configuring attribute information of the preset replacement tag according to the target tag information, and obtaining the preset replacement tag after updating the attribute information.
In an embodiment, the attribute information of the preset replacement tag may not be set, or may also be set as default attribute information. In this embodiment, after the corresponding target tag information is acquired from the preset tag list according to the initial tag, the attribute information of the preset replacement tag is set according to the target tag information, and the preset replacement tag after the attribute information is updated is the preset replacement tag after the attribute information is updated.
Step S140, replacing the initial tag in the sentence segment to be displayed with the preset replacement tag after updating the attribute information.
Wherein the preset replacement tag is an element in the hypertext markup language, and in an optional implementation, the preset replacement tag is an input element. The attribute information of the preset replacement label is used for controlling the display style of the preset replacement label, the preset replacement label after the attribute information is updated is obtained according to the attribute information of the preset replacement label configured according to the target label information, so that the display style of the preset replacement label after the attribute information is updated can correspond to the original label, meanwhile, the initial label in the sentence period to be displayed is replaced by the preset replacement label after the attribute information is updated, namely the initial label in the sentence period to be displayed is deleted, and the corresponding position is replaced by the preset replacement label after the attribute information is updated; because how the specific attribute information of the preset replacement tag is configured can be set, compared with the initial tag, the display style of the preset replacement tag is more flexible, and the functions are richer.
Step S150, parsing the sentence segment to be displayed and displaying the sentence segment to be displayed.
In one embodiment, parsing the sentence segment to be displayed includes parsing the preset replacement tag after updating the attribute information in the sentence segment to be displayed, determining a display style specified in the attribute information of the preset replacement tag after updating the attribute information, and displaying the sentence segment to be displayed according to the display style.
It should be noted that, because the sentence segment to be displayed is the xml sentence segment, the above replacement of the tag in the sentence segment to be displayed occurs on the xml text of the sentence segment to be displayed. In one embodiment, if the sentence segment to be displayed is This is < b1> a book 1>, wherein < b1> and </b1> are both initial tags, after the initial tags are replaced by preset replacement tags, if the preset replacement tags are input elements, the sentence segment to be displayed after replacement is This is < input > a book. Further, the configuration of the attribute information of the preset replacement tag is also the configuration of the markup language content of the preset replacement tag. In one embodiment, the configuration of the attribute information of the preset replacement tag may occur before or after the replacement of the initial tag with the preset replacement tag. After the label replacement is completed, the browser end analyzes the sentence segment to be displayed in the extensible markup language, and then presents corresponding content and styles on the screen according to the analysis result.
In the display method of the sentence segments to be displayed, for the sentence segments to be displayed, identifying the initial labels therein, obtaining target label information from a preset label list according to the initial labels, configuring the attribute information of the preset replacement labels according to the target label information to obtain the preset replacement labels after updating the attribute information, replacing the initial labels in the sentence segments to be displayed with the preset replacement labels to obtain the updated labels to be displayed, and then analyzing and displaying the updated labels to be displayed; because how the specific attribute information of the preset replacement tag is configured can be set, compared with the existing tag, the display style of the preset replacement tag is more flexible, the functions are richer, and the display of the sentence segments is more diversified.
In an embodiment, the main execution body of the display method of the sentence fragments to be displayed is a browser of the terminal.
Further, in one embodiment, as shown in fig. 2, before identifying the initial tag in the period to be displayed, the method further includes steps S210 to S240:
step S210, receiving and parsing the original sentence segment, and obtaining the tag information of the original tag in the original sentence segment.
The original text sentence segment is input by a user and comprises text content and an original label; the label information of the original label in the original sentence fragment can be obtained by analyzing the original sentence fragment. The label in the sentence segment is the original label in the original sentence segment, and when the original sentence segment is displayed, the original label cannot be displayed specially, so that the user cannot visually see the original label.
Step S220, storing the tag information of the original tag as target tag information in a preset tag list.
Step S230, generating an initial tag according to the tag information of the original tag.
In one embodiment, generating the initial tag from the original tag comprises: determining text content of the initial label according to label information of the original label, and determining a display style of the initial label according to attributes corresponding to the display style in the original label; and generating an initial label according to the display style and the text content. The text content of the initial tag may be the text content stored in one attribute of the tag information of the original tag.
Step S240, replacing the original tag in the original sentence segment with the initial tag to obtain the sentence segment to be displayed.
In one embodiment, the original sentence segment is a sentence segment to be translated uploaded to an online translation system, an original tag in the sentence segment to be translated is not translated, and since the original tag cannot be displayed specially in the online translation system, a translator cannot visually find that the tag cannot be translated. Therefore, the original label is replaced by the initial label which can be displayed specially, and the translator can be effectively helped to find out which parts do not need to be translated.
In one embodiment, in order to replace an original tag in an original sentence segment, the original tag is first parsed to obtain tag information of the original tag, such as tag type information and tag text information, so that the replacement tag can perform corresponding attribute setting according to the tag information of the original tag. Because the original sentence segments are not displayed in real time after being analyzed, but are displayed after receiving the corresponding display instruction, the original sentence segments and the analyzed tag information of the original tag need to be stored. Furthermore, label numbers are distributed to the original labels, label information and label serial numbers of the original labels are correspondingly stored in a preset label list, and when needed, the corresponding label information can be directly obtained from the preset label list through the label numbers. Meanwhile, when a display instruction is not received, the parsed original sentence segments need to be stored, in order to quickly replace the labels in the original sentence segments with preset replacement labels during display, the original labels are replaced with initial labels at first, the initial labels are simplified labels, the text contents of the labels comprise the label numbers corresponding to the original labels, the original sentence segments after replacing the initial labels are stored as the sentence segments to be displayed, a large amount of information of the original labels does not need to be stored, and meanwhile, the label information corresponding to the original labels is acquired more quickly during display.
In one embodiment, as shown in fig. 3, configuring attribute information of a preset replacement tag according to target tag information, and obtaining the preset replacement tag after updating the attribute information includes: step S310, according to the label type information in the target label information, setting the class name attribute of the preset replacement label, and obtaining the preset replacement label after updating the attribute information; it can be understood that, in this embodiment, after the class name attribute of the preset replacement tag is set, the preset replacement tag with the updated class name attribute is obtained; in an embodiment where the preset replacement tag is an input element, the Class name attribute of the preset replacement tag refers to a Class attribute of the input element.
Further, with reference to fig. 3, in the present embodiment, parsing the sentence segment to be displayed and displaying the sentence segment to be displayed includes: step S320, determining a corresponding first stacking style according to the class name attribute of the preset replacement label; and S330, displaying the shape and/or the color of the preset replacement label according to the first lamination style.
In the extensible text markup language, a cascading style can be set in a self-defined mode, information such as the display shape and the display color of a label can be set in the cascading style, the type name attribute of the label corresponds to the cascading style, when the label is displayed, a browser analyzes the label, identifies the type name attribute of the label, finds the corresponding cascading style in a cascading style sheet according to the type name attribute, and then displays the label as the corresponding shape and/or color. The display style of the preset replacement label is obtained from the preset label list, and the preset label list is obtained by storing the label information of the original label in the original sentence segment, so that the display style of the preset replacement label corresponds to the type of the original label, the class name attribute in the preset replacement label is set according to the label type information in the target label information corresponding to the original label, and the display style of the preset replacement label can effectively correspond to the label type of the original label.
In one embodiment, the preset replacement tag is an input element in the extensible markup language, and the class name attribute of the input element is set according to tag type information in target tag information corresponding to the initial tag. In a specific embodiment, if the initial tag is an independent tag, a class name attribute class may be set as "alone" in the class name attribute of the input element, and a cascading style corresponding to "alone" is set in the cascading style sheet, where the cascading style is used to display a style corresponding to the independent tag. When the system analyzes and displays the input element, the system searches the cascading style corresponding to the "input" and the "alone" in the cascading style sheet according to the alone in the class name attribute, and correspondingly displays the style of the input element. In one embodiment, the cascading style is by setting the style of the left and right sides of the border-image tag.
In another embodiment, the preset alternative label is a span element in a markup language, the element is an in-line element, when displayed, the label is not displayed, but the content wrapped by the element is displayed, and the display style of the wrapped content is determined by the attribute of the span element. Specifically, replacing the initial tag with a preset replacement tag includes: acquiring label type information and label text information from a preset label list according to an initial label, setting the class name attribute of the in-line element according to the label type information, and adding the label text information into the in-line element to obtain an updated in-line element; the initial tag is replaced with the updated inline element (the inline element to which the tag text content is added and the class name attribute is set).
Further, in an embodiment, determining a corresponding first stacking style according to the class name attribute of the preset replacement tag includes: identifying the character direction attribute corresponding to the sentence segment to be displayed; and if the character direction attribute is the preset character direction, determining a first stacking style according to the character direction attribute and the class name attribute of the preset replacement label, wherein the character direction attribute is a parent element of the preset replacement label in a stacking style sheet in which the first stacking style is located.
In a specific case, due to the particularity of the display direction of the text, the display style of the tag may be distinguished from other display styles. For example, when displaying the content in arabic language, the text direction is from right to left, and the text direction attribute (dir attribute) corresponding to the field to be displayed is set to be from right to left (rtl), so the shape of the label, for example, the direction of the sharp corner of the label, is opposite to the other cases. Therefore, the character direction attribute is set as a parent element of the preset replacement tag, and a corresponding cascading style is set. In the process of analyzing the preset replacement label, when the characters are displayed normally from left to right, the corresponding cascading style is obtained from the common cascading style list, and when the characters are displayed from right to left, the corresponding cascading style is obtained from the cascading style corresponding to the character direction attribute.
In an embodiment, as shown in fig. 4, in the display method of the sentence fragment to be displayed, configuring the attribute information of the preset substitute tag according to the target tag information, and obtaining the preset substitute tag after updating the attribute information includes: step S410, setting a title attribute of the preset replacement tag according to the tag text content in the target tag information, and obtaining the preset replacement tag after updating the attribute information.
Further, with reference to fig. 4, in the present embodiment, parsing the sentence segment to be displayed and displaying the sentence segment to be displayed includes: step S420, if it is detected that the mouse pointer hovers over the displayed preset replacement tag, acquiring the tag text recorded in the title attribute, and displaying the tag text content recorded in the title attribute in a pop-up window form at the adjacent position of the displayed preset replacement tag.
The position detection of the mouse pointer (cursor) can be realized in any mode; the adjacent positions may be set according to actual conditions, and in a specific embodiment, the adjacent positions of the preset replacement tags include positions within a preset distance of the position of the preset replacement tag.
In the markup language, a title attribute (title attribute) of a tag is used to display additional information of the tag, which is displayed to pop up when a mouse pointer is hovered over the tag. In one embodiment, for a concise display, the display content on the preset replacement label is often simplified information, not the label text of the corresponding original label, and the user sometimes needs to know the label text content of the original label. Therefore, in this embodiment, the text content of the original tag is added to the title attribute of the preset replacement tag, and the user can display the text content of the original tag in a pop-up window form by hovering the mouse pointer over the preset replacement tag.
In this embodiment, the target tag information includes tag text content; in one embodiment, obtaining the target tag information from the preset tag list according to the initial tag includes: and analyzing the text content in the initial label to obtain a corresponding label serial number, and searching the corresponding label text content from a preset label list according to the label serial number.
In one embodiment, after replacing the initial tag in the period to be displayed with the preset replacement tag after updating the attribute information, the method further includes: receiving a display mode switching instruction; switching the corresponding display mode according to the display mode switching instruction so as to display the corresponding content on the preset replacement label, wherein the display mode at least comprises one of the following modes: a tag number display mode, a tag name display mode, and a tag text display mode.
The content displayed on the label can provide the most intuitive information for the user, and the displayed content has different functions. In one embodiment, three display modes are provided for a user, wherein the three display modes respectively comprise a tag number display mode, a tag name display mode and a tag text display mode. The display mode is switched according to a switching instruction of a user.
In an optional embodiment, the tag name is obtained by intercepting a first word of a tag text of the original tag, and the tag text display mode is a text content for displaying the original tag.
In a specific embodiment, for the same label, in the label number display mode, the display content corresponding to the preset replacement label is "①", in the label name display mode, the display content corresponding to the preset replacement label is "term", and in the label text display mode, the display content corresponding to the preset replacement label is "term".
Further, in an embodiment, as shown in fig. 5, switching the corresponding display mode according to the display mode switching instruction includes steps S510 to S530.
Step S510, a target display content corresponding to the display mode and a text length of the target display content are obtained.
The target display content is the text content required to be displayed in the display mode to be switched, and the replacement label is preset; the text length of the target display content is the display length of the text content required to be displayed by the preset replacement tag in the display mode to be switched.
Step S520, setting the display content attribute of the preset replacement tag as the target display content, and setting the tag length in the inline style sheet of the preset replacement tag as the text length of the target display content.
In an embodiment where the preset replacement tag is an input element, the display content attribute of the preset replacement tag is a value attribute, and the inline style sheet of the preset replacement tag represents a style attribute of the input element.
Step S530, parsing the preset replacement tag, and displaying the preset replacement tag.
In one embodiment, the tag number, the tag name and the tag text corresponding to the original tag are respectively obtained, the three are respectively added to three custom content attributes of the preset replacement tag, when the display mode is switched to the corresponding display mode, the corresponding content can be directly obtained from the attribute information of the preset replacement tag, and the content is added to the content display attribute (value attribute) of the preset replacement tag, so that the corresponding content can be displayed on the preset replacement tag. Further, in order to avoid the display incompatibility, when the corresponding content is displayed, the length of the tag needs to be set to be suitable for the corresponding content. In an alternative embodiment, the label number, the label name and the text length of the label text are calculated respectively, and the lengths of the three are added into the custom text length attribute respectively. When the display mode is switched to a certain display mode, the corresponding text length value is obtained except that the corresponding content is added to the content display attribute, and the label length information in the inline style sheet of the preset replacement label is set as the text length value. Therefore, when the content is displayed according to different display modes, the length of the label is consistent with the display content. Meanwhile, the setting of the label length in the inline style sheet is the highest priority setting, so that the influence of other information on the display of the label length is eliminated.
In one embodiment, the text length value of the display content of the preset replacement tag is obtained by linear transformation of the number of characters, for example, w ═ aw × Len + border, where w is the calculated text length, Len is the number of characters of the text to be tested, aw is the average display width of the characters, and this value is related to the font and the characters, and can be adjusted according to the actual situation. Border is the offset and margin width, which is related to the pattern defined by cs and can be adjusted according to the actual situation.
In another embodiment, the method for calculating the text length value of the display content of the preset replacement tag includes constructing a div element hidden from the user on the page, filling the div element with the content to be detected, and setting the style. The text length of the content to be detected can be obtained by obtaining the width of the div.
In one embodiment, replacing the original tags in the original sentence segment with the initial tags includes: if the original label is the specific label combination, replacing the specific label combination with the initial label; further, in this embodiment, replacing the initial tag in the sentence segment to be displayed with a preset replacement tag includes: replacing the initial label with a preset replacement label combination; adding first in-line elements on two sides of the preset replacement label combination, wherein the editing attribute of the first in-line elements is configured to be uneditable, and the stacking style corresponding to the class name attribute of the first in-line elements is used for adding preset graphics on two sides of the in-line elements.
In one embodiment, the first in-line element refers to a span element, the edit attribute of the first in-line element is a contentdetails attribute of the span element, and the edit attribute of the first in-line element is configured to be uneditable, that is, the contentdetails attribute of the span element is set to false, and editing is prohibited.
Further, in one embodiment, the specific label combination is a label pair combination, and the contents wrapped in the label pair combination are non-editable contents, and the preset replacement label combination includes a preset replacement label pair and a content display label.
In some specific scenarios, such as an online translation scenario, some combinations of specific tags are not editable, such as a tag pair including non-editable content. When the original sentence segment is analyzed, when the original label in the original sentence segment is analyzed to belong to the specific label combination, the original label, the label paired with the original label and the content wrapped between the original label and the label are treated as a whole. Therefore, the specific label combination can be visually seen as a whole, and the user is prevented from editing the contents in the non-editable specific label combination.
In one embodiment, a specific label combination is replaced by an initial label, a corresponding label number is allocated to the specific label combination at the same time, and the whole label information of the specific label combination and the allocated label number are stored in a preset label list correspondingly. Further, the initial label is replaced by a preset replacement label combination, and the content of the original specific label combination can be all displayed in the form of a label, for example, if the specific label combination is a label pair combination and the content of the package in the label pair combination is non-editable content, the preset replacement label combination includes three labels, which respectively correspond to the start label, the end label, and the content in the label pair.
In one embodiment, in order to intuitively show that the content of the preset alternative label combination is not editable, inline elements are added on two sides of the preset alternative label combination, and the preset alternative label combination is set to be in an uneditable form by configuring editing attributes of the inline elements; further, a corresponding stacking style pseudo element is set for the in-row elements, and the pseudo element enables the two sides of the in-row elements to display corresponding graphics, such as 'lock' graphics, when the in-row elements are displayed. In this way, the user can visually see that the content of the preset substitute label combination part is not editable.
In one embodiment, if the original tag is an original format operation tag pair, replacing the original tag in the original sentence segment with the original tag comprises: respectively replacing a start label and an end label in the original format operation label pair with a preset replacement start label and a preset replacement end label; and adding corresponding second in-line elements at the position after the preset replacement start tag and the position before the preset replacement end tag, and adding format operation information in an inline style sheet of the elements in the second in-line, wherein the format operation information corresponds to the format operation information of the original format operation tag pair.
Wherein, the elements in the second row are span labels; the inline style sheet of the second inline element represents the style attribute of the span tag.
In the original sentence segment, some paired labels will format the text content wrapped therein, so after the labels are finally replaced by the preset replacement labels, it is necessary to ensure that the format of the text content in the original paired labels is the same as before. Therefore, after the label is finally replaced by the preset replacement label, inline elements are added on two sides of the original text content, and format control content which is the same as the original format of the text content is configured in the inline style attributes of the inline elements, so that the front-back consistency of the text content format is ensured.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a display device for displaying sentence segments, the device comprising: an initial tag identification module 610, a target tag information acquisition module 620, an attribute information configuration module 630, a tag replacement module 640, and a display module 650. Wherein:
and an initial tag identification module 610, configured to identify an initial tag in the sentence segment to be displayed.
And a target tag information obtaining module 620, configured to obtain target tag information from a preset tag list according to the initial tag.
The attribute information configuring module 630 is configured to configure the attribute information of the preset replacement tag according to the target tag information, and obtain the preset replacement tag after updating the attribute information.
And the tag replacing module 640 is configured to replace the initial tag in the sentence segment to be displayed with the preset replacement tag after the attribute information is updated.
And the display module 650 is configured to parse the sentence segments to be displayed and display the sentence segments to be displayed.
The display device for the sentence segments to be displayed identifies the initial labels in the sentence segments to be displayed, acquires target label information from a preset label list according to the initial labels, configures attribute information of preset replacement labels according to the target label information to obtain the preset replacement labels with updated attribute information, replaces the initial labels in the sentence segments to be displayed with the preset replacement labels to obtain the updated labels to be displayed, and then analyzes and displays the updated labels to be displayed; because how the specific attribute information of the preset replacement tag is configured can be set, compared with the existing tag, the display style of the preset replacement tag is more flexible, the functions are richer, and the display of the sentence segments is more diversified.
In one embodiment, as shown in fig. 7, the above apparatus further comprises: a text label information obtaining module 710, a label information storing module 720, an initial label generating module 730 and a period to be displayed generating module 740.
Wherein:
the original text label information obtaining module 710 is configured to receive and parse the original text sentence segment, and obtain label information of an original label in the original text sentence segment.
The tag information storage module 720 is configured to store tag information of an original tag as target tag information in a preset tag list.
The initial tag generating module 730 is configured to generate an initial tag according to tag information of an original tag.
The sentence segment to be displayed generating module 740 is configured to replace the original tag in the original sentence segment with the initial tag to obtain the sentence segment to be displayed.
In one embodiment, the attribute information configuration module is specifically configured to set a class name attribute of a preset replacement tag according to tag type information in the target tag information; in this embodiment, the display module includes a stacking style determining module, configured to determine a corresponding first stacking style according to a class name attribute of a preset replacement tag; and a shape and color display module for displaying the shape and/or color of the preset replacement label according to the first lamination style.
Further, in one embodiment, the apparatus further comprises: the character direction identification module is used for identifying the character direction attribute corresponding to the sentence segment to be displayed; in this embodiment, the stacking style determining module is specifically configured to determine, if the text direction attribute is a preset text direction, a first stacking style according to the text direction attribute and a class name attribute of a preset replacement tag, where in a stacking style sheet where the first stacking style is located, the text direction attribute is a parent element of the preset replacement tag.
In another embodiment, the attribute information configuration module is specifically configured to set a title attribute of a preset replacement tag according to a tag text content in the target tag information; in this embodiment, the display module is further configured to, if it is detected that the mouse pointer hovers over the displayed preset replacement tag, obtain a tag text recorded in the title attribute, and display the tag text content recorded in the title attribute in a pop-up window form at a position adjacent to the displayed preset replacement tag.
In one embodiment, the above apparatus further comprises: the instruction receiving module is used for receiving a display mode switching instruction; and the display mode switching module is used for switching the corresponding display mode according to the display mode switching instruction so as to display the corresponding content on the preset replacement label, wherein the display mode at least comprises one of the following modes: a tag number display mode, a tag name display mode, and a tag text display mode.
Further, in one embodiment, the display mode switching module includes: the content and length acquisition module is used for acquiring target display content corresponding to the display mode and text length of the target display content; the setting module is used for setting the display content attribute of the preset replacement tag as target display content and setting the tag length in the inline style sheet of the preset replacement tag as the text length of the target display content; and the display module is used for analyzing the preset replacement label and displaying the preset replacement label.
In one embodiment, the sentence fragment generation module to be displayed is specifically configured to replace the specific label combination with the initial label if the original label is the specific label combination; in this embodiment, the tag replacement module includes: the replacing module is used for replacing the initial label with a preset replacing label combination; and the inline element setting module is used for adding first inline elements on two sides of the preset replacement label combination, the editing attribute of the first inline elements is configured to be uneditable, and the stacking style corresponding to the class name attribute of the first inline elements is used for adding preset graphics on two sides of the inline elements.
Further, in one embodiment, the specific label combination is a label pair combination, and the contents wrapped in the label pair combination are non-editable contents, and the preset replacement label combination includes a preset replacement label pair and a content display label.
In another embodiment, the to-be-displayed sentence fragment generating module is specifically configured to, if the original tag is the original format operation tag pair, replace a start tag and an end tag in the original format operation tag pair with a preset replacement start tag and a preset replacement end tag, respectively, add corresponding second inline elements at a position before the preset replacement start tag and a position after the preset replacement end tag, and add format operation information in an inline style sheet of the second inline elements, where the format operation information corresponds to the format operation information of the original format operation tag pair.
For the specific limitation of the display device for displaying the sentence segments, reference may be made to the above limitation on the display method for displaying the sentence segments, and details are not described herein again. The modules in the display device for displaying the sentence segments can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a display method for sentence segments to be displayed. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
identifying an initial label in the sentence segment to be displayed;
acquiring target label information from a preset label list according to the initial label;
configuring attribute information of a preset replacement tag according to the target tag information, and acquiring the preset replacement tag after updating the attribute information;
replacing the initial label in the sentence segment to be displayed with a preset replacement label after updating the attribute information to obtain an updated sentence segment to be displayed;
analyzing and updating the sentence segments to be displayed, and displaying the sentence segments to be displayed.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving and analyzing the original sentence segments, and acquiring the label information of the original labels in the original sentence segments;
storing label information of an original label as target label information in a preset label list;
generating an initial label according to label information of an original label;
and replacing the original label in the sentence segment of the original text with the initial label to obtain the sentence segment to be displayed.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
setting a class name attribute of a preset replacement label according to label type information in the target label information;
determining a corresponding first stacking style according to the class name attribute of a preset replacement label;
and displaying the shape and/or color of the preset replacement label according to the first lamination style.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
identifying the character direction attribute corresponding to the sentence segment to be displayed;
and if the character direction attribute is the preset character direction, determining a first stacking style according to the character direction attribute and the class name attribute of the preset replacement label, wherein the character direction attribute is a parent element of the preset replacement label in a stacking style sheet in which the first stacking style is located.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
setting the title attribute of a preset replacement label according to the label text content in the target label information;
and if the mouse pointer is detected to be hovered over the displayed preset replacement tag, acquiring the tag text recorded in the title attribute, and displaying the tag text content recorded in the title attribute in a pop-up window mode at the adjacent position of the displayed preset replacement tag.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving a display mode switching instruction;
switching the corresponding display mode according to the display mode switching instruction so as to display the corresponding content on the preset replacement label, wherein the display mode at least comprises one of the following modes: a tag number display mode, a tag name display mode, and a tag text display mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring target display content corresponding to a display mode and text length of the target display content;
setting the display content attribute of a preset replacement label as target display content, and setting the label length in an inline style sheet of the preset replacement label as the text length of the target display content;
and analyzing the preset replacement label and displaying the preset replacement label.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the original label is the specific label combination, replacing the specific label combination with the initial label;
replacing the initial label with a preset replacement label combination;
adding first in-line elements on two sides of the preset replacement label combination, wherein the editing attribute of the first in-line elements is configured to be uneditable, and the stacking style corresponding to the class name attribute of the first in-line elements is used for adding preset graphics on two sides of the in-line elements.
In one embodiment, the processor, when executing the computer program, further performs the steps of: if the original tag is the original format operation tag pair, respectively replacing a start tag and an end tag in the original format operation tag pair with a preset replacement start tag and a preset replacement end tag;
and adding corresponding second in-line elements at the previous position of the preset replacement start tag and the later position of the preset replacement end tag, and adding format operation information in an inline style sheet of the second in-line elements, wherein the format operation information corresponds to the format operation information of the original format operation tag pair.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
identifying an initial label in the sentence segment to be displayed;
acquiring target label information from a preset label list according to the initial label;
configuring attribute information of a preset replacement tag according to the target tag information, and acquiring the preset replacement tag after updating the attribute information;
replacing the initial label in the sentence segment to be displayed with a preset replacement label after updating the attribute information to obtain an updated sentence segment to be displayed;
analyzing and updating the sentence segments to be displayed, and displaying the sentence segments to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving and analyzing the original sentence segments, and acquiring the label information of the original labels in the original sentence segments;
storing label information of an original label as target label information in a preset label list;
generating an initial label according to label information of an original label;
and replacing the original label in the sentence segment of the original text with the initial label to obtain the sentence segment to be displayed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
setting a class name attribute of a preset replacement label according to label type information in the target label information;
determining a corresponding first stacking style according to the class name attribute of a preset replacement label;
and displaying the shape and/or color of the preset replacement label according to the first lamination style.
In one embodiment, the computer program when executed by the processor further performs the steps of:
identifying the character direction attribute corresponding to the sentence segment to be displayed;
and if the character direction attribute is the preset character direction, determining a first stacking style according to the character direction attribute and the class name attribute of the preset replacement label, wherein the character direction attribute is a parent element of the preset replacement label in a stacking style sheet in which the first stacking style is located.
In one embodiment, the computer program when executed by the processor further performs the steps of:
setting the title attribute of a preset replacement label according to the label text content in the target label information;
and if the mouse pointer is detected to be hovered over the displayed preset replacement tag, acquiring the tag text recorded in the title attribute, and displaying the tag text content recorded in the title attribute in a pop-up window mode at the adjacent position of the displayed preset replacement tag.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving a display mode switching instruction;
switching the corresponding display mode according to the display mode switching instruction so as to display the corresponding content on the preset replacement label, wherein the display mode at least comprises one of the following modes: a tag number display mode, a tag name display mode, and a tag text display mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring target display content corresponding to a display mode and text length of the target display content;
setting the display content attribute of a preset replacement label as target display content, and setting the label length in an inline style sheet of the preset replacement label as the text length of the target display content;
and analyzing the preset replacement label and displaying the preset replacement label.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the original label is the specific label combination, replacing the specific label combination with the initial label;
replacing the initial label with a preset replacement label combination;
adding first in-line elements on two sides of the preset replacement label combination, wherein the editing attribute of the first in-line elements is configured to be uneditable, and the stacking style corresponding to the class name attribute of the first in-line elements is used for adding preset graphics on two sides of the in-line elements.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the original tag is the original format operation tag pair, respectively replacing a start tag and an end tag in the original format operation tag pair with a preset replacement start tag and a preset replacement end tag;
and adding corresponding second in-line elements at the previous position of the preset replacement start tag and the later position of the preset replacement end tag, and adding format operation information in an inline style sheet of the second in-line elements, wherein the format operation information corresponds to the format operation information of the original format operation tag pair.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method for displaying sentence fragments to be displayed, the method comprising:
identifying an initial label in the sentence segment to be displayed;
acquiring target label information from a preset label list according to the initial label;
configuring attribute information of a preset replacement tag according to the target tag information, and acquiring the preset replacement tag after updating the attribute information;
replacing the initial label in the sentence segment to be displayed with the preset replacement label after updating the attribute information to obtain an updated sentence segment to be displayed;
and analyzing the updated sentence segments to be displayed, and displaying the sentence segments to be displayed.
2. The display method according to claim 1, further comprising, before said identifying an initial tag in a period to be displayed:
receiving and analyzing an original sentence segment, and acquiring label information of an original label in the original sentence segment;
storing the label information of the original label as target label information in a preset label list;
generating an initial label according to the label information of the original label;
and replacing the original label in the original sentence segment with the initial label to obtain the sentence segment to be displayed.
3. The method according to claim 1, wherein the configuring the attribute information of the preset replacement tag according to the target tag information comprises:
setting the class name attribute of the preset replacement label according to the label type information in the target label information;
analyzing the updated sentence segments to be displayed, and displaying the sentence segments to be displayed, wherein the analyzing and updating comprises the following steps:
determining a corresponding first stacking style according to the class name attribute of the preset replacing label;
displaying the shape and/or color of the preset replacement label according to the first stacking style.
4. The method according to claim 3, wherein the determining the corresponding first overlay style according to the class name attribute of the preset replacement tag comprises:
identifying the character direction attribute corresponding to the sentence segments to be displayed;
and if the character direction attribute is a preset character direction, determining the first stacking style according to the character direction attribute and the class name attribute of the preset replacement label, wherein the character direction attribute is a parent element of the preset replacement label in a stacking style sheet in which the first stacking style is located.
5. The method of claim 1, wherein configuring attribute information of a preset replacement tag according to the target tag information comprises:
setting the title attribute of the preset replacement label according to the label text content in the target label information;
analyzing the updated sentence segments to be displayed, and displaying the sentence segments to be displayed, wherein the analyzing and updating comprises the following steps:
and if the mouse pointer is detected to be hovered over the displayed preset replacement tag, acquiring the tag text recorded in the title attribute, and displaying the tag text content recorded in the title attribute in a pop-up window form at the adjacent position of the displayed preset replacement tag.
6. The method according to claim 1, wherein after the parsing the updated sentence segment to be displayed and displaying the sentence segment to be displayed, the method further comprises:
receiving a display mode switching instruction;
switching a corresponding display mode according to the display mode switching instruction so as to display corresponding content on the preset replacement label, wherein the display mode at least comprises one of the following modes: a tag number display mode, a tag name display mode, and a tag text display mode.
7. The method according to claim 6, wherein the switching the corresponding display mode according to the display mode switching instruction comprises:
acquiring target display content corresponding to the display mode and the text length of the target display content;
setting the display content attribute of the preset replacement label as the target display content, and setting the label length in the inline style sheet of the preset replacement label as the text length of the target display content;
and analyzing the preset replacement label, and displaying the preset replacement label.
8. The method of claim 2, wherein replacing the original tag in the original sentence segment with the initial tag comprises:
if the original label is a specific label combination, replacing the specific label combination with the initial label;
replacing the initial label in the sentence segment to be displayed with the preset replacement label after updating the attribute information, including:
replacing the initial label with a preset replacement label combination;
adding first in-line elements on two sides of the preset replacement label combination, wherein the editing attribute of the first in-line elements is configured to be uneditable, and the stacking style corresponding to the class name attribute of the first in-line elements is used for adding preset graphics on two sides of the in-line elements.
9. The method of claim 8, wherein the specific tag combination is a tag pair combination, and the content wrapped in the tag pair combination is non-editable content, and the preset replacement tag combination comprises a preset replacement tag pair and a content display tag.
10. The method of claim 2, wherein replacing the original tag in the original sentence segment with the initial tag comprises:
if the original tag is an original format operation tag pair, replacing a start tag and an end tag in the original format operation tag pair with a preset replacement start tag and a preset replacement end tag respectively;
adding corresponding second in-line elements at a position before the preset replacement start tag and a position after the preset replacement end tag, and adding format operation information in an inline style sheet of the second in-line elements, where the format operation information corresponds to the format operation information of the original format operation tag pair.
11. A display device for displaying sentence fragments, said device comprising:
the initial label identification module is used for identifying an initial label in the sentence segment to be displayed;
the target label information acquisition module is used for acquiring target label information from a preset label list according to the initial label;
the attribute information configuration module is used for configuring the attribute information of a preset replacement tag according to the target tag information and acquiring the preset replacement tag after the attribute information is updated;
the label replacing module is used for replacing the initial label in the sentence fragments to be displayed with the preset replacing label after the attribute information is updated;
and the display module is used for analyzing the updated sentence segments to be displayed and displaying the sentence segments to be displayed.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 10.
CN202010073445.8A 2020-01-22 2020-01-22 Sentence segment to be displayed display method and device, computer equipment and storage medium Active CN111291533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010073445.8A CN111291533B (en) 2020-01-22 2020-01-22 Sentence segment to be displayed display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010073445.8A CN111291533B (en) 2020-01-22 2020-01-22 Sentence segment to be displayed display method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111291533A true CN111291533A (en) 2020-06-16
CN111291533B CN111291533B (en) 2021-11-23

Family

ID=71018193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010073445.8A Active CN111291533B (en) 2020-01-22 2020-01-22 Sentence segment to be displayed display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111291533B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914509A (en) * 2020-06-19 2020-11-10 文思海辉智科科技有限公司 Sentence period display method, sentence period display device, computer equipment and storage medium
CN111967274A (en) * 2020-08-25 2020-11-20 文思海辉智科科技有限公司 Label conversion processing method and device, electronic equipment and readable storage medium
CN112001159A (en) * 2020-08-24 2020-11-27 平安国际智慧城市科技股份有限公司 Document generation method and device, electronic equipment and storage medium
CN112035408A (en) * 2020-09-01 2020-12-04 文思海辉智科科技有限公司 Text processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040268231A1 (en) * 2003-06-24 2004-12-30 Microsoft Corporation Content template system
CN107885792A (en) * 2017-10-19 2018-04-06 福建中金在线信息科技有限公司 Webpage article display methods, apparatus and system
CN109240884A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 A kind of system file display methods and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040268231A1 (en) * 2003-06-24 2004-12-30 Microsoft Corporation Content template system
CN107885792A (en) * 2017-10-19 2018-04-06 福建中金在线信息科技有限公司 Webpage article display methods, apparatus and system
CN109240884A (en) * 2018-08-30 2019-01-18 郑州云海信息技术有限公司 A kind of system file display methods and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914509A (en) * 2020-06-19 2020-11-10 文思海辉智科科技有限公司 Sentence period display method, sentence period display device, computer equipment and storage medium
CN112001159A (en) * 2020-08-24 2020-11-27 平安国际智慧城市科技股份有限公司 Document generation method and device, electronic equipment and storage medium
CN111967274A (en) * 2020-08-25 2020-11-20 文思海辉智科科技有限公司 Label conversion processing method and device, electronic equipment and readable storage medium
CN112035408A (en) * 2020-09-01 2020-12-04 文思海辉智科科技有限公司 Text processing method and device, electronic equipment and storage medium
CN112035408B (en) * 2020-09-01 2023-10-31 文思海辉智科科技有限公司 Text processing method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111291533B (en) 2021-11-23

Similar Documents

Publication Publication Date Title
CN111291533B (en) Sentence segment to be displayed display method and device, computer equipment and storage medium
CN109801347B (en) Method, device, equipment and medium for generating editable image template
US11403364B2 (en) Method and terminal device for extracting web page content
JP4344693B2 (en) System and method for browser document editing
CA2773152C (en) A method for users to create and edit web page layouts
US8887089B2 (en) System and method for generating a file peek ahead user interface
US9870484B2 (en) Document redaction
KR20150079867A (en) Html5-protocol-based webpage presentation method and device
US10049095B2 (en) In-context editing of output presentations via automatic pattern detection
WO2010104906A2 (en) Serving font glyphs
US20190073342A1 (en) Presentation of electronic information
US9817811B2 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
CN101036137B (en) Display, display control method
JPH10124495A (en) Original text generation processor and medium for storing program for the same
WO2020118485A1 (en) Method of Detecting User Interface Layout Issues for Web Applications
US20170109139A1 (en) Dynamic source code formatting
CN109933751B (en) Image-text drawing method and device, computer-readable storage medium and computer equipment
CN108389244B (en) Implementation method for rendering flash rich text according to specified character rules
EP1821221A1 (en) Document processing device and document processing method
CN113741898A (en) Form generation method, device and equipment
KR101345726B1 (en) Method for printing a captured screen of web pages
CN111783007A (en) Display rendering method and device, electronic equipment and storage medium
EP1837776A1 (en) Document processing device and document processing method
KR101649822B1 (en) Apparatus and method for building web-page
CN112068826B (en) Text input control method, system, electronic device 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