CN112214972A - Article processing method, article processing device, article processing equipment and computer readable storage medium - Google Patents
Article processing method, article processing device, article processing equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN112214972A CN112214972A CN202011230990.XA CN202011230990A CN112214972A CN 112214972 A CN112214972 A CN 112214972A CN 202011230990 A CN202011230990 A CN 202011230990A CN 112214972 A CN112214972 A CN 112214972A
- Authority
- CN
- China
- Prior art keywords
- content
- target text
- article
- view interface
- text content
- 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.)
- Pending
Links
- 238000012545 processing Methods 0.000 title claims abstract description 34
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 51
- 230000008569 process Effects 0.000 claims abstract description 26
- 230000004044 response Effects 0.000 claims abstract description 25
- 239000000463 material Substances 0.000 claims description 46
- 230000015654 memory Effects 0.000 claims description 22
- 238000007667 floating Methods 0.000 claims description 21
- 230000000007 visual effect Effects 0.000 claims description 6
- 239000012634 fragment Substances 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 24
- 230000003993 interaction Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000001960 triggered effect Effects 0.000 description 7
- 239000000284 extract Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000003780 insertion Methods 0.000 description 4
- 230000037431 insertion Effects 0.000 description 4
- 238000009877 rendering Methods 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008451 emotion Effects 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000000670 limiting effect Effects 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000036961 partial effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000002829 reductive effect Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 235000013311 vegetables Nutrition 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 235000013336 milk Nutrition 0.000 description 1
- 239000008267 milk Substances 0.000 description 1
- 210000004080 milk Anatomy 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 235000012149 noodles Nutrition 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides an article processing method, an article processing device and a computer readable storage medium; the method comprises the following steps: in response to a content viewing operation for an article, presenting content of the article in a view interface; when target text content in the content is in the view interface, presenting indication information of the target text content, wherein the indication information is used for indicating that hidden content corresponding to the target text content exists; when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface. By the method and the device, the hidden content corresponding to the text content of the article can be presented in the view interface, and the richness of the content presented in the article presenting process is improved.
Description
Technical Field
The present application relates to the field of mobile internet technologies, and in particular, to an article processing method, an article processing apparatus, an article processing device, and a computer-readable storage medium.
Background
Articles in the form of novels, news, forum posts, etc. have been widely used in information flow products as they can provide content consumption in multiple dimensions, thereby effectively increasing the duration of using the information flow products by users. In the related art, the content in the article is usually presented in a plain text manner, and the user reads the content of the article through a character, or outputs the content of the article in a plain audio playing manner, that is, the user listens to the reading of the article by another person to know the content of the article, however, the user can only obtain the content transmitted by the text in the article through the manner, and the presented content is single.
Disclosure of Invention
The embodiment of the application provides an article processing method, an article processing device, an article processing apparatus and a computer-readable storage medium, which can present hidden contents corresponding to text contents of an article in a view interface, and improve richness of the content presented in an article presentation process.
The technical scheme of the embodiment of the application is realized as follows:
an embodiment of the present application provides an article processing method, including:
in response to a content viewing operation for an article, presenting content of the article in a view interface;
when target text content in the content is in the view interface, presenting indication information of the target text content, wherein the indication information is used for indicating that hidden content corresponding to the target text content exists;
when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface.
In the above solution, the presenting the content of the article in the view interface in response to the content viewing operation for the article includes:
responding to the content viewing operation aiming at the article, and acquiring a current article reading mode;
and if the current article reading mode is the automatic reading mode, presenting the content corresponding to the current reading position in the view interface, and automatically updating the content of the presented article.
In the above solution, the presenting the content of the article in the view interface in response to the content viewing operation for the article includes:
when the content viewing operation is a sliding operation for the article, presenting the content in the article in a sliding state in a view interface in response to the sliding operation; or,
and when the content viewing operation is a clicking operation for the article, responding to the clicking operation, turning pages of the article in a view interface, and presenting the content of the article after the pages are turned.
An embodiment of the present application provides an article processing apparatus, including:
the first presentation module is used for responding to the content sliding operation of the article and sliding the content of the article in the view interface;
a second presentation module, configured to, when a target text content in the content is in the view interface, present indication information of the target text content, where the indication information is used to indicate that there is hidden content corresponding to the target text content;
and the inserting module is used for inserting and displaying the hidden content in an area associated with the target text content in the view interface when a triggering operation aiming at the indication information is received.
In the above scheme, the first presentation module is further configured to obtain a current article reading mode in response to a content viewing operation for an article;
and if the current article reading mode is the automatic reading mode, presenting the content corresponding to the current reading position in the view interface, and automatically updating the content of the presented article.
In the above scheme, the first presentation module is further configured to, when the content viewing operation is a sliding operation for the article, present, in response to the sliding operation, content in a sliding state in the article in a view interface; or,
and when the content viewing operation is a clicking operation for the article, responding to the clicking operation, turning pages of the article in a view interface, and presenting the content of the article after the pages are turned.
In the above scheme, the second presentation module is further configured to show a process from a part of appearance to a whole appearance of the indication information of the target text content when the target text content in the content is in the view interface;
the inserting module is further configured to insert and display the hidden content in an area associated with the target text content in the view interface when a trigger operation for the indication information is received after the indication information appears in the view interface as a whole.
In the above scheme, the second presenting module is further configured to present, when a target text content in the content is in a target area in the view interface, indication information of the target text content;
the device further comprises:
the determining module is used for acquiring a text height corresponding to the target text content, a position height of the target text content in the view interface and a visual height of the view interface;
taking the difference value of half of the visible height as the reference height corresponding to the target text content;
and when the difference height between the position height and half of the text height is not lower than the reference height, determining that the target text content in the content is in the target area of the view interface.
In the foregoing solution, the second presenting module is further configured to display the target text content in a target display style, where the target display style is used to distinguish from other contents in the view interface except the target text content.
In the above scheme, the second presentation module is further configured to present, in the view interface, the indication information of the target text content through a bubble-type card floating layer; or,
and presenting indication information of the target text content through a floating window floating above the view interface.
In the above scheme, the second presenting module is further configured to present a web page link corresponding to the target text content, and use the web page link as the indication information;
correspondingly, the inserting module is further configured to insert and display hidden content indicated by the web page link in an area associated with the target text content in the view interface when a triggering operation for the web page link is received.
In the foregoing solution, the second presenting module is further configured to dynamically present an underline of the target text content below each line of the target text content in the view interface, and use the underline as the indication information.
In the above scheme, the inserting module is further configured to obtain a target position where the target text content is located in the view interface;
and displaying the process that the hidden content gradually expands downwards from a preset distance below the target position, so that the completely expanded hidden content is inserted and displayed in an area associated with the target text content in the view interface.
In the above scheme, the apparatus further comprises:
the display module is used for displaying the process that other contents below the target position in the view interface move downwards along with the gradual expansion of the hidden contents;
wherein the other content moves downwards by the expansion height of the corresponding hidden content.
In the above solution, after the inserting and displaying the hidden content in the area associated with the target text content in the view interface, the apparatus further includes:
a cancellation module, configured to cancel presentation of the hidden information in response to a trigger operation for a target area;
the target area is the area other than the area associated with the target text content in the view interface.
In the above scheme, the apparatus further comprises:
the recognition module is used for extracting text content of the article to obtain at least two text segments forming the content of the article;
obtaining the interest degree of the target user aiming at each text fragment;
and determining the text segment corresponding to the interestingness exceeding the interestingness threshold value as the target text content in the content.
In the above solution, before the content of the article is presented in the view interface, the apparatus further includes:
an obtaining module, configured to send an obtaining request for content of the article, where the obtaining request carries an article identifier of the article, and the article identifier is used for finding the content of the article and hidden content corresponding to target text content in the content;
receiving the content of the article and hidden content corresponding to target text content in the content;
and performing material replacement to generate indication information of the target text content based on the hidden content.
An embodiment of the present application provides an electronic device, including:
a memory for storing executable instructions;
and the processor is used for realizing the article processing method provided by the embodiment of the application when executing the executable instructions stored in the memory.
The embodiment of the application provides a computer-readable storage medium, which stores executable instructions and is used for causing a processor to execute the executable instructions so as to realize the article processing method provided by the embodiment of the application.
The embodiment of the application has the following beneficial effects:
in the process of viewing the content of the presented article in the view interface, if the target text content is presented in the current view interface, presenting indication information for indicating that hidden content corresponding to the target text content exists, and when a user triggers the indication information, inserting and displaying the hidden content in an area associated with the target text content in the view interface; therefore, hidden contents corresponding to the text contents of the articles can be presented in the view interface, the richness of the presented contents in the article presenting process is improved, and the emotion transfer dimension is enriched; in addition, the presented hidden content is inserted into the area corresponding to the target text content in the view interface, so that the hidden content is tightly combined with the content of the article, the combination degree of the hidden content and the content of the article is improved, the original reading of a user is not interfered, and the reading experience is improved.
Drawings
FIGS. 1A-1B are schematic diagrams of an article interaction method provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative architecture of an article processing system provided by an embodiment of the present application;
fig. 3 is an alternative structural schematic diagram of an electronic device provided in an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating an alternative method for processing articles according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a page display provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a page display provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 9 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 10 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIG. 11 is a schematic diagram of a display interface provided in an embodiment of the present application;
FIGS. 12A-12E are schematic diagrams of display interfaces provided by embodiments of the present application;
FIG. 13 is a schematic flow chart diagram illustrating an alternative method for processing articles according to an embodiment of the present application;
FIG. 14 is a schematic view of article processing provided by an embodiment of the present application;
FIG. 15 is a schematic view of article processing provided by an embodiment of the present application;
fig. 16 is an alternative configuration diagram of an article processing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
1) The client, an application program running in the terminal for providing various services, such as a video playing client.
2) In response to the condition or state on which the performed operation depends, one or more of the performed operations may be in real-time or may have a set delay when the dependent condition or state is satisfied; there is no restriction on the order of execution of the operations performed unless otherwise specified.
In some embodiments, the content in the article can be presented in a plain text manner, or the content of the article is output in a plain audio playing manner, however, such a manner can only deliver the content of the article itself, and the displayed content is single; in other embodiments, a user presents indication information that can be clicked during reading, see fig. 1A-1B, where fig. 1A-1B are schematic diagrams of an article interaction manner provided in an embodiment of the present application, and in fig. 1A, an article (e.g., a novel) text segment in an information flow product presents clickable indication information, and when the user clicks the indication information, a popup window shown in fig. 1B pops up and displays interactive content corresponding to the text segment in the popup window, however, the interactive content in this manner is presented on the content of the article through the popup window, and the combination degree with the content of the article is not tight, so that current reading of the user is easily interrupted, and the reading experience of the user is reduced.
Based on this, embodiments of the present application provide an article processing method, an article processing apparatus, and a computer-readable storage medium, which can present hidden content corresponding to text content of an article in a view interface, so as to improve richness of the content presented in the article presentation process, and meanwhile, the presented hidden content is inserted in an area corresponding to target text content in the view interface, so as to improve a degree of combination between the hidden content and the article content.
Referring to fig. 2, fig. 2 is an alternative architecture diagram of the article processing system 100 according to the embodiment of the present application, in order to support an exemplary application, the terminals (exemplary terminal 400-1 and terminal 400-2 are shown) are connected to the server 200 through the network 300, and the network 300 may be a wide area network or a local area network, or a combination of the two, and uses a wireless link to implement data transmission.
In practical application, the terminal may be various types of user terminals such as a smart phone, a tablet computer, a notebook computer, and the like, and may also be a desktop computer, a game console, a television, or a combination of any two or more of these data processing devices; the server 200 may be a single server configured to support various services, may also be configured as a server cluster, may also be a cloud server, and the like.
In actual implementation, the terminal is provided with a client, such as a short video client, a browser client, a reading client, and the like. When a user opens a client on the terminal to browse an article, the terminal is used for responding to the content viewing operation aiming at the article and presenting the content of the article in a view interface; when the target text content in the content is in the view interface, presenting indication information of the target text content; indication information for indicating that there is hidden content corresponding to the target text content; when receiving a trigger operation for the indication information, sending an acquisition request of the hidden content to the server 200; the server 200 determines hidden content corresponding to the target text content based on the acquisition request, and returns the media content to the terminal, and after receiving the hidden content, the terminal inserts and displays the hidden content into an area associated with the target text content in the view interface, so that the hidden content is closely combined with the content of the article.
Referring to fig. 3, fig. 3 is an optional schematic structural diagram of an electronic device 500 provided in the embodiment of the present application, in practical applications, the electronic device 500 may be the terminal 400-1, the terminal 400-2, or the server 200 in fig. 2, and the electronic device is the terminal 400-1 or the terminal 400-2 shown in fig. 2 as an example, so as to describe the electronic device that implements the article processing method in the embodiment of the present application. The electronic device 500 shown in fig. 3 includes: at least one processor 510, memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together by a bus system 540. It is understood that the bus system 540 is used to enable communications among the components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in fig. 3.
The Processor 510 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 530 includes one or more output devices 531 enabling presentation of media content, including one or more speakers and/or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components to facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 550 optionally includes one or more storage devices physically located remote from processor 510.
The memory 550 may comprise volatile memory or nonvolatile memory, and may also comprise both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The memory 550 described in embodiments herein is intended to comprise any suitable type of memory.
In some embodiments, memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 551 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a network communication module 552 for communicating to other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), etc.;
a presentation module 553 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 531 (e.g., a display screen, speakers, etc.) associated with the user interface 530;
an input processing module 554 to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
In some embodiments, the article processing apparatus provided in the embodiments of the present application may be implemented in software, and fig. 3 shows an article processing apparatus 555 stored in a memory 550, which may be software in the form of programs and plug-ins, and includes the following software modules: a first rendering module 5551, a second rendering module 5552 and an insertion module 5553, which are logical and thus may be arbitrarily combined or further split depending on the implemented functionality. The functions of the respective modules will be explained below.
In other embodiments, the article processing apparatus provided in the embodiments of the present Application may be implemented in hardware, and for example, the article processing apparatus provided in the embodiments of the present Application may be a processor in the form of a hardware decoding processor, which is programmed to execute the article processing method provided in the embodiments of the present Application, for example, the processor in the form of the hardware decoding processor may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
The following describes the document processing method provided in the embodiments of the present application, and in actual implementation, the document processing method provided in the embodiments of the present application may be implemented by a server or a terminal alone, or may be implemented by cooperation of a server and a terminal.
Referring to fig. 4, fig. 4 is an alternative flow chart diagram of an article processing method provided in the embodiment of the present application, which will be described with reference to the steps shown in fig. 4.
Step 101: and the terminal responds to the content viewing operation aiming at the article and presents the content of the article in the view interface.
In practical application, a terminal is provided with a client, such as a short video client, a browser client, a reading client, and the like. When a user opens a client on the terminal, the terminal responds to the opening operation of the user on the client, operates the client and presents the content of a corresponding article in a view interface, wherein the article can be literary works such as novels and prose, news or forum posts and the like, and the content of the article can be content in a pure text form or a form of combining texts and pictures.
In some embodiments, the terminal may present the content of the article in the view interface in response to a content viewing operation for the article by:
when the content viewing operation is a sliding operation for the article, presenting the content in the article in a sliding state in a view interface in response to the sliding operation; or when the content viewing operation is a click operation for the article, turning pages of the article in the view interface in response to the click operation, and presenting the content of the turned article.
Here, when the user slides the article in the view interface, the terminal presents the article content in the sliding state in the view interface in response to the sliding operation, and even if the content of the article presented on the view interface slides along with the sliding, correspondingly, the relative position of the content of the article on the view interface changes along with the sliding of the user on the view interface, that is, the sliding of the presented article content is realized through the sliding operation. When a user clicks an article in the view interface, the terminal responds to the clicking operation and turns pages of the article in the current view interface, namely, the pages of the article are turned through the clicking operation of the user.
In some embodiments, the terminal may also present the content of the article in the view interface in response to a content viewing operation for the article by:
responding to the content viewing operation aiming at the article, and acquiring a current article reading mode; and if the current article reading mode is the automatic reading mode, presenting the content corresponding to the current reading position in the view interface, and automatically updating the content of the presented article.
Here, if the current article reading mode is the automatic mode, the content of the presented article can be updated in an automatic scrolling manner; or update the content of the presented article in the form of automatic page turning.
Step 102: and when the target text content in the content is in the view interface, presenting indication information of the target text content, wherein the indication information is used for indicating that hidden content corresponding to the target text content exists.
In some embodiments, the target text content may be determined as follows: extracting text content of the article to obtain at least two text segments forming the content of the article; obtaining the interest degree of a target user for each text segment; and determining the text segment corresponding to the interestingness exceeding the interestingness threshold value as the target text content in the content.
Wherein the interestingness may be determined based on the browsing duration or the interaction frequency of the target user for the text segment, in some embodiments, the target text content may be determined by: and acquiring the average browsing duration corresponding to the target number of characters in each text segment, and determining the text segment corresponding to the average browsing duration exceeding the duration threshold value as the target text content in the content of the article.
Here, the average browsing duration of browsing the same number of characters in each text segment of the content constituting the article by the user is counted, where the browsing duration is represented by the stay duration of the same number of characters in each text segment by the user, and the text segment with a relatively long average browsing duration is recorded as the target text content, where the duration threshold may be set according to practice, for example, the duration threshold for 10 characters in the text segment is set to 8 seconds, when the average browsing duration of browsing the 10 characters in the text segment 1 by the user is 10 seconds and the average browsing duration of browsing the 10 characters in the text segment 2 is 5 seconds, and since the average browsing duration corresponding to the text segment 1 exceeds the set duration threshold, it is determined that the text segment 1 is a key segment.
In some embodiments, the target text content may also be determined by: acquiring interaction frequency corresponding to each text segment, and determining the text segment corresponding to the interaction frequency exceeding a frequency threshold value as target text content in the content of the article, wherein the interaction mode comprises at least one of the following modes: copy, search, favorite, share, etc. And when the user has more operations of copying, searching, collecting or sharing a certain text segment, and the like, determining the corresponding text segment as the target text content.
In practical application, before a server (e.g., a background server corresponding to a reading client) corresponding to a client arranged on a terminal pushes content of an article to the client for presentation, the server performs target text recognition on the content of the article to determine target text content in the article, marks the target text content, and returns mark information to the terminal, and the terminal performs dotting or embedding on a position indicated by the mark information based on the mark information to present indication information indicating that hidden content corresponding to the target text content exists when the embedded point corresponding to the target text content is recognized in a view interface.
Certainly, in practical application, some keywords in the article may also be used as target text content, for example, keywords such as car, bubble noodles, milk and the like are used as the target text content, the server marks the target text content where the keywords appear, and returns the mark information to the terminal, and the terminal performs dotting or embedding on the position indicated by the mark information based on the mark information, so that when the terminal identifies the embedded point corresponding to the keyword in the view interface, the terminal presents indication information indicating that the hidden content corresponding to the keyword exists.
In some embodiments, when the user views a certain article in the current view interface, the terminal may further obtain the content of the article and the indication information of the target text content by:
sending an acquisition request aiming at the content of an article, and acquiring an article identifier of the article carried in the request, wherein the article identifier is used for searching the content of the article and hidden content corresponding to target text content in the content; receiving the content of an article and hidden content corresponding to target text content in the content; and performing material replacement based on the hidden content to generate indication information of the target text content.
The server stores all the contents of the article, including hidden contents corresponding to the target text contents, and when a user views the contents of the article in a view interface, the terminal sends an acquisition request for acquiring the contents of the article to the server, the server filters the contents of the article, the tag information for the target text contents and the hidden contents corresponding to the target text contents from the article identification carried in the acquisition request, and returns the contents of the article, the tag information for the target text contents and the hidden contents corresponding to the target text contents to the terminal. The terminal presents the content of the article and presents the indication information of the target text content when the mark information aiming at the target text content is identified (namely the target text content slides to the corresponding buried point).
After the target text content in the article is identified, the server acquires materials corresponding to the target text content, such as static pictures, dynamic pictures (such as gif pictures), videos, audios, webpage links and the like, and stores the materials into a material library, wherein the target text content and the materials have one-to-one correspondence, so that when the terminal identifies the embedded point corresponding to the target text content, the terminal applies to the server for acquiring the corresponding materials to determine the corresponding hidden content based on the acquired materials.
In some embodiments, when the terminal identifies the tag information for the target text content, it may be determined that the target text content appears in the view interface, and at this time, the target text content may be displayed in a target display style, where the target display style is used to distinguish from other contents in the view interface except the target text content, for example, the target text content is displayed in a style different from other contents, such as a font different from other contents, a text color different from other contents, a display background different from other contents, a text transparency different from other contents, and the like, so as to provide a conspicuous prompt to the user, thereby improving the reading experience of the user.
In some embodiments, the terminal may present the indication of the target text content by: and dynamically presenting an underline of the target text content below each line of the target text content in the view interface, wherein the underline is used as indication information. In some embodiments, the indication information of the target text content may be presented when the target text content in the content is at the view interface by: when the target text content in the content is in the view interface, displaying the indication information of the target text content from the appearance part to the appearance whole; accordingly, the terminal can insert and display the hidden content in the area associated with the target text content in the view interface when receiving the triggering operation for the indication information by the following modes: after the indication information is entirely presented in the view interface, when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface.
The display form of the indication information is not limited, for example, the indication information may be a downward sliding line located below the target text content, may be a frame wrapping the target text content, and may also use information that the color of the display characters of the target text content gradually changes as the indication information, and the like.
When target text content appears in the view interface, the terminal identifies mark information corresponding to the target text content, the clickable indication information is triggered, the indication information is displayed in a dynamic form, for example, a process from displaying of part of indication information to displaying of whole indication information is displayed, when the whole indication information appears in the view interface, if a user triggers (for example, clicks) the indication information, the terminal responds to the triggering operation to trigger a corresponding function, namely, hidden content is inserted and displayed in an area associated with the target text content in the view interface. When the indication information does not appear in the whole view interface, if the user triggers the indication information, the terminal does not respond or presents the related prompt information, namely, the function of inserting and displaying the hidden content in the area associated with the target text content in the view interface cannot be triggered.
Referring to fig. 5, fig. 5 is a schematic page display diagram provided in the embodiment of the present application, as shown in fig. 5, as a user slides contents of an article, a relative position of a target text content 501 in a view interface changes, when the target text content appears in the view interface, that is, when a terminal identifies a buried point corresponding to the target text content, a process from an appearance portion to an appearance entirety of an indication information 502 indicating "underline" of the target text content is displayed, and when the indication information appears in the view interface as a whole, a presentation information 503 capable of triggering insertion of presenting a hidden content is presented.
In some embodiments, when the target text content in the content is at the view interface, the indication information of the target text content can be further presented by: when the target text content in the content is in the target area in the view interface, presenting the indication information of the target text content;
correspondingly, the terminal can also determine the target area by the following method: acquiring a text height corresponding to the target text content, a position height of the target text content in the view interface and a visual height of the view interface; taking half of the visible height as the reference height of the corresponding target text content; and when the difference value of the position height and half of the text height is lower than the reference height, determining that the target text content in the content is in the target area of the view interface.
Here, when the target text content of the article is presented in the target area of the view interface, for example, when the target text content is presented in the middle-upper position of the view interface, the indication information of the target text content is presented, wherein the indication information can be presented in the above dynamic presentation manner, that is, the process from the appearance part to the appearance whole of the indication information of the target text content is presented; accordingly, the terminal can insert and display the hidden content in the area associated with the target text content in the view interface when receiving the triggering operation for the indication information by the following modes: after the indication information is entirely presented in the view interface, when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface.
Referring to fig. 6, fig. 6 is a schematic page display diagram provided in the embodiment of the present application, and as shown in fig. 6, when the target text content 601 is at an upper-middle position in the view interface, indication information of the target text content is presented, specifically, an indication information 602 of "underline" showing the target text content is a process from an appearance portion to an appearance entirety, and when the indication information is entirely presented in the view interface, a prompt information 603 capable of triggering insertion and presentation of hidden content is presented.
In some embodiments, the indication of the target text content may also be presented by: in the view interface, the indication information of the target text content is presented through a bubble type card floating layer; alternatively, the indication information of the target text content is presented through a floating window floating above the view interface.
Referring to fig. 7-8, fig. 7-8 are schematic diagrams of display interfaces provided by an embodiment of the present application, in fig. 7, in a view interface 701, indication information 703 of target text content 702 is presented through a bubble-type card floating layer, in practical applications, the bubble-type card floating layer is movable in the view interface, the size of the card floating layer can be set according to practical applications, when the indication information is more, a larger card floating layer can be presented to completely display the indication information, or a smaller card floating layer can be presented to display partial indication information, in this case, the card floating layer presents a progress pull-down bar, and the remaining indication information can be displayed by pulling the progress pull-down bar. In fig. 8, the indication information 803 corresponding to the target text content 802 is presented through the floating window floating above the view interface 801, wherein the presentation position of the floating window on the view interface moves synchronously with the sliding operation of the user.
In some embodiments, the indication of the target text content may also be presented by: presenting a webpage link corresponding to the target text content, and taking the webpage link as indication information; accordingly, the terminal can insert and display the hidden content in the area associated with the target text content in the view interface when receiving the triggering operation for the indication information by the following modes: when a trigger operation for the webpage link is received, the hidden content indicated by the webpage link is inserted and displayed in the area associated with the target text content in the view interface.
Referring to fig. 9, fig. 9 is a schematic view of a display interface provided in an embodiment of the present application, in fig. 9, in a view interface 901, indication information 903 of a web page link is presented in a target area (e.g., an adjacent position) associated with target text content 902, when a user triggers the indication information 903, a terminal, in response to the triggering operation, acquires hidden content indicated by the indication information 903, and inserts and displays the acquired hidden content in the area associated with the target text content in the view interface.
In some embodiments, the indication of the target text content may also be presented by: presenting a graphic code corresponding to the target text content, and taking the graphic code as indication information; accordingly, the terminal can insert and display the hidden content in the area associated with the target text content in the view interface when receiving the triggering operation for the indication information by the following modes: when a recognition operation for the graphic code is received, the hidden content indicated by the graphic code is inserted and displayed in the area associated with the target text content in the view interface.
Referring to fig. 10, fig. 10 is a schematic view of a display interface provided in an embodiment of the present application, in fig. 10, in a view interface 1001, an indication information 1003 of a graphic code is presented in a target area (e.g., an adjacent position) associated with a target text content 1002, and when a user triggers, for example, a long press of the indication information 1003, a terminal identifies the indication information 1003 in response to the triggering operation, so as to insert and display an identified hidden content in the area associated with the target text content in the view interface.
Step 103: and when a trigger operation for the indication information is received, inserting and displaying the hidden content in an area associated with the target text content in the view interface.
In some embodiments, when a user looks at indication information corresponding to a target text content in an article in a current view interface, the indication information is not necessarily triggered, so when a terminal requests to obtain related content of the article from a server, the server may only return the content of the article and tag information for the target text content to the terminal, and does not need to return hidden content corresponding to the target text content to the terminal, in this case, if the user triggers the indication information, the terminal needs to request to obtain the hidden content indicated by the indication information from the server in the following manner:
sending an acquisition request aiming at the hidden content, and acquiring an article identifier of an article carried in the request, wherein the article identifier is used for searching the content of the article and acquiring the hidden content corresponding to the target text content; hidden content corresponding to the target text content is received.
In practical application, all contents of an article, including hidden contents corresponding to target text contents, are stored in a server, when a user triggers indication information corresponding to the target text contents in the article, a terminal sends an acquisition request for acquiring the hidden contents corresponding to the target text contents to the server, the server screens the hidden contents corresponding to the target text contents in the article from the article identification carried in the acquisition request, and returns the screened hidden contents corresponding to the target text contents to the terminal for presentation.
In some embodiments, the terminal may enable the hidden content to be inserted and displayed in the area associated with the target text content in the view interface by: acquiring a target position of target text content in a view interface; and displaying the process that the hidden content gradually expands downwards from a preset distance below the target position, so that the completely expanded hidden content is inserted and displayed in an area associated with the target text content in the view interface.
In some embodiments, the terminal may present the movement process of the other content by: along with the gradual expansion of the hidden contents, the process that other contents below the target position in the view interface move downwards is displayed; wherein, the distance of the other contents moving downwards is the expansion height of the corresponding hidden contents.
Referring to fig. 11, fig. 11 is a schematic view of a display interface provided in the embodiment of the present application, as shown in fig. 11, when a terminal identifies a target text content 1102 in a view interface 1101, a process is performed in which the target text content 1102 is acquired at a target position X of the view interface 1101, a hidden content 1103 is displayed and starts at a preset distance (e.g., several pixels) Y below the target position X, and the hidden content 1103 gradually expands downward, when the hidden content 1103 is completely expanded, the completely expanded hidden content 1103 is inserted into an area associated with the target text content, and since an expansion height corresponding to the completely expanded hidden content 1103 is Z when the hidden content 1103 is completely expanded, other content originally located in the area will gradually move downward to the distance Z along with the gradual expansion of the hidden content 1103.
Referring to fig. 12A to 12C, fig. 12A to 12C are schematic diagrams of a display interface provided in an embodiment of the present application, in fig. 12A, hidden content inserted and displayed in an area associated with target text content in a view interface is a picture, in fig. 12B, hidden content inserted and displayed in an area associated with target text content in a view interface is a loop animation, and in fig. 12C, hidden content inserted and displayed in an area associated with target text content in a view interface is an H5 link.
In some embodiments, after the terminal inserts and displays the hidden content in the area associated with the target text content in the view interface, the hidden information can be canceled by:
in response to a trigger operation for the target area, canceling the presentation of the hidden information; the target area is the area other than the area associated with the target text content in the view interface.
Here, when the user triggers any region other than the region associated with the target text content, a cancel instruction for canceling the presentation of the hidden content may be triggered, and the terminal cancels the presentation of the hidden content in response to the trigger instruction, and meanwhile, the other content that originally moved down may be moved upward to return to the original position.
For example, in fig. 11, when the user triggers any region of the view interface 1101 other than the region where the hidden content 1103 is located, the hidden content 1103 may be canceled from being presented, and other content moving downward as the hidden content 1103 expands will move upward by a distance Z to the original position (e.g., next to the target position X).
In some embodiments, the terminal may also present the hidden content by: presenting hidden contents corresponding to target text contents through a content interface with preset transparency; wherein, the content interface and the view interface corresponding to the information flow are independent. The content interface has certain transparency, is positioned above the view interface, and can view the content presented in the view interface through the content interface; therefore, the hidden content is presented through the content interface with certain transparency, so that the user can see more information, and the requirement of the user on quickly browsing the information is met; meanwhile, along with the sliding operation of the user, the presentation position of the content interface on the view interface synchronously moves.
In some embodiments, when the user clicks the indication information, the terminal may further obtain a material for adding a border of the view interface to form a content-bordered effect of the article, see fig. 12D-12E, where fig. 12D-12E are schematic diagrams of the display interface provided in the embodiments of the present application, in fig. 12D, the border is completely covered on the view interface, and in fig. 12E, the border effect is only presented in a partial area in the view interface.
Through the method, the hidden content corresponding to the text content of the article can be presented in the view interface, and the emotion transfer dimension is enriched while the content presented in the article presentation process is enriched; meanwhile, hidden content corresponding to the target text content is inserted into the view interface, and other content is correspondingly and movably adapted, so that the hidden content is closely combined with the content of the article, the situation transmitted by the target text content is well restored, more immersive reading experience is shown for the user, the reading duration, viscosity and retention of the user are effectively improved, the user can generate more dimensional cognition and imagination space for the article, and the reading experience of the user is improved.
Next, continuing to describe the article processing method provided in the embodiment of the present application, referring to fig. 13, fig. 13 is an optional flowchart of the article processing method provided in the embodiment of the present application, where a reading client is installed on a terminal, and a server corresponding to the reading client is described with reference to the steps shown in fig. 13.
Step 201: the server extracts the text content of the article to obtain at least two text segments forming the content of the article.
Step 202: the server acquires the interest degree of the target user aiming at each text segment, and determines the text segment corresponding to the interest degree exceeding the interest degree threshold value as the target text content in the content.
Through the steps, before the article is pushed to the terminal for each article (or each novel), the server firstly extracts the hot text segments or keywords from the content of the article to obtain at least one hot text segment or keyword included in the article, the obtained hot text segment or keyword is used as the target text content, after the target text content in the article is identified, the server obtains the materials corresponding to the target text content, such as static pictures, dynamic pictures (such as gif pictures), videos, audios, webpage links and the like, the materials are used for forming corresponding hidden content, and the materials are stored in a material library, wherein the target text content and the materials have one-to-one correspondence.
Step 203: the server returns the content of the article and the target text content in the content to the terminal.
Step 204: and the terminal buries points at the position corresponding to the target text content in the article based on the target text content so as to mark the position of the target text content.
Through the steps, for each article, the background server stores the content of the article, the target text content in the content and the material corresponding to the target text content; and the terminal at the front end buries the article based on the content of the article pushed by the server and the target text content.
Step 205: and the terminal responds to the content viewing operation aiming at the article and presents the content of the article in the view interface.
Step 206: when the buried point is identified, the terminal presents indication information of the target text content.
Here, when a buried point is identified in the view interface, such as a content of a sliding article to the buried point, the terminal identifies corresponding target text content (such as a popular text segment or a keyword), and triggers a display instruction of indication information, and the terminal presents the indication information of the target text content in response to the display instruction, wherein the indication information is used for indicating that hidden content corresponding to the target text content exists.
Step 207: and the terminal responds to the trigger operation aiming at the indication information and sends an acquisition request of the hidden content to the server.
Step 208: the server determines the hidden content indicated by the indication information based on the acquisition request.
Step 209: the server returns the hidden content to the terminal.
Step 210: the terminal inserts and displays the hidden content in the area associated with the target text content in the view interface.
Through the steps, all the contents of the article including the hidden contents corresponding to the target text contents are stored in the server, when the user triggers the indication information, the terminal sends an acquisition request for acquiring the hidden contents corresponding to the target text contents to the server, the server obtains the hidden contents corresponding to the target text contents in the article through screening based on the article identification carried in the acquisition request, and returns the hidden contents corresponding to the target text contents obtained through screening to the terminal for displaying.
In the following, an exemplary application of the embodiment of the present application in an application scenario in which an article is a novel and a user reads the novel will be described.
When a user browses a novel in a view interface, the novel content is slid from top to bottom, when a popular text segment (i.e., the target text content) of the novel is presented on a half screen (i.e., the target area) of a current view interface, underline or other schematic indication information (visual form is not limited) appears below the popular text segment, and the indication information can be dynamically displayed, for example, the process from the appearance part to the appearance of the whole indication information is displayed, when the indication information is displayed integrally, the user clicks the indication information, the content of an article can be adapted to move up and down, and the hidden content is inserted and displayed in an area associated with the popular text segment in the view interface, that is, the hidden content is displayed in the text segment, wherein the hidden content is not limited, and can be in the form of media such as static pictures, dynamic pictures, videos, audio and the like.
In actual implementation, the target position of the popular text segment in the view interface can be obtained firstly; and the process of gradually expanding the displayed hidden contents downwards from a preset distance below the target position so that the completely expanded hidden contents are inserted and displayed in the area associated with the hot text section in the view interface, and the process of downwards moving other contents below the target position in the view interface along with the gradual expansion of the hidden contents is performed, wherein the downwards moving distance of the other contents is the expansion height of the corresponding hidden contents.
As shown in fig. 11, when the terminal identifies a hot text segment 1102 in the view interface 1101, a process that the hot text segment 1102 gradually expands downwards at a target position X of the view interface 1101 is obtained, the hidden content 1103 that is completely expanded starts at a preset distance (e.g., several pixels) Y below the target position X is displayed, when the hidden content 1103 is completely expanded, the completely expanded hidden content 1103 is inserted into an area 1104 associated with the hot text segment, and since an expansion height corresponding to the completely expanded hidden content 1103 is Z, other content originally located in the area 1104 gradually moves downwards to the distance Z along with the gradual expansion of the hidden content 1103.
In practical application, for each novel, before the novel is pushed to a terminal, a server firstly extracts popular text segments in the novel content, then obtains materials corresponding to the popular text segments, the materials are used for forming corresponding hidden content, and the materials are stored in a material library, wherein the popular text segments and the materials have one-to-one correspondence; then, the server stores the novel content, the hot text segment and the material corresponding to the hot text segment and then pushes the stored material to the terminal, and the terminal buries the novel on the basis of the novel content and the hot text segment pushed by the server; when the embedded point is identified in the view interface, the terminal identifies the hot text segment and triggers a display instruction of the indication information, the terminal responds to the display instruction and presents the indication information of the hot text segment, when the user clicks the indication information, the terminal is triggered to communicate with the server, and the terminal requests the server for the hidden content indicated by the indication information.
Referring to fig. 14, fig. 14 is a schematic view of article processing provided in the embodiment of the present application, and as shown in fig. 14, at a terminal side, an operator performs embedding on hot segments 1 to N in a novel content, respectively, to obtain corresponding embedding points 1 to embedding points N; on the server side, the operator saves the acquired materials corresponding to each hot section to a material library, that is, the materials corresponding to the hot sections 1 to N are respectively the materials 1 to N in sequence, wherein the materials can be in the forms of static pictures, dynamic pictures (such as gif pictures), videos, audios, webpage links and the like, and the hot sections and the materials have one-to-one correspondence. When a user slides to the hot text segment N at the terminal and triggers the indication information corresponding to the N, a communication link between the terminal and the server is established, so that the corresponding material N is pulled through the established communication link to generate corresponding hidden content based on the material N, and the hidden content is inserted and displayed in the view interface.
Referring to fig. 15, fig. 15 is a schematic view of article processing provided in the embodiment of the present application, as shown in fig. 15, in an actual application, a terminal or a server may further extract and mark a keyword or a keyword sentence in a novel, obtain materials corresponding to the keyword or the keyword sentence, and store the obtained materials in a material library of the server, for example, obtain words and sentences 1 to N having hidden contents, upload corresponding materials 1 to N in the material library, where the keyword or the keyword sentence and the materials have a one-to-one correspondence relationship. When a user slides to the keyword N at the terminal and triggers the indication information corresponding to the N, a communication link between the terminal and the server is established, so that the corresponding material N is pulled through the established communication link to generate corresponding hidden content based on the material N, and the hidden content is inserted and displayed in the view interface.
For example, two keywords of "car (N1)" and "bubble surface (N2)" are marked in advance, the material corresponding to "car (N1)" is "audia a6 (N1)", the material corresponding to "bubble surface (N2)" is "kanmaster old jar pickled vegetable surface (N2)", and the obtained material is stored in the material library, corresponding indication information is triggered as long as the keyword of "car" or "bubble surface" is displayed in the view interface of the terminal, and when the indication information is clicked by a user, the corresponding materials of "audia 6 (N1)", and "kanmaster old jar pickled vegetable surface (N2)" are pulled and displayed.
Through the mode, an environment with strong immersion, high fusion degree with the novel plot, strong expansibility and rich display forms is created for the user, when the user reads certain hot paragraphs and words and sentences, the function is triggered, more hidden or surprised novel plot reduction fragments can be found, the novel plot can be reduced in the mode scenes of simulating comics or conversation, simulating chatting, simulating friends and the like, the reading duration, viscosity and retention of the user can be effectively improved, the user can generate more dimensional cognitive and imagination spaces for the novel, and the creation and development of novel adaptation, novel continuation, novel range and the like are facilitated; and has great commercialization potential, for example, the novel words and sentences are replaced by crown name names, advertisement materials are implanted in the reduction content, and the novel content and the commercialized content can be well combined.
Continuing with the exemplary structure of the article processing apparatus 555 implemented as a software module provided in this embodiment of the present application, in some embodiments, referring to fig. 16, fig. 16 is an optional structural schematic diagram of the article processing apparatus provided in this embodiment of the present application, as shown in fig. 16, the article processing apparatus provided in this embodiment of the present application includes:
a first presentation module 5551, configured to present content of an article in a view interface in response to a content slide operation for the article;
a second presentation module 5552, configured to, when a target text content in the contents is in the view interface, present indication information of the target text content, where the indication information indicates that there is hidden content corresponding to the target text content;
an inserting module 5553, configured to insert and display the hidden content in an area associated with the target text content in the view interface when a triggering operation for the indication information is received.
In some embodiments, the first presentation module is further configured to obtain a current article reading mode in response to a content viewing operation for an article;
and if the current article reading mode is the automatic reading mode, presenting the content corresponding to the current reading position in the view interface, and automatically updating the content of the presented article.
In some embodiments, the first presentation module is further configured to present, in response to the sliding operation when the content viewing operation is a sliding operation for the article, content in the article in a sliding state in a view interface; or,
and when the content viewing operation is a clicking operation for the article, responding to the clicking operation, turning pages of the article in a view interface, and presenting the content of the article after the pages are turned.
In some embodiments, the second presentation module is further configured to present, when a target text content in the content is in the view interface, a process from an appearance part to an appearance whole of the target text content;
the inserting module is further configured to insert and display the hidden content in an area associated with the target text content in the view interface when a trigger operation for the indication information is received after the indication information appears in the view interface as a whole.
In some embodiments, the second presentation module is further configured to present indication information of a target text content in the content when the target text content is in a target area in the view interface;
the device further comprises:
the determining module is used for acquiring a text height corresponding to the target text content, a position height of the target text content in the view interface and a visual height of the view interface;
taking the difference value of half of the visible height as the reference height corresponding to the target text content;
and when the difference height between the position height and half of the text height is not lower than the reference height, determining that the target text content in the content is in the target area of the view interface.
In some embodiments, the second rendering module is further configured to display the target text content in a target display style, where the target display style is used to distinguish from other content in the view interface except for the target text content.
In some embodiments, the second rendering module is further configured to render, in the view interface, the indication information of the target text content through a bubble-type card floating layer; or,
and presenting indication information of the target text content through a floating window floating above the view interface.
In some embodiments, the second presenting module is further configured to present a web page link corresponding to the target text content, and use the web page link as the indication information;
correspondingly, the inserting module is further configured to insert and display hidden content indicated by the web page link in an area associated with the target text content in the view interface when a triggering operation for the web page link is received.
In some embodiments, the second presentation module is further configured to dynamically present an underline of the target text content below each line of the target text content in the view interface, where the underline is used as the indication information.
In some embodiments, the insertion module is further configured to obtain a target position of the target text content in the view interface;
and displaying the process that the hidden content gradually expands downwards from a preset distance below the target position, so that the completely expanded hidden content is inserted and displayed in an area associated with the target text content in the view interface.
In some embodiments, the apparatus further comprises:
the display module is used for displaying the process that other contents below the target position in the view interface move downwards along with the gradual expansion of the hidden contents;
wherein the other content moves downwards by the expansion height of the corresponding hidden content.
In some embodiments, after said inserting and displaying the hidden content in the area associated with the target text content in the view interface, the apparatus further comprises:
a cancellation module, configured to cancel presentation of the hidden information in response to a trigger operation for a target area;
the target area is the area other than the area associated with the target text content in the view interface.
In some embodiments, the apparatus further comprises:
the recognition module is used for extracting text content of the article to obtain at least two text segments forming the content of the article;
obtaining the interest degree of the target user aiming at each text fragment;
and determining the text segment corresponding to the interestingness exceeding the interestingness threshold value as the target text content in the content.
In some embodiments, before sliding the content of the article in the view interface, the apparatus further comprises:
an obtaining module, configured to send an obtaining request for content of the article, where the obtaining request carries an article identifier of the article, and the article identifier is used for finding the content of the article and hidden content corresponding to target text content in the content;
receiving the content of the article and hidden content corresponding to target text content in the content;
and performing material replacement to generate indication information of the target text content based on the hidden content.
Embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the article processing method described above in the embodiments of the present application.
Embodiments of the present application provide a computer-readable storage medium storing executable instructions, which when executed by a processor, cause the processor to execute the article processing method provided by the embodiments of the present application.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, executable instructions may correspond, but do not necessarily have to correspond, to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims (15)
1. A method for processing articles, the method comprising:
in response to a content viewing operation for an article, presenting content of the article in a view interface;
when target text content in the content is in the view interface, presenting indication information of the target text content, wherein the indication information is used for indicating that hidden content corresponding to the target text content exists;
when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface.
2. The method of claim 1, wherein presenting the indication of the target text content when the target text content in the content is at the view interface comprises:
when the target text content in the content is in the view interface, displaying the indication information of the target text content from the appearance part to the appearance whole;
when a trigger operation for the indication information is received, inserting and displaying the hidden content in an area associated with the target text content in the view interface, wherein the trigger operation comprises:
after the indication information appears in the view interface in whole, when a trigger operation for the indication information is received, the hidden content is inserted and displayed in an area associated with the target text content in the view interface.
3. The method of claim 1, wherein presenting the indication of the target text content when the target text content in the content is at the view interface comprises:
when target text content in the content is in a target area in the view interface, presenting indication information of the target text content;
the method further comprises the following steps:
acquiring a text height corresponding to the target text content, a position height of the target text content in the view interface and a visual height of the view interface;
taking the difference value of half of the visible height as the reference height corresponding to the target text content;
and when the difference value of the position height and half of the text height is not lower than the reference height, determining that the target text content in the content is in the target area of the view interface.
4. The method of claim 1, wherein the method further comprises:
and displaying the target text content by adopting a target display style, wherein the target display style is used for distinguishing from other contents except the target text content in the view interface.
5. The method of claim 1, wherein said presenting the indication of the target text content comprises:
in the view interface, presenting indication information of the target text content through a bubble type card floating layer; or,
and presenting indication information of the target text content through a floating window floating above the view interface.
6. The method of claim 1, wherein said presenting the indication of the target text content comprises:
presenting a webpage link corresponding to the target text content, and taking the webpage link as the indication information;
when a trigger operation for the indication information is received, inserting and displaying the hidden content in an area associated with the target text content in the view interface, wherein the trigger operation comprises:
when a trigger operation for the webpage link is received, inserting and displaying hidden content indicated by the webpage link in an area associated with the target text content in the view interface.
7. The method of claim 1, wherein said presenting the indication of the target text content comprises:
and dynamically presenting an underline of the target text content below each line of the target text content in the view interface, wherein the underline is used as the indication information.
8. The method of claim 1, wherein said inserting and displaying the hidden content in the area associated with the target text content in the view interface comprises:
acquiring a target position of the target text content in the view interface;
and displaying the process that the hidden content gradually expands downwards from a preset distance below the target position, so that the completely expanded hidden content is inserted and displayed in an area associated with the target text content in the view interface.
9. The method of claim 8, further comprising:
along with the gradual expansion of the hidden contents, showing the process that other contents below the target position in the view interface move downwards;
wherein the other content moves downwards by the expansion height of the corresponding hidden content.
10. The method of claim 1, wherein after the inserting and displaying the hidden content in the area associated with the target text content in the view interface, the method further comprises:
canceling the presentation of the hidden information in response to a trigger operation for a target area;
the target area is the area other than the area associated with the target text content in the view interface.
11. The method of claim 1, wherein the method further comprises:
extracting text content of the article to obtain at least two text segments forming the content of the article;
obtaining the interest degree of the target user aiming at each text fragment;
and determining the text segment corresponding to the interestingness exceeding the interestingness threshold value as the target text content in the content.
12. The method of claim 1, wherein prior to presenting the content of the article in the view interface, the method further comprises:
sending an acquisition request aiming at the content of the article, wherein the acquisition request carries an article identifier of the article, and the article identifier is used for searching the content of the article and hidden content corresponding to target text content in the content;
receiving the content of the article and hidden content corresponding to target text content in the content;
and performing material replacement to generate indication information of the target text content based on the hidden content.
13. An article processing apparatus, comprising:
the first presentation module is used for responding to content viewing operation aiming at the article and presenting the content of the article in a view interface;
a second presentation module, configured to, when a target text content in the content is in the view interface, present indication information of the target text content, where the indication information is used to indicate that there is hidden content corresponding to the target text content;
and the inserting module is used for inserting and displaying the hidden content in an area associated with the target text content in the view interface when a triggering operation aiming at the indication information is received.
14. An electronic device, comprising:
a memory for storing executable instructions;
a processor for implementing the article processing method of any one of claims 1 to 12 when executing the executable instructions stored in the memory.
15. A computer-readable storage medium having stored thereon executable instructions for, when executed by a processor, implementing the article processing method of any one of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011230990.XA CN112214972A (en) | 2020-11-06 | 2020-11-06 | Article processing method, article processing device, article processing equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011230990.XA CN112214972A (en) | 2020-11-06 | 2020-11-06 | Article processing method, article processing device, article processing equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112214972A true CN112214972A (en) | 2021-01-12 |
Family
ID=74056754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011230990.XA Pending CN112214972A (en) | 2020-11-06 | 2020-11-06 | Article processing method, article processing device, article processing equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112214972A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115033148A (en) * | 2022-06-13 | 2022-09-09 | 北京字跳网络技术有限公司 | Document display method and device, electronic equipment and storage medium |
-
2020
- 2020-11-06 CN CN202011230990.XA patent/CN112214972A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115033148A (en) * | 2022-06-13 | 2022-09-09 | 北京字跳网络技术有限公司 | Document display method and device, electronic equipment and storage medium |
CN115033148B (en) * | 2022-06-13 | 2024-04-19 | 北京字跳网络技术有限公司 | Document display method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10185782B2 (en) | Mode identification for selective document content presentation | |
US20160034437A1 (en) | Mobile social content-creation application and integrated website | |
CN104035753A (en) | Double-WebView customized page display method and system | |
CN107209756B (en) | Supporting digital ink in markup language documents | |
CN104145265A (en) | Systems and methods involving features of seach and/or search integration | |
CN112230838A (en) | Article processing method, article processing device, article processing equipment and computer readable storage medium | |
WO2016201571A1 (en) | System and method for generating an electronic page | |
KR20190084725A (en) | Display apparatus and Method for providing a content thereof | |
CN110955819B (en) | Recommendation content display method, generation method, display device and generation device | |
CN106649518B (en) | Method and device for processing dynamic information data | |
CN115225952A (en) | Video playing control method and device, electronic equipment, storage medium and product | |
CN106155507A (en) | A kind of page content display method and electronic equipment | |
CN111914193A (en) | Method, device and equipment for processing media information and computer readable storage medium | |
CN110909274A (en) | Page browsing method and device and electronic equipment | |
CN113378084A (en) | Page display method and device, electronic equipment and computer readable storage medium | |
CN108628870A (en) | A kind of web preview method and apparatus | |
CN112214972A (en) | Article processing method, article processing device, article processing equipment and computer readable storage medium | |
CN108874758B (en) | Note processing method and device, and device for note processing | |
CN107784037B (en) | Information processing method and device, and device for information processing | |
CN111934985A (en) | Media content sharing method, device and equipment and computer readable storage medium | |
CN115757840A (en) | Multimedia content display method, device, equipment and storage medium | |
CN106776634A (en) | A kind of method for network access, device and terminal device | |
CN104899287A (en) | Webpage display method and device | |
CN116137662A (en) | Page display method and device, electronic equipment, storage medium and program product | |
JP5638051B2 (en) | Information providing system, information providing apparatus, information providing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |