Nothing Special   »   [go: up one dir, main page]

CN104281568B - Paraphrasing display method and paraphrasing display device - Google Patents

Paraphrasing display method and paraphrasing display device Download PDF

Info

Publication number
CN104281568B
CN104281568B CN201310292586.9A CN201310292586A CN104281568B CN 104281568 B CN104281568 B CN 104281568B CN 201310292586 A CN201310292586 A CN 201310292586A CN 104281568 B CN104281568 B CN 104281568B
Authority
CN
China
Prior art keywords
display
paraphrase
displayed
primitive
paraphrases
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310292586.9A
Other languages
Chinese (zh)
Other versions
CN104281568A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310292586.9A priority Critical patent/CN104281568B/en
Publication of CN104281568A publication Critical patent/CN104281568A/en
Application granted granted Critical
Publication of CN104281568B publication Critical patent/CN104281568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Machine Translation (AREA)

Abstract

the invention discloses a paraphrase display method and a paraphrase display device, wherein the method comprises the following steps: acquiring paraphrase text to be displayed; acquiring the element of the paraphrase text to be displayed; obtaining a combined text after obtaining paraphrases corresponding to the elements, wherein the combined text comprises the elements and the paraphrases which are combined according to a preset rule of a display template which is obtained in advance, and the display template comprises a head mark and a tail mark; adding the combined text between the head identifier and the tail identifier of the display template to form a display object; and displaying the display object. The display object is displayed by using the display template, and the display object comprises a plurality of paraphrases, so that the display of the display object can be completed at one time, and the paraphrase display efficiency is improved.

Description

paraphrasing display method and paraphrasing display device
Technical Field
The invention relates to the field of data processing, in particular to a paraphrasing display method and device.
Background
With the development of computer technology, more and more techniques capable of implementing paraphrase display are available, for example, more software capable of implementing english paraphrase display exists in the field of computer application, such as the paraphrase display diagram of the jinshan wordspace in fig. 1 and the paraphrase display diagram of the hidect in fig. 2, which can both implement english paraphrase display.
however, it should be noted that existing paraphrase display software can only display one paraphrase at a time, which results in a user interface with the currently displayed paraphrases, and if it is desired to display other paraphrases, the currently displayed paraphrases have to be closed and the other paraphrases are re-displayed.
For a text with multiple paraphrases needing to be displayed, software in the prior art has to repeatedly perform screen operation to achieve the purpose of displaying the multiple paraphrases through displaying the paraphrases for multiple times, and obviously, the multiple operation of the text with the multiple paraphrases needing to be displayed not only has complicated steps, but also reduces the efficiency of paraphrase display.
Disclosure of Invention
The invention provides a paraphrase display method and device, which can complete the display of multiple paraphrases at one time for a text with multiple paraphrases needing to be displayed, and improve the paraphrase display efficiency.
The invention provides a paraphrase display method, which comprises the following steps:
acquiring paraphrase text to be displayed;
Acquiring the element of the paraphrase text to be displayed;
Obtaining a combined text after obtaining paraphrases corresponding to the elements, wherein the combined text comprises the elements and the paraphrases which are combined according to a preset rule of a display template which is obtained in advance, and the display template comprises a head mark and a tail mark;
adding the combined text between the head identifier and the tail identifier of the display template to form a display object;
and displaying the display object.
preferably, the method further comprises:
Receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
and feeding back the display command for the primitive located at the display position.
Preferably, the feedback of the display command for the primitive located at the display position includes:
acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
hiding the paraphrase in the case that the display state is display;
and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
preferably, the method further comprises:
And adjusting the display form of the display object according to the display state.
preferably, after the obtaining the primitives of the paraphrase text to be displayed, the method further includes:
Acquiring a null identifier under the condition that a preset white list comprises the primitive;
and combining the primitive and the empty mark according to a preset rule of a display template acquired in advance, and adding the combined primitive and the empty mark to the combined text.
preferably, after obtaining the paraphrase corresponding to the primitive, obtaining a combined text, including:
Judging whether the primitive is in a preset local library, if so, acquiring paraphrases corresponding to the primitive in the local library;
And combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
preferably, before the combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text, the method further includes:
And if the primitive is not in the preset local library, acquiring paraphrases corresponding to the primitive through a network.
The invention also provides a paraphrase display method, which comprises the following steps:
Receiving paraphrase text to be displayed;
determining the elements of the paraphrase text to be displayed;
And after obtaining the paraphrases corresponding to the primitives, displaying the paraphrases.
Preferably, the method further comprises:
Receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
And feeding back the display command for the primitive located at the display position.
preferably, the feedback of the display command for the primitive located at the display position includes:
Acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
hiding the paraphrase in the case that the display state is display;
and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
preferably, the method further comprises:
and adjusting the display form of the paraphrase text to be displayed.
The present invention also provides a paraphrase display apparatus, the apparatus comprising:
the first acquisition module is used for acquiring paraphrase texts to be displayed;
The second acquisition module is used for acquiring the elements of the paraphrase text to be displayed;
The third acquisition module is used for acquiring paraphrases corresponding to the primitives to obtain a combined text, wherein the combined text comprises the primitives and the paraphrases which are combined according to a preset rule of a display template acquired in advance, and the display template comprises a head identifier and a tail identifier;
The first adding module is used for adding the combined text between the head identifier and the tail identifier of the display template to form a display object;
And the display module is used for displaying the display object.
Preferably, the apparatus further comprises:
The device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a display request triggered by a user, and the display request comprises a display position and a display command;
And the feedback module is used for feeding back the display command aiming at the element positioned at the display position.
Preferably, the feedback module includes:
The first acquisition submodule is used for acquiring the display state of paraphrases corresponding to the primitives positioned at the display position, and the display state is displayed or not displayed;
a hiding submodule for hiding the paraphrase in a case where the display state is display;
and the display sub-module is used for acquiring paraphrases corresponding to the primitives and then displaying the paraphrases under the condition that the display state is not displayed.
Preferably, the apparatus further comprises:
And the adjusting module is used for adjusting the display form of the display object according to the display state.
preferably, the apparatus further comprises:
a fourth obtaining module, configured to obtain a null identifier when a preset white list includes the primitive;
And the second adding module is used for combining the primitive and the empty mark according to a preset rule of a display template acquired in advance and then adding the combined primitive and the empty mark to the combined text.
Preferably, the third obtaining module includes:
the judging submodule is used for judging whether the primitive is in a preset local library or not;
The second obtaining submodule is used for obtaining paraphrases corresponding to the primitives from the local library when the result of the judging submodule is positive;
And the combination submodule is used for combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
Preferably, the third obtaining module further includes:
and the third obtaining sub-module is used for obtaining paraphrases corresponding to the primitives through the network when the result of the judging sub-module is negative.
Firstly, acquiring paraphrase text to be displayed so as to acquire elements of the paraphrase text to be displayed; secondly, after paraphrases corresponding to the primitives are obtained, the primitives and the paraphrases are combined according to a preset rule of a display template obtained in advance to obtain a combined text, wherein the display template comprises a head identifier and a tail identifier; thirdly, adding the obtained combined text to the space between the head mark and the tail mark of the display template to form a display object; and finally, displaying the display object. Because the display object comprises a plurality of paraphrases, the display of the display object can realize the display of a plurality of paraphrases at one time, and the paraphrase display efficiency is improved.
drawings
in order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a diagram showing the explanation of Jinshan worship;
FIG. 2 is a diagram illustrating the definition of HiDict;
FIG. 3 is a flowchart of a paraphrase display method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for paraphrasing display according to a user requirement according to an embodiment of the present invention;
FIG. 5 is a flowchart of a paraphrase display method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a display format of a paraphrase text to be displayed before adjusting the layout according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a display format of the paraphrase text to be displayed after adjusting the layout according to an embodiment of the present invention;
FIG. 8 is a flowchart of a paraphrase display method according to a second embodiment of the present invention;
FIG. 9 is a diagram of a paraphrase display apparatus according to a third embodiment of the present invention;
Fig. 10 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
For the text with multiple paraphrases to be displayed, the embodiment can simultaneously display the multiple paraphrases of the paraphrase text to be displayed by utilizing the display template by acquiring the paraphrases of the primitives of the paraphrase text to be displayed.
Referring to fig. 3, fig. 3 is a flowchart of a paraphrase display method provided in this embodiment, which specifically includes:
step 301: and acquiring paraphrase texts to be displayed.
in this embodiment, before displaying a paraphrase, a paraphrase text to be displayed is first obtained, where the paraphrase text to be displayed may be english, chinese, or chinese, and the specific text form is not limited in this embodiment.
in practical operation, the paraphrase text to be displayed can be placed in the text editing box, specifically, the paraphrase text to be displayed can be pasted in the text editing box, the paraphrase text to be displayed can be directly input into the text editing box, and a file form of the paraphrase text to be displayed can be directly opened in the text editing box. The embodiment does not limit the way of obtaining the paraphrase text to be displayed.
Step 302: and acquiring the primitives of the paraphrase text to be displayed.
In this embodiment, since the display object of the paraphrase is the primitive of the paraphrase text to be displayed, the primitive of the paraphrase text to be displayed is first acquired. The elements of the paraphrase text to be displayed can be understood as basic units forming the paraphrase text to be displayed, for example, the elements of the english text can be words, phrases or sentences; the primitives for Chinese text and grammatical text may be words, phrases or sentences.
in actual operation, the primitives of the paraphrase text to be displayed can be set according to the needs of the user, that is, the primitives can be set as words of the paraphrase text to be displayed, and the primitives can also be set as sentences of the paraphrase text to be displayed, so as to meet the paraphrase display requirements of the user.
step 303: and acquiring paraphrases corresponding to the elements to obtain a combined text, wherein the combined text comprises the elements and the paraphrases which are combined according to a preset rule of a display template acquired in advance, and the display template comprises a head identifier and a tail identifier.
in this embodiment, after the elements of the paraphrase text to be displayed are obtained, the paraphrases corresponding to the elements are obtained first, and then the elements and the paraphrases are combined to obtain the combined text.
In actual operation, the combination method of the primitives and the paraphrases can be operated according to preset rules of a display template, wherein the display template is obtained in advance and can be a display template written in an HTML (hypertext markup language), and the preset rules for combining the primitives and the paraphrases exist in the display template. Specifically, the preset rule may be that firstly, the primitives and the paraphrases corresponding to the primitives are combined, secondly, the primitives with the paraphrases are combined according to the sequence of the primitives in the paraphrase text to be displayed, and finally, the combined text is obtained. Meanwhile, the display template may further include a head identifier and a tail identifier.
In addition, the display attribute is included in the display template, that is, the display effect of the displayed content can be changed by changing the display attribute in the display template, for example, the text display color of the displayed content can be changed by changing the color attribute in the display template.
In practical operation, there are many methods for obtaining paraphrases corresponding to each primitive, and in this embodiment, a local library may be preset, where the local library is located in a local computer and is used for storing primitives and paraphrases corresponding to the primitives, and a user may obtain paraphrases corresponding to the primitives by querying the local library, and meanwhile, paraphrases of primitives that cannot be obtained in the local library may be searched through a network. The specific operation of obtaining paraphrases of the primitives can firstly judge whether the primitives are in a preset local library, if so, the paraphrases corresponding to the primitives are obtained in the local library; and combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text. And if the primitive is not in the preset local library, acquiring paraphrases corresponding to the primitive through a network.
Step 304: and adding the combined text between the head mark and the tail mark of the display template to form a display object.
In this embodiment, after the combined text is acquired, the combined text is added between the head mark and the tail mark of the display template to form a display object. The head identifier of the display template may be used to mark the beginning of the displayed content, and correspondingly, the tail identifier of the display template may be used to mark the end of the displayed content, that is, when the system reads the head identifier of the display template, it may know that the content after the head identifier is the displayed content, and when the system reads the tail identifier of the display template, it may know that the displayed content is displayed.
Specifically, the form of the head identifier and the tail identifier of the display template is not limited, and may be a code field or the like.
Step 305: and displaying the display object.
in this embodiment, after a display object is formed, the display object is displayed. In actual operation, the browser component can be used for displaying the information, and the specific display mode is not limited.
specifically, the display object includes the primitives and paraphrases of the paraphrase text to be displayed, and the step is only to display the primitives and the paraphrases of the paraphrase text to be displayed according to the preset display form of the display template.
for the paraphrase text to be displayed, the user can display paraphrases of a plurality of elements in the paraphrase text to be displayed according to the requirement of the user, that is, the user can select the elements which need to be displayed in the paraphrase text to be displayed.
Referring to fig. 4, fig. 4 is a flowchart of a method for paraphrasing and displaying according to a user requirement, which may specifically include:
step 401: and acquiring a null identifier under the condition that a preset white list comprises the primitive.
In order to avoid paraphrase display of the elements in the paraphrase text to be displayed, which is already familiar to the user, the embodiment sets a white list in advance, wherein the white list is used for storing the elements in the paraphrase text to be displayed, which is already familiar to the user, and in addition, the white list can also store daily words and the like, such as "a, an, like, and" in english and the like.
In this embodiment, after obtaining a primitive in a paraphrase text to be displayed, it is first determined whether the primitive is in a preset white list, and if so, a paraphrase corresponding to the primitive may be set as an empty identifier, but is not limited to an empty identifier. If not, continue to obtain paraphrases of the primitive.
step 402: and combining the primitive and the empty mark according to a preset rule of a display template acquired in advance, and adding the combined primitive and the empty mark to the combined text.
in this embodiment, for a primitive existing in the white list, the primitive and a null identifier corresponding to the primitive are first obtained, and are combined according to a preset rule of a display template obtained in advance, and the combined primitive and null identifier are added to a text after combination.
The embodiment avoids the steps of acquiring paraphrases of the elements in the paraphrase text to be displayed, which is familiar to the user, and subsequently performing paraphrase display on the paraphrase text to be displayed by presetting the white list, and improves the paraphrase display efficiency of the whole paraphrase text to be displayed.
For paraphrase text to be displayed with paraphrase display already realized, when the user is familiar with the paraphrases of some primitives, the user can hide the paraphrases corresponding to the primitives in the display state according to requirements, and meanwhile, the user can autonomously redisplay the paraphrases in the hidden state. Referring to fig. 5, fig. 5 is a flowchart of a paraphrase display method, which may specifically include:
Step 501: receiving a display request triggered by a user, wherein the display request comprises a display position and a display command.
in order to achieve the display state of the user-independent control paraphrase, the present embodiment receives a display request triggered by the user, wherein the display request includes a display position and a display command. The display position is used to identify the position of the primitive corresponding to the user control display paraphrase, that is, the object to be controlled by the user can be acquired according to the display position. In addition, the display command may be either display or hide.
step 502: and feeding back the display command for the primitive located at the display position.
in this embodiment, after the display position in the display request is obtained, the primitive corresponding to the display position is obtained according to the display position, and then the feedback of the display command is performed on the primitive.
specifically, the step 502 may be implemented by:
Firstly, acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed; secondly, hiding the paraphrase under the condition that the display state is display; and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
in addition, a paraphrase display button and a paraphrase hiding button corresponding to each primitive can be designed, when a user clicks the paraphrase display button, the paraphrase corresponding to the primitive is displayed, and correspondingly, when the user clicks the paraphrase hiding button, the paraphrase corresponding to the primitive is hidden.
Specifically, the embodiment is not limited to the implementation manner of step 502.
In this embodiment, after the user controls the display or hiding of the element paraphrase, the layout of the paraphrase text to be displayed with the paraphrase can be adaptively adjusted, and specifically, the display form of the display object can be adjusted according to the display state.
comparing fig. 6 and fig. 7, fig. 6 is a display form of the paraphrase text to be displayed before the adjustment of the layout, and fig. 7 is a display form of the paraphrase text to be displayed after the adjustment of the layout. The definition of the primitive "Chrome" is displayed in fig. 7, and correspondingly, the whole primitive behind "Chrome" in fig. 7 is adjusted to a certain length, so that the definition of "Chrome" can be displayed under "Chrome" more accurately, and the reading experience of the user is improved.
the embodiment firstly obtains paraphrase texts to be displayed so as to obtain elements of the paraphrase texts to be displayed; secondly, after paraphrases corresponding to the primitives are obtained, the primitives and the paraphrases are combined according to a preset rule of a display template obtained in advance to obtain a combined text, wherein the display template comprises a head identifier and a tail identifier; thirdly, adding the obtained combined text to the space between the head mark and the tail mark of the display template to form a display object; and finally, displaying the display object. Because the display object comprises a plurality of paraphrases, the display of the display object can realize the display of a plurality of paraphrases at one time, and the paraphrase display efficiency is improved.
Example two
Referring to fig. 8, fig. 8 is a flowchart of a paraphrase display method provided in this embodiment, which may specifically include:
Step 801: and receiving paraphrase text to be displayed.
in the embodiment, the client receives the paraphrase text to be displayed selected by the user, wherein the paraphrase text to be displayed can be pasted, can be directly input, and can be directly opened in a file form. The present embodiment does not limit the manner in which the paraphrase text to be displayed is received.
Step 802: determining the primitives of the paraphrase text to be displayed.
In this embodiment, before the paraphrase text to be displayed is appropriately displayed, the primitives of the paraphrase text to be displayed are determined first. The elements of the paraphrase text to be displayed can be basic units forming the paraphrase text to be displayed. For example, a primitive of English text may be a word, a phrase, or a sentence; the primitives for Chinese text and grammatical text may be words, phrases or sentences.
Step 803: and after obtaining the paraphrases corresponding to the primitives, displaying the paraphrases.
in this embodiment, after determining the elements of the paraphrase text to be displayed, the paraphrases corresponding to the elements are obtained, and finally, the elements and the paraphrases are displayed in a corresponding manner.
The paraphrases corresponding to the primitives can be obtained by querying a local dictionary or a network dictionary, and the specific form of obtaining the paraphrases is not limited.
in order to enable a user to freely control the display condition of paraphrases in a paraphrase text to be displayed, the embodiment provides a method for controlling paraphrase display, which specifically includes:
Firstly, receiving a display request triggered by a user, wherein the display request comprises a display position and a display command; secondly, the feedback of the display command is performed for the primitive located at the display position.
In this embodiment, a user triggers a display request, where the display request includes a display location and a display command. The display position is used to identify the position of the primitive corresponding to the user control display paraphrase, that is, the object to be controlled by the user can be acquired according to the display position. In addition, the display command may be either display or hide. Specifically, an object to be controlled by a user is acquired through the display position, and the object is subjected to paraphrase display and hidden feedback according to a display command.
Specifically, a display state of paraphrases corresponding to the primitives located at the display position is acquired, wherein the display state is displayed or not displayed; hiding the paraphrase in the case that the display state is display; and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
in order to make the paraphrase text to be displayed after displaying the paraphrase more beautiful, the embodiment may further adjust the display form of the paraphrase text to be displayed.
the embodiment firstly receives paraphrase text to be displayed so as to obtain elements of the paraphrase text to be displayed; and secondly, after obtaining paraphrases corresponding to the primitives, displaying the paraphrases. The embodiment can realize the display of multiple paraphrases at one time, and improve the paraphrase display efficiency.
EXAMPLE III
referring to fig. 9, fig. 9 is a structural diagram of the paraphrase display apparatus provided in this embodiment, which may specifically include:
A first obtaining module 901, configured to obtain a paraphrase text to be displayed;
a second obtaining module 902, configured to obtain primitives of the paraphrase text to be displayed;
a third obtaining module 903, configured to obtain a combined text after obtaining paraphrases corresponding to the primitives, where the combined text includes the primitives and the paraphrases combined according to a preset rule of a display template obtained in advance, and the display template includes a head identifier and a tail identifier;
The third obtaining module may include:
the judging submodule is used for judging whether the primitive is in a preset local library or not;
the second obtaining submodule is used for obtaining paraphrases corresponding to the primitives from the local library when the result of the judging submodule is positive;
and the combination submodule is used for combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
the third obtaining module may further include:
And the third obtaining sub-module is used for obtaining paraphrases corresponding to the primitives through the network when the result of the judging sub-module is negative.
a first adding module 904, configured to add the combined text to a space between a head identifier and a tail identifier of the display template to form a display object;
A display module 905, configured to display the display object.
in order to implement the display state of the paraphrase controlled by the user, the apparatus provided in this embodiment may further include:
The device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a display request triggered by a user, and the display request comprises a display position and a display command;
And the feedback module is used for feeding back the display command aiming at the element positioned at the display position.
wherein the feedback module may include:
The first acquisition submodule is used for acquiring the display state of paraphrases corresponding to the primitives positioned at the display position, and the display state is displayed or not displayed;
a hiding submodule for hiding the paraphrase in a case where the display state is display;
And the display sub-module is used for acquiring paraphrases corresponding to the primitives and then displaying the paraphrases under the condition that the display state is not displayed.
after the user controls the paraphrase display or hiding of the primitives, the typesetting of paraphrase texts to be displayed with paraphrases can be adjusted adaptively, and the device can comprise:
and the adjusting module is used for adjusting the display form of the display object according to the display state.
In order to avoid paraphrase display of the elements in the paraphrase text to be displayed with which the user is already familiar, the present embodiment sets a white list in advance, and the apparatus may further include:
A fourth obtaining module, configured to obtain a null identifier when a preset white list includes the primitive;
and the second adding module is used for combining the primitive and the empty mark according to a preset rule of a display template acquired in advance and then adding the combined primitive and the empty mark to the combined text.
Fig. 10 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion of the embodiment of the present invention for details that are not disclosed. The terminal may include any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, and take the terminal as the mobile phone for example:
Fig. 10 is a block diagram showing a partial structure of a cellular phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 10, the cellular phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 10 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 10:
RF circuit 1010 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 1080; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
the memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1020 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 volatile solid state storage device.
the input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1000. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, or the like.
the display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 10, the touch panel 1031 and the display panel 1041 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1000 may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping) and the like, and can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like, which are not described herein again.
audio circuitry 1060, speaker 1061, microphone 1062 may provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, which is then processed by the audio data output processor 1080 and then sent to, for example, another cellular phone via the RF circuit 1010, or output to the memory 1020 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the handset 1000, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
the handset 1000 also includes a power supply 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system that may be configured to manage charging, discharging, and power consumption.
Although not shown, the mobile phone 1000 may further include a camera, a bluetooth module, etc., which are not described herein.
specifically, in this embodiment, the processor 1080 in the terminal loads an executable file corresponding to a process of one or more application programs into the memory 1020 according to the following instructions, and the processor 1080 runs the application programs stored in the memory 1020, thereby implementing various functions:
acquiring paraphrase text to be displayed;
acquiring the element of the paraphrase text to be displayed;
obtaining a combined text after obtaining paraphrases corresponding to the elements, wherein the combined text comprises the elements and the paraphrases which are combined according to a preset rule of a display template which is obtained in advance, and the display template comprises a head mark and a tail mark;
Adding the combined text between the head identifier and the tail identifier of the display template to form a display object;
And displaying the display object.
Further, the method further comprises:
Receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
And feeding back the display command for the primitive located at the display position.
Further, the feedback of the display command for the primitive located at the display position includes:
acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
hiding the paraphrase in the case that the display state is display;
And under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
Further, the method further comprises:
and adjusting the display form of the display object according to the display state.
further, after the obtaining the primitives of the paraphrase text to be displayed, the method further includes:
acquiring a null identifier under the condition that a preset white list comprises the primitive;
And combining the primitive and the empty mark according to a preset rule of a display template acquired in advance, and adding the combined primitive and the empty mark to the combined text.
Further, obtaining a combined text after obtaining the paraphrase corresponding to the primitive, including:
Judging whether the primitive is in a preset local library, if so, acquiring paraphrases corresponding to the primitive in the local library;
and combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
Further, before the step of combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text, the method further includes:
And if the primitive is not in the preset local library, acquiring paraphrases corresponding to the primitive through a network.
specifically, in this embodiment, the terminal can further implement the following functions:
receiving paraphrase text to be displayed;
determining the elements of the paraphrase text to be displayed;
And after obtaining the paraphrases corresponding to the primitives, displaying the paraphrases.
preferably, the method further comprises:
receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
And feeding back the display command for the primitive located at the display position.
preferably, the feedback of the display command for the primitive located at the display position includes:
Acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
Hiding the paraphrase in the case that the display state is display;
and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
Preferably, the method further comprises:
and adjusting the display form of the paraphrase text to be displayed.
the embodiment firstly obtains paraphrase texts to be displayed so as to obtain elements of the paraphrase texts to be displayed; secondly, after paraphrases corresponding to the primitives are obtained, the primitives and the paraphrases are combined according to a preset rule of a display template obtained in advance to obtain a combined text, wherein the display template comprises a head identifier and a tail identifier; thirdly, adding the obtained combined text to the space between the head mark and the tail mark of the display template to form a display object; and finally, displaying the display object. Because the display object comprises a plurality of paraphrases, the display of the display object can realize the display of a plurality of paraphrases at one time, and the paraphrase display efficiency is improved.
for the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
it is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The explanation display method and device provided by the embodiment of the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the above description of the embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. a paraphrasing display method, the method comprising:
Acquiring paraphrase text to be displayed;
Acquiring a plurality of primitives of the paraphrase text to be displayed;
for each primitive in the plurality of primitives, when the primitive exists in a white list corresponding to a user, setting paraphrases corresponding to the primitive as an empty identifier, and when the primitive does not exist in the white list corresponding to the user, acquiring the paraphrases corresponding to the primitive; combining each element in the plurality of elements with the corresponding paraphrase to obtain a combined text, wherein the combined text comprises the elements and the paraphrases which are combined according to a preset rule of a display template acquired in advance, and the display template comprises a head mark and a tail mark; elements which are not required to be paraphrased and displayed by the user are recorded in the white list corresponding to the user;
adding the combined text between the head identifier and the tail identifier of the display template to form a display object;
And displaying the display object.
2. The method of claim 1, further comprising:
receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
And feeding back the display command for the primitive located at the display position.
3. The method of claim 2, wherein the feedback of the display command for the primitive located at the display position comprises:
acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
Hiding the paraphrase in the case that the display state is display;
And under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
4. the method of claim 3, further comprising:
and adjusting the display form of the display object according to the display state.
5. the method of claim 1, wherein obtaining the paraphrases corresponding to the primitives to obtain combined text comprises:
judging whether the primitive is in a preset local library, if so, acquiring paraphrases corresponding to the primitive in the local library;
and combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
6. the method of claim 5, wherein before combining the primitive group with the paraphrase according to a preset rule of a pre-obtained display template to obtain a combined text, the method further comprises:
and if the primitive is not in the preset local library, acquiring paraphrases corresponding to the primitive through a network.
7. A paraphrasing display method, the method comprising:
receiving paraphrase text to be displayed;
determining a plurality of primitives of the paraphrase text to be displayed;
after obtaining the paraphrases corresponding to each primitive in the plurality of primitives, correspondingly displaying each primitive and the paraphrases;
Receiving a display request triggered by a user, wherein the display request comprises a display position and a display command;
acquiring a display state of paraphrases corresponding to the primitives positioned at the display position, wherein the display state is displayed or not displayed;
Hiding the paraphrase in the case that the display state is display;
and under the condition that the display state is not displayed, acquiring paraphrases corresponding to the primitives and then displaying the paraphrases.
8. the method of claim 7, further comprising:
And adjusting the display form of the paraphrase text to be displayed.
9. a paraphrasing display device, the device comprising:
The first acquisition module is used for acquiring paraphrase texts to be displayed;
the second acquisition module is used for acquiring a plurality of primitives of the paraphrase text to be displayed;
a third obtaining module, configured to, for each primitive in the multiple primitives, set a paraphrase corresponding to the primitive as an empty identifier when the primitive exists in a white list corresponding to a user, obtain the paraphrase corresponding to the primitive when the primitive does not exist in the white list corresponding to the user, and combine each primitive in the multiple primitives and the paraphrase corresponding to the primitive to obtain a combined text, where the combined text includes primitives and paraphrases combined according to a preset rule of a display template obtained in advance, and the display template includes a head identifier and a tail identifier; elements which are not required to be paraphrased and displayed by the user are recorded in the white list corresponding to the user;
the first adding module is used for adding the combined text between the head identifier and the tail identifier of the display template to form a display object;
And the display module is used for displaying the display object.
10. the apparatus of claim 9, further comprising:
the device comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving a display request triggered by a user, and the display request comprises a display position and a display command;
and the feedback module is used for feeding back the display command aiming at the element positioned at the display position.
11. the apparatus of claim 10, wherein the feedback module comprises:
The first acquisition submodule is used for acquiring the display state of paraphrases corresponding to the primitives positioned at the display position, and the display state is displayed or not displayed;
a hiding submodule for hiding the paraphrase in a case where the display state is display;
and the display sub-module is used for acquiring paraphrases corresponding to the primitives and then displaying the paraphrases under the condition that the display state is not displayed.
12. the apparatus of claim 11, further comprising:
And the adjusting module is used for adjusting the display form of the display object according to the display state.
13. The apparatus of claim 10, wherein the third obtaining module comprises:
the judging submodule is used for judging whether the primitive is in a preset local library or not;
The second obtaining submodule is used for obtaining paraphrases corresponding to the primitives from the local library when the result of the judging submodule is positive;
And the combination submodule is used for combining the primitive group and the paraphrase according to a preset rule of a display template acquired in advance to obtain a combined text.
14. The apparatus of claim 13, wherein the third obtaining module further comprises:
and the third obtaining sub-module is used for obtaining paraphrases corresponding to the primitives through the network when the result of the judging sub-module is negative.
CN201310292586.9A 2013-07-12 2013-07-12 Paraphrasing display method and paraphrasing display device Active CN104281568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310292586.9A CN104281568B (en) 2013-07-12 2013-07-12 Paraphrasing display method and paraphrasing display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310292586.9A CN104281568B (en) 2013-07-12 2013-07-12 Paraphrasing display method and paraphrasing display device

Publications (2)

Publication Number Publication Date
CN104281568A CN104281568A (en) 2015-01-14
CN104281568B true CN104281568B (en) 2019-12-10

Family

ID=52256453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310292586.9A Active CN104281568B (en) 2013-07-12 2013-07-12 Paraphrasing display method and paraphrasing display device

Country Status (1)

Country Link
CN (1) CN104281568B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866464A (en) * 2015-05-28 2015-08-26 小米科技有限责任公司 Information processing method and information processing apparatus
CN105138498A (en) * 2015-08-03 2015-12-09 小米科技有限责任公司 Character information output method and apparatus
CN106021309A (en) * 2016-05-05 2016-10-12 广州酷狗计算机科技有限公司 Lyric display method and device
CN106201509B (en) * 2016-07-08 2019-02-15 南京贝湾教育科技有限公司 A kind of information display method, device and mobile terminal
CN107239441B (en) * 2017-04-26 2020-09-01 广东小天才科技有限公司 Dictionary paraphrasing method and device
CN107861927A (en) * 2017-09-21 2018-03-30 广州视源电子科技股份有限公司 Document annotation method and device, readable storage medium and computer equipment
CN110969029A (en) * 2019-12-16 2020-04-07 北京明略软件系统有限公司 Text conversion processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2772159Y (en) * 2005-01-20 2006-04-12 英业达股份有限公司 Caption translating device
CN101576878A (en) * 2009-06-17 2009-11-11 董名垂 System and method for instantly translating web pages hooked by users
CN103136194A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Translation explanation contrasting system and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040081434A1 (en) * 2002-10-15 2004-04-29 Samsung Electronics Co., Ltd. Information storage medium containing subtitle data for multiple languages using text data and downloadable fonts and apparatus therefor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2772159Y (en) * 2005-01-20 2006-04-12 英业达股份有限公司 Caption translating device
CN101576878A (en) * 2009-06-17 2009-11-11 董名垂 System and method for instantly translating web pages hooked by users
CN103136194A (en) * 2011-12-05 2013-06-05 英顺源(上海)科技有限公司 Translation explanation contrasting system and method thereof

Also Published As

Publication number Publication date
CN104281568A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN108470041B (en) Information searching method and mobile terminal
CN106775637B (en) Page display method and device for application program
CN104281568B (en) Paraphrasing display method and paraphrasing display device
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN105975190B (en) Graphical interface processing method, device and system
WO2018196588A1 (en) Information sharing method, apparatus and system
US11216997B2 (en) Method and apparatus for displaying historical chat record
CN104281394A (en) Method and device for intelligently selecting words
CN109189303B (en) Text editing method and mobile terminal
CN111580815B (en) Page element editing method and related equipment
CN103455585A (en) Method, device and terminal for displaying commodity information
CN110673770B (en) Message display method and terminal equipment
CN106293486B (en) Interaction method and device between terminals
CN105095161B (en) Method and device for displaying rich text information
CN106202422B (en) The treating method and apparatus of Web page icon
CN106708530A (en) Information processing method and terminal equipment
CN105955739A (en) Graphical interface processing method, apparatus and system
CN111061446A (en) Display method and electronic equipment
JP2021532492A (en) Character input method and terminal
CN110333803B (en) Multimedia object selection method and terminal equipment
CN108052356A (en) A kind of method and terminal device for starting calculator
CN104238931B (en) Information input method and device and electronic equipment
CN110932964A (en) Information processing method and device
CN111221661A (en) Intelligent editing method, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant