CN109783745B - Method, device and computer equipment for personalized typesetting of pages - Google Patents

Method, device and computer equipment for personalized typesetting of pages Download PDF

Info

Publication number
CN109783745B
CN109783745B CN201811511275.6A CN201811511275A CN109783745B CN 109783745 B CN109783745 B CN 109783745B CN 201811511275 A CN201811511275 A CN 201811511275A CN 109783745 B CN109783745 B CN 109783745B
Authority
CN
China
Prior art keywords
page
typeset
page element
display position
elements
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
CN201811511275.6A
Other languages
Chinese (zh)
Other versions
CN109783745A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811511275.6A priority Critical patent/CN109783745B/en
Publication of CN109783745A publication Critical patent/CN109783745A/en
Application granted granted Critical
Publication of CN109783745B publication Critical patent/CN109783745B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device and computer equipment for personalized typesetting of pages, which relate to the field of webpage configuration, and the method comprises the following steps: acquiring page elements to be typeset; acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page; determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page; and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset. The method improves the adaptation degree and the accuracy of automatic typesetting of the pages used by the user.

Description

Method, device and computer equipment for personalized typesetting of pages
Technical Field
The present invention relates to the field of web page configuration, and in particular, to a method, an apparatus, and a computer device for personalized typesetting of a page.
Background
When testing the server system, a tester needs to drag and combine various page elements which are subjected to graphical programming on the page of the testing system so as to complete a series of testing actions. Along with the change of the test system, the types and the number of the page elements are different, and the typesetting of the page is changed. Due to the differences of habits and preferences of testers, the method has individual requirements on the distribution positions of page elements, namely the typesetting of pages.
In the prior art, the page typesetting of the test system is fixed in advance, and the typesetting is not adaptively adjusted along with the testers. Therefore, how to perform personalized typesetting on the pages aiming at specific users has practical and important significance.
Disclosure of Invention
Based on the above, in order to solve the technical problems of how to perform personalized typesetting on the pages in the technical aspect in the related art, the invention provides a method, a device and computer equipment for performing personalized typesetting on the pages.
In a first aspect, a method for personalized typesetting of a page is provided, including:
acquiring page elements to be typeset;
acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page;
determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page;
and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
In an exemplary embodiment of the present disclosure, the display position is determined by the following method: and determining the display position of the page element according to the coordinates of the vertex of the page element in the page.
In an exemplary embodiment of the present disclosure, obtaining a display position of a history page element matched with each page element to be typeset on a history page includes:
determining all used historical page elements of a user in a preset time period before a current time point from a log of the user terminal;
and acquiring historical page elements matched with the page elements to be typeset and corresponding display positions in each historical page.
In an exemplary embodiment of the present disclosure, determining, based on a display position of the history page element matched with the page element to be typeset on the history page, a display position of each page element to be typeset on the page to be typeset includes:
placing the page elements to be typeset, which are matched with the historical page elements, in a matched page element set, and placing the page elements to be typeset, which are not matched with the historical page elements, in a undetermined page element set;
determining the display position of each page element in the matched page element set on the page to be typeset based on the display position of the corresponding historical page element on the historical page;
and determining the display position of each page element in the page element set to be typeset on the basis of the display position of each page element in the page element set to be typeset on the page to be typeset.
In an exemplary embodiment of the present disclosure, for each page element in the matching page element set, determining, based on a display position of the corresponding history page element on the history page, a display position of the page element on the page to be typeset includes:
for each page element in the matched page element set, if only one display position of the corresponding historical page element is displayed on the historical page, determining the display position as a tentative display position of the page element on the page to be typeset; if the display positions of the corresponding historical page elements on the historical page are multiple, determining the display position with the largest occurrence number as a tentative display position of the page element on the page to be typeset;
for a page element in the matched page element set, if the corresponding temporary display position is not overlapped with the temporary display positions of other page elements, determining the temporary display position as the determined display position of the page element on the page to be typeset; if the temporary display positions of other page elements overlap, determining the overlapping display positions as the determined display positions of the page elements with the largest number of times in a preset time period in the page elements corresponding to the overlapping display positions, and placing the other page elements in the page elements corresponding to the overlapping display positions in the set of undetermined page elements.
In an exemplary embodiment of the present disclosure, for each page element in the set of page elements to be determined, determining, based on a display position of each page element in the set of page elements to be typeset on the page to be typeset, a display position of the page element on the page to be typeset includes:
according to the sequence from left to right, determining page elements corresponding to the determined display positions adjacent to the unit blank positions as reference page elements for the unit blank positions among the determined display positions on the page to be typeset;
determining the similarity between each page element in the undetermined page element set and the reference page element;
and determining the unit blank position as a determined display position of the page element corresponding to the maximum similarity.
In an exemplary embodiment of the disclosure, determining, for each page element in the set of pending page elements, its similarity to the reference page element includes:
extracting a continuous operation sequence of page elements recorded in a preset time period in a log;
determining that a continuous operation sequence of the page element and the reference page element exists simultaneously for a page element in the undetermined page element set;
and determining the average value of the inverse of the sequence difference between the page element and the reference page element in all the continuous operation sequences as the similarity between the page element and the reference page element.
In an exemplary embodiment of the present disclosure, for a page element in the set of pending page elements, if there is no sequence of consecutive operations for the page element to exist with the reference page element at the same time, the similarity of the page element to the reference page element is determined to be 0.
In an exemplary embodiment of the present disclosure, after the unit blank position is determined as the determined display position of the page element corresponding to the maximum similarity, the page element corresponding to the maximum similarity is removed from the pending page element set.
According to a second aspect of the present disclosure, there is provided an apparatus for personalized typesetting of a page, including:
the first acquisition module is used for acquiring page elements to be typeset;
the second acquisition module is used for acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page;
the determining module is used for determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page;
and the typesetting module is used for typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
According to a third aspect of the present disclosure, there is provided an electronic device for personalized typesetting of pages, including:
and a memory configured to store the executable instructions.
A processor configured to execute the executable instructions stored in the memory to perform the method described above.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method described above.
Compared with the traditional technology that automatic typesetting of pages is directly performed according to a preset fixed template, the embodiment of the disclosure performs statistics and analysis on pages used by users historically, and typesets the pages according to personal use habits of the users, so that the adaptation degree and the accuracy of typesetting of the pages used by the users are improved.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
FIG. 1 illustrates a flow diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure.
Fig. 2 shows a block diagram of an apparatus for personalized typesetting of a page, according to an example embodiment of the present disclosure.
FIG. 3 illustrates a detailed flow diagram for obtaining a display position of a history page element matching a page element to be typeset on a history page according to an example embodiment of the present disclosure.
FIG. 4 illustrates a detailed flow diagram for determining display positions of various generations of typeset page elements on a page to be typeset based on display positions of historical page elements on a historical page that match the page elements to be typeset, according to an example embodiment of the present disclosure.
FIG. 5 illustrates a detailed flow diagram for determining a display position of a page element on a page to be typeset based on a display position of a corresponding historical page element on a historical page for each page element in a set of matching page elements according to an example embodiment of the present disclosure.
Fig. 6 is a detailed flowchart illustrating determining a display position of a page element on a page to be typeset based on a display position of each page element in the set of matching page elements on the page to be typeset, according to an example embodiment of the present disclosure.
FIG. 7 illustrates a detailed flow diagram for determining the similarity of each page element in a set of pending page elements to a reference page element, according to an example embodiment of the present disclosure.
FIG. 8 illustrates a system architecture diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure.
FIG. 9 illustrates an electronic device diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure.
FIG. 10 illustrates a computer-readable storage medium diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The purpose of the present disclosure is to improve the accuracy of personalized typesetting of pages from a technical aspect. According to one embodiment of the disclosure, a method for personalized typesetting of pages comprises the following steps: acquiring page elements to be typeset; acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page; determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page; and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset. Compared with the traditional technology that automatic typesetting of pages is directly performed according to a preset fixed template, the embodiment of the disclosure performs statistics and analysis on the pages used by the user historically, and typesets the pages according to personal use habits of the user, so that the accuracy of personalized typesetting of the pages used by the user is improved.
FIG. 1 illustrates a flow diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure:
step S100: acquiring page elements to be typeset;
step S110: acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page;
step S120: determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page;
step S130: and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
Hereinafter, each step of personalized typesetting of the page in the present exemplary embodiment will be explained and described in detail with reference to the accompanying drawings.
In step S100, page elements to be typeset are acquired.
The page elements to be typeset refer to graphical elements for direct operation of a user, wherein the graphical elements are to be subjected to position determination on the page to be typeset.
In one embodiment, a user request for use of a page is obtained for which a predetermined page element is already present. And taking the page as a page to be typeset, taking the page element as a page element to be typeset, and performing personalized typesetting aiming at the user.
In step S110, a display position of a history page element matched with each page element to be typeset on the history page is obtained.
The history page refers to each page used by the user historically, and the history page element refers to the page element on the history page.
By acquiring the display positions of the history page elements on the history page, the display positions preferred by the user for the page elements can be determined therefrom.
In one embodiment, the display position is determined by the following method: and determining the display position of the page element according to the coordinates of the vertex of the page element in the page. For example: the page elements are displayed on the page in a rectangular shape, wherein the coordinates of four vertexes of one page element are (20, 40), (40, 40), (20, 20), (40, 20), respectively, and the display position of the page element is a rectangular area enclosed by the four vertexes on the page.
In one embodiment, as shown in fig. 3, step S110 includes:
step S1101: determining all used historical page elements of a user in a preset time period before a current time point from a log of the user terminal;
step S1102: and acquiring historical page elements matched with the page elements to be typeset and corresponding display positions in each historical page.
In one embodiment, the log of the user terminal is retrieved, each operation sequence generated by the user operating on the history page element within 48 hours before the current time point is obtained, and the number of times the history page element identical to each page element to be typeset is used by the operation and the display position corresponding to the history page element are determined.
In step S120, based on the display positions of the history page elements matched with the page elements to be typeset on the history page, the display positions of the page elements to be typeset on the page to be typeset are determined.
By the method, the display position of each page element to be typeset on the page to be typeset can accord with the use preference of a user.
In one embodiment, as shown in fig. 4, step S120 includes:
step S1201: placing the page elements to be typeset, which are matched with the historical page elements, in a matched page element set, and placing the page elements to be typeset, which are not matched with the historical page elements, in a undetermined page element set;
step S1202: determining the display position of each page element in the matched page element set on the page to be typeset based on the display position of the corresponding historical page element on the historical page;
step S1203: and determining the display position of each page element in the page element set to be typeset on the basis of the display position of each page element in the page element set to be typeset on the page to be typeset.
The method comprises the steps of dividing the page elements to be typeset into a matched page element set and a to-be-typeset page element set, and determining the display positions of the page elements in the two sets on the page to be typeset according to corresponding rules, so that the determination of the display positions of the page elements to be typeset on the page to be typeset is realized.
In one embodiment, as shown in fig. 5, step S1202 includes:
step S12021: for each page element in the matched page element set, if only one display position of the corresponding historical page element is displayed on the historical page, determining the display position as a tentative display position of the page element on the page to be typeset; if the display positions of the corresponding historical page elements on the historical page are multiple, determining the display position with the largest occurrence number as a tentative display position of the page element on the page to be typeset;
step S12022: for a page element in the matched page element set, if the corresponding temporary display position is not overlapped with the temporary display positions of other page elements, determining the temporary display position as the determined display position of the page element on the page to be typeset; if the temporary display positions of other page elements overlap, determining the overlapping display positions as the determined display positions of the page elements with the largest number of times in a preset time period in the page elements corresponding to the overlapping display positions, and placing the other page elements in the page elements corresponding to the overlapping display positions in the set of undetermined page elements.
By the method, the display position of the page elements in the matched page element set on the page to be typeset is determined.
In one embodiment, the matching page element set includes: page element a, page element B, page element C, page element D. The display positions on different pages are not necessarily the same for a page element. Such as: the page element a appears in 10 different pages, in which the coordinates of the page element a display position in 3 pages are [ 20, 0) (40, 10) (20, 10) ], and the coordinates of the page element a display position in the other 7 pages are [ 0, 0) (20, 10) (0, 10) ], the coordinates of the tentative display position of the page element a on the page to be typeset are determined to be [ 0, 0) (20, 10) (0, 10) ]. Similarly, coordinates of all page elements in the matched page element set and temporary display positions on the page to be typeset are obtained: (0, 0) (20, 10) (0, 10), (40, 0) (60,0) (60, 10) (40, 10), (80, 0) (100, 10) (80, 10), (40, 0) (60,0) (60, 10) (40, 10), (80, 0) (100, 0) (80, 10). The temporary display positions of the page element A and the page element C are not overlapped with the temporary display positions of any page element, the determined display position of the page element A on the page to be typeset is [ 0, 0) (20, 10) (0, 10) ], and the determined display position of the page element C on the page to be typeset is [ 80, 0) (100, 10) (80, 10) ]. Since the temporary display positions of the page element B and the page element D overlap, the page element B is used 7 times and the page element D is used 11 times within 48 hours at the current time point according to the record statistics of the log, the [ 80, 0) (100, 10) (80, 10) ] is determined as the coordinates of the determined display position of the page element D, and the page element B is placed in the pending page element set.
In one embodiment, as shown in fig. 6, step S1203 includes:
step S12031: according to the sequence from left to right, determining page elements corresponding to the determined display positions adjacent to the unit blank positions as reference page elements for the unit blank positions among the determined display positions on the page to be typeset;
step S12032: determining the similarity between each page element in the undetermined page element set and the reference page element;
step S12033: and determining the unit blank position as a determined display position of the page element corresponding to the maximum similarity.
The unit blank position is a position of a unit area, which is used for placing a page element and blank on the page to be typeset.
By the method, the determined display positions of the page elements to be typeset are determined, so that the positions of all the page elements to be typeset are determined.
In one embodiment, as shown in fig. 7, step S12032 includes:
step S120321: extracting a continuous operation sequence of page elements recorded in a preset time period in a log;
step S120322: determining that a continuous operation sequence of the page element and the reference page element exists simultaneously for a page element in the undetermined page element set;
step S120323: and determining the average value of the inverse of the sequence difference between the page element and the reference page element in all the continuous operation sequences as the similarity between the page element and the reference page element.
The operation sequence is a page element sequence obtained by arranging page elements in a complete operation performed by a user according to a called sequence.
By the method, the similarity between each page element in the undetermined page element set and the reference page element is determined, and the similarity between each page element and the reference page element in the undetermined page element set is measured by the similarity.
In an embodiment, coordinates of the determined display positions on the page to be typeset are corresponding to the page element a, the page element D, and the page element C, respectively: (0, 0) (20, 10) (0, 10), (40, 0) (60,0) (60, 10) (40, 10), (80, 0) (100, 10) (80, 10), (0, 0) (20, 10). According to the sequence from left to right, the coordinates of the unit blank position determined first are [ 20, 0) (40, 10) (20, 10) ], for the unit blank position, the page element with the highest similarity with the page element A needs to be selected from the page element set to be determined, and the unit blank position is determined as the determined display position of the unit blank position on the page to be typeset.
Among the pending page element sets, there are page element B, page element E, page element F. There is an operational sequence: [ Page element X, reference Page element, page element X, page element B ]. In this sequence of operations, the sequence difference between the page element B and the reference page element is 2, and the reciprocal of the sequence difference is 1/2. And extracting operation sequences of the page element B and the reference page element in 48 hours before the current time point recorded in the log, and taking an average value of the sequence differences of the page element B and the reference page element as the similarity of the page element B and the reference page element according to the calculation method of the sequence differences of the inverse. And similarly, the similarity of the page element E, the page element F and the reference page element is respectively determined.
In an embodiment, in 48 hours before the current time point recorded in the log, there is no operation sequence in which the page element F and the reference page element exist at the same time, and then the similarity between the page element F and the reference page element is determined to be 0.
In an embodiment, the similarity between the page element B and the reference page element is 1/3, the similarity between the page element E and the reference page element is 1/5, and the similarity between the page element F and the reference page element is 0, determining the corresponding adjacent unit blank positions of the reference page element as the display positions of the page element F on the page to be typeset, and removing the page element F from the page element set to be typeset.
In an embodiment, as shown in fig. 2, an apparatus for personalized typesetting of a page is provided, which specifically includes:
a first obtaining module 210, configured to obtain a page element to be typeset;
a second obtaining module 220, configured to obtain a display position of a history page element that is matched with each page element to be typeset on a history page;
a determining module 230, configured to determine a display position of each to-be-typeset page element on the to-be-typeset page based on the display position of the history page element matched with the to-be-typeset page element on the history page;
and the typesetting module 240 is configured to typeset the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
The implementation process of the functions and roles of each module in the device is specifically detailed in the implementation process of the corresponding steps in the method for personalized typesetting of pages, and is not repeated here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
FIG. 8 illustrates a system architecture diagram for personalized typesetting of a page, according to an example embodiment of the present disclosure. The system architecture comprises: target user client 310, server 320, database 330.
In an embodiment, a target user client 310 sends an access request of a page to a server 320, after the server 320 receives the access request, an operation record of the target user client 310 on page elements in each page in a predetermined period before a current time point is extracted from a log stored in a database 330, based on the operation record, personalized typesetting is performed on the page requested by the target user client 310, and then the page with personalized typesetting is returned to the target user client 310.
From the above description of the system architecture, those skilled in the art will readily understand that the system architecture described herein can implement the functions of each module in the apparatus for personalized typesetting of pages shown in fig. 2.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 400 according to this embodiment of the invention is described below with reference to fig. 9. The electronic device 400 shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 9, the electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: the at least one processing unit 410, the at least one memory unit 420, and a bus 430 connecting the various system components, including the memory unit 420 and the processing unit 410.
Wherein the storage unit stores program code that is executable by the processing unit 410 such that the processing unit 410 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 410 may perform step S100 as shown in fig. 1: acquiring page elements to be typeset; step S110: acquiring the display positions of the history page elements matched with the page elements to be typeset on the history page; step S120: determining the display position of each page element to be typeset on the page to be typeset based on the display position of the history page element matched with the page element to be typeset on the history page; step S130: and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
The storage unit 420 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 4201 and/or cache memory 4202, and may further include Read Only Memory (ROM) 4203.
The storage unit 420 may also include a program/utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 430 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 400, and/or any device (e.g., router, modem, etc.) that enables the electronic device 400 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 450. Also, electronic device 400 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 460. As shown, the network adapter 460 communicates with other modules of the electronic device 400 over the bus 430. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 400, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 10, a program product 600 for implementing the above-described method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable 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), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
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.

Claims (7)

1. A method for personalized typesetting of pages, the method comprising:
acquiring page elements to be typeset;
determining all used historical page elements of a user in a preset time period before a current time point from a log of a user terminal, and acquiring corresponding display positions of the historical page elements matched with the page elements to be typeset in each historical page;
placing the page elements to be typeset, which are matched with the historical page elements, in a matched page element set, and placing the page elements to be typeset, which are not matched with the historical page elements, in a undetermined page element set;
for each page element in the matched page element set, if only one display position of the corresponding historical page element is displayed on the historical page, determining the display position as a tentative display position of the page element on the page to be typeset; if the display positions of the corresponding historical page elements on the historical page are multiple, determining the display position with the largest occurrence number as a tentative display position of the page element on the page to be typeset;
for a page element in the matched page element set, if the corresponding temporary display position is not overlapped with the temporary display positions of other page elements, determining the temporary display position as the determined display position of the page element on the page to be typeset; if the temporary display positions of other page elements overlap, determining the overlapping display positions as the determined display positions of the page elements with the largest number of times of use in a preset time period in the page elements corresponding to the overlapping display positions, and placing other page elements in the page elements corresponding to the overlapping display positions in the set of undetermined page elements;
determining the display position of each page element in the page element set to be typeset on the basis of the display position of each page element in the page element set to be typeset on the page to be typeset;
and typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
2. The method of claim 1, wherein the display position is determined by: and determining the display position of the page element according to the coordinates of the vertex of the page element in the page.
3. The method of claim 1, wherein the determining, for each page element in the set of pending page elements, a display position of each page element in the set of matching page elements on the page to be typeset based on a display position of the page element on the page to be typeset, comprises:
according to the sequence from left to right, determining page elements corresponding to the determined display positions adjacent to the unit blank positions as reference page elements for the unit blank positions among the determined display positions on the page to be typeset;
determining the similarity between each page element in the undetermined page element set and the reference page element;
and determining the unit blank position as a determined display position of the page element corresponding to the maximum similarity.
4. A method according to claim 3, wherein said determining, for each page element in said set of pending page elements, its similarity to said reference page element comprises:
extracting a continuous operation sequence of page elements recorded in a preset time period in a log;
determining that a continuous operation sequence of the page element and the reference page element exists simultaneously for a page element in the undetermined page element set;
and determining the average value of the inverse of the sequence difference between the page element and the reference page element in all the continuous operation sequences as the similarity between the page element and the reference page element.
5. An apparatus for personalized typesetting of pages, comprising:
the first acquisition module is used for acquiring page elements to be typeset;
the second acquisition module is used for determining all used historical page elements of a user in a preset time period before a current time point from a log of the user terminal, and acquiring display positions of the historical page elements matched with the page elements to be typeset in each historical page;
the determining module is used for placing the page elements to be typeset, which are matched with the historical page elements, in a matched page element set, and placing the page elements to be typeset, which are not matched with the historical page elements, in a undetermined page element set;
the determining module is further configured to determine, for each page element in the matching page element set, if only one display position of the corresponding historical page element on the historical page exists, the display position as a tentative display position of the page element on the page to be typeset; if the display positions of the corresponding historical page elements on the historical page are multiple, determining the display position with the largest occurrence number as a tentative display position of the page element on the page to be typeset;
the determining module is further configured to determine, for a page element in the matched page element set, the corresponding temporary display position, if the temporary display position does not overlap with the temporary display positions of other page elements, the temporary display position as a determined display position of the page element on the page to be typeset; if the temporary display positions of other page elements overlap, determining the overlapping display positions as the determined display positions of the page elements with the largest number of times of use in a preset time period in the page elements corresponding to the overlapping display positions, and placing other page elements in the page elements corresponding to the overlapping display positions in the set of undetermined page elements;
the determining module is further configured to determine, for each page element in the set of page elements to be determined, a display position of the page element on the page to be typeset based on a display position of each page element in the set of page elements to be matched on the page to be typeset;
and the typesetting module is used for typesetting the page to be typeset based on the display position of each page element to be typeset on the page to be typeset.
6. An electronic device for personalized typesetting of pages, comprising:
a memory configured to store executable instructions;
a processor configured to execute executable instructions stored in the memory to perform the method according to any one of claims 1-4.
7. A computer readable storage medium, characterized in that it stores computer program instructions, which when executed by a computer, cause the computer to perform the method according to any of claims 1-4.
CN201811511275.6A 2018-12-11 2018-12-11 Method, device and computer equipment for personalized typesetting of pages Active CN109783745B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811511275.6A CN109783745B (en) 2018-12-11 2018-12-11 Method, device and computer equipment for personalized typesetting of pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811511275.6A CN109783745B (en) 2018-12-11 2018-12-11 Method, device and computer equipment for personalized typesetting of pages

Publications (2)

Publication Number Publication Date
CN109783745A CN109783745A (en) 2019-05-21
CN109783745B true CN109783745B (en) 2024-03-15

Family

ID=66496143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811511275.6A Active CN109783745B (en) 2018-12-11 2018-12-11 Method, device and computer equipment for personalized typesetting of pages

Country Status (1)

Country Link
CN (1) CN109783745B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111177602A (en) * 2019-12-04 2020-05-19 思齐芙蓉教育集团(湖南)有限公司 Method and system for paging typesetting of webpage content

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6590584B1 (en) * 1999-05-17 2003-07-08 Fuji Xerox Co., Ltd. Image editing method and apparatus
US7543236B1 (en) * 2006-06-01 2009-06-02 Adobe Systems Incorporated System and method for replacing application publisher interface branding with identity plates
CN102156716A (en) * 2010-12-02 2011-08-17 广州市动景计算机科技有限公司 Method and device for re-typesetting web page
CN103150302A (en) * 2013-03-19 2013-06-12 北京小米科技有限责任公司 Type setting method and device
CN103559241A (en) * 2013-10-28 2014-02-05 北京京东尚科信息技术有限公司 Webpage layout method and device
CN104536768A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Method for improving user-friendly operation of software user interface
CN105677649A (en) * 2014-11-18 2016-06-15 中国移动通信集团公司 Customized webpage composing method and device
CN106557458A (en) * 2015-09-25 2017-04-05 北大方正集团有限公司 Electronic composition method and apparatus
CN108021626A (en) * 2017-11-22 2018-05-11 阿里巴巴集团控股有限公司 Page composing method, device and equipment
CN108121803A (en) * 2017-12-22 2018-06-05 维沃移动通信有限公司 A kind of method and server of definite page layout
CN108717446A (en) * 2018-05-17 2018-10-30 王胜军 A kind of the page layout sort method and system of Video Applications client

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819541B2 (en) * 2009-02-13 2014-08-26 Language Technologies, Inc. System and method for converting the digital typesetting documents used in publishing to a device-specfic format for electronic publishing

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6590584B1 (en) * 1999-05-17 2003-07-08 Fuji Xerox Co., Ltd. Image editing method and apparatus
US7543236B1 (en) * 2006-06-01 2009-06-02 Adobe Systems Incorporated System and method for replacing application publisher interface branding with identity plates
CN102156716A (en) * 2010-12-02 2011-08-17 广州市动景计算机科技有限公司 Method and device for re-typesetting web page
CN103150302A (en) * 2013-03-19 2013-06-12 北京小米科技有限责任公司 Type setting method and device
CN103559241A (en) * 2013-10-28 2014-02-05 北京京东尚科信息技术有限公司 Webpage layout method and device
CN105677649A (en) * 2014-11-18 2016-06-15 中国移动通信集团公司 Customized webpage composing method and device
CN104536768A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 Method for improving user-friendly operation of software user interface
CN106557458A (en) * 2015-09-25 2017-04-05 北大方正集团有限公司 Electronic composition method and apparatus
CN108021626A (en) * 2017-11-22 2018-05-11 阿里巴巴集团控股有限公司 Page composing method, device and equipment
CN108121803A (en) * 2017-12-22 2018-06-05 维沃移动通信有限公司 A kind of method and server of definite page layout
CN108717446A (en) * 2018-05-17 2018-10-30 王胜军 A kind of the page layout sort method and system of Video Applications client

Also Published As

Publication number Publication date
CN109783745A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
US11526799B2 (en) Identification and application of hyperparameters for machine learning
EP3865996A2 (en) Method and apparatus for testing response speed of on-board equipment, device and storage medium
EP4191478A1 (en) Method and apparatus for compressing neural network model
CN107291835B (en) Search term recommendation method and device
CN113723618A (en) SHAP optimization method, equipment and medium
JP2024507902A (en) Information retrieval methods, devices, electronic devices and storage media
CN116433692A (en) Medical image segmentation method, device, equipment and storage medium
CN114861059A (en) Resource recommendation method and device, electronic equipment and storage medium
CN109064464B (en) Method and device for detecting burrs of battery pole piece
CN110175128A (en) A kind of similar codes case acquisition methods, device, equipment and storage medium
CN109783745B (en) Method, device and computer equipment for personalized typesetting of pages
CN108011936B (en) Method and device for pushing information
CN113076358A (en) Report generation method, device, equipment and storage medium
CN110737509B (en) Thermal migration processing method and device, storage medium and electronic equipment
CN112507075A (en) Case data searching method, system, equipment and storage medium
CN110348581B (en) User feature optimizing method, device, medium and electronic equipment in user feature group
CN109857816B (en) Test sample selection method and device, storage medium and electronic equipment
CN114743586B (en) Mirror image storage implementation method and device of storage model and storage medium
CN115328736A (en) Probe deployment method, device, equipment and storage medium
US20150006578A1 (en) Dynamic search system
CN110083807B (en) Contract modification influence automatic prediction method, device, medium and electronic equipment
CN110795424B (en) Characteristic engineering variable data request processing method and device and electronic equipment
CN114218166A (en) Data processing method and device, electronic equipment and readable storage medium
CN109857838B (en) Method and apparatus for generating information
CN113361575A (en) Model training method and device and electronic equipment

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