[go: up one dir, main page]

CN106095734B - Text display method and device - Google Patents

Text display method and device Download PDF

Info

Publication number
CN106095734B
CN106095734B CN201610387652.4A CN201610387652A CN106095734B CN 106095734 B CN106095734 B CN 106095734B CN 201610387652 A CN201610387652 A CN 201610387652A CN 106095734 B CN106095734 B CN 106095734B
Authority
CN
China
Prior art keywords
text
display
option field
displaying
option
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
CN201610387652.4A
Other languages
Chinese (zh)
Other versions
CN106095734A (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 CN201610387652.4A priority Critical patent/CN106095734B/en
Publication of CN106095734A publication Critical patent/CN106095734A/en
Application granted granted Critical
Publication of CN106095734B publication Critical patent/CN106095734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

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

Abstract

The application discloses a text display method and a text display device, wherein the method comprises the following steps: receiving a text display request, acquiring a requested target file containing a first text and a second text, and displaying the first text, wherein the first text contains at least one option field, the option field is associated with the second text, when a second text display condition is determined to be met, the second text associated with the option field is displayed, and the display position of the second text is in the adjacent area of the option field. Therefore, when the second text associated with the item field in the first text is displayed, the second text is displayed in the adjacent area of the item field, so that the display position of the second text associated with the item field is close to the item field, the corresponding relation between the item field and the second text is more obvious, and the reading efficiency of a user is improved.

Description

Text display method and device
Technical Field
The present application relates to the field of text display technologies, and in particular, to a text display method and apparatus.
Background
With the development of networks, more and more applications provide functions of network office, learning and the like, and great convenience is brought to work and learning of users.
Web applications often involve the display of text in providing the user with work and study. And there will often be some association between different texts, for example a word or option in a first text is associated with a second text. The user needs to operate the second text or perform certain operation on the second text in the process of reading the first text. When the existing application is faced with such a situation, the first text and the second text are generally displayed in different windows, for example, the first text and the second text are displayed in two windows on the same screen, or displayed in different pages.
Referring to fig. 1, a display page of a completed gap filling question provided by a conventional web learning application is taken as an example for explanation: a finalization type space-filling type classification material section 10 and a title section 11. The prior art generally divides the material portion 10 and the topic portion 11 into two window displays, and when a user reads the first blank field while reading the material portion 11, the user needs to select the correct answer from the topic portion 11 by means of the context material. And the distance division of the material part 10 and the subject part 11 is too far, so that the corresponding relationship between the material part 10 and the subject part 11 is weakened, and the reading and answering of a user are inconvenient.
Therefore, the problem that the corresponding relation of the texts is weak and the reading efficiency of a user is low easily occurs in the mode of displaying two texts with the association relation in the window in the prior art.
Disclosure of Invention
In view of this, the present application provides a text display method and apparatus, which are used to solve the problems that the existing manner of displaying two texts having an association relationship in a sub-window is weak in text correspondence and low in user reading efficiency.
In order to achieve the above object, the following solutions are proposed:
a text display method, comprising:
receiving a text display request;
acquiring a target text which is requested by the text display request and comprises a first text and a second text, and displaying the first text, wherein the first text comprises at least one option field, and the option field is associated with the second text;
when determining that a second text display condition is met, displaying second text associated with the option field, wherein the display position of the second text is in the adjacent area of the option field.
A text display device comprising:
a display request receiving unit for receiving a text display request;
the first text display unit is used for acquiring a target text which is requested by the text display request and comprises a first text and a second text, and displaying the first text, wherein the first text comprises at least one option field, and the option field is associated with the second text;
a display condition determination unit for determining whether a second text display condition is satisfied;
and the second text display unit is used for displaying the second text associated with the option field when the second text display condition is determined to be met, and the display position of the second text is in the adjacent area of the option field.
The text display method provided by the embodiment of the application receives a text display request, acquires a requested target file containing a first text and a second text, and displays the first text, wherein the first text contains at least one option field, the option field is associated with the second text, when the second text display condition is determined to be met, the second text associated with the option field is displayed, and the display position of the second text is located in the adjacent area of the option field. Therefore, when the second text associated with the item field in the first text is displayed, the second text is displayed in the adjacent area of the item field, so that the display position of the second text associated with the item field is close to the item field, the corresponding relation between the item field and the second text is more obvious, and the reading efficiency of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating a page display of a completion-filled document in the prior art;
FIG. 2 is a flowchart of a text display method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of another text display method disclosed in embodiments of the present application;
FIG. 4 is a schematic diagram illustrating a page display of a finalized gap-filled document according to an exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of another page display of a finalized filler document according to an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a page display of a blank filled document according to yet another exemplary embodiment of the present application;
FIG. 7 is a schematic diagram of a page display of a blank filled document according to yet another exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of a page display of a blank filled document according to yet another exemplary embodiment of the present application;
FIG. 9 is a schematic diagram of a page display of a blank filled document according to yet another exemplary embodiment of the present application;
FIG. 10 is a schematic view of progressive display of target text in accordance with an example of the present application;
fig. 11 is a schematic structural diagram of a text display device disclosed in an embodiment of the present application;
fig. 12 is a schematic hardware structure diagram of a terminal disclosed in an embodiment of the present application.
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.
The text display method provided by the embodiment of the application is applied to the terminal, and the terminal can be a mobile electronic device such as a smart phone, an IPAD (internet protocol ad), a notebook computer and the like, and can also be a fixed terminal such as a desktop computer and the like. In the scheme of the application, when the terminal receives a text display request, the terminal can acquire a requested target text, the target text comprises a first text and a second text, the first text comprises at least one option field, and the option field is associated with the second text. The target text may be data pre-stored in the terminal, or may be data that the terminal temporarily requests the server. The method for acquiring the target text is not strictly limited in this application.
And after the terminal acquires the target text, displaying the first text. The first text may be displayed in a text block, wherein the text block may be in a line unit or a paragraph unit, and so on. And when the terminal determines that the second text display condition is met, displaying a second text associated with the option field, wherein the display position of the second text is in the adjacent area of the option field, such as in the adjacent area of the text block where the option field is located.
The neighboring region of the text block may be a region within a set distance range from the text block, which is close to the text block.
According to the method and the device, the display position of the second text related to the option field in the first text is in the adjacent area of the option field, so that the display positions of the second text and the option field are closer, the corresponding relation between the option field and the second text is more obvious, the reading by a user is facilitated, and the reading efficiency of the user is improved.
Next, a text display method provided in the embodiment of the present application is described in detail, referring to fig. 2, and fig. 2 is a flowchart of a text display method disclosed in the embodiment of the present application.
As shown in fig. 2, the method includes:
step S200, receiving a text display request;
step S210, obtaining a target text which is requested by the text display request and contains a first text and a second text, and displaying the first text, wherein the first text contains at least one option field, and the option field is associated with the second text;
specifically, the target text comprises a first text and a second text, wherein the first text comprises at least one option field, and the option field can be a certain word, symbol, mark or vacancy in the first text. The option field is associated with the second text.
It should be noted that different option fields may be associated with the same second text, or may be associated with different second texts. If the first text contains a plurality of option fields and different option fields are associated with different second texts, the number of the second texts is multiple.
The second text associated with the option field may be used to assist understanding of the meaning of the option field, or the second text may be processed and operated according to the meaning of the context of the option field in the first text, for example, an appropriate object is selected from the second text to fill the option field, so that the filled object can reasonably connect the context of the option field in the first text.
Alternatively, the first text may be displayed in the form of a text block.
And step S220, when the second text display condition is determined to be met, displaying a second text associated with the option field, wherein the display position of the second text is in the adjacent area of the option field.
Specifically, the second text display condition can be preset, and then the second text associated with the option field is displayed when the condition is determined to be met.
For the display position of the second text, it may be set in a neighboring area of the option field, for example, in a neighboring area of a text block in which the option field is located. The neighboring area of the text block may be an area within a set distance range from the text block, which is close to the text block, for example, between the text block and an adjacent text block, or the like.
The text display method provided by the embodiment of the application receives a text display request, acquires a requested target file containing a first text and a second text, and displays the first text, wherein the first text contains at least one option field, the option field is associated with the second text, when the second text display condition is determined to be met, the second text associated with the option field is displayed, and the display position of the second text is located in the adjacent area of the option field. Therefore, when the second text associated with the item field in the first text is displayed, the second text is displayed in the adjacent area of the item field, so that the display position of the second text associated with the item field is close to the item field, the corresponding relation between the item field and the second text is more obvious, and the reading efficiency of a user is improved.
In the following embodiments, the present application will be described by taking an example in which the first text is displayed in the form of a text block, and the display position of the second text is in the vicinity of the text block where the option field is located.
Referring to fig. 3, fig. 3 is a flowchart of another text display method disclosed in the embodiment of the present application.
As shown in fig. 3, the method includes:
step S300, receiving a text display request;
step S310, obtaining a target text which is requested by the text display request and contains a first text and a second text, and displaying the first text in a text block form, wherein the first text contains at least one option field, and the option field is associated with the second text;
specifically, the target text comprises a first text and a second text, wherein the first text comprises at least one option field, and the option field can be a certain word, symbol, mark or vacancy in the first text. The option field is associated with the second text.
Step S320, judging whether a triggering instruction for the option field is received;
specifically, the trigger instruction for the option field may include clicking on the option field, selecting the option field, and the like.
Step S330, when determining that the triggering instruction for the option field is received, displaying a second text associated with the option field, wherein the display position of the second text is in the neighboring area of the text block where the option field is located.
This embodiment describes an implementation manner of determining that the second text display condition is satisfied. In addition to this, the present application may set other display conditions, such as:
and when the first text is determined to be displayed, namely the second text display condition is confirmed to be met, displaying the second text associated with the option field.
Or,
when the first text is initially displayed, the second text associated with the first option field in the first text is directly displayed, and the second texts associated with the other option fields can be displayed in the manner shown in fig. 3.
As yet another example of this type of device,
the method and the device for displaying the second text can set a 'switch option icon' in the first text display page in advance, and the 'switch option icon' is operated to control the second text associated with the item field in the first text to be displayed or hidden.
Of course, the above only illustrates several optional real-time manners, and those skilled in the art may set different second text display conditions according to actual needs, so as to control the display timing of the second text.
Next, the present application describes a manner of displaying the second text associated with the option field.
For the second text associated with the option field, the display position thereof may be a neighboring area of the text block where the option field is located.
The specific implementation mode can comprise the following steps:
and displaying the associated second text above or below the text block where the option field is located.
Alternatively, the associated second text may be displayed to the left or right of the text block in which the option field is located.
Taking a way of displaying the associated second text above or below the text block where the option field is located as an example for explanation, the method may specifically include:
and inserting and displaying the associated second text between the text block where the option field is located and a target text block, wherein the target text block is an upper text block or a lower text block which is adjacent to the text block where the option field is located.
The second text is displayed in an inserted form, and the inserted second text does not cover the first text, so that the user can not be influenced to read the first text.
If the text block is a line, the second text can be inserted and displayed between the line of the option field and the upper or lower adjacent line.
If the text block is a paragraph, a second text may be inserted and displayed between the paragraph in which the option field is located and the paragraph immediately above or below the option field.
For convenience of understanding, the text display mode is described by taking a first text as a completion blank filling material, an option field as a blank filling field and a second text as an example of a completion blank filling subject containing a plurality of selectable items.
Referring to fig. 4, fig. 4 is a schematic diagram of a page display of a full type blank file according to an example of the present application.
As shown in FIG. 4, the complete blank 10 is displayed in a page, which includes a plurality of blank fields 100, each of which is associated with a complete blank title.
In the answering process, when a user reads a first blank filling field, the blank filling field is triggered through a mouse, and the terminal displays the complete blank filling subject 11 related to the blank filling field 100.
The display position of the blank title 11 may be: the blank material is inserted between the row of the blank field 100 and the next row of the completed blank material for display. The next row, originally in the row of the padding field 100, automatically proceeds down due to the insertion of the full padding material.
Of course, fig. 4 illustrates that the second text is inserted below the line where the blank field 100 is located, and it may also be that the second text is inserted above the line where the blank field 100 is located, and fig. 4 illustrates only one alternative.
Besides, the associated second text can be displayed above or below the text block where the option field is located in the form of a floating window.
In specific implementation, the second text is made into a floating window, and the floating window is displayed above or below the text block where the option field is located.
For the second text in the form of a floating window, the second text may be inserted between the text block where the option field is located and the target text block, or may be overlaid on the target text block. The target text block is an upper text block or a lower text block which is adjacent to the text block where the option field is located.
Referring to fig. 5, fig. 5 is a schematic view illustrating a page display of another type of blank-filled document according to an example of the present application.
As shown in FIG. 5, the complete blank 10 is displayed in a whole page, which includes a plurality of blank fields 100, each of which is associated with a complete blank title.
In the answering process, when a user reads a first blank filling field, the blank filling field is triggered through a mouse, and the terminal displays the complete blank filling subject 11 related to the blank filling field 100. The finalization empty filling title 11 is displayed in the form of a floating window 12.
The display positions of the floating window 12 may be: the blank material is inserted between the row of the blank field 100 and the next row of the completed blank material for display.
Of course, the floating window 12 may also be displayed in other locations, such as overlaid on top of the finished void-fill material.
Optionally, for the convenience of reading by the user, the second text in the form of a floating window may be set to be in a draggable state. Furthermore, the dragging instruction of the floating window can be received, and the floating window can be dragged and displayed according to the moving track indicated by the dragging instruction.
It is to be understood that since the floating window supports the drag display, its display position may be overlaid on the full space material.
The floating window supports the dragging mode, and a user can drag the second text in the form of the floating window at will, so that the problem that the floating window shields the first text to influence reading of the user is avoided.
As can be seen from fig. 5 and 6, the floating window 12 can be arbitrarily dragged to display.
Furthermore, the floating window can be arranged to support the hiding and displaying functions. That is, a hiding instruction for the floating window may be received, and the floating window may be hidden. When hidden, a setting label can be displayed at an option field associated with the floating window, and the setting label is associated with the floating window and used for displaying the associated floating window when triggered by a user.
A hidden option can be set in a right-click pop-up menu of the floating window, and a user can trigger a hidden instruction of the floating window by clicking the hidden option. Of course, other arrangements may be provided in addition thereto.
There may be various trigger modes for the tag, such as clicking and the like.
Referring to fig. 7:
after hiding the floating window 12 in fig. 5 or 6, a label 13 may be displayed in the padding field 100.
When the user triggers the tab 13, the floating window 12 may be further displayed again.
Still further, for a scenario that the first text is a finalization type blank filling material, the option field is a blank filling field, and the second text associated with the blank filling field is a finalization type blank filling subject containing a plurality of selectable items, this embodiment may further display a target selectable item in the blank filling field when it is determined that a user selects the target selectable item among the plurality of selectable items.
As shown in FIG. 8, for the finalization type gap filling title associated with the gap filling field 100, when the user selects option B: following become, the selectable items selected by the user may be displayed in the fill-in field 100. May be displayed or hidden from the floating window 12.
Still taking the type of a filled-in-blank question as an example, after the user selects a certain selectable item and clicks and submits, the application can display the analytic text of the question, and the analytic text can include correct answers and detailed analysis.
Based on the above, the target text acquired when the text display request of the user is received further comprises third text, and the third text is associated with the blank field and is used for analyzing the text for the title.
Upon determining that a user selects a target selectable item from a number of selectable items in a finalization fill-in-space title and confirms, displaying a third text associated with the fill-in-space field under the finalization fill-in-space title.
Details can be seen with reference to fig. 9:
wherein the third text 14 can also be presented in the form of a floating window 12. Of course, it may be directly inserted into the display in addition thereto.
In summary, it can be understood that, among the first text, the second text, and the third text included in the target file, the first text is directly displayed, and the second text and the third text may be displayed only when the set display condition is satisfied. Therefore, the architecture of the obtained target text may be that the second text and the third text are written into the first text and are hidden. And displaying the second text and/or the third text when the display condition is judged to be met.
Referring to fig. 10, fig. 10 is a schematic view illustrating progressive display of a target text according to an example of the present application.
Only the first text 1-5 is displayed when initially displayed.
The first text 2 is associated with a second text 1, and the second text 1 is associated with a third text 1.
The first text 4 is associated with the second text 2 and the second text 2 is associated with the third text 2.
When a second text display condition is met, inserting and displaying a second text 1 associated with the first text 2 between the first text 2 and the first text 3; the second text 2 associated with the first text 4 is inserted and displayed between the first text 4 and the first text 5.
When a third text display condition is met, a third text 1 associated with the second text 1 is inserted and displayed between the second text 1 and the first text 3; the third text 2 associated with the second text 2 is inserted and displayed between the second text 2 and the first text 5.
Of course, fig. 10 merely illustrates the insertion display form, and it is understood from the above embodiment that the second text and the third text may also be displayed in the form of a floating window or the like.
The following describes the text display device provided in the embodiments of the present application, and the text display device described below and the text display method described above may be referred to correspondingly.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a text display device disclosed in the embodiment of the present application.
As shown in fig. 11, the apparatus includes:
a display request receiving unit 110 for receiving a text display request;
a first text display unit 120, configured to obtain a target text that is requested by the text display request and includes a first text and a second text, and display the first text, where the first text includes at least one option field, and the option field is associated with the second text;
wherein the first text may be displayed in the form of a text block.
A display condition determination unit 130 for determining whether a second text display condition is satisfied;
and the second text display unit 140 is configured to, when it is determined that a second text display condition is met, display a second text associated with the option field, where a display position of the second text is in a region adjacent to the option field.
Specifically, if the first text is displayed in the form of a text block, the display position of the second text may be in a neighboring area of the text block where the option field is located.
Optionally, the present application illustrates an optional structure of the display condition determining unit, and the display condition determining unit may include:
the first display condition determining subunit is used for judging whether a trigger instruction for the option field is received or not;
and the second display condition determining subunit is used for determining that a second text display condition is met when determining that the triggering instruction for the option field is received.
Optionally, the present application illustrates an optional structure of the second text display unit, and the second text display unit may include:
and the upper and lower display unit is used for displaying the associated second text above or below the text block where the option field is located.
Optionally, the present application illustrates two optional structures of the upper and lower display units, which are respectively as follows:
first, the upper and lower display unit may include:
and the inserting and displaying unit is used for inserting and displaying the associated second text between the text block where the option field is located and a target text block, wherein the target text block is an upper text block or a lower text block which is adjacent to the text block where the option field is located.
Second, the upper and lower display unit may include:
and the floating window display unit is used for displaying the associated second text above or below the text block where the option field is located in the form of a floating window.
Optionally, the text display device of the present application may further include:
the dragging instruction receiving unit is used for receiving a dragging instruction of the floating window;
and the floating window dragging unit is used for dragging and displaying the floating window according to the moving track indicated by the dragging instruction.
Optionally, the text display device of the present application may further include:
a hidden instruction receiving unit, configured to receive a hidden instruction for the floating window;
and the floating window hiding unit is used for hiding the floating window and displaying a setting label at the option field, wherein the setting label is associated with the floating window and is used for displaying the associated floating window when a user triggers.
Optionally, the first text may be a blank filling material, the option field may be a blank filling field, and the second text associated with the blank filling field may be a blank filling title containing several selectable items, based on which the text display apparatus of the present application may further include:
a selectable item display unit for displaying a target selectable item in the gap field upon determining that a user selected the target selectable item from the plurality of selectable items.
Optionally, the target document of the present application may further include a third text, where the third text is associated with the blank field and is a title parsing text. Based on this, the text display device of the present application may further include:
and the third text display unit is used for displaying a third text associated with the blank filling field under the complete blank filling title when determining that the user selects a target selectable item in the selectable items and confirms, wherein the third text is a title parsing text.
The text display method is applied to the terminal, and for the hardware structure of the terminal, refer to fig. 12, where fig. 12 is a schematic diagram of the hardware structure of the terminal provided in the embodiment of the present application. As shown in fig. 12, the terminal may include:
a processor 1, a communication interface 2, a memory 3, a communication bus 4, and a display screen 5;
the processor 1, the communication interface 2, the memory 3 and the display screen 5 are communicated with each other through a communication bus 4;
optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
a processor 1 for executing a program;
a memory 3 for storing a program;
the program may include program code including operating instructions of the processor.
The processor 1 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present application.
The memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
Among them, the procedure can be specifically used for:
receiving a text display request;
acquiring a target text which is requested by the text display request and comprises a first text and a second text, and displaying the first text in a text block mode, wherein the first text comprises at least one option field, and the option field is associated with the second text;
and when determining that a second text display condition is met, displaying a second text associated with the option field, wherein the display position of the second text is in the adjacent area of the text block where the option field is located.
Finally, it should also be 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 embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. A text display method, comprising:
receiving a text display request;
acquiring a target text which is requested by the text display request and comprises a first text and a second text, and displaying the first text, wherein the first text comprises at least one option field, and the option field is associated with the second text;
when a first text is initially displayed, directly displaying a second text associated with a first option field in the first text, and for second texts associated with other option fields, inserting and displaying the associated second text between a text block where the other option fields are located and a target text block when a second text display condition is determined to be met, wherein the target text block is an upper text block or a lower text block adjacent to the text block where the option fields are located, and the display position of the second text is in an adjacent area of the option fields;
the method further comprises the following steps: and responding to the operation of a user on a switch option icon, and controlling to display or hide a second text associated with an option field in the first text, wherein the switch option icon is preset in the first text display page.
2. The method of claim 1, wherein the determining that the second text display condition is satisfied comprises:
judging whether a triggering instruction for the option field is received or not;
and when determining that the triggering instruction for the option field is received, determining that a second text display condition is met.
3. The method of claim 1, wherein the first text is displayed in a text block, and wherein the second text is displayed at a position in a vicinity of the text block where the option field is located.
4. The method of claim 3, wherein displaying the second text associated with the option field comprises:
and displaying the associated second text above or below the text block where the option field is located.
5. The method of claim 4, wherein displaying the associated second text above or below the text block in which the option field is located comprises:
and displaying the associated second text above or below the text block where the option field is located in the form of a floating window.
6. The method of claim 5, further comprising:
receiving a dragging instruction for the floating window;
and dragging and displaying the floating window according to the moving track indicated by the dragging instruction.
7. The method of claim 5, further comprising:
receiving a hiding instruction of the floating window;
hiding the floating window, and displaying a setting label at the option field, wherein the setting label is associated with the floating window and is used for displaying the associated floating window when a user triggers.
8. The method of claim 1, wherein the first text is a finalization fill-in material, the option field is a fill-in field, and the second text associated with the fill-in field is a finalization fill-in title comprising a number of selectable items, the method further comprising:
upon determining that a user selects a target selectable item of the number of selectable items, displaying the target selectable item in the fill-in field.
9. The method of claim 8, wherein the target text further comprises a third text, the third text being associated with the gap field, the method further comprising:
and when determining that the user selects a target selectable item in the selectable items and confirms, displaying a third text associated with the blank filling field under the blank filling title, wherein the third text is a title parsing text.
10. A text display apparatus, comprising:
a display request receiving unit for receiving a text display request;
the first text display unit is used for acquiring a target text which is requested by the text display request and contains a first text and a second text, displaying the first text, wherein the first text contains at least one option field, the option field is associated with the second text, and when the first text is initially displayed, the second text associated with the first option field in the first text is directly displayed;
a display condition determination unit for determining whether a second text display condition is satisfied;
a second text display unit, configured to, for a second text associated with another option field, insert and display the associated second text between a text block where the other option field is located and a target text block when it is determined that a second text display condition is met, where the target text block is an upper text block or a lower text block that is adjacent to the text block where the option field is located, and a display position of the second text is in an area adjacent to the option field;
the apparatus is further configured to: and responding to the operation of a user on a switch option icon, and controlling to display or hide a second text associated with an option field in the first text, wherein the switch option icon is preset in the first text display page.
11. The apparatus according to claim 10, wherein the display condition determination unit includes:
the first display condition determining subunit is used for judging whether a trigger instruction for the option field is received or not;
and the second display condition determining subunit is used for determining that a second text display condition is met when determining that the triggering instruction for the option field is received.
12. The apparatus according to claim 10, wherein the first text display unit displays the first text in the form of text blocks;
the second text display unit includes:
and the upper and lower display unit is used for displaying the associated second text above or below the text block where the option field is located.
13. The apparatus of claim 12, wherein the upper and lower display units comprise:
and the floating window display unit is used for displaying the associated second text above or below the text block where the option field is located in the form of a floating window.
14. The apparatus of claim 13, further comprising:
the dragging instruction receiving unit is used for receiving a dragging instruction of the floating window;
and the floating window dragging unit is used for dragging and displaying the floating window according to the moving track indicated by the dragging instruction.
15. The apparatus of claim 13, further comprising:
a hidden instruction receiving unit, configured to receive a hidden instruction for the floating window;
and the floating window hiding unit is used for hiding the floating window and displaying a setting label at the option field, wherein the setting label is associated with the floating window and is used for displaying the associated floating window when a user triggers.
16. A terminal, comprising: a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program stored in the memory;
the computer program is for executing the text display method of any one of claims 1-9.
17. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, the computer program being configured to execute the text display method according to any one of claims 1 to 9.
CN201610387652.4A 2016-06-02 2016-06-02 Text display method and device Active CN106095734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610387652.4A CN106095734B (en) 2016-06-02 2016-06-02 Text display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610387652.4A CN106095734B (en) 2016-06-02 2016-06-02 Text display method and device

Publications (2)

Publication Number Publication Date
CN106095734A CN106095734A (en) 2016-11-09
CN106095734B true CN106095734B (en) 2021-02-26

Family

ID=57448594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610387652.4A Active CN106095734B (en) 2016-06-02 2016-06-02 Text display method and device

Country Status (1)

Country Link
CN (1) CN106095734B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159975B (en) * 2019-12-31 2022-09-23 联想(北京)有限公司 Display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101548280A (en) * 2006-10-02 2009-09-30 谷歌公司 Displaying original text in a user interface with translated text
CN102331997A (en) * 2010-07-13 2012-01-25 索尼公司 Messaging device, information processing method and computer program
CN102467834A (en) * 2010-11-11 2012-05-23 英业达股份有限公司 Text learning system and method thereof
CN104679723A (en) * 2013-11-29 2015-06-03 北京壹人壹本信息科技有限公司 Text contrast display method, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101548280A (en) * 2006-10-02 2009-09-30 谷歌公司 Displaying original text in a user interface with translated text
CN102331997A (en) * 2010-07-13 2012-01-25 索尼公司 Messaging device, information processing method and computer program
CN102467834A (en) * 2010-11-11 2012-05-23 英业达股份有限公司 Text learning system and method thereof
CN104679723A (en) * 2013-11-29 2015-06-03 北京壹人壹本信息科技有限公司 Text contrast display method, system and device

Also Published As

Publication number Publication date
CN106095734A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN100505031C (en) Smooth scrolling with prominent navigation and page changing signs
US9286390B2 (en) Presentation of rich search results in delineated areas
US10878175B2 (en) Portlet display on portable computing devices
US20150012818A1 (en) System and method for semantics-concise interactive visual website design
EP2284728A1 (en) Web browsing method and web browsing device
KR20110066314A (en) Method and device for providing bookmark service in communication terminal
US20120229397A1 (en) Method and apparatus for selecting desired contents on read text in portable terminal
JP6975339B2 (en) Backdrop rendering of digital components
US20090254860A1 (en) Method and apparatus for processing widget in multi ticker
CN111259284A (en) Page lazy loading method and device, storage medium and processor
WO2017032307A1 (en) File folder merging method and device
CN106598410B (en) Display methods, device and the terminal device of e-book
CN106648281B (en) Screenshot method and device
US11402988B2 (en) Tiling scroll display
CN111124564A (en) Method and device for displaying user interface
CN111897607B (en) Application interface loading and interaction method, device and storage medium
CN112286603A (en) Table display method and device, electronic equipment and storage medium
CN106095734B (en) Text display method and device
CN111199136A (en) Document content display method, device and equipment
CN106598315B (en) Touch display device and background image replacement method thereof
CN107797736A (en) Method for information display and device
CN111428452A (en) Comment data storage method and device
CN112840305A (en) Font switching method and related products
CN116415547A (en) Document processing method, device, equipment, medium and program product
CN113792244A (en) Webpage adaptation method and system, corresponding computer equipment and storage medium

Legal Events

Date Code Title Description
C06 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