CN109086366B - Recommended news display method, device and equipment in browser and storage medium - Google Patents

Recommended news display method, device and equipment in browser and storage medium Download PDF

Info

Publication number
CN109086366B
CN109086366B CN201810803100.6A CN201810803100A CN109086366B CN 109086366 B CN109086366 B CN 109086366B CN 201810803100 A CN201810803100 A CN 201810803100A CN 109086366 B CN109086366 B CN 109086366B
Authority
CN
China
Prior art keywords
typesetting
news
picture
page
recommended
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810803100.6A
Other languages
Chinese (zh)
Other versions
CN109086366A (en
Inventor
曹辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Wuhan Co Ltd
Original Assignee
Tencent Technology Wuhan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Wuhan Co Ltd filed Critical Tencent Technology Wuhan Co Ltd
Priority to CN201810803100.6A priority Critical patent/CN109086366B/en
Publication of CN109086366A publication Critical patent/CN109086366A/en
Application granted granted Critical
Publication of CN109086366B publication Critical patent/CN109086366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a recommended news display method, device and equipment in a browser and a storage medium, and relates to the field of computer networks. The method comprises the following steps: displaying the first recommended news in a browsing window of the browser in a reading mode; receiving a sliding signal on a browsing window; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. According to the technical scheme, under the condition that a reading mode does not need to be exited, the switching of recommended news is realized, man-machine interaction steps in the browser when the recommended news is switched are reduced, and man-machine interaction efficiency is improved.

Description

Recommended news display method, device and equipment in browser and storage medium
Technical Field
The embodiment of the application relates to the field of computer networks, in particular to a recommended news display method, device and equipment in a browser and a storage medium.
Background
The immersive reading is a reading mode that only the content to be read in the reading window is free of interference of additional factors such as status bars, advertisements, irrelevant links and the like.
On terminals such as smartphones, tablet computers, etc., the user may enter immersive reading through the browser while viewing the news of interest. The immersive reading provided in the related art is to display news in a manner that a plurality of news forms a waterfall stream list in a mode of combining titles and thumbnails in an application program, and a user enters the immersive reading by clicking on the news of interest.
The reading content switching mode of the immersion reading mode requires multiple clicking operations of a user, and the man-machine interaction efficiency of the whole switching process is low.
Disclosure of Invention
The embodiment of the application provides a recommended news display method, device and equipment in a browser and a storage medium, which can solve the problem of lower man-machine interaction efficiency caused by a reading content switching mode of an immersive reading method in the related technology. The technical scheme is as follows:
in one aspect, a method for displaying recommended news in a browser is provided, the method comprising:
displaying a first recommended news in a browsing window of a browser in a reading mode, wherein the reading mode is a display mode for hiding display elements irrelevant to the first recommended news;
Receiving a sliding signal on a browsing window;
and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal.
In another aspect, there is provided a recommended news display device in a browser, the device including:
The display module is used for displaying the first recommended news in a browsing window of the browser in a reading mode, wherein the reading mode is a display mode of hiding display elements irrelevant to the first recommended news;
the receiving module is used for receiving the sliding signal on the browsing window;
And the switching module is used for switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal.
In another aspect, a terminal is provided, which is characterized in that the terminal includes a processor and a memory, where at least one instruction, at least one program, a code set, or an instruction set is stored in the memory, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the recommended news display method in a browser according to any one of the first aspect and the optional embodiments of the application.
In another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by the processor to implement the recommended news display method in a browser according to any one of the first aspect of the application and its alternative embodiments described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
By receiving the sliding signal on the browsing window of the browser, the first recommended news displayed in the reading mode in the browsing window is switched to the second recommended news displayed in the reading mode, so that a user does not need to withdraw from reading of the current recommended news and click to enter reading of the next recommended news, the operation steps of the user when the user switches the reading content are reduced, the user can always keep in an immersive reading state, high efficiency of man-machine interaction is guaranteed, and meanwhile, the immersive reading experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of an environment in which a recommended news display method in a browser is implemented, provided in an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method for displaying recommended news in a browser according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 4 is an interface diagram of a method for displaying recommended news in a browser according to an exemplary embodiment of the present application;
FIG. 5 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 6 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 7 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 8 is a flowchart of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 9 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 10 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 11 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 12 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 13 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 14 is an interface diagram of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 15 is a flowchart of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application;
FIG. 16 is a block diagram of a recommended news display device in a browser provided by an exemplary embodiment of the present application;
FIG. 17 is a block diagram of an electronic device provided in an exemplary embodiment of the application;
fig. 18 is a schematic diagram of a server according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
First, several terms involved in the present application are explained:
And (3) a browser: refers to an Application program (App) capable of displaying hypertext markup language (Hyper Text Markup Language) file contents provided by a web server or a file system and enabling a user to interact with the file. The browser can be an independently running App or a built-in browser embedded in other apps. In the embodiment of the application, an App in which the browser runs independently is exemplified.
Immersive reading: a reading mode for displaying only text content of content to be read in a reading window and not displaying other status bars, advertisements, links and other elements irrelevant to the content to be displayed.
Fig. 1 is a block diagram of an implementation environment of a method for displaying recommended news in a browser according to an exemplary embodiment of the present application. The system comprises: the terminal 11, the server cluster 12 and the communication network 13, and the terminal 11 and the server cluster 12 are connected through the communication network 13.
The terminal 11 may be a smart phone, a tablet computer, an electronic book reader, a laptop portable computer, a desktop computer, etc. The terminal 11 has an operating system and at least one application installed therein. The operating system may be an Android operating system or an apple (IOS) operating system. The terminal 11 has installed and running therein an application program, which is a browser program.
The server cluster 12 may be one or more web servers that are typically set by a browser or provider for the browser home page. Alternatively, the services of analyzing the history browsing record, providing candidate recommended news, screening candidate recommended news and the like may be provided by one web server, or may be provided by a plurality of web servers together.
The terminal 11 and the server cluster 12 are connected via a communication network 13. The communication network 13 may be a wired network or a wireless network; the wired network may be a metropolitan area network, a local area network, a fiber optic network, etc.; the wireless network may be a mobile communication network or a wireless fidelity network (WIRELESS FIDELITY, WIFI).
Illustratively, the user opens a browser in the terminal 11, and the operating system in the terminal 11 sends a recommendation request to the server cluster 12 through the communication network 13, where the recommendation request carries user account information. The server cluster 12 acquires a history browsing record corresponding to the user account, and analyzes the history browsing record to obtain browsing preference of the user corresponding to the user account; screening n candidate recommended news from news provided by a webpage server according to browsing preference of a user corresponding to a user account, wherein n is a positive integer; n candidate recommended news are transmitted to the terminal 11 through the communication network 13. The terminal 11 receives n candidate recommended news transmitted by the server cluster 12, randomly determines first recommended news from the n candidate recommended news, and displays the first recommended news in a web browsing mode in a browsing window of a browser; the webpage browsing mode is a browsing mode in which a browser typesets and displays webpages according to a conventional typesetting mode.
Optionally, the server cluster 12 obtains a history browsing record corresponding to the user account, which may be obtained from a history browsing record corresponding to the user account stored in the terminal 11, or a history browsing record corresponding to the user account uploaded to the storage server by the terminal 11 at a fixed time; wherein the server cluster 12 comprises storage servers. The storage manner of the history browsing record is not limited here. In the following embodiments, a history of browsing is stored in the terminal for illustration.
Fig. 2 is a flowchart of a method for displaying recommended news in a browser according to an exemplary embodiment of the present application. The method is applied to the terminal provided with the browser, and comprises the following steps:
Step 101, displaying the first recommended news in a browsing window of the browser in a reading mode.
The user opens a browser on the terminal, a user account is logged in the browser, the first recommended news is displayed in a browsing window of the browser in a reading mode, and the reading mode is a display mode of hiding display elements irrelevant to the first recommended news.
Optionally, the first recommended news is determined by the terminal randomly in n candidate recommended news; the n candidate recommended news are recommended after the server analyzes the browsing preference of the user corresponding to the user account according to the historical browsing record corresponding to the user account.
Alternatively, the first recommended news may be at least one of news in a current affairs, entertainment, sports, business, scientific, fashion, and history.
Step 102, receiving a sliding signal on a browse window.
And the terminal receives a sliding signal triggered on the browsing window, wherein the sliding signal is used for switching the first recommended news in the browsing window into the second recommended news displayed in a reading mode. The sliding signal is generated by a sliding gesture on a touch screen of the terminal; alternatively, the slide signal may be a left-right slide signal or an up-down slide signal triggered in the browse window.
And step 103, switching the first recommended news in the browsing window to the second recommended news displayed in the reading mode according to the sliding signal.
And the terminal switches the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. Optionally, the second recommended news is determined by the terminal randomly among n candidate recommended news; the n candidate recommended news are recommended after the server analyzes the browsing preference of the user corresponding to the user account according to the historical browsing record corresponding to the user account.
Alternatively, the second recommended news may be at least one of news in the college, entertainment, sports, business, scientific, fashion, and historical events.
In summary, in the method for displaying recommended news in the browser provided in the embodiment, the first recommended news is displayed in a reading mode in a browsing window of the browser; receiving a sliding signal on a browsing window; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. According to the technical scheme, the immersion type reading mode is adopted, so that a user can switch to the next recommended news under the condition that the user does not need to exit from the reading mode, and the next recommended news is continuously read, the operation steps of the user when the user switches the reading content are reduced, and the high efficiency of man-machine interaction is ensured. Secondly, the technical scheme adopts an immersive reading scheme, so that the interference of irrelevant information is removed, and the reading experience of a user is improved.
In an alternative embodiment based on fig. 2, fig. 3 is a detailed illustration of the switching of display pages of news content of the recommended news and the switching of the next recommended news in the recommended news display method in the browser. Fig. 3 is a flowchart of a recommended news display method in a browser according to another exemplary embodiment of the present application, which is applied to a terminal installed with a browser, the method including:
step 201, providing a history browsing record corresponding to the user account to the server.
The user opens a browser in the terminal, and logs in a user account in the browser.
The terminal acquires a history browsing record corresponding to a user account in the browser, and sends the history browsing record corresponding to the user account to the server; and the server receives the history browsing record corresponding to the user account. Optionally, the browse record under the user account is a browse record under the user account from the user using the browser.
Step 202, acquiring n candidate recommended news recommended to a user account from a server, wherein n is a positive integer; and displaying the first recommended news in a web page browsing mode in a browsing window of the browser.
Before the terminal obtains n candidate recommended news recommended to the user account from the server, the method comprises the following steps:
The server receives the history browsing record corresponding to the user account; analyzing the historical browsing records to obtain browsing preference of a user corresponding to the user account; screening n candidate recommended news corresponding to the user account according to the browsing preference of the user corresponding to the user account; and sending n candidate recommended news recommended to the user account to the terminal.
Optionally, the server analyzes the historical browsing record corresponding to the user account to obtain a browsing preference of the user corresponding to the user account, and determines n candidate recommended news based on the browsing preference, including: the server sorts the historical browsing records corresponding to the user accounts, and the server determines n candidate recommended news according to the percentage of the browsing quantity of each category to the total browsing quantity. For example, the terminal divides the historical browsing records corresponding to the user account into categories of sports, entertainment, life and the like, counts the news browsing quantity of each category, calculates the percentage of the news browsing quantity of each category to the total news browsing quantity, namely the percentage of each category in n candidate recommended news, and if the sports news browsing quantity is fifty percent of the total news browsing quantity, fifty percent of the n candidate recommended news is sports news.
The terminal obtains n candidate recommended news recommended to the user account from a server; randomly determining a first recommended news from n candidate recommended news; and displaying the first recommended news in a web page browsing mode in a browsing window of the browser.
Optionally, determining the first recommended news from the n recommended news randomly includes: the terminal classifies n candidate recommended news, counts the number of candidate recommended news of each category, sorts the categories according to the number value from large to small, and sequentially acquires candidate recommended news from each category and displays the candidate recommended news in a browsing window; and the terminal determines the first recommended news according to the rule.
Step 203, a trigger signal on a browse window is received.
The terminal receives a trigger signal on the browsing window, and optionally, the trigger signal is generated by a trigger operation corresponding to the browsing window on a terminal screen, and the trigger operation can be at least one of a single click operation, a multi-click operation, a long press operation, a double-finger touch operation and a pressure touch operation.
Wherein the single click operation is a single click operation; the multiple click operation is an operation in which the number of clicks exceeds a predetermined number of times within a first time period; the long press operation is an operation in which the touch screen is pressed for longer than a second time; the double-finger touch operation is an operation of simultaneously clicking the touch screen using double fingers; the pressure touch operation is an operation in which the pressing pressure exceeds a preset pressure. The present embodiment is illustrated with the trigger signal as a click signal.
Step 204, switching the web browsing mode adopted by the browsing window to a reading mode according to the trigger signal; and displaying the first recommended news in a browsing window of the browser in a reading mode.
The terminal switches a webpage browsing mode adopted by the browsing window to a reading mode according to the trigger signal; the reading mode is a display mode for hiding display elements irrelevant to the first recommended news. And the terminal displays the first recommended news in a reading mode in a browsing window of the browser.
Referring to fig. 4 schematically, a user opens a browser on a terminal, and displays a first recommended news in a web browsing mode in a browsing window of the browser, as shown in a left diagram of fig. 4, and buttons such as a search bar, a recommendation, a video, a circle and the like are displayed in the web browsing mode; the terminal receives a trigger signal on the browsing window, such as a click signal on the browsing window; according to the click signal, the web browsing mode adopted by the browsing window is switched to the reading mode, as shown in the right diagram of fig. 4, the display elements irrelevant to the first recommended news are hidden in the reading mode, only the first news content of the first recommended news is displayed, the first news content is typeset again, and illustratively, no picture is displayed in the web browsing mode, and after entering the reading mode, the first news content is typeset again, and the picture is displayed.
Optionally, after displaying the first recommended news in the browsing window of the browser in the reading mode, the method includes:
if the current display page of the news content of the first recommended news is switched to the previous page, step 209 is entered;
if the current display page of the news content of the first recommended news is switched to the next page, step 207 is entered;
if the first recommended news in the browsing window is switched to the second recommended news displayed in the reading mode, step 205 is entered.
Step 205, a sliding signal on the browser is received.
And the terminal receives a sliding signal triggered on the browsing window, wherein the sliding signal is used for switching the first recommended news in the browsing window into the second recommended news displayed in a reading mode. The sliding signal is generated by a sliding gesture on a touch screen of the terminal; alternatively, the slide signal may be a left-right slide signal or an up-down slide signal triggered in the browse window. In this embodiment, the trigger signal is illustrated as an up-slide signal.
After receiving the sliding signal triggered on the browse window, the terminal proceeds to step 206.
Step 206, determining a second recommended news from the n candidate recommended news randomly according to the sliding signal; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode.
The terminal randomly determines a second recommended news from n candidate recommended news corresponding to the acquired user account according to the sliding signal; and displaying the first recommended news in the browsing window as the second recommended news.
Referring to fig. 5 schematically, the terminal displays a first recommended news in a reading mode in a browsing window of the browser; receiving a sliding signal sliding upwards in a browsing window; according to the sliding signal, determining second recommended news in n candidate recommended news randomly; after the second recommended news is obtained, hiding the first recommended news in a sliding way, and displaying the second recommended news in an upward sliding way; as described in the right diagram of fig. 5, the second recommended news is displayed in the browse window.
Step 207, receiving a second page switching signal triggered on the browsing window when displaying the j-th typesetting page of the first recommended news in the browsing window.
The first recommended news comprises k typesetting pages, wherein k is an integer greater than or equal to 2; the terminal displays the j-th typesetting page of the first recommended news in a browsing window of the browser, receives a second page switching signal triggered on the browsing window, wherein j is an integer greater than 1, and j is smaller than or equal to k. Optionally, the second page switch signal is a left-right swipe signal or a left-right edge click signal triggered in the browse window.
After receiving the second page switch signal triggered on the browse window, the terminal proceeds to step 208.
And step 208, displaying the j-1 typesetting page of the first recommended news according to the second page switching signal.
And the terminal displays the j-1 typesetting page of the first recommended news according to the second page switching signal.
Referring to fig. 6 schematically, in fig. 6, the second page switching signal is illustrated as a rightward sliding signal triggered in the browsing window, and the terminal displays the first recommended news in the browsing window in a reading mode, where the first recommended news includes at least three typeset pages. In the left diagram of fig. 6, the terminal displays a second typesetting page of the first recommended news on a browsing window of the browser; generating a rightward sliding gesture on the browsing window, and generating a rightward sliding signal; when a triggered rightward sliding signal is received on the browsing window, the second typesetting page is slid rightward and hidden in the browsing window, the first typesetting page is slid rightward and displayed, and as shown in the right diagram of fig. 6, the first typesetting page of the first recommended news is displayed in the browsing window.
Step 209, receiving a first page switching signal triggered on the browsing window when the ith typesetting page of the first recommended news is displayed in the browsing window.
The first recommended news comprises k typesetting pages, wherein k is an integer greater than or equal to 2; the terminal displays the ith typesetting page of the first recommended news in a browsing window of the browser, receives a first page switching signal triggered on the browsing window, and i is an integer less than or equal to k. Optionally, the first page switching signal corresponds to a second page switching signal, and when the second page switching signal is a rightward sliding signal triggered in the browsing window, the first page switching signal is a leftward sliding signal triggered in the browsing window; or when the second page switching signal is a left sliding signal triggered in the browsing window, the first page switching signal is a right sliding signal triggered in the browsing window; or when the second page switching signal is a right edge clicking signal triggered in the browsing window, the first page switching signal is a left edge clicking signal triggered in the browsing window; or, the second page switching signal is a left edge click signal triggered in the browse window, and the first page switching signal is a right edge click signal triggered in the browse window.
Step 210, displaying the (i+1) th typesetting page of the first recommended news according to the first page switching signal.
And the terminal displays the (i+1) typesetting page of the first recommended news according to the first page switching signal.
Referring to fig. 7 schematically, in fig. 7, the first page switching signal is illustrated as a left sliding signal triggered in a browsing window, and the first recommended news is displayed in a reading mode in the browsing window of the browser, where the first recommended news includes at least three typeset pages. In the left diagram of fig. 7, the terminal displays a second typesetting page of the first recommended news on a browsing window of the browser; generating a left sliding gesture on the browsing window, and generating a left sliding signal; when a triggered left sliding signal is received on the browsing window, the second typesetting page is hidden in the left sliding mode in the browsing window, the third typesetting page is displayed in the left sliding mode, and as shown in the right diagram of fig. 7, the third typesetting page of the first recommended news is displayed in the browsing window.
In summary, in the method for displaying recommended news in the browser provided in the embodiment, the first recommended news is displayed in a reading mode in a browsing window of the browser; receiving a sliding signal on a browsing window; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. According to the technical scheme, the immersive reading mode is adopted, so that a user can switch to the next recommended news under the condition that the user does not need to exit from the reading mode, and the next recommended news is read continuously, the operation steps of the user when switching the reading content are reduced, the high efficiency of man-machine interaction is ensured, meanwhile, the situation that the reading state of the user is interrupted in the reading process is avoided, and the reading experience of the user is improved; secondly, the technical scheme adopts an immersive reading scheme, so that the interference of irrelevant information is removed, and the reading experience of a user is improved.
According to the technical scheme, through analysis of the historical browsing records corresponding to the user accounts, browsing preferences of the user can be better grasped, news of interest to the user is recommended according to the browsing preferences of the user, and news reading quality of the user is improved.
Based on the exemplary embodiment of fig. 3, the first recommended news includes first news content in a teletext. Fig. 8 is a flowchart of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application, where the method is applied to a terminal installed with a browser, and it should be noted that the terminal displays a first recommended news in a reading mode in a browsing window of the browser, and includes: a first typesetting page of the first news content is displayed in the browsing window, so steps 301 to 312 are added after step 204 in fig. 3 to illustrate typesetting rules of the news content in the reading mode, and the steps are as follows:
Step 301, it is determined whether the beginning of the first news content is text or a picture.
The terminal judges whether the beginning part of the first news content is text or picture, if the beginning part of the first news content is text, the step 302 is entered; if the beginning of the first news content is a picture, step 309 is entered.
And 302, typesetting the first text segment according to the font format and the line spacing corresponding to the reading mode when the beginning part of the first news content is text.
And the terminal judges that the initial part of the first news content is the text, and typesetting the first text according to the font format and the line spacing corresponding to the preset reading mode. After the terminal finishes typesetting the first text segment, the step 303 is entered.
Step 303, determining whether the percentage of the first text segment occupying the browsing window reaches a preset ratio.
After the terminal finishes typesetting the first section of characters, judging whether the percentage of the first section of characters occupying the browsing window after typesetting reaches a preset proportion or not; if the percentage of the first text segment occupying the browsing window does not reach the preset proportion, the step 308 is entered; if the percentage of the first text segment occupying the browsing window does not reach the preset ratio, step 304 is entered.
Step 304, when the percentage of the first text segment occupying the browsing window does not reach the preset proportion and the next content segment is a picture, determining the picture type of the picture.
The percentage of the first section of text occupying the browsing window does not reach the preset proportion, and the terminal judges whether the next section of content is text or picture; if the result is a picture, go to step 305.
Step 305, judging the picture type of the picture.
The terminal judges whether the picture type of the picture is a horizontal picture or a vertical picture, if the picture is a horizontal picture, the step 306 is entered; if the picture is a portrait picture, go to step 307.
And 306, when the picture type is the transverse picture, the terminal typesets the transverse picture to the first section of text, and determines that the typesetting of the first typesetting page of the first news content is finished.
And the terminal adjusts the resolution of the transverse pictures according to the resolution of the screen, typesets the adjusted transverse pictures to the first section of characters, and then determines that the typesetting of the first typesetting page of the first news content is finished.
In step 307, when the picture type is the vertical picture, the terminal typesets the vertical picture to the second typesetting page of the first news content, and determines that the typesetting of the first typesetting page of the first news content is finished.
The judging result of the picture is a vertical picture, the terminal adjusts the resolution of the vertical picture according to the resolution of the screen, typesets the adjusted vertical picture to a second typesetting page of the first news content for full-screen display, and determines that the typesetting of the first typesetting page of the first news content is finished.
Referring to fig. 9 schematically, assuming that the preset proportion is fifty percent, after the first section of typesetting task is completed, detecting whether the percentage of the first section of characters occupying the browsing window reaches the preset proportion; in fig. 9, the percentage of the first text segment occupying the browsing window is not more than fifty percent, and the preset proportion is not reached, wherein the percentage of the first text segment occupying the browsing window includes the percentage of the title occupying the browsing window, and the next content segment is continuously judged to be text or picture; if the judging result is that the picture is the horizontal picture or the vertical picture, continuing to judge the type of the picture; if the picture is a transverse picture, typesetting the transverse picture to the first section of characters of the first typesetting page, and confirming that the typesetting of the first typesetting page of the first news content is finished; if the picture is a vertical picture, typesetting the picture to a second typesetting page of the first news content, and determining that typesetting of the first typesetting page of the first news content is finished; when the picture is a portrait picture, the first typesetting page is shown in fig. 10, and the second typesetting page is shown in fig. 11.
Step 308, when the percentage of the first section of text occupying the browsing window reaches a preset proportion, the terminal determines that the typesetting of the first typesetting page of the first news content is finished; the browse window displays the first typeset page.
After the terminal finishes typesetting the first section of characters, judging whether the percentage of the first section of characters occupying the browsing window after typesetting reaches a preset proportion or not; if the percentage of the first section of characters occupying the browsing window reaches a preset proportion, the terminal determines that the typesetting of the first typesetting page of the first news content is finished; and displaying the first typesetting page of the first recommended news in the browsing window.
Referring to fig. 12 schematically, after the first text segment is typeset according to the font format and the line spacing corresponding to the preset reading mode, the first text segment occupies ninety percent of the browsing window, and if the preset proportion is fifty percent, the percentage of the first text segment occupying the browsing window reaches the preset proportion, so as to determine that the typesetting of the first typesetting page of the first news content is finished; and displaying the first typesetting page of the first recommended news in the browsing window.
Step 309, when the beginning portion of the first news content is a picture, determining a picture type of the picture.
The terminal determines whether the beginning part of the first news content is text or picture, and if the result is picture, the terminal determines the picture type of the picture, and proceeds to step 310.
Step 310, a picture type of the picture is determined.
The terminal judges the picture type of the picture, if the picture is a transverse picture, the step 312 is entered; if the picture is a portrait picture, go to step 311.
And 311, when the picture type is the vertical picture, typesetting the vertical picture into the first typesetting page by the terminal to perform full-screen display.
When the picture type is a vertical picture, the terminal adjusts the resolution of the vertical picture according to the resolution of the screen, typesets the adjusted vertical picture to a first typesetting page of the first news content for full-screen display, and determines that the typesetting of the first typesetting page of the first news content is finished.
Referring to fig. 13 schematically, when the beginning part of the first news content is a picture, the terminal judges whether the picture is a horizontal picture or a vertical picture, and if the picture is determined to be the vertical picture, the vertical picture is typeset into the first typesetting page to be displayed in a full screen, as shown in fig. 13.
Step 312, when the picture type is a horizontal picture, the terminal typesets the horizontal picture into the upper half screen of the first typesetting page of the first news content; typesetting the next text of the transverse picture to the lower half screen of the first typesetting page according to the font format and the line spacing corresponding to the reading mode, and determining that the first typesetting page is ended.
Referring to fig. 14 schematically, when the beginning part of the first news content is a picture, the terminal judges whether the picture is a horizontal picture or a vertical picture, determines that the picture is a horizontal picture, typesets the horizontal picture into the upper half screen of the first typesetting page of the first news content, as shown in fig. 14, continues to judge whether the next section of content is a text or a picture, and if the next section of content is a text, typesets the text according to a font format and a line spacing corresponding to a preset reading mode under the picture; and after the lower half screen is full of characters, determining that the first typesetting page is finished.
In summary, in the method for displaying recommended news in the browser provided in the embodiment, the first recommended news is displayed in a reading mode in a browsing window of the browser; receiving a sliding signal on a browsing window; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. According to the technical scheme, the immersive reading mode is adopted, so that a user can switch to the next recommended news under the condition that the user does not need to exit from the reading mode, and the next recommended news is read continuously, the operation steps of the user when switching the reading content are reduced, the high efficiency of man-machine interaction is ensured, meanwhile, the situation that the reading state of the user is interrupted in the reading process is avoided, and the reading experience of the user is improved; secondly, the technical scheme adopts an immersive reading scheme, so that the interference of irrelevant information is removed, and the reading experience of a user is improved.
According to the technical scheme, through analysis of the historical browsing records corresponding to the user accounts, browsing preferences of the user can be better grasped, news of interest to the user is recommended according to the browsing preferences of the user, and news reading quality of the user is improved.
In addition, according to the technical scheme of the embodiment, the condition that only characters exist in the original immersive reading is changed through image-text mixed arrangement, so that the immersive reading is attractive to users.
Fig. 15 is a flowchart of a method for displaying recommended news in a browser according to another exemplary embodiment of the present application, it should be noted that, the method includes steps 401 to 413, where the typesetting process shown in steps 401 to 413 is illustrated by using a part of content in a first news content of a first recommended news, if more news contents can be typeset according to the typesetting rules shown in steps 401 to 413, the specific steps are as follows:
step 401, news content.
Opening a browser, and displaying first recommended news in a browsing window in the browser, wherein the first recommended news comprises first news content; wherein the news content is in hypertext markup language (Hyper Text Markup Language, HTML) format.
Step 402, it is determined whether the news content starts with a text header or a picture.
Judging whether the beginning part of the first news content is text or picture; if yes, go to step 403; if it is a picture, the process proceeds to step 407.
If the text starts, step 403, typesetting the first text according to the fonts and the spacing set by the browser.
If the first news content starts with the text, typesetting the first text according to a font format and line spacing preset by a browser; the first text segment layout ends to step 404.
And step 404, judging the proportion of the screen occupied by the typeset first text.
Judging the percentage of the screen occupied by the first text after typesetting; if less than or equal to fifty percent, go to step 405; if greater than fifty percent, step 408 is entered.
If the text is smaller than the half screen, the next segment is determined to be text or picture in step 405.
If the content is less than or equal to fifty percent, judging whether the next piece of content is text or picture; if the next piece of content is text, go to step 406; if the next piece of content is a picture, step 409 is entered.
And step 406, if the text is the text, typesetting the text according to the fonts and the spacing set by the browser.
And if the text is the text, typesetting the text according to a font format and line spacing preset by a browser.
If the picture starts, step 407, it is determined whether the picture is horizontal or vertical.
If the first news content starts with the picture, judging whether the picture is a horizontal picture or a vertical picture when the picture type of the picture is the picture type; if the picture is a landscape picture, go to step 410; if it is a portrait, go to step 411.
If the first typesetting is larger than the half screen, step 408, the first typesetting is ended.
If the typesetting of the first typeset page is more than fifty percent, ending.
And 409, if so, judging whether the picture is horizontal or vertical.
If the picture is the picture, judging whether the picture is a horizontal picture or a vertical picture when the picture is of the picture type; if the picture is a landscape picture, go to step 412; if it is a portrait, go to step 413.
And 410, if yes, displaying on the upper half screen.
And if the horizontal picture is the horizontal picture, displaying the horizontal picture on the upper half part of the screen.
Step 411, if vertical, full screen display.
And if the picture is the vertical picture, displaying the vertical picture on the screen in a full screen mode.
And 412, if the text is horizontal, displaying the text below the previous text, namely the lower half screen.
And if the horizontal picture is the horizontal picture, displaying the horizontal picture below the first text segment, namely displaying the horizontal picture to the lower half part of the screen.
In step 413, if vertical, typeset to the next page.
And if the vertical picture is the vertical picture, typesetting the vertical picture to the next page.
In summary, in the method for displaying recommended news in the browser provided in the embodiment, the first recommended news is displayed in a reading mode in a browsing window of the browser; receiving a sliding signal on a browsing window; and switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal. According to the technical scheme, the immersive reading mode is adopted, so that a user can switch to the next recommended news under the condition that the user does not need to exit from the reading mode, and the next recommended news is read continuously, the operation steps of the user when switching the reading content are reduced, the high efficiency of man-machine interaction is ensured, meanwhile, the situation that the reading state of the user is interrupted in the reading process is avoided, and the reading experience of the user is improved; secondly, the technical scheme adopts an immersive reading scheme, so that the interference of irrelevant information is removed, and the reading experience of a user is improved.
According to the technical scheme, through analysis of the historical browsing records corresponding to the user accounts, browsing preferences of the user can be better grasped, news of interest to the user is recommended according to the browsing preferences of the user, and news reading quality of the user is improved.
In addition, according to the technical scheme of the embodiment, the condition that only characters exist in the original immersive reading is changed through image-text mixed arrangement, so that the immersive reading is attractive to users.
Fig. 16 is a block diagram of a recommended news display device in a browser according to an exemplary embodiment of the present application, the device including:
the display module 501 is configured to display the first recommended news in a browsing window of the browser in a reading mode, where the reading mode is a display mode of hiding display elements unrelated to the first recommended news;
a receiving module 502, configured to receive a sliding signal on a browsing window;
And the switching module 503 is configured to switch the first recommended news in the browsing window to the second recommended news displayed in the reading mode according to the sliding signal.
In some embodiments, a user account is logged into the browser; a switching module 503, configured to obtain n candidate recommended news recommended to the user account from the server, where n is a positive integer; according to the sliding signal, determining second recommended news in n candidate recommended news randomly; and displaying the first recommended news in the browsing window as the second recommended news.
In some embodiments of the present invention, in some embodiments,
A sending module 504, configured to provide a history browsing record corresponding to the user account to the server;
The obtaining module 505 is configured to receive n candidate recommended news sent by the server, where the n candidate recommended news are recommended after the server analyzes the browsing preference of the user corresponding to the user account according to the historical browsing record corresponding to the user account.
In some embodiments, the first recommended news includes first news content of a teletext mix; the display module 501 is further configured to typeset the first text segment according to a font format and a line spacing corresponding to the reading mode when the beginning part of the first news content is text; when the percentage of the first section of characters occupying the browsing window reaches a preset proportion, determining that the typesetting of the first typesetting page of the first news content is finished; and displaying the first typesetting page in the browsing window.
In some embodiments, the display module 501 is further configured to determine a picture type of the picture when the percentage of the first text segment occupying the browsing window does not reach the preset ratio and the next content segment is the picture; when the picture type is a transverse picture, typesetting the transverse picture to the first section of characters, and determining that the typesetting of the first typesetting page of the first news content is finished; and when the picture type is the vertical picture, typesetting the vertical picture to a second typesetting page of the first news content, and determining that typesetting of the first typesetting page of the first news content is finished.
In some embodiments, the first recommended news includes first news content of a teletext mix; the display module 501 is further configured to determine a picture type of the picture when the beginning part of the first news content is the picture; when the picture type is a transverse picture, typesetting the transverse picture into the upper half screen of a first typesetting page of the first news content, typesetting the next text of the transverse picture into the lower half screen of the first typesetting page according to the font format and the line spacing corresponding to the reading mode, and determining that typesetting of the first typesetting page is finished; when the picture type is the vertical picture, typesetting the vertical picture into the first typesetting page to carry out full-screen display, and determining that typesetting of the first typesetting page is finished.
In some embodiments, the first recommended news includes k typeset pages, k being an integer greater than or equal to 2; the display module 501 is further configured to receive a first page switching signal triggered on the browsing window when displaying an i-th typesetting page of the first recommended news in the browsing window, and display an i+1th typesetting page of the first recommended news according to the first page switching signal, where i is an integer less than or equal to k; and/or when the j-th typesetting page of the first recommended news is displayed in the browsing window, receiving a second page switching signal triggered on the browsing window, and displaying the j-1-th typesetting page of the first recommended news according to the second page switching signal, wherein j is an integer greater than 1 and is smaller than or equal to k.
In some embodiments, the first page switch signal is a left swipe signal triggered in the browse window and the second page switch signal is a right swipe signal triggered in the browse window; or, the first page switching signal is a rightward sliding signal triggered in the browsing window, and the second page switching signal is a leftward sliding signal triggered in the browsing window; or the first page switching signal is a left edge clicking signal triggered in the browsing window, and the second page switching signal is a right edge clicking signal triggered in the browsing window; or, the first page switch signal is a right edge click signal triggered in the browse window, and the second page switch signal is a left edge click signal triggered in the browse window.
In some embodiments of the present invention, in some embodiments,
A display module 501, configured to display a first recommended news in a web browsing mode in a browsing window of a browser;
a receiving module 502, configured to receive a trigger signal on a browsing window;
And the switching module 503 is configured to switch the browsing mode adopted by the web browsing window to the reading mode according to the trigger signal.
In summary, the recommended news display device in the browser provided in this embodiment displays the first recommended news in a reading mode in a browsing window of the browser; receiving a sliding signal on a browsing window; and switching and displaying the first recommended news in the browsing window to the second recommended news according to the sliding signal. The technical scheme adopts an immersive reading scheme, so that the interference of irrelevant information is removed, and the reading experience of a user is improved; and secondly, under the condition that the reading mode does not need to be exited, the switching of recommended news is realized, the traditional step of switching recommended news in a browser is reduced, the man-machine interaction efficiency is improved, meanwhile, the condition that the reading state of a user is interrupted in the reading process is avoided, and the reading experience of the user is improved.
According to the technical scheme, through analysis of the historical browsing records corresponding to the user accounts, browsing preferences of the user can be better grasped, news of interest to the user is recommended according to the browsing preferences of the user, and news reading quality of the user is improved.
In addition, according to the technical scheme of the embodiment, the condition that only characters exist in the original immersive reading is changed through image-text mixed arrangement, so that the immersive reading is attractive to users.
Fig. 17 is a block diagram of an electronic device 600 according to an exemplary embodiment of the present application. The terminal 600 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 600 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 600 includes: a processor 601 and a memory 602.
Processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). Processor 601 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 601 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement the recommended news display method in a browser provided by an embodiment of the method of the present application.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 604, touch display 605, camera 606, audio circuitry 607, and power supply 608.
Peripheral interface 603 may be used to connect at least one Input/Output (I/O) related peripheral to processor 601 and memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 601, memory 602, and peripheral interface 603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 604 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 604 may further include NFC (NEAR FIELD Communication) related circuits, which is not limited by the present application.
The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 605 is a touch display, the display 605 also has the ability to collect touch signals at or above the surface of the display 605. The touch signal may be input as a control signal to the processor 601 for processing. At this point, the display 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 605 may be one, providing a front panel of the terminal 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the terminal 600 or in a folded design; in still other embodiments, the display 605 may be a flexible display, disposed on a curved surface or a folded surface of the terminal 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display 605 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuit 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing, or inputting the electric signals to the radio frequency circuit 604 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be respectively disposed at different portions of the terminal 600. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 607 may also include a headphone jack.
The power supply 608 is used to power the various components in the terminal 600. The power source 608 may be alternating current, direct current, disposable or rechargeable. When the power source 608 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 600 further includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyroscope sensor 612, pressure sensor 613, optical sensor 614, and proximity sensor 615.
The acceleration sensor 611 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 600. For example, the acceleration sensor 611 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 601 may control the touch display screen 605 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 611. The acceleration sensor 611 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the terminal 600, and the gyro sensor 612 may collect a 3D motion of the user on the terminal 600 in cooperation with the acceleration sensor 611. The processor 601 may implement the following functions based on the data collected by the gyro sensor 612: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 613 may be disposed at a side frame of the terminal 600 and/or at a lower layer of the touch screen 605. When the pressure sensor 613 is disposed at a side frame of the terminal 600, a grip signal of the terminal 600 by a user may be detected, and a left-right hand recognition or a shortcut operation may be performed by the processor 601 according to the grip signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the touch display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 605. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 614 is used to collect ambient light intensity. In one embodiment, processor 601 may control the display brightness of touch display 605 based on the intensity of ambient light collected by optical sensor 614. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 605 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 605 is turned down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 614.
A proximity sensor 615, also known as a distance sensor, is typically provided on the front panel of the terminal 600. The proximity sensor 615 serves to collect a distance between a user and the front surface of the terminal 600. In one embodiment, when the proximity sensor 615 detects that the distance between the user and the front surface of the terminal 600 gradually decreases, the processor 601 controls the touch display 605 to switch from the bright screen state to the off screen state; when the proximity sensor 615 detects that the distance between the user and the front surface of the terminal 600 gradually increases, the processor 601 controls the touch display screen 605 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 17 is not limiting of the terminal 600 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The application also provides a server, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to realize the recommended news display method in the browser provided by each method embodiment. It should be noted that the server may be a server as provided in fig. 18 below.
Referring to fig. 18, a schematic diagram of a server according to an exemplary embodiment of the present application is shown. Specifically, the present application relates to a method for manufacturing a semiconductor device. The server 700 includes a Central Processing Unit (CPU) 701, a system memory 704 including a Random Access Memory (RAM) 702 and a Read Only Memory (ROM) 703, and a system bus 705 connecting the system memory 704 and the central processing unit 701. The server 700 also includes a basic input/output system (I/O system) 706, for aiding in the transfer of information between the various devices within the computer, and a mass storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
The basic input/output system 706 includes a display 708 for displaying information and an input device 709, such as a mouse, keyboard, or the like, for a user to input information. Wherein the display 708 and the input device 709 are coupled to the central processing unit 701 through an input output controller 710 coupled to a system bus 705. The basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 710 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller connected to the system bus 705. The mass storage device 707 and its associated computer readable media provide non-volatile storage for the server 700. That is, the mass storage device 707 may include a computer readable medium such as a hard disk or CD-ROI drive.
The computer readable medium may include computer storage media and communication media without loss of generality. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory, or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the one described above. The system memory 704 and mass storage device 707 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by one or more central processing units 701, the one or more programs including instructions for implementing the recommended news display method in the browser, and the central processing unit 701 executes the one or more programs to implement the recommended news display method in the browser provided by the respective method embodiments described above.
The server 700 may also operate via a network, such as the internet, connected to a remote computer on the network, in accordance with various embodiments of the present invention. I.e. the server 700 may be connected to the network 712 via a network interface unit 711 connected to the system bus 705, or alternatively, the network interface unit 711 may be used to connect to other types of networks or remote computer systems.
The memory further includes one or more programs stored in the memory, the one or more programs including steps executed by the server in the method for displaying recommended news in the browser provided by the embodiment of the present invention.
The application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the readable storage medium, and the at least one instruction, the at least one section of program, the code set or instruction set is loaded and executed by the processor to realize the recommended news display method in the browser provided by the method embodiment.
The application also provides a computer program product which, when run on an electronic device, causes the electronic device to execute the recommended news display method in the browser according to each method embodiment.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A recommended news display method in a browser, the method comprising:
displaying a first recommended news in a browsing window of the browser in a reading mode, wherein the reading mode is a display mode for hiding display elements irrelevant to the first recommended news;
receiving a sliding signal on the browsing window;
According to the sliding signal, the first recommended news in the browsing window is displayed in a switching mode as second recommended news displayed in the reading mode;
The first recommended news comprises first news contents mixed and arranged by images and texts; the displaying the first recommended news in the browsing window of the browser in a reading mode includes:
When the initial part of the first news content is a character, typesetting a first section of character according to a font format and a line spacing corresponding to the reading mode; when the percentage of the first section of characters occupying the browsing window does not reach a preset proportion and the next section of content is a picture, determining the picture type of the picture; when the picture type is a transverse picture, typesetting the transverse picture to the first section of characters, and determining that the typesetting of a first typesetting page of the first news content is finished; when the picture type is a vertical picture, typesetting the vertical picture to a second typesetting page of the first news content, and determining that typesetting of the first typesetting page of the first news content is finished; when the percentage of the first section of characters occupying the browsing window reaches the preset proportion, determining that the typesetting of the first typesetting page of the first news content is finished;
or, when the beginning part of the first news content is a picture, determining a picture type of the picture; when the picture type is a horizontal picture, typesetting the horizontal picture into an upper half screen of the first typesetting page of the first news content, typesetting the next text of the horizontal picture into a lower half screen of the first typesetting page according to a font format and a line spacing corresponding to the reading mode, and determining that typesetting of the first typesetting page is finished; when the picture type is a vertical picture, typesetting the vertical picture into the first typesetting page to perform full-screen display, and determining that typesetting of the first typesetting page is finished;
And displaying the first typesetting page in the browsing window.
2. The method of claim 1, wherein a user account is logged into the browser;
And according to the sliding signal, displaying the first recommended news in the browsing window as the second recommended news displayed in the reading mode in a switching manner, wherein the method comprises the following steps:
Acquiring n candidate recommended news recommended to the user account from a server, wherein n is a positive integer;
According to the sliding signal, determining the second recommended news from the n candidate recommended news randomly;
And displaying the first recommended news in the browsing window in a switching manner as the second recommended news displayed in the reading mode.
3. The method of claim 2, wherein prior to obtaining n candidate recommended news recommended to the user account from a server, further comprising:
Providing a history browsing record corresponding to the user account to the server;
The obtaining n candidate recommended news recommended to the user account from the server includes:
And receiving the n candidate recommended news transmitted by the server, wherein the n candidate recommended news are recommended after the server analyzes the browsing preference of the user corresponding to the user account according to the historical browsing record corresponding to the user account.
4. A method according to any one of claims 1 to 3, wherein the first recommended news includes k typeset pages, k being an integer greater than or equal to 2;
After the first recommended news is displayed in the browsing window of the browser in the reading mode, the method further comprises:
When the ith typesetting page of the first recommended news is displayed in the browsing window, a first page switching signal triggered on the browsing window is received, and the (i+1) th typesetting page of the first recommended news is displayed according to the first page switching signal, wherein i is an integer less than or equal to k;
And/or the number of the groups of groups,
And when the j-th typesetting page of the first recommended news is displayed in the browsing window, receiving a second page switching signal triggered on the browsing window, and displaying the j-1-th typesetting page of the first recommended news according to the second page switching signal, wherein j is an integer greater than 1 and is smaller than or equal to k.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
The first page switching signal is a left sliding signal triggered in the browsing window, and the second page switching signal is a right sliding signal triggered in the browsing window;
or alternatively, the first and second heat exchangers may be,
The first page switching signal is a rightward sliding signal triggered in the browsing window, and the second page switching signal is a leftward sliding signal triggered in the browsing window;
or alternatively, the first and second heat exchangers may be,
The first page switching signal is a left edge clicking signal triggered in the browsing window, and the second page switching signal is a right edge clicking signal triggered in the browsing window;
or alternatively, the first and second heat exchangers may be,
The first page switching signal is a right edge click signal triggered in the browse window, and the second page switching signal is a left edge click signal triggered in the browse window.
6. A method according to any one of claims 1 to 3, wherein before displaying the first recommended news in the reading mode in the browsing window of the browser, the method further comprises:
displaying the first recommended news in a web page browsing mode in a browsing window of the browser;
Receiving a trigger signal on the browsing window;
and switching the webpage browsing mode adopted by the browsing window to the reading mode according to the triggering signal.
7. A recommended news display device in a browser, the device comprising:
The display module is used for displaying the first recommended news in a browsing window of the browser in a reading mode, wherein the reading mode is a display mode of hiding display elements irrelevant to the first recommended news;
the receiving module is used for receiving the sliding signal on the browsing window;
the switching module is used for switching the first recommended news in the browsing window into the second recommended news displayed in the reading mode according to the sliding signal;
The first recommended news comprises first news contents mixed and arranged by images and texts; the display module is further configured to:
When the initial part of the first news content is a character, typesetting a first section of character according to a font format and a line spacing corresponding to the reading mode; when the percentage of the first section of characters occupying the browsing window does not reach a preset proportion and the next section of content is a picture, determining the picture type of the picture; when the picture type is a transverse picture, typesetting the transverse picture to the first section of characters, and determining that the typesetting of a first typesetting page of the first news content is finished; when the picture type is a vertical picture, typesetting the vertical picture to a second typesetting page of the first news content, and determining that typesetting of the first typesetting page of the first news content is finished; when the percentage of the first section of characters occupying the browsing window reaches the preset proportion, determining that the typesetting of the first typesetting page of the first news content is finished;
or, when the beginning part of the first news content is a picture, determining a picture type of the picture; when the picture type is a horizontal picture, typesetting the horizontal picture into an upper half screen of the first typesetting page of the first news content, typesetting the next text of the horizontal picture into a lower half screen of the first typesetting page according to a font format and a line spacing corresponding to the reading mode, and determining that typesetting of the first typesetting page is finished; when the picture type is a vertical picture, typesetting the vertical picture into the first typesetting page to perform full-screen display, and determining that typesetting of the first typesetting page is finished;
And displaying the first typesetting page in the browsing window.
8. A terminal comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the recommended news display method in a browser according to any one of claims 1 to 6.
9. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the recommended news display method in a browser of any of claims 1 to 6.
10. A computer program product, characterized in that it runs on an electronic device to implement a recommended news display method in a browser according to any of the preceding claims 1 to 6.
CN201810803100.6A 2018-07-20 2018-07-20 Recommended news display method, device and equipment in browser and storage medium Active CN109086366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810803100.6A CN109086366B (en) 2018-07-20 2018-07-20 Recommended news display method, device and equipment in browser and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810803100.6A CN109086366B (en) 2018-07-20 2018-07-20 Recommended news display method, device and equipment in browser and storage medium

Publications (2)

Publication Number Publication Date
CN109086366A CN109086366A (en) 2018-12-25
CN109086366B true CN109086366B (en) 2024-05-10

Family

ID=64838319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810803100.6A Active CN109086366B (en) 2018-07-20 2018-07-20 Recommended news display method, device and equipment in browser and storage medium

Country Status (1)

Country Link
CN (1) CN109086366B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716782B (en) * 2019-09-30 2023-05-23 北京乐蜜科技有限责任公司 Information display method and device and electronic equipment
CN111143739B (en) * 2019-12-11 2021-08-03 掌阅科技股份有限公司 Page jump method, computing device and computer storage medium
CN111488096B (en) * 2020-04-02 2022-04-15 上海连尚网络科技有限公司 Method and equipment for displaying interactive presentation information in reading application
CN111949868A (en) * 2020-08-11 2020-11-17 北京百度网讯科技有限公司 Content access method, device, electronic equipment and storage medium
CN113126867B (en) * 2021-05-14 2022-07-22 网易(杭州)网络有限公司 Browser control method and device, browser, terminal and storage medium
WO2023181382A1 (en) * 2022-03-25 2023-09-28 シャープNecディスプレイソリューションズ株式会社 Information processing device, display system, and information processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789448A (en) * 2012-06-21 2012-11-21 奇智软件(北京)有限公司 Electronic data typesetting method and device
CN102819555A (en) * 2012-06-27 2012-12-12 北京奇虎科技有限公司 Method and device for loading recommended information in read mode of webpage
CN103258058A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Page display method and system and browser
WO2013185556A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method, apparatus and computer memory medium for switching page
CN103853782A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Information browsing method and information browsing device
WO2014180227A1 (en) * 2013-10-11 2014-11-13 中兴通讯股份有限公司 Method, device, terminal and computer storage medium for realizing intelligent reading of a browser
CN105335139A (en) * 2014-07-24 2016-02-17 广州市动景计算机科技有限公司 Webpage display method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807930A (en) * 2016-09-08 2018-03-16 广州市动景计算机科技有限公司 The method and apparatus of terminal device browser recommendation/display content

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013185556A1 (en) * 2012-06-13 2013-12-19 腾讯科技(深圳)有限公司 Method, apparatus and computer memory medium for switching page
CN103488411A (en) * 2012-06-13 2014-01-01 腾讯科技(深圳)有限公司 Method and device for switching pages
CN102789448A (en) * 2012-06-21 2012-11-21 奇智软件(北京)有限公司 Electronic data typesetting method and device
CN102819555A (en) * 2012-06-27 2012-12-12 北京奇虎科技有限公司 Method and device for loading recommended information in read mode of webpage
CN105117474A (en) * 2012-06-27 2015-12-02 北京奇虎科技有限公司 Method and device for loading recommendation information in webpage reading mode
CN103853782A (en) * 2012-12-05 2014-06-11 腾讯科技(深圳)有限公司 Information browsing method and information browsing device
CN103258058A (en) * 2013-06-03 2013-08-21 贝壳网际(北京)安全技术有限公司 Page display method and system and browser
WO2014180227A1 (en) * 2013-10-11 2014-11-13 中兴通讯股份有限公司 Method, device, terminal and computer storage medium for realizing intelligent reading of a browser
CN105335139A (en) * 2014-07-24 2016-02-17 广州市动景计算机科技有限公司 Webpage display method and apparatus

Also Published As

Publication number Publication date
CN109086366A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
CN109086366B (en) Recommended news display method, device and equipment in browser and storage medium
EP2897028B1 (en) Display device and method for controlling the same
CN110020140B (en) Recommended content display method, device and system
CN110134321B (en) Method and apparatus for transmitting data, and method and apparatus for receiving data
CN112068762B (en) Interface display method, device, equipment and medium of application program
CN112230914B (en) Method, device, terminal and storage medium for producing small program
KR20180133743A (en) Mobile terminal and method for controlling the same
CN111459363B (en) Information display method, device, equipment and storage medium
CN110442277B (en) Method for displaying preview window information and electronic equipment
CN108475204A (en) Method, terminal device and the graphic user interface of automatic setting wallpaper
CN110865765A (en) Terminal and map control method
CN112181252B (en) Screen capturing method and device and electronic equipment
CN106384033A (en) Screen off method and apparatus of terminal screen
KR20180133138A (en) Mobile terminal and method for controlling the same
CN115002549B (en) Video picture display method, device, equipment and medium
CN115379113A (en) Shooting processing method, device, equipment and storage medium
CN116483234A (en) Page display method, device, equipment and storage medium
CN111694535B (en) Alarm clock information display method and device
KR20170059693A (en) Mobile device and, the method thereof
CN113535054B (en) Display content switching method and device, storage medium and electronic equipment
CN116304355B (en) Object-based information recommendation method and device, electronic equipment and storage medium
CN113608649B (en) Method, device, equipment and readable storage medium for displaying sliding list
WO2023005499A1 (en) Video search method and apparatus, and device, storage medium and program product
CN113220203B (en) Activity entry display method, device, terminal and storage medium
US10901610B2 (en) Electronic device and method of executing function thereof

Legal Events

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