Information synchronization method, apparatus, device, and computer storage medium
Patent Information
- Application Number
- CN202211476771.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2042-11-23
AI Technical Summary
[0039]This invention first displays original content such as e-books and cloud notes, then obtains editing operation information of the target user on the original content. This editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on this information, the user-edited content and its display style are determined. The display style characterizes the display features of the edited content, such as the font and position. Finally, the user-edited content is synchronously displayed on the original content according to the display style. This automatically and adaptively migrates the user-edited content to be synchronized to the corresponding paragraph on different platforms, improving the efficiency of information synchronization and the display effect after synchronization.
Smart Images

Figure CN115729717B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of multimedia technology, specifically to an information synchronization method, apparatus, device, and computer storage medium.
[0002] Original technology
[0003] When synchronizing user-edited information such as annotations, comments, or notes across platforms, users typically need to manually locate the corresponding location on the platform to be synchronized, and then manually copy and add the information. For example, when reading, users' annotations and comments on a print book usually require them to find the corresponding ebook on the ebook platform and then manually enter the annotations or comments. Furthermore, annotations and comments cannot be shared between different users. This results in low synchronization efficiency and a poor synchronization experience for user-defined information such as edits or comments when using multimedia. Summary of the Invention
[0004] In view of the above problems, embodiments of the present invention provide an information synchronization method, apparatus, device, and computer storage medium to solve the problems of low efficiency and poor experience in user-defined information synchronization in the prior art.
[0005] According to one aspect of the present invention, an information synchronization method is provided, the method comprising:
[0006] Display the original content;
[0007] Obtain the target user's editing operation information regarding the original displayed content;
[0008] The user's edited content and the display style of the edited content are determined based on the edit operation information.
[0009] The user-edited content is synchronously displayed in the original display content according to the edited content display style.
[0010] In an alternative approach, the method further includes:
[0011] Determine the paragraph to which the user-edited content belongs based on the original displayed content;
[0012] Determine the original display style corresponding to the original display content;
[0013] The target display style of the user-edited content is determined based on the display style of the edited content, the original display style, and the paragraph display style of the paragraph to which the content belongs;
[0014] The user-edited content is displayed in the paragraph to which the content belongs, according to the target display style.
[0015] In one alternative approach, the edited content display style includes the edited font size; the original display style includes the original font size; the paragraph display style includes the paragraph font size; the target display style includes the target font size; and the method further includes:
[0016] The scaling ratio is determined based on the comparison between the edited font size and the original font size;
[0017] The target font size is determined based on the size scaling ratio and the paragraph font size.
[0018] In one optional approach, the edited content display style includes edited font color; the original display style includes original font color and original page color; the paragraph display style includes paragraph font color and paragraph display brightness; the target display style includes target font color; the method further includes:
[0019] The preset channel value mapping relationship is determined based on the edited font color, the original font color, and the original page color;
[0020] The paragraph font color is converted according to the channel value mapping relationship to obtain the initial font color;
[0021] The initial font color is adjusted based on the brightness of the paragraph to obtain the target font color.
[0022] In one optional approach, the edited content display style includes an editing area; the original display style includes an original text style and an original page size; the paragraph display style includes a paragraph text style; the target display style includes a target display area; and the method further includes:
[0023] The editing area is expanded according to the original text style and the original page size to obtain the expanded editing area;
[0024] Based on the paragraph text style, the expanded editing area is adjusted on the page containing the paragraph to obtain the target display area.
[0025] In one alternative approach, the original text style includes the original text width and the original text line spacing; the original page size includes the original page width; the method further includes:
[0026] The editing area is expanded vertically along the page containing the editing area based on the original text width and the original line spacing, and the editing area is also expanded horizontally along the page containing the editing area based on the original page width, to obtain the expanded editing area.
[0027] In one alternative approach, the paragraph text style includes paragraph text width and paragraph text height; the method further includes:
[0028] The location points on the page containing the paragraph to which the content belongs, adjacent to the edge of the expanded editing area, are determined as optional positioning points;
[0029] The target positioning point is determined from the optional positioning points based on the distance between the optional positioning points and the width of the paragraph text;
[0030] The target display area is constructed based on the target positioning point.
[0031] According to another aspect of the present invention, an information synchronization device is provided, comprising:
[0032] The display module is used to display the original content.
[0033] The acquisition module is used to acquire the editing operation information of the target user on the original displayed content;
[0034] The determination module is used to determine the user's edited content and the display style of the edited content based on the edit operation information;
[0035] The synchronization module is used to synchronize the user-edited content with the original display content according to the display style of the edited content.
[0036] According to another aspect of the present invention, an information synchronization device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;
[0037] The memory is used to store at least one executable instruction that causes the processor to perform operations as described in any of the preceding information synchronization method embodiments.
[0038] According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing at least one executable instruction that causes an information synchronization device to perform the operations of any of the preceding information synchronization method embodiments.
[0039] This invention first displays original content such as e-books and cloud notes, then obtains editing operation information of the target user on the original content. This editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on this information, the user-edited content and its display style are determined. The display style characterizes the display features of the edited content, such as the font and position. Finally, the user-edited content is synchronously displayed on the original content according to the display style. This automatically and adaptively migrates the user-edited content to be synchronized to the corresponding paragraph on different platforms, improving the efficiency of information synchronization and the display effect after synchronization.
[0040] Furthermore, the user-edited content in this embodiment of the invention includes at least one of handwritten annotations, cloud notes, and comment information obtained by multiple users after editing and processing the original displayed content, thereby synchronizing the edited content of multiple users, facilitating content sharing among multiple users, and further improving the user's information synchronization experience.
[0041] The above description is merely an overview of the technical embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0042] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0043] Figure 1 A flowchart illustrating the information synchronization method provided in an embodiment of the present invention is shown;
[0044] Figure 2 A schematic diagram of the information synchronization device provided in an embodiment of the present invention is shown;
[0045] Figure 3 A schematic diagram of the structure of the information synchronization device provided in an embodiment of the present invention is shown. Detailed Implementation
[0046] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0047] Before describing the embodiments of the present invention, the prior art and its problems will be further explained:
[0048] With the development of internet technology and paperless office practices, users can edit content across multiple platforms, such as annotating electronic documents, marking e-books, or commenting on multimedia content. Correspondingly, users can also use traditional offline methods, such as handwriting information on paper documents or books. To synchronize user-edited information across media and platforms, users often need to manually find the corresponding media or platform, copy and migrate the data, which is inefficient and provides a poor user experience. Furthermore, for scenarios requiring multiple users to share edited information, the aforementioned single-user manual synchronization method is clearly insufficient.
[0049] Therefore, existing information synchronization methods suffer from low efficiency, poor user experience in information synchronization, and poor experience in information sharing among users.
[0050] Figure 1 A flowchart of an information synchronization method provided in an embodiment of the present invention is shown. This method is executed by a computer processing device. The computer processing device may include a mobile phone, a laptop computer, etc. Figure 1 As shown, the method includes the following steps:
[0051] Step 10: Display the original content.
[0052] Specifically, the original content can be displayed through the interface of a preset terminal or application. This interface could be a reading app, a camera app, a cloud note-taking app, a cloud conferencing app, or similar applications. The original content can be what's displayed on the aforementioned interface, such as multimedia content like articles, notes, or books. It's easy to understand that the original content includes text information as well as information such as page color, theme, and background image.
[0053] Step 20: Obtain the target user's editing operation information for the original displayed content.
[0054] Specifically, the editing operation information includes user information, content information, and editing time information. The target user obtains the target data by editing the original displayed content. This can be achieved by detecting information synchronization requests sent by the user on the aforementioned preset terminal or application interface, which include the target data obtained after the target user edited the original displayed content.
[0055] The types of user editing operations can include bullet comments, annotations, comments, and notes. Specifically, the target data can be image data, which can be a scanned image of a paper document to be synchronized, or a screenshot of the terminal interface containing user editing information, such as a screenshot of a user's comment on multimedia content displayed to them.
[0056] Optionally, considering that multiple users may independently or collaboratively edit multimedia content—for example, multiple users may comment on an article, multiple users may annotate the same paragraph in an ebook, and multiple users may collaboratively annotate meeting documents—the invention addresses not only the synchronization needs of single-user cross-platform user-edited content but also the synchronization and sharing needs of multi-user cross-platform user-edited content. In another embodiment, the aforementioned user-edited content includes at least one of handwritten annotations, cloud notes, and comment information obtained by multiple users after editing the original displayed content. By synchronizing all editing information from multiple users on the same original displayed content, information sharing among multiple users can be achieved, such as sharing annotations from multiple users on meeting documents or materials.
[0057] In another embodiment of the present invention, the process of acquiring the target data may also be as follows:
[0058] First, the target data is obtained by scanning the user-edited file using a preset terminal application; the user-edited file contains handwritten user edits and printed content.
[0059] The terminal application can be a device with scanning and data transmission capabilities, such as a mobile phone or tablet. Specifically, after scanning a user-edited document through the terminal application, the user can send a synchronization request on the application, carrying the scanned target data. The user-edited document can be a paper document. Handwritten user edits can include user edits on paper documents such as paper books, while printed content includes preset content beyond the user-added handwritten edits. It should be noted that the user-edited document can also be an electronic document such as a screenshot. Handwritten user edits in electronic documents include user-added content, not limited to handwritten form. For example, when the screenshot is a comment section screenshot, the user's added comments constitute the handwritten content in the user-edited document, while other content in the comment section screenshot constitutes the printed content.
[0060] Then, the target data is subjected to text recognition to obtain the text recognition result corresponding to the handwritten user editing as the user-edited content, and the text recognition result corresponding to the printed content as the original display content.
[0061] Specifically, text recognition can be OCR recognition. It should be noted that, considering that the printed content is all the content in the scanned data except for the handwritten user editing, that is, the printed content is original relative to the handwritten user editing as the foreground, and the printed content may include not only the printed text content, but also the original color, relative position, etc. of the printed text content.
[0062] Step 30: Determine the user-edited content and the display style of the user-edited content based on the editing operation information.
[0063] Specifically, the aforementioned target data is identified to obtain user-edited content and its display style within the target data. Furthermore, the target data can also be identified to obtain the original display style of the original content within the target data. The edited content display style and the original display style respectively characterize the display method of the user-edited content and the original display content within the target data, and may include, for example, content font type, font size, font color, line spacing, and content display position.
[0064] Specifically, after receiving the target data, text recognition is performed on the target data to obtain the user-edited content and the original display content. The user-edited content includes the user's edited text, and the original display content includes other preset text in the interface besides the user-edited text. For example, if the target data uploaded by the user is a photo of a paper document containing handwritten user edits, the user-edited content recognized from the photo is the handwritten user edits, and the original display content is the original text information in the paper document besides the handwritten user edits. Similarly, when the target data uploaded by the user is a screenshot of a comment section or a screenshot of an annotated paragraph in an e-book, the user-edited content is the content in the comment section (such as the user ID and comment content) or the annotation text in the e-book. Correspondingly, the original display content is the original page of the comment section (such as the original page color or image) or the paragraph text and page of the annotation section in the e-book.
[0065] Step 40: Display the user-edited content synchronously in the original display content according to the edited content display style.
[0066] Specifically, in order to achieve cross-platform synchronization of user-edited content, the original content on the platform to be synchronized can be synchronized according to the display style of the edited content, so that the viewing experience of the user-edited content on the platform to be synchronized is consistent with the post-edited display effect when it was edited.
[0067] Furthermore, in order to improve the display effect after information synchronization and avoid mismatch, misalignment, or significant differences in display effect from the original user-edited content on different platforms, the original display style of the original display content serving as the background for the user-edited content can be further determined. This establishes a comparison relationship between the original display style and the edited content display style. Based on this comparison relationship, the edited display style is adaptively transformed to obtain the target display style. Finally, the user-edited content is synchronized and displayed at the paragraph position corresponding to the original display content on the platform to be synchronized, based on the target display style.
[0068] Therefore, in another embodiment of the present invention, step 40 further includes:
[0069] Step 401: Determine the paragraph to which the user-edited content belongs based on the original displayed content.
[0070] Specifically, since the original displayed content is unedited by the user and possesses objectivity, it can be searched in a preset content database. The paragraph containing content in the database with a match greater than a preset threshold is identified as the paragraph to which the content belongs. It's easy to understand that the paragraph in the content refers to the location of the original displayed content corresponding to the user-edited content. It is not limited to a paragraph; it can also be a chapter, page, or region, such as the comment section area corresponding to a specific multimedia content, which could also be the paragraph to which the content belongs.
[0071] Step 402: Determine the original display style corresponding to the original display content.
[0072] Specifically, corresponding to the edited content display style, the original display style is used to characterize how the original display content is displayed in the target data, such as the content font type, font size, font color, line spacing, and the display position of the content.
[0073] Step 403: Determine the target display style of the user-edited content based on the edited content display style, the original display style, and the paragraph display style of the paragraph to which the content belongs.
[0074] In one embodiment of the present invention, the edited content display style and the original display style are used to characterize the display method of the user-edited content and the original display content in the target data, such as the content font type, font size, font color, line spacing, and the display position of the content.
[0075] Specifically, the relative display effect relationship between the user-edited content in the foreground and the original display style is determined based on the comparison between the edited content display style and the original display style. Then, based on the paragraph display style of the paragraph to which the content belongs, the target display style is determined according to the relative display effect relationship.
[0076] Specifically, the edited content display style may include the edited font size. Correspondingly, the original display style includes the original font size; the paragraph display style includes the paragraph font size; and the target display style includes the target font size. Thus, based on the size ratio between the edited font size and the original font size, the target font size is obtained by scaling the size using the paragraph font size as a reference.
[0077] Optionally, considering that users may use different colors to mark different types of user editing, and that different original colors (such as the original theme of the system or the paper color of a document) will also change the display effect of the user-edited content, the editing content display style may also include the editing font color; the original display style includes the original font color and the original page color; wherein, the original font color refers to the color of the text included in the original display content, and the original page color refers to the color of the page on which the text of the original display content is located, such as the color of the paper on which printed text other than user-written editing is located in a paper document, or the system theme of a screenshot, etc. Based on the proportional relationship between the color values of the editing font color and the original font color, considering that both the user-edited content and the original text are superimposed and displayed on the original page, the proportional relationship is adjusted according to the original page color, and the paragraph font color is proportionally converted according to the adjusted proportional relationship to obtain the target font color.
[0078] Optionally, considering that user editing typically targets specific content at a specific location on a page or file, the display position of the edited content also affects the user's information synchronization experience. Therefore, in another embodiment of the present invention, the edited content display style includes an editing area; the original display style includes the original text style and the original page size; the paragraph display style includes the paragraph text style; and the target display style includes a target display area. The editing area is expanded according to the original text style and the original page size to obtain an expanded editing area. Then, the expanded editing area is adjusted within the page containing the paragraph to which the content belongs, according to the paragraph text style, to obtain the target display area.
[0079] Therefore, in another embodiment of the present invention, the edited content display style includes the edited font size; the original display style includes the original font size; the paragraph display style includes the paragraph font size; the target display style includes the target font size; step 403 further includes:
[0080] Step 4031: Determine the scaling ratio based on the comparison result between the edited font size and the original font size.
[0081] Specifically, the ratio of the edited font size to the original font size is determined as the size scaling ratio.
[0082] Step 4032: Determine the target font size based on the size scaling ratio and the paragraph font size.
[0083] Specifically, the target font size is determined by multiplying the paragraph font size by the size scaling ratio.
[0084] For example, if the original font size is S1 and the edited font size is S2, then the scaling ratio is B1 = S2 / S1. The target font size S3 = S1' * B1 is obtained by multiplying the paragraph font size S1' of the content to which it belongs by the ratio B1.
[0085] In another embodiment of the present invention, the edited content display style includes edited font color; the original display style includes original font color and original page color; the paragraph display style includes paragraph font color and paragraph display brightness; the target display style includes target font color; step 403 further includes:
[0086] Step 4033: Determine the channel value mapping relationship corresponding to multiple preset color channels based on the edited font color, the original font color, and the original page color.
[0087] The channel value mapping relationship can be expressed as the ratio of the channel value of the edited font color to the sum of the channel values of the original font color and the channel values of the original page color, that is, the channel value mapping relationship = edited font color value / (original color of paper book + font color).
[0088] For example, considering that font color is generally represented by RGB color values, that is, a color can be determined by the channel values under the three RGB channels. For example, white can be represented as R is FF, G is FF, B is FF, a total of six bits, which is FFFFFF. For example, the original color of a paper book is pure white, then the color value corresponding to the original page color is C1, which is white, which is FFFFFF. The font color of the paper book is C2, which is black, then the channel value corresponding to the original font color is 000000. The edited font color is C3, which is D2691E. Then the corresponding channel value mapping relationship is R = Rc3 / (Rc1+Rc2), G = Gc3 / (Gc1+Gc2), B = Bc3 / (Bc1+Bc2).
[0089] Step 4034: Convert the paragraph font color according to the channel value mapping relationship to obtain the initial font color.
[0090] Specifically, the paragraph font color is first represented as the channel value of each preset channel. The channel value is then converted according to the channel value mapping relationship to obtain the initial font color.
[0091] Step 4035: Adjust the initial font color according to the paragraph display brightness to obtain the target font color.
[0092] Specifically, the paragraph display brightness can be determined based on the system theme of the system to which the content belongs. The system theme generally represents the overall brightness of the content displayed on the current page, typically either light or dark. The initial font color is adjusted based on the paragraph display brightness to ensure the target font color matches the system theme of the system to which the content belongs. Continuing with the example from the previous steps, the initial text color channel value calculated in step 311 is represented as R6G6C6. This color needs to be converted to YUV mode, where Y represents luminance (grayscale value), and UV represents chrominance and chroma, respectively. According to the luminance formula Y = R6*0.299 + G6*0.587 + B6*0.114, a Y greater than or equal to 192 indicates a dark color, and less than 192 indicates a light color. Therefore, when the system theme is dark, the calculated ebook user-edited color R6G6B6 is adjusted proportionally (reducing by 1% each time) until the luminance Y is less than 192. Correspondingly, when the system theme is light, the color is adjusted proportionally (increasing by 1% each time) until the brightness Y is greater than or equal to 192, ultimately resulting in an ebook user-editable color that matches the paragraph to which the content belongs.
[0093] Optionally, the edited content display style includes the editing area; the original display style includes the original text style and the original page size; the paragraph display style includes the paragraph text style; and the target display style includes the target display area. Step 403 further includes:
[0094] Step 4036: Expand the editing area according to the original text style and the original page size to obtain the expanded editing area.
[0095] Specifically, the original text style includes the original text width and the original text line spacing; the original page size includes the original page width. Based on the original text width and the original text line spacing, the editing area is expanded vertically on the page, and horizontally expanded to the width of the current page. The original text closest to the editing area in the four directions (up, down, left, and right) is used as the positioning reference point. The positioning reference point is then found on the page where the paragraph to which the content belongs. Based on the found positioning reference point, the area to be synchronized on the page where the paragraph to which the content belongs is constructed.
[0096] Therefore, in another embodiment of the present invention, step 4036 further includes:
[0097] Step 4037: Expand the editing area vertically on the page where the editing area is located according to the original text width and the original text line spacing, and expand the editing area horizontally on the page where the editing area is located according to the original page width, to obtain the expanded editing area.
[0098] Specifically, record the page text where the user's edited content is located, query the chapter or paragraph where the page text is located, and vertically expand the user's edited text area on the page by the height of one character plus the height of one line spacing, and horizontally expand it by the width of the page where the user's edited content is located, to obtain the expanded editing area.
[0099] Step 4038: Adjust the expanded editing area on the page containing the paragraph according to the paragraph text style to obtain the target display area.
[0100] Specifically, the paragraph text style includes paragraph text width and paragraph text height. Using the original text closest to the editing area in the four directions (up, down, left, right) as a positioning reference point, positioning reference points are found within the page containing the paragraph. A region to be synchronized is constructed based on these found positioning reference points. This region is then modified according to the paragraph text width and height to obtain the target display area. During modification, the region to be synchronized is expanded based on whether it includes all positioning reference points and the distances between these reference points and the paragraph text width and height, thus obtaining the target display area.
[0101] In yet another embodiment of the present invention, step 4038 further includes:
[0102] Step 4039: Determine the position points on the page where the paragraph to which the content belongs that are adjacent to the edge of the expanded editing area as optional positioning points.
[0103] Specifically, the system records the Chinese characters closest to the user's starting editing position: A on the left, B on the top, C on the right, and D on the bottom, to obtain selectable positioning points A, B, C, and D. If there is no printed text on a certain side, that side is empty.
[0104] Step 4040: Determine the target positioning point from the optional positioning points based on the distance between the optional positioning points and the width of the paragraph text.
[0105] Specifically, when synchronizing to the page containing the paragraph containing the content, the coordinates A, B, C, and D of the Chinese characters within the corresponding area are found. First, two points determine the starting position. If the distance between all four points is greater than the width of a Chinese character, then point A is taken as the starting position.
[0106] When the extended area does not have all four points, the first point in sequence is taken as the starting point. For example, if there are only two points, B and D, and the distance between the two points is greater than the height of a paragraph, then point B is taken as the starting point.
[0107] If there are no printed Chinese characters in the extended area, continue to expand outward by the width of a paragraph of text, and then repeat the above steps to determine the starting point.
[0108] Step 4041: Construct the target display area based on the target positioning point.
[0109] Specifically, the target positioning points are used as the four endpoints of the target display area.
[0110] Step 404: Display the user-edited content in the paragraph to which the content belongs, according to the target display style.
[0111] Specifically, the content style of user-edited content is processed according to the target display style, and the processing result is displayed in the paragraph to which the content belongs. This ensures that the display effect of user-edited content in the paragraph to which the content belongs is the same as the display effect in the original target data, thus guaranteeing the consistency of user-edited display effect before and after cross-platform synchronization and improving the user's information synchronization experience.
[0112] In another embodiment of the present invention, when a user edits information as note data, the synchronization process after modification of the note data may include the following:
[0113] When a user deletes or modifies existing notes in a paper book using a pen or eraser, and then scans the paper book with the app, the system will search for the user's notes for that chapter and modify the user's existing notes.
[0114] The revised notes are synced to the cloud in real time. For example, users can simply cover the notes on the paper book with their hand, and the cloud-based user editor can delete or edit them in real time, making it convenient for users to modify.
[0115] In another embodiment of the present invention, when a user edits information as cloud notes, the process of real-time synchronous display of the cloud notes on the paper book may include the following:
[0116] When users are reading related materials, they can use the pre-set app's scan function to point the camera at the chapter they are reading. The app will then upload multiple frames of the video stream to the server in real time, and the server will use OCR to recognize the text in the images in real time.
[0117] The server compares the recognized text with the library. When the content matching threshold reaches 90 or higher, the chapter is confirmed to have been found, and the server returns all notes corresponding to that chapter.
[0118] After receiving the data from the server, the mobile app will parse the user's edits and overlay the notes onto the paper book according to the returned location coordinates and text images. The display methods can include the following two:
[0119] Displaying the notes using AR (Augmented Reality), for example, the phone scans the first page of the first chapter, and a background search retrieves cloud-based notes. Following the same process as uploading handwritten notes, the font size, color, and position are synchronized, and the cloud notes are displayed on the phone screen. When the distance between the phone screen and the physical book changes, this embodiment of the invention detects the size of the text in the physical book in real time and adjusts the font size edited by the user on the AR screen accordingly. When the app detects that the user is turning a page or that the content of the physical book has changed, it rescans and uploads the notes, repeating the above steps to display them in the corresponding position on the screen.
[0120] Displayed as a pop-up message, when this embodiment of the invention detects cloud notes for a chapter, a pop-up message will slowly appear in the same position on the paper book, displaying the user's edits for that chapter. This pop-up message can be set not to obscure the content of the paper book. When this embodiment of the invention scans the paper book, it calculates the area of the text in real time. When the coordinates of the pop-up message overlap with the text area of the paper book, it automatically returns to its original position and changes its direction of movement. For example, if the pop-up message touches the text area when moving to the left, it will change to an upward direction. Subsequent movements touching the text area will adjust the direction sequentially from left to right to bottom.
[0121] In another embodiment of the present invention, when a user edits a comment in a scenario where the information is music or an article, the information synchronization process may include the following:
[0122] In music and article comment scenarios, when users leave comments, this invention captures screenshots to obtain the comment content, size, and original screen color. It then calculates text size and color coefficients for users A and B, performing calculations using these two sets of coefficients (the process and steps are the same as for uploading handwritten content). Finally, it calculates the text size and color displayed on each user's device. Each user's comment displayed on their screen will have slightly different text styles depending on the user, achieving dynamic and differentiated text display. Optionally, music and article authors can see a summary of all comments, following similar steps to the above process, and can dynamically view the content of each comment (comment size, color, position, etc.).
[0123] The information synchronization method provided in this invention displays original content such as e-books and cloud notes, then obtains the editing operation information of the target user on the original content. This editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on this information, the method determines the user-edited content and its display style. The display style characterizes the display features of the edited content, such as the font and position. Finally, the method synchronizes the user-edited content with the original content according to the display style. This automatically and adaptively migrates the user-edited content to be synchronized to the corresponding paragraph on different platforms, improving the efficiency of information synchronization and the display effect after synchronization.
[0124] Figure 2 A schematic diagram of the information synchronization device provided in an embodiment of the present invention is shown. Figure 2 As shown, the device 50 includes: a display module 501, an acquisition module 502, a determination module 503, and a synchronization module 504.
[0125] Among them, the display module 501 is used to display the original display content;
[0126] The acquisition module 502 is used to acquire the editing operation information of the target user on the original displayed content;
[0127] The determining module 503 is used to determine the user-edited content and the display style of the user-edited content based on the editing operation information;
[0128] The synchronization module 504 is used to synchronously display the user-edited content in the original display content according to the edited content display style.
[0129] The operation process of the information synchronization device provided in this embodiment of the invention is roughly the same as that of the aforementioned method embodiment, and will not be described again.
[0130] The information synchronization device provided in this invention displays original content such as e-books and cloud notes, and then obtains the editing operation information of the target user on the original content. The editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on the editing operation information, the device determines the user's edited content and its display style. The display style characterizes the display features of the edited content, such as the font and position. Finally, the device synchronizes the user's edited content with the original content according to the display style. This automatically and adaptively migrates the user's edited content to be synchronized to the corresponding paragraph of the original content on different platforms, improving the efficiency of information synchronization and the display effect after synchronization.
[0131] Figure 3 The diagram shows a structural schematic of an information synchronization device provided in an embodiment of the present invention. The specific implementation of the information synchronization device is not limited by the specific embodiments of the present invention.
[0132] like Figure 3 As shown, the information synchronization device may include: a processor 602, a communications interface 604, a memory 606, and a communications bus 608.
[0133] The processor 602, communication interface 604, and memory 606 communicate with each other via communication bus 608. Communication interface 604 is used to communicate with other network elements such as clients or other servers. The processor 602 executes program 610, specifically performing the relevant steps described in the information synchronization method embodiment.
[0134] Specifically, program 610 may include program code, which includes computer-executable instructions.
[0135] Processor 602 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The information synchronization device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0136] Memory 606 is used to store program 610. Memory 606 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0137] Specifically, program 610 can be called by processor 602 to cause the information synchronization device to perform the following operations:
[0138] Display the original content;
[0139] Obtain the target user's editing operation information regarding the original displayed content;
[0140] The user's edited content and the display style of the edited content are determined based on the edit operation information.
[0141] The user-edited content is synchronously displayed in the original display content according to the edited content display style.
[0142] The operation process of the information synchronization device provided in this embodiment of the invention is largely the same as that of the aforementioned method embodiment, and will not be described again.
[0143] The information synchronization device provided in this invention displays original content such as e-books and cloud notes, and then obtains the editing operation information of the target user on the original content. The editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on the editing operation information, the device determines the user's edited content and its display style. The display style characterizes the display features of the edited content, such as the font and position. Finally, the device synchronizes the user's edited content with the original content according to the display style. This automatically and adaptively migrates the user's edited content to be synchronized to the corresponding paragraph of the original content on different platforms, improving the efficiency of information synchronization and the display effect after synchronization.
[0144] This invention provides a computer-readable storage medium storing at least one executable instruction that, when executed on an information synchronization device, causes the information synchronization device to perform the information synchronization method described in any of the above method embodiments.
[0145] The executable instructions can be used to cause the information synchronization device to perform the following operations:
[0146] Display the original content;
[0147] Obtain the target user's editing operation information regarding the original displayed content;
[0148] The user's edited content and the display style of the edited content are determined based on the edit operation information.
[0149] The user-edited content is synchronously displayed in the original display content according to the edited content display style.
[0150] The operation process of the computer storage medium provided in this embodiment of the invention is largely the same as that of the aforementioned method embodiments, and will not be described again.
[0151] The computer storage medium provided in this embodiment of the invention displays original content such as e-books and cloud notes, and then obtains the editing operation information of the target user on the original content. The editing operation information can correspond to operations such as annotations, comments, and bullet comments. Based on the editing operation information, the user's edited content and the display style of the edited content are determined. The display style of the edited content is used to characterize the display method features of the edited content, such as the display font and display position. Finally, the user's edited content is synchronously displayed in the original content according to the display style of the edited content. This can automatically and adaptively migrate the user's edited content to be synchronized to the corresponding paragraph of the original content on different platforms according to its display style in the original content, thereby improving the efficiency of information synchronization and the display effect after synchronization.
[0152] This invention provides an information synchronization device for performing the above-described information synchronization method.
[0153] This invention provides a computer program that can be invoked by a processor to cause an information synchronization device to execute the information synchronization method described in any of the above method embodiments.
[0154] This invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed on a computer, cause the computer to perform the information synchronization method described in any of the above method embodiments.
[0155] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0156] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0157] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.
[0158] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0159] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. An information synchronization method, characterized in that, The method includes: Display the original content; Obtain the target user's editing operation information regarding the original displayed content; The user's edited content and the display style of the edited content are determined based on the edit operation information. The user-edited content is synchronized and displayed on the original display content of the platform to be synchronized according to the edited content display style. The step of synchronizing the user-edited content with its original display on the platform to be synchronized according to the edited content display style includes: Determine the paragraph to which the user-edited content belongs based on the original displayed content; Determine the original display style corresponding to the original display content; The target display style of the user-edited content is determined based on the display style of the edited content, the original display style, and the paragraph display style of the paragraph to which the content belongs; The user-edited content is displayed in the paragraph to which the content belongs, according to the target display style.
2. The method according to claim 1, characterized in that, The edited content display style includes the edited font size; the original display style includes the original font size; the paragraph display style includes the paragraph font size; the target display style includes the target font size; The step of determining the target display style of the user-edited content based on the display style of the edited content, the original display style, and the paragraph display style of the paragraph to which the content belongs includes: The scaling ratio is determined based on the comparison between the edited font size and the original font size; The target font size is determined based on the size scaling ratio and the paragraph font size.
3. The method according to claim 1, characterized in that, The edited content display style includes the edited font color; the original display style includes the original font color and the original page color; the paragraph display style includes the paragraph font color and the paragraph display brightness; the target display style includes the target font color; determining the target display style of the user-edited content based on the edited content display style, the original display style, and the paragraph display style of the paragraph to which the content belongs includes: The preset channel value mapping relationship is determined based on the edited font color, the original font color, and the original page color; The paragraph font color is converted according to the channel value mapping relationship to obtain the initial font color; The initial font color is adjusted based on the brightness of the paragraph to obtain the target font color.
4. The method according to claim 1, characterized in that, The edited content display style includes the editing area; the original display style includes the original text style and the original page size; the paragraph display style includes the paragraph text style; the target display style includes the target display area. The step of determining the target display style of the content to be synchronized based on the display style of the user-edited content, the original display style of the original content, and the paragraph display style of the paragraph to which the content belongs includes: The editing area is expanded according to the original text style and the original page size to obtain the expanded editing area; Based on the paragraph text style, the expanded editing area is adjusted on the page containing the paragraph to obtain the target display area.
5. The method according to claim 4, characterized in that, The original text style includes the original text width and the original text line spacing; the original page size includes the original page width; the process of expanding the editing area according to the original text style and the original page size to obtain the expanded editing area includes: The editing area is expanded vertically along the page containing the editing area based on the original text width and the original line spacing, and the editing area is also expanded horizontally along the page containing the editing area based on the original page width, to obtain the expanded editing area.
6. The method according to claim 4, characterized in that, The paragraph text style includes the paragraph text width and the paragraph text height; adjusting the expanded editing area on the page containing the paragraph according to the paragraph text style to obtain the target display area includes: The position point in the page containing the paragraph to which the content belongs that is adjacent to the edge of the expanded editing area is determined as an optional positioning point; The target positioning point is determined from the optional positioning points based on the distance between the optional positioning points and the width of the paragraph text; The target display area is constructed based on the target positioning point.
7. An information synchronization device, characterized in that, The device includes: The display module is used to display the original content. The acquisition module is used to acquire the editing operation information of the target user on the original displayed content; The determination module is used to determine the user's edited content and the display style of the edited content based on the edit operation information; The synchronization module is used to synchronize the original display content of the user-edited content on the platform to be synchronized according to the display style of the edited content; The step of synchronizing the user-edited content with its original display on the platform to be synchronized according to the edited content display style includes: Determine the paragraph to which the user-edited content belongs based on the original displayed content; Determine the original display style corresponding to the original display content; The target display style of the user-edited content is determined based on the display style of the edited content, the original display style, and the paragraph display style of the paragraph to which the content belongs; The user-edited content is displayed in the paragraph to which the content belongs, according to the target display style.
8. An information synchronization device, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the information synchronization method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores at least one executable instruction, which, when executed on the information synchronization device, causes the information synchronization device to perform the operation of the information synchronization method as described in any one of claims 1-6.
Citation Information
Patent Citations
Processing method for electronic book comment information, electronic equipment and storage medium
CN107590114A