Method, apparatus, device and computer readable medium for displaying a digital newspaper
By obtaining user information to filter and adjust the layout of digital newspapers, the problem of the inability to personalize displays in existing technologies has been solved, enabling personalized digital newspaper displays for different users and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2023-09-04
- Publication Date
- 2026-07-03
Smart Images

Figure CN117171463B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of big data technology, and in particular to a method, apparatus, device, and computer-readable medium for displaying digital newspapers. Background Technology
[0002] Digital newspapers are an important achievement resulting from the combination of traditional newspaper industry and modern technology. They have changed the traditional publishing model that has lasted for more than a thousand years, breaking through the constraints of paper newspapers in terms of information storage and dissemination speed, and forming a situation in which multimedia digital newspapers and traditional paper newspapers advance side by side and develop together.
[0003] In the process of realizing this invention, the inventors discovered that the prior art has at least the following problems: as a publication, digital newspapers display the same content to different users and cannot provide different content for different users. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device, and computer-readable medium for displaying digital newspapers, capable of displaying corresponding digital newspapers for different users.
[0005] To achieve the above objectives, according to one aspect of the present invention, a method for displaying a digital newspaper is provided, comprising:
[0006] Based on user identifiers, information such as the user's organization, historical newspaper articles, and basic user information is obtained.
[0007] The newspaper articles are arranged in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information.
[0008] The first N newspaper articles in each digital newspaper are arranged, and an updated layout for each digital newspaper is created according to the newspaper article borders. The updated layout is then used to construct a digital newspaper corresponding to the user identifier. N is a preset parameter.
[0009] The process of obtaining the user's organization, historical newspaper articles, and basic user information based on the user identifier includes:
[0010] Based on the user identifier, a search is conducted in the user database to obtain the user's organization and basic user information;
[0011] Based on the user identifier, the user's historical newspaper articles are determined from the browsing history.
[0012] The arrangement of newspaper articles in each digital newspaper edition, based on the user's organization, historical newspaper articles, and basic user information, includes:
[0013] For the same edition of a digital newspaper, newspaper articles with high relevance to the user's organization are selected as the first category of newspaper articles;
[0014] Among the remaining newspaper articles in the same edition of the digital newspaper, those similar to the historical newspaper articles and the user's basic information are selected as the second category of newspaper articles;
[0015] In each edition of the digital newspaper, the first category of newspaper articles is arranged first, followed by the second category of newspaper articles.
[0016] The process of creating an updated layout for each digital newspaper page by taking the first N articles from each page and arranging them according to the article borders includes:
[0017] Create a border for the newspaper article based on its title;
[0018] The first N newspaper articles are taken as newspaper articles to be typed, and the first newspaper article to be typed is set at a preset position on the updated page based on the newspaper article border;
[0019] Based on the remaining pages and remaining newspaper articles to be typed according to the updated layout, the remaining newspaper articles to be typed are typed according to their borders.
[0020] The step of creating a border for the newspaper article based on its title includes:
[0021] Use the width of the newspaper article's title as the width of the newspaper article's border;
[0022] Adjust the width of the image in the newspaper article according to the width of the newspaper article border, and / or adjust the width of the text content in the newspaper article according to the width of the newspaper article border, and determine the height of the newspaper article based on the width of the image and / or the width of the text content.
[0023] The remaining pages and remaining newspaper articles to be typeset based on the updated layout, and the typesetting according to the newspaper article borders of the remaining newspaper articles to be typeset, include:
[0024] Based on the minimum width of the remaining space in the updated layout and the width of the newspaper article border of the remaining newspaper articles to be typed, determine the next newspaper article to be typed;
[0025] Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
[0026] The process of updating the remaining pages of the updated page, and arranging them according to the borders of the remaining newspaper articles to be typeset, includes:
[0027] The minimum width of the remaining page after the update is less than the border width of any remaining newspaper article to be typed, and the next remaining newspaper article to be typed is set in the preset position.
[0028] Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
[0029] According to a second aspect of the present invention, an apparatus for displaying a digital newspaper is provided, comprising:
[0030] The acquisition module is used to obtain the user's organization, the user's historical newspaper articles, and the user's basic information based on the user's identifier;
[0031] The sorting module is used to sort newspaper articles in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information.
[0032] The module is used to take the first N newspaper articles in each digital newspaper after they are arranged, and create an updated layout for each digital newspaper according to the newspaper article borders. Then, it uses the updated layout to construct a digital newspaper corresponding to the user identifier. N is a preset parameter.
[0033] According to a third aspect of the present invention, an electronic device for displaying digital newspapers is provided, comprising:
[0034] One or more processors;
[0035] Storage device for storing one or more programs.
[0036] When the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.
[0037] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method as described above.
[0038] According to a fifth aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method as described above in the embodiments of the present invention.
[0039] One embodiment of the above invention has the following advantages or beneficial effects: It obtains the user's organization, historical newspaper articles, and basic user information based on the user's identifier; arranges newspaper articles in each digital newspaper edition according to the user's organization, historical newspaper articles, and basic user information; and creates an updated layout for each digital newspaper edition by taking the first N newspaper articles from each edition and following the newspaper article borders, and constructs a digital newspaper corresponding to the user identifier using the updated layout, where N is a preset parameter. Furthermore, it is possible to display corresponding digital newspapers to different users.
[0040] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description
[0041] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:
[0042] Figure 1 This is a schematic diagram of the main flow of a method for displaying a digital newspaper according to an embodiment of the present invention;
[0043] Figure 2 This is a schematic diagram of the process for obtaining a user's organization, the user's historical newspaper articles, and the user's basic information according to an embodiment of the present invention.
[0044] Figure 3 This is a schematic diagram illustrating the process of arranging newspaper articles in each edition of a digital newspaper according to an embodiment of the present invention;
[0045] Figure 4 This is a schematic diagram illustrating the process of constructing a digital newspaper corresponding to a user identifier according to an embodiment of the present invention;
[0046] Figure 5 This is a schematic diagram of the process for creating a newspaper article border according to an embodiment of the present invention;
[0047] Figure 6 This is a schematic diagram illustrating the process of arranging newspaper articles according to the borders of the remaining articles to be typed, according to an embodiment of the present invention.
[0048] Figure 7 This is a schematic diagram of the main structure of a device for displaying digital newspapers according to an embodiment of the present invention;
[0049] Figure 8 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;
[0050] Figure 9 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation
[0051] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description. The acquisition, storage, use, and processing of data in the technical solutions of this application all comply with relevant national laws and regulations.
[0052] To address the issue of displaying consistent content to different users, and the inability to provide different digital newspapers for different users, the following technical solutions from the embodiments of the present invention can be adopted.
[0053] See Figure 1 , Figure 1 This is a schematic diagram of the main flow of a method for displaying a digital newspaper according to an embodiment of the present invention. A digital newspaper is constructed for the user based on the user's institution, the user's historical newspaper articles, and the user's basic information. Figure 1 As shown in Figure 100, the specific steps include:
[0054] S101. Obtain the user's organization, the user's historical newspaper articles, and the user's basic information based on the user's identifier.
[0055] In embodiments of the present invention, readers of the digital newspaper are referred to as users. Users are distinguished by user identifiers. To present users with personalized and targeted digital newspapers, it has been proven through repeated practice that the user's institution, historical newspaper articles, and basic user information can be obtained based on the user identifier.
[0056] See Figure 2 That is, 200. Figure 2 This is a schematic diagram of a process for obtaining a user's organization, the user's historical newspaper articles, and the user's basic information according to an embodiment of the present invention, which includes the following steps:
[0057] S201. Search the user database based on the user identifier to obtain the user's organization and basic user information.
[0058] The user's affiliated organization is the organization where the user works, is educated, or has interests. The affiliated organization identifies the user's attributes. Basic user information includes the user's personal information. As an example, basic user information includes one or more of the following: name, gender, ID number, address, and place of origin.
[0059] The user's organization and basic user information are stored in the user database. As an example, these are stored as key-value pairs. The user identifier is used as the key; the user's organization and basic user information are used as the values.
[0060] The system searches the user database based on the user identifier to retrieve the user's organization and basic information. Specifically, it uses the user identifier as the key, iterates through the values in the user database, and then obtains the corresponding organization and basic information of the user.
[0061] In one embodiment of the present invention, when a user logs into the user database for the first time, and the user database does not store the user's organization and basic user information, the user can be prompted to fill in the user's organization and basic user information.
[0062] S202. Determine the user's historical newspaper articles from the browsing history based on the user identifier.
[0063] For users, browsing history includes information about newspaper articles they have viewed in the past. These historical articles reflect user preferences, and therefore, a user's past newspaper articles can be identified based on their user identifier within the browsing history. As an example, this demonstrates how to identify a user's past newspaper articles based on their user identifier within the browsing history.
[0064] In one embodiment of the present invention, when the user's browsing history is empty, newspaper articles can be pre-set as historical newspaper articles. For example, newspaper articles with high readership can be set as historical newspaper documents.
[0065] exist Figure 2 In one embodiment, the user's organization, historical newspaper articles, and basic information are obtained based on the user identifier, and the user's characteristics are represented by the user's organization, historical newspaper articles, and basic information.
[0066] S102. Arrange newspaper articles in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information.
[0067] In embodiments of the present invention, a digital newspaper refers to a digital version of a newspaper. As an example, if the newspaper includes a student daily newspaper, then the digital newspaper is a digital version of the student daily newspaper.
[0068] A digital newspaper consists of multiple pages, and each page contains multiple articles. Arranging the articles within each digital newspaper page involves arranging all the articles from each page of the digital newspaper.
[0069] See Figure 3 That is, 300. Figure 3 This is a flowchart illustrating the arrangement of newspaper articles in each edition of a digital newspaper according to an embodiment of the present invention, specifically including the following steps:
[0070] S301. For the same version of a digital newspaper, select newspaper articles that are highly relevant to the user's organization as the first category of newspaper articles.
[0071] For the same edition of a digital newspaper, the first step is to filter articles based on their relevance to the user's organization. As an example, the user's organization has superior and subordinate organizations. Based on the relevance of newspaper articles to the user's organization, its superior organizations, and its subordinate organizations, the first category of newspaper articles is selected.
[0072] As an example, institutional keywords are determined based on the user's organization, its superior organization, and its subordinate organizations. Based on these institutional keywords, the first category of newspaper articles is selected. It's understood that the first category of newspaper articles consists of articles related to the user's organization.
[0073] The more institutional keywords a first-category newspaper article includes, the higher its relevance to the user's institution.
[0074] S302. Among the remaining newspaper articles in the same edition of the digital newspaper, select newspaper articles that are similar to historical newspaper articles and user basic information as the second category of newspaper articles.
[0075] Within the same edition of the digital newspaper, the remaining newspaper articles after filtering out the first category are called the remaining newspaper articles. From these remaining articles, a second category of newspaper articles is then selected based on historical newspaper articles and basic user information.
[0076] As an example, the second category of newspaper articles is filtered based on tags from historical newspaper articles and tags from user basic information. That is, the tags for the second category of newspaper articles are the same as those for historical newspaper articles and user basic information. The more identical tags there are, the higher the similarity to historical newspaper articles and user basic information, and the higher the ranking of the newspaper article.
[0077] S303. In each edition of the digital newspaper, the first category of newspaper articles is arranged first, followed by the second category of newspaper articles.
[0078] In an embodiment of the present invention, the first type of newspaper articles are of higher importance than the second type of newspaper articles. Therefore, in the process of rearranging a page of a digital newspaper, the first type of newspaper articles are arranged first, and then the second type of newspaper articles are arranged.
[0079] exist Figure 3 In one embodiment, newspaper articles are arranged in each edition of the digital newspaper based on the user's institution, the user's historical newspaper articles, and the user's basic information. The higher the ranking, the greater the likelihood that the user will read the article.
[0080] S103. Take the first N newspaper articles in each digital newspaper after sorting, and create an updated layout for each digital newspaper according to the newspaper article borders. Then, construct a digital newspaper corresponding to the user identifier based on the updated layout. N is a preset parameter.
[0081] For each page of the digital newspaper, the first N articles in each page can be arranged according to their borders to create an updated page for that page. This updated page then forms the digital newspaper corresponding to the user's identifier. Here, N is a preset parameter less than the total number of articles in each page.
[0082] As an example, in the first page of the digital newspaper, the total number of articles is 10. N is set to 8, meaning that the updated page of the first page digital newspaper includes 8 articles. For each version, N can be the same. That is, after the page is updated, each page includes the same number of articles.
[0083] See Figure 4 That is, 400. Figure 4 This is a schematic diagram illustrating the process of constructing a digital newspaper corresponding to a user identifier according to an embodiment of the present invention. Specifically, it includes the following steps:
[0084] S401. Create a border for the newspaper article based on its title.
[0085] In this embodiment of the invention, considering that the title of a newspaper article can reflect its core content, the newspaper article's border is created using the title.
[0086] See Figure 5 That is, 500. Figure 5 This is a flowchart illustrating the process of creating a newspaper article border according to an embodiment of the present invention. Specifically, it includes the following steps:
[0087] S501. Use the width of the newspaper article title as the width of the newspaper article border.
[0088] In this embodiment of the invention, the title width of a newspaper article refers to the original width of the article in the digital newspaper. The title width is used as the width of the article's border; that is, the width of the text content is less than or equal to the border. This highlights the title of the newspaper article.
[0089] S502. Adjust the width of the image in the newspaper article according to the width of the newspaper article border, and / or adjust the width of the text content in the newspaper article according to the width of the newspaper article border, and determine the height of the newspaper article based on the width of the image and / or the width of the text content.
[0090] Newspaper articles, in addition to the title, also include images and / or text content. For images, their width can be adjusted according to the width of the newspaper article's border. As an example, a preset width parameter, such as 0.8, will be used as the width of the image within the newspaper article, calculated by multiplying the newspaper article's border width by 0.8.
[0091] For text content, adjust the width of the text content within the newspaper article according to the width of the newspaper article's border. As an example, with a preset content parameter of 1, the product of the newspaper article's border width and 1 will be used as the width of the text content within the newspaper article.
[0092] exist Figure 5 In one embodiment, the image and text content are adjusted based on the newspaper article border.
[0093] S402. Take the first N newspaper articles as newspaper articles to be typed, and set the first newspaper article to be typed in the preset position of the updated page based on the newspaper article border.
[0094] The first N newspaper articles can be used as the articles to be typeset in the newspaper. N is a preset parameter that is less than the total number of newspaper articles in each page of the digital newspaper. Therefore, in a single page, the number of newspaper articles in the updated page is less than the number of original newspaper articles. Thus, in a single page, the first N newspaper articles can be displayed.
[0095] Specifically, the first newspaper article to be formatted can be placed in a preset position on the updated page based on the newspaper article border. For example, the first newspaper article to be formatted can be placed in the upper left corner of the updated page.
[0096] S403. Based on the remaining pages and remaining newspaper articles to be typed after the updated layout, type the remaining newspaper articles according to their borders.
[0097] After setting a newspaper article to be typed, you can type it according to the newspaper article borders of the remaining articles to be typed, based on the remaining pages of the updated typed layout and the remaining newspaper articles to be typed.
[0098] In one embodiment of the present invention, after setting the first newspaper article to be typed, a second newspaper article to be typed can be set. That is, based on the remaining space of the updated layout and the second newspaper article to be typed, the second newspaper article is typed according to its border. As an example, the first newspaper article is set in the upper left corner of the updated layout. If the minimum width of the remaining space of the updated layout is greater than or equal to the border of the second newspaper article to be typed, then the second newspaper article to be typed is set in the upper right corner of the updated layout; if the minimum width of the remaining space of the updated layout is less than the border of the second newspaper article to be typed, then the second newspaper article to be typed is set below the border of the first newspaper article to be typed. Similarly, N-2 more newspaper articles to be typed are set.
[0099] See Figure 6 That is, 600. Figure 6 This is a schematic diagram illustrating the process of arranging newspaper articles according to the borders of the remaining articles to be typeset, based on an embodiment of the present invention. It includes the following steps:
[0100] S601. Based on the minimum width of the remaining page space in the updated layout and the width of the newspaper article border of the remaining newspaper articles to be typed, determine the next newspaper article to be typed.
[0101] After setting one newspaper article to be typed, you can continue to set the next one. The next article can be determined based on the minimum width of the remaining space in the updated layout.
[0102] As an example, the next newspaper article to be typed is determined based on the minimum width of the remaining space in the updated layout and the width of the borders of the remaining articles to be typed. For instance, if the minimum width of the remaining space in the updated layout is 5 cm, and the remaining articles to be typed include Article 1, Article 2, and Article 3, with Article 1 having a border width of 4 cm, Article 2 having a border width of 5 cm, and Article 3 having a border width of 7 cm, then because the border width of Article 1 is less than the minimum width of the remaining space in the updated layout, and Article 1 is the second article to be typed while Article 2 is the third, and Article 1 is listed before Article 2, Article 1 is selected as the next article to be typed.
[0103] S602. Update the remaining pages of the updated layout, and arrange the newspaper articles according to the borders of the remaining articles to be typed.
[0104] After setting the next newspaper article to be typed, update the remaining page space and type the remaining articles according to their borders. Repeat steps S601 and S602 until the last newspaper article to be typed is completed.
[0105] In one embodiment of the present invention, in order to speed up the typesetting of newspaper articles, the following typesetting method can be used.
[0106] The minimum width of the remaining pages after the update is less than the border width of any remaining newspaper article to be typed, and the next remaining newspaper article to be typed is set in the preset position.
[0107] As an example, the minimum width of the remaining space in the updated layout is 5 cm, and the remaining newspaper articles to be typed include newspaper article 1, newspaper article 2, and newspaper article 3. The border width of newspaper article 1 is 7 cm, the border width of newspaper article 2 is 8 cm, and the border width of newspaper article 3 is 6 cm.
[0108] If the minimum width of the remaining space after the update is less than the border width of any remaining newspaper article to be typed, then newspaper article 1 will be the next remaining newspaper article to be typed. Newspaper article 1 will then be placed below the previous newspaper article.
[0109] Then, update the remaining pages of the page, and arrange them according to the borders of the remaining newspaper articles to be typed.
[0110] exist Figure 4 In this embodiment, an updated layout for each digital newspaper is created according to the newspaper article borders. Finally, each layout is reformatted to create a digital newspaper tailored to the user.
[0111] In the above embodiments, the user's organization, historical newspaper articles, and basic information are obtained based on the user's identifier. Based on these information, newspaper articles are arranged in each digital newspaper edition. The first N articles in each edition are then used to create an updated layout for that edition, following the article borders. This updated layout is then used to construct a digital newspaper corresponding to the user's identifier, where N is a preset parameter. This allows for the display of corresponding digital newspapers to different users.
[0112] For users, the displayed digital newspapers will differ depending on their organization, their past newspaper articles, and their basic information. The displayed digital newspapers are selected and adjusted from the original digital newspaper articles to better suit the user. This allows for the display of the appropriate digital newspaper for each user.
[0113] See Figure 7 , Figure 7 This is a schematic diagram of the main structure of a device for displaying digital newspapers according to an embodiment of the present invention. The device for displaying digital newspapers can implement a method for displaying digital newspapers, such as... Figure 7As shown in Figure 700, the device for displaying digital newspapers specifically includes:
[0114] The acquisition module 701 is used to acquire the user's organization, the user's historical newspaper articles, and the user's basic information based on the user's identifier;
[0115] The sorting module 702 is used to sort newspaper articles in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information.
[0116] The construction module 703 is used to take the first N newspaper articles in each digital newspaper after arrangement, establish the updated layout of each digital newspaper according to the newspaper article borders, and construct the digital newspaper corresponding to the user identifier with the updated layout. N is a preset parameter.
[0117] In one embodiment of the present invention, the acquisition module 701 is specifically used to search the user database based on the user identifier to obtain the user's organization and basic user information;
[0118] Based on the user identifier, the user's historical newspaper articles are determined from the browsing history.
[0119] In one embodiment of the present invention, the sorting module 702 is specifically used to select newspaper articles with high relevance to the user's institution as the first type of newspaper articles for the same version of digital newspaper.
[0120] Among the remaining newspaper articles in the same edition of the digital newspaper, those similar to the historical newspaper articles and the user's basic information are selected as the second category of newspaper articles;
[0121] In each edition of the digital newspaper, the first category of newspaper articles is arranged first, followed by the second category of newspaper articles.
[0122] In one embodiment of the present invention, the construction module 703 is specifically used to establish the border of the newspaper article based on the title of the newspaper article;
[0123] The first N newspaper articles are taken as newspaper articles to be typed, and the first newspaper article to be typed is set at a preset position on the updated page based on the newspaper article border;
[0124] Based on the remaining pages and remaining newspaper articles to be typed according to the updated layout, the remaining newspaper articles to be typed are typed according to their borders.
[0125] In one embodiment of the present invention, the construction module 703 is specifically used to use the width of the title of the newspaper article as the width of the border of the newspaper article;
[0126] Adjust the width of the image in the newspaper article according to the width of the newspaper article border, and / or adjust the width of the text content in the newspaper article according to the width of the newspaper article border, and determine the height of the newspaper article based on the width of the image and / or the width of the text content.
[0127] In one embodiment of the present invention, the construction module 703 is specifically used to determine the next newspaper article to be typed based on the minimum width of the remaining page of the updated page and the width of the newspaper article border of the remaining newspaper articles to be typed.
[0128] Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
[0129] In one embodiment of the present invention, the construction module 703 is specifically used to ensure that the minimum width of the remaining page after the update is less than the border width of any remaining newspaper article to be typed, and to set the next remaining newspaper article to be typed at a preset position.
[0130] Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
[0131] Figure 8 An exemplary system architecture 800 is shown, which can be applied to a method or apparatus for displaying a digital newspaper according to embodiments of the present invention.
[0132] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, and 803, a network 804, and a server 805. Network 804 serves as the medium for providing communication links between terminal devices 801, 802, and 803 and server 805. Network 804 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0133] Users can use terminal devices 801, 802, and 803 to interact with server 805 via network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0134] Terminal devices 801, 802, and 803 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0135] Server 805 can be a server providing various services, such as a backend management server supporting shopping websites browsed by users using terminal devices 801, 802, and 803 (for example only). The backend management server can analyze and process data such as received product information query requests, and feed back the processing results (such as target push information and product information—for example only) to the terminal devices.
[0136] It should be noted that the method for displaying digital newspapers provided in this embodiment of the invention is generally executed by server 805, and correspondingly, the device for displaying digital newspapers is generally located in server 805.
[0137] It should be understood that Figure 8 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0138] A computing program product according to an embodiment of the present invention includes a computer program, which, when executed by a processor, implements the method for displaying digital newspapers provided in an embodiment of the present invention.
[0139] The following is for reference. Figure 9 It shows a schematic diagram of the structure of a computer system 900 suitable for implementing a terminal device of the present invention. Figure 9 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0140] like Figure 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 902 or programs loaded from storage section 908 into random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the system 900. The CPU 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0141] The following components are connected to I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 910 as needed so that computer programs read from it can be installed into storage section 908 as needed.
[0142] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 909, and / or installed from removable medium 911. When the computer program is executed by central processing unit (CPU) 901, it performs the functions defined above in the system of this invention.
[0143] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0144] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0145] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including an acquisition module, an arrangement module, and a construction module. The names of these modules do not necessarily limit the module itself; for example, the acquisition module can also be described as "for acquiring the user's organization, the user's historical newspaper articles, and basic user information based on the user's identifier."
[0146] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include:
[0147] Based on user identifiers, information such as the user's organization, historical newspaper articles, and basic user information is obtained.
[0148] The newspaper articles are arranged in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information.
[0149] The first N newspaper articles in each digital newspaper are arranged, and an updated layout for each digital newspaper is created according to the newspaper article borders. The updated layout is then used to construct a digital newspaper corresponding to the user identifier. N is a preset parameter.
[0150] According to the technical solution of this invention, the user's organization, historical newspaper articles, and basic information are obtained based on the user's identifier. Based on these information, newspaper articles are arranged in each digital newspaper edition. The first N articles in each digital newspaper edition are then arranged according to their borders to create an updated layout for that edition. A digital newspaper corresponding to the user's identifier is then constructed using this updated layout, where N is a preset parameter. This allows for the display of corresponding digital newspapers to different users.
[0151] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0152] It should be noted that the collection, analysis, use, transmission, and storage of user personal information involved in the technical solution of this invention all comply with relevant laws and regulations, are used for legitimate and reasonable purposes, and are not shared, disclosed, or sold outside of these legitimate uses, and are subject to supervision and management by regulatory authorities. Necessary measures should be taken to prevent unauthorized access to such personal information data, ensure that personnel authorized to access personal information data comply with relevant laws and regulations, and ensure the security of user personal information. Once this user personal information data is no longer needed, the risk should be minimized by restricting or even prohibiting data collection and / or deleting the data.
[0153] When applicable, including in certain relevant applications, data deidentification is used to protect user privacy, such as by removing specific identifiers (e.g., date of birth), controlling the amount or specificity of stored data (e.g., collecting location data at the city level rather than at the specific address level), controlling how data is stored, and / or other methods of deidentification.
Claims
1. A method for displaying a digital newspaper, characterized in that, include: Based on user identifiers, information such as the user's organization, historical newspaper articles, and basic user information is obtained. The newspaper articles are arranged in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information. The first N newspaper articles in each digital newspaper are arranged and updated according to the newspaper article borders. The updated layout of each digital newspaper is then used to construct a digital newspaper corresponding to the user identifier. N is a preset parameter. N is a preset parameter that is less than the total number of newspaper articles in each digital newspaper. The process of creating an updated layout for each digital newspaper page by taking the first N articles from each page and arranging them according to the article borders includes: Create a border for the newspaper article based on its title; The first N newspaper articles are taken as newspaper articles to be typed, and the first newspaper article to be typed is set at a preset position on the updated page based on the newspaper article border; Based on the remaining pages of the updated layout and the remaining newspaper articles to be typed, the layout is arranged according to the newspaper article borders of the remaining newspaper articles to be typed; The step of creating a border for the newspaper article based on its title includes: Use the width of the newspaper article's title as the width of the newspaper article's border; Adjust the width of the image in the newspaper article according to the width of the newspaper article border, and / or adjust the width of the text content in the newspaper article according to the width of the newspaper article border, and determine the height of the newspaper article based on the width of the image and / or the width of the text content; The remaining pages and remaining newspaper articles to be typeset based on the updated layout, and the typesetting according to the newspaper article borders of the remaining newspaper articles to be typeset, include: Based on the minimum width of the remaining space in the updated layout and the width of the newspaper article border of the remaining newspaper articles to be typed, determine the next newspaper article to be typed; Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed; The process of updating the remaining pages of the updated page, and arranging them according to the borders of the remaining newspaper articles to be typeset, includes: The minimum width of the remaining page after the update is less than the border width of any remaining newspaper article to be typed, and the next remaining newspaper article to be typed is set in the preset position. Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
2. The method for displaying a digital newspaper according to claim 1, characterized in that, The process of obtaining the user's organization, historical newspaper articles, and basic user information based on the user identifier includes: Based on the user identifier, a search is conducted in the user database to obtain the user's organization and basic user information; Based on the user identifier, the user's historical newspaper articles are determined from the browsing history.
3. The method for displaying a digital newspaper according to claim 1, characterized in that, The arrangement of newspaper articles in each digital newspaper edition, based on the user's organization, historical newspaper articles, and basic user information, includes: For the same edition of a digital newspaper, newspaper articles with high relevance to the user's organization are selected as the first category of newspaper articles; Among the remaining newspaper articles in the same edition of the digital newspaper, those similar to the historical newspaper articles and the user's basic information are selected as the second category of newspaper articles; In each edition of the digital newspaper, the first category of newspaper articles is arranged first, followed by the second category of newspaper articles.
4. A device for displaying digital newspapers, characterized in that, include: The acquisition module is used to obtain the user's organization, the user's historical newspaper articles, and the user's basic information based on the user's identifier; The sorting module is used to sort newspaper articles in each edition of the digital newspaper based on the user's organization, the user's historical newspaper articles, and the user's basic information. The module is used to take the first N newspaper articles in each digital newspaper after they are arranged, and build an updated layout for each digital newspaper according to the newspaper article borders. The updated layout is used to build a digital newspaper corresponding to the user identifier. N is a preset parameter. In addition, the newspaper article border is established based on the title of the newspaper article; the first N newspaper articles are taken as newspaper articles to be typed, and the first newspaper article to be typed is set in a preset position on the updated page based on the newspaper article border; Based on the remaining pages of the updated layout and the remaining newspaper articles to be typed, the layout is arranged according to the newspaper article borders of the remaining newspaper articles to be typed; N is a preset parameter that is less than the total number of newspaper articles in each digital edition; In addition, the width of the newspaper article's title is used as the width of the newspaper article's border; Adjust the width of the image in the newspaper article according to the width of the newspaper article border, and / or adjust the width of the text content in the newspaper article according to the width of the newspaper article border, and determine the height of the newspaper article based on the width of the image and / or the width of the text content; And, based on the minimum width of the remaining page of the updated layout and the width of the newspaper article border of the remaining newspaper articles to be typed, determine the next newspaper article to be typed; Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed; In addition, the minimum width of the remaining page after the update is less than the border width of any remaining newspaper article to be typed, and the next remaining newspaper article to be typed is set at a preset position; Update the remaining pages of the updated page, and arrange them according to the borders of the remaining newspaper articles to be typed.
5. An electronic device for displaying digital newspapers, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-3.
6. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-3.
7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-3.