Note file update methods, devices, storage media, and electronic devices

By setting a third note directory in the e-ink note application, copying and compressing the note structure and page files, the problems of low note saving efficiency and unknown errors are solved, achieving more efficient and accurate note file updates.

CN119201854BActive Publication Date: 2026-07-31GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
Filing Date
2023-06-20
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

When saving user data, such as handwriting, note-taking applications on e-ink screens may experience low saving efficiency and unknown errors.

Method used

By setting a third note directory, the note structure file is copied to this directory, and the corresponding note page files are copied from the second note directory to the third note directory. Then, the files are compressed and packaged to generate the first note file, which replaces the note files in the first note directory.

Benefits of technology

It improves the accuracy of saving note files, avoids the occurrence of unknown errors, and enhances the efficiency of note saving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201854B_ABST
    Figure CN119201854B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, storage medium, and electronic device for updating note files. The method includes: in response to a trigger operation that opens a note file from a first note directory, decompressing the note file to a second note directory; displaying note pages according to the second note directory; generating page editing data in response to an editing operation on the note pages; if the page editing data is page structure modification data, updating the note structure file according to the page structure modification data to obtain a first note structure file; copying the first note structure file to a third note directory; copying corresponding note page files from the second note directory to the third note directory according to the first note structure file; compressing and packaging the first note structure file and the corresponding note page files in the third note directory to obtain a first note file; and replacing the note file with the first note file, thereby improving the accuracy of note file saving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of file management technology, and in particular to a method, apparatus, storage medium, and electronic device for updating note files. Background Technology

[0002] As a novel display technology, e-ink displays are increasingly used in the field of e-reading due to their advantages such as low power consumption and eye protection. Some e-ink note-taking applications not only display text but also respond to user handwriting input, displaying the written handwriting. For example, in some application scenarios, students use e-ink note-taking applications to take notes.

[0003] In the process of developing this invention, the inventors discovered that the conventional technology has at least the following problems: when saving user data, such as handwriting, the note-taking application on the e-ink screen may have problems such as low note-saving efficiency and unknown errors during note-saving. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this application provides a note file updating method, apparatus, storage medium, and electronic device, which can improve note saving efficiency and accuracy.

[0005] According to a first aspect of the embodiments of this application, a method for updating a note file is provided, comprising the following steps:

[0006] In response to a trigger action that opens a note file from the first note directory, the note file is unzipped to the second note directory; the second note directory includes the note structure file and several note page files;

[0007] Display the note page according to the second note directory;

[0008] In response to editing operations on the note page, generate page editing data; if the page editing data is page structure modification data, update the note structure file according to the page structure modification data to obtain the first note structure file;

[0009] Copy the first note structure file to the third note directory; based on the first note structure file, copy the corresponding note page files from the second note directory to the third note directory;

[0010] Compress and package the first note structure file and the corresponding note page files in the third note directory to obtain the first note file;

[0011] Replace the note file in the first note directory with the first note file.

[0012] According to a second aspect of the embodiments of this application, a note file updating apparatus is provided, comprising:

[0013] The note file decompression module is used to decompress the note file to a second note directory in response to a trigger operation that opens a note file from the first note directory; the second note directory includes a note structure file and several note page files;

[0014] The notes page display module is used to display the notes page according to the second notes directory;

[0015] The data generation module is used to generate page editing data in response to editing operations on the note page; if the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain the first note structure file;

[0016] The structure file copying module is used to copy the first note structure file to the third note directory; based on the first note structure file, it copies the corresponding note page files from the second note directory to the third note directory.

[0017] The module for obtaining the first note file is used to compress and package the first note structure file and the corresponding note page file in the third note directory to obtain the first note file.

[0018] The first note file replacement module is used to replace the note files in the first note directory with the first note file.

[0019] According to a third aspect of the embodiments of this application, an electronic device is provided, including a display, a processor, and a memory; the memory stores a computer program adapted to be loaded by the processor and executed as described above for updating a note file.

[0020] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the note file update method as described above.

[0021] In this embodiment, in response to a trigger operation that opens a note file from a first note directory, the note file is decompressed to a second note directory. The second note directory includes a note structure file and several note page files. Note pages are displayed according to the second note directory. In response to an editing operation on a note page, page editing data is generated. If the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain a first note structure file. The first note structure file is copied to a third note directory. Based on the first note structure file, the corresponding note page files are copied from the second note directory to the third note directory. The first note structure file and the corresponding note page files in the third note directory are compressed and packaged to obtain a first note file. The first note file replaces the note file in the first note directory. By setting a third note directory and copying note page files from the second note directory to the third note directory based on the first note structure file, this application avoids unknown errors that may occur when saving note page files to the second note directory, thereby improving the accuracy of note files in the first note directory.

[0022] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.

[0023] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 A flowchart illustrating a note file update method according to one embodiment of this application;

[0026] Figure 2 A flowchart illustrating step S20 of a note file update method according to an embodiment of this application;

[0027] Figure 3 This is a flowchart illustrating step S30 of a note file update method according to an embodiment of this application;

[0028] Figure 4 This is a schematic block diagram illustrating the structure of a note file updating device according to one embodiment of this application;

[0029] Figure 5This is a schematic block diagram illustrating the structure of an electronic device according to one embodiment of this application. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0031] It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.

[0032] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. The singular forms "a," "the," and "the" used in this application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. The word "if" as used herein can be interpreted as "when," "when," or "in response to determination."

[0033] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0034] The application environment for the method of reformatting written content includes electronic devices; the electronic device can be any device that can respond to user writing operations and display handwriting, such as a touch screen device or an e-ink screen device. In the embodiments of this application, the electronic device is an e-ink screen device.

[0035] E-ink devices are electronic reading devices that use electronic ink screens (E-ink or Electronic Paper Display / EPD). Generally, an e-ink device consists of an electronic ink screen and a processor; the electronic ink screen receives voltage signals from the processor to display the corresponding content.

[0036] E-ink screens are screens that do not emit light themselves but rely on external reflection to achieve a display effect. Their display effect is very similar to that of paper materials, thus providing a comparable reading experience. Generally, e-ink devices use monochrome e-ink screens, which consist of many microcapsules. Each microcapsule contains multiple black particles and multiple white particles, each carrying an opposite charge. When displaying black content, voltage drives the black particles to move to the top of the screen; when displaying white content, voltage drives the white particles to move to the top, thus displaying the black and white content. In some technologies, different colored ink particles (red, green, blue, etc.) are added to the capsules of the e-ink screen. Voltage then drives these particles to different positions within the capsules, and through different combinations of the three primary colors (red, green, and blue), the e-ink device can display various colors of content.

[0037] The processor may include one or more processing cores that send voltage signals to the e-ink screen, causing the screen to display corresponding content. The processor may run an application for reformatting the written content. This application may be adapted to the processor, such as an app, or in some cases, as a system plugin or web plugin.

[0038] The note file update method of this application can be applied to application scenarios such as teaching and meeting scenarios. In one application scenario of this application: students write notes on the e-ink screen using a note-taking application on the e-ink device. The note-taking application can display written text, non-written text, image content, and / or audio content. For example, the note-taking application displays a question, and the student records the solution steps and other written notes next to the question. Alternatively, the e-ink screen may not display non-written text and / or image content; for example, the e-ink screen may be blank, and the student writes notes on it. The written notes written by the student on the e-ink screen can include text content and / or graphic content.

[0039] In the process of developing this invention, the inventors discovered that when students use the e-ink screen's note-taking application to write notes, the note-taking application may experience low note-saving efficiency and unknown errors when saving user data, such as handwriting or deleting notes.

[0040] Based on this, this application proposes a method, apparatus, storage medium, and electronic device for updating note files.

[0041] Example 1

[0042] The note file updating method disclosed in this application is applied to electronic devices, and the following description uses an e-ink screen device as an example.

[0043] The following will be combined with the appendix Figures 1 to 3 This application provides a detailed description of the note file update method provided in the embodiments.

[0044] Please see Figure 1 The note file update method provided in this application includes the following steps:

[0045] S10: In response to a trigger operation that opens a note file from the first note directory, the note file is decompressed to the second note directory; the second note directory includes a note structure file and several note page files.

[0046] The first note directory is the directory containing several note files. Specifically, it can be the folder where the note files are located, or the storage path where the note files are located. The second note directory is the directory where the unzipped note files are saved. The first note directory and the second note directory can be different folders or different storage paths.

[0047] A note file is a compressed file consisting of a note structure file, several note page files, and several note resource files. A note file can be a compressed archive, such as a zip archive or a rar archive.

[0048] The note structure file describes the attribute information of the note pages, including but not limited to the number of note pages and their order. The note page file describes the content information of the note page, including handwriting. The note resource file describes the non-text content information of the note page, including but not limited to images and audio. A note page file can be associated with one or more note resource files, or it can be independent of any note resource files.

[0049] In this embodiment of the application, the user selects a note file from the first note directory and opens it. The note application detects the user's trigger operation of opening the note file, decompresses the note file, and obtains a note structure file, several note page files, and several note resource files. The note structure file, several note page files, and several note resource files are then saved to the second note directory.

[0050] S20: Display the note page according to the second note directory.

[0051] In this embodiment, the note-taking application can read a note structure file, several note page files, and several note resource files from a second note directory, and display several note pages. All note pages share a single note structure file, each note page corresponds to one note page file, and a note page may correspond to one or more note resource files, or it may not correspond to any note resource files. Optionally, the note-taking application can read a note structure file, a note page file, and all note resource files associated with the note page file from the second note directory, and display a single note page.

[0052] S30: In response to the editing operation on the note page, generate page editing data; if the page editing data is page structure modification data, update the note structure file according to the page structure modification data to obtain the first note structure file.

[0053] Editing operations on note pages can include adding, deleting, moving, copying, or pasting note page content, and can also include deleting one or more note pages from a set of multiple note pages. Page structure modification data is used to instruct the note structure file to send changes.

[0054] In this embodiment, if a note page is deleted, the number of note pages decreases, and the note structure file will change. Specifically, the note application detects that the user has deleted a note page, generates page structure modification data, and updates the note structure file according to the page structure modification data to obtain a first note structure file.

[0055] S40: Copy the first note structure file to the third note directory; based on the first note structure file, copy the corresponding note page files from the second note directory to the third note directory.

[0056] The third note directory is a cache directory before the first note structure file is compressed and packaged into the first note directory. The storage path of the third note directory is different from that of the first note directory and the second note directory.

[0057] The first note structure file records the number of updated note pages and the order of the updated note pages.

[0058] In this embodiment, the inventors discovered that after a note page is deleted, the note structure file in the second note directory is updated to the first note structure file. However, the note page files and note resource files corresponding to the note pages in the second note directory may not have been deleted. If the note page files, note resource files, and the first note structure file are directly packaged and compressed from the second note directory to the first note directory, the note files will be saved inaccurately. Therefore, by copying the first note structure file to the third note directory, parsing the first note structure file in the third note directory to determine the deleted note pages, and copying the note page files of the remaining note pages from the second note directory to the third note directory, the error of the second note directory containing deleted note page files and note resource files corresponding to deleted note pages is avoided.

[0059] S50: Compress and package the first note structure file and the corresponding note page file in the third note directory to obtain the first note file.

[0060] In this embodiment of the application, a compression algorithm is used to compress and package the first note structure file, the corresponding note page file, and the note resource file associated with the note page file in the third note directory to obtain the first note file.

[0061] S60: Replace the note file in the first note directory with the first note file.

[0062] In this embodiment of the application, the note file is updated by replacing the note file in the first note directory with the first note file.

[0063] In this application embodiment, in response to a trigger operation that opens a note file from a first note directory, the note file is decompressed to a second note directory. The second note directory includes a note structure file and several note page files. Note pages are displayed according to the second note directory. In response to an editing operation on a note page, page editing data is generated. If the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain a first note structure file. The first note structure file is copied to a third note directory. According to the first note structure file, the corresponding note page files are copied from the second note directory to the third note directory. The first note structure file and the corresponding note page files in the third note directory are compressed and packaged to obtain a first note file. The first note file replaces the note file in the first note directory. By setting a third note directory and copying note page files from the second note directory to the third note directory according to the first note structure file, this application avoids unknown errors that may occur when saving note page files to the second note directory, thereby improving the accuracy of note files in the first note directory.

[0064] In one embodiment, see Figure 2 Step S20, including steps S201 to S202, is as follows:

[0065] S201: The main thread reads the note structure file and the target note page file from the second note directory; the target note page file is any one of several note page files.

[0066] S202: The main thread renders the note structure file and the target note page file to display the note page.

[0067] In this embodiment, the main thread reads the note structure file and the target note page file, and then renders the page, enabling automatic and quick display of the note page. Furthermore, since not all note page files are read and rendered, the display efficiency of the note page is improved.

[0068] In one embodiment, step S30 includes step S301, which is as follows:

[0069] S301: If the page editing data is page structure modification data, the sub-thread updates the note structure file according to the page structure modification data to obtain the first note structure file.

[0070] In this embodiment, the note-taking application employs an asynchronous thread read and save mechanism to achieve read-write separation of note files. Specifically, when displaying the note page, the main thread reads the decompressed note file from the second note directory. When saving modified page structure data, a sub-thread updates the note structure file to obtain the first note structure file. Since the sub-thread and main thread are independent and work in parallel, note saving efficiency is improved. Optionally, when updating the note structure file, a storage technology based on the Protocol Buffers protocol can be used to improve file update efficiency.

[0071] In one embodiment, see Figure 3 Step S30, including steps S302 to S303, is as follows:

[0072] S302: Several thumbnails of note pages are displayed in the default area of ​​the note page;

[0073] S303: In response to a deletion operation on at least one note page thumbnail, generate page structure modification data.

[0074] The note page thumbnails are thumbnails corresponding to all note pages. Specifically, the note application can read the note structure file and all note page files, render the note structure file and all note page files to obtain multiple note pages, scale the multiple note pages according to a preset ratio, and generate multiple note page thumbnails.

[0075] The preset area can be the top, bottom, left, or right area of ​​the note page. Users can select one or more note page thumbnails to delete, thereby deleting the note page corresponding to the thumbnail and generating page structure modification data.

[0076] In this embodiment of the application, if a user deletes at least one thumbnail of a note page on the note page, page structure modification data can be automatically and quickly generated.

[0077] In one embodiment, the note file update method includes step S61, as follows:

[0078] S61: If the time interval between two adjacent editing operations is greater than a preset time threshold, the note structure file and / or note page file are updated based on the page editing data generated by the previous editing operation between the two adjacent editing operations to obtain the first note structure file and / or the first note page file.

[0079] In this embodiment, the timing of each editing operation on the note page is detected in real time, the time interval between two adjacent editing operations is calculated, and it is determined whether the time interval is greater than a preset time threshold. If so, the note structure file and / or note page file are updated.

[0080] By comparing the time interval between two consecutive editing operations with a preset time threshold, the note structure file and / or note page file can be updated automatically.

[0081] In one embodiment, the note file update method includes step S62, as follows:

[0082] S62: In response to the trigger operation of saving the note page, update the note structure file and / or note page file according to the page editing data to obtain the first note structure file and / or the first note page file.

[0083] The trigger for saving the notes page can be either the user clicking the save control on the notes page or the user exiting the notes page editing operation.

[0084] In this embodiment of the application, if a user triggers a save operation on the note page, the note structure file and / or note page file can be automatically updated based on the page editing data.

[0085] In one embodiment, the note file update method includes steps S63 to S65, as follows:

[0086] S63: If the page editing data is page content modification data, update the note page file according to the page content modification data to obtain the first note page file;

[0087] S64: Compress and package the note structure file and the first note page file to obtain the second note file;

[0088] S65: Replace the note file in the first note directory with the second note file.

[0089] The page content modification data is used to indicate whether content on the note page is added, deleted, moved, copied, or pasted. For example, writing new handwriting on the note page.

[0090] In this embodiment, if the content of the note page is edited, the note page file will change. Specifically, the note application detects the change in the note page content, obtains the page content modification data, and updates the note page file according to the page content modification data to obtain a first note page file.

[0091] Since updating the note page files is unlikely to fail, you can directly compress and package the note structure files in the second note directory and the first note page files to obtain the second note file, and then send the second note file to the first note directory to automatically and quickly replace the note files in the first note directory.

[0092] Example 2

[0093] The following are embodiments of the apparatus of this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method described in Embodiment 1 of this application.

[0094] Please see Figure 4 This application discloses a notebook file updating device 200, comprising:

[0095] The note file decompression module 201 is used to decompress the note file to the second note directory in response to a trigger operation that opens a note file from the first note directory; the second note directory includes a note structure file and several note page files;

[0096] The note page display module 202 is used to display the note page according to the second note directory;

[0097] The editing data generation module 203 is used to generate page editing data in response to the editing operation of the note page; if the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain the first note structure file;

[0098] The structure file copying module 204 is used to copy the first note structure file to the third note directory; and to copy the corresponding note page files from the second note directory to the third note directory based on the first note structure file.

[0099] The first note file acquisition module 205 is used to compress and package the first note structure file and the corresponding note page file in the third note directory to obtain the first note file;

[0100] The first note file replacement module 206 is used to replace the note files in the first note directory with the first note file.

[0101] In this application embodiment, in response to a trigger operation that opens a note file from a first note directory, the note file is decompressed to a second note directory. The second note directory includes a note structure file and several note page files. Note pages are displayed according to the second note directory. In response to an editing operation on a note page, page editing data is generated. If the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain a first note structure file. The first note structure file is copied to a third note directory. According to the first note structure file, the corresponding note page files are copied from the second note directory to the third note directory. The first note structure file and the corresponding note page files in the third note directory are compressed and packaged to obtain a first note file. The first note file replaces the note file in the first note directory. By setting a third note directory and copying note page files from the second note directory to the third note directory according to the first note structure file, this application avoids unknown errors that may occur when saving note page files to the second note directory, thereby improving the accuracy of note files in the first note directory.

[0102] In one embodiment, the note page display module 202 includes:

[0103] The structure file reading unit is used to read the note structure file and the target note page file from the second note directory through the main thread; wherein, the target note page file is any one of several note page files;

[0104] The note page display unit is used to render and display the note page by using the main thread to process the note structure file and the target note page file.

[0105] In one embodiment, the edit data generation module 203 includes:

[0106] The structure file update unit is used to update the note structure file according to the page structure modification data if the page editing data is page structure modification data, so as to obtain the first note structure file.

[0107] In one embodiment, the edit data generation module 203 includes:

[0108] The thumbnail display unit is used to display several thumbnails of the note pages in a preset area of ​​the note page;

[0109] A data generation unit is configured to generate page structure modification data in response to a deletion operation on at least one note page thumbnail.

[0110] In one embodiment, the note file updating device 200 includes:

[0111] The first note page file acquisition unit is used to update the note page file according to the page content modification data if the page editing data is the page content modification data, and obtain the first note page file;

[0112] The second note file acquisition unit is used to compress and package the note structure file and the first note page file to obtain the second note file;

[0113] The note file replacement unit is used to replace the note files in the first note directory with second note files.

[0114] The embodiments of the note file updating device in this application are illustrated by the division of the above-mentioned functional modules when executing the note file updating method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0115] The embodiments of the note file updating device in this application can be applied to electronic devices, such as e-ink devices. These devices can be implemented in software, hardware, or a combination of both. Taking software implementation as an example, as a logical device, it is formed by a processor that handles file processing reading the corresponding computer program instructions from non-volatile memory into memory for execution. From a hardware perspective, the electronic device may include a processor, memory, display, network interface, user interface, and communication bus, interconnected via the communication bus or other known methods.

[0116] Example 3

[0117] The following are embodiments of the device described in this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the embodiments of the device described in this application, please refer to the method described in Embodiment 1 of this application.

[0118] Please see Figure 5 This application also provides an electronic device 300, which can be a touch screen device or an e-ink screen device, etc. In the embodiments of this application, the electronic device 300 is an e-ink screen device. The e-ink screen device may include: at least one processor 310, at least one memory 320, at least one display 330, at least one network interface 340, a user interface 350, and at least one communication bus 360.

[0119] The display 330 includes an e-ink screen; the e-ink screen can receive touch or writing operations input by the user through a finger or input device.

[0120] The user interface 350 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface 350 may also include a standard wired interface or a wireless interface.

[0121] The network interface 340 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0122] The communication bus 360 is used to enable communication between these components.

[0123] The processor 310 may include one or more processing cores. The processor 310 connects to various parts within the electronic device 300 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and by calling data stored in the memory 320. Optionally, the processor 310 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 310 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 310.

[0124] The memory 320 may include random access memory (RAM) or read-only memory. Optionally, the memory 320 may include a non-transitory computer-readable storage medium. The memory 320 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 320 may also be at least one storage device located remotely from the aforementioned processor 310. Figure 5 As shown, the memory 320, which serves as a computer storage medium, may include an operating system, a network communication module, and a user.

[0125] The processor 310 can be used to call the application program for updating the note files stored in the memory 320, and specifically execute the steps of the note file updating method of Embodiment 1. For the specific execution process, please refer to the detailed description shown in Embodiment 1, which will not be repeated here.

[0126] Example 4

[0127] This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of Embodiment 1 shown above. For the specific execution process, please refer to the detailed description shown in Embodiment 1, which will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, tablet computer, or e-ink screen device.

[0128] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0129] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0130] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.

[0131] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function selected in one or more boxes.

[0132] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0133] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0134] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0135] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0136] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method of updating a notebook file, characterized by, Includes the following steps: In response to a trigger operation that opens a note file from a first note directory, the note file is decompressed to a second note directory; the second note directory includes a note structure file and several note page files; Display the note page according to the second note directory; In response to an editing operation on the notes page, page editing data is generated; If the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain the first note structure file; Copy the first note structure file to the third note directory; Based on the first note structure file, copy the corresponding note page file from the second note directory to the third note directory; The first note structure file and the corresponding note page file in the third note directory are compressed and packaged to obtain the first note file; Replace the note file in the first note directory with the first note file.

2. The note file updating method according to claim 1, characterized by, It also includes the following steps: If the page editing data is page content modification data, the note page file is updated according to the page content modification data to obtain the first note page file; The note structure file and the first note page file are compressed and packaged to obtain the second note file; Replace the note file in the first note directory with the second note file.

3. The note file update method according to claim 1, characterized in that: If the time interval between two adjacent editing operations is greater than a preset time threshold, the note structure file and / or the note page file are updated based on the page editing data generated by the previous editing operation between the two adjacent editing operations to obtain the first note structure file and / or the first note page file.

4. The note file update method according to claim 1, characterized in that: In response to the triggering operation of saving the note page, the note structure file and / or the note page file are updated according to the page editing data to obtain a first note structure file and / or a first note page file.

5. The note file updating method according to any one of claims 1 to 4, characterized in that: The step of displaying the note page according to the second note directory includes: The main thread reads the note structure file and the target note page file from the second note directory; wherein, the target note page file is any one of the several note page files; The main thread renders the note structure file and the target note page file to display the note page.

6. The note file updating method according to any one of claims 1 to 4, characterized in that: If the page editing data is page structure modification data, the step of updating the note structure file according to the page structure modification data to obtain the first note structure file includes: If the page editing data is page structure modification data, the sub-thread updates the note structure file according to the page structure modification data to obtain the first note structure file.

7. The note file updating method according to any one of claims 1 to 4, characterized in that: The step of generating page editing data in response to an editing operation on the note page includes: Several thumbnails of the note pages are displayed in a preset area of ​​the note page; In response to the deletion operation of at least one of the thumbnails of the note page, page structure modification data is generated.

8. A notebook file updating apparatus characterized by comprising: include: The note file decompression module is used to decompress the note file to the second note directory in response to a trigger operation that opens a note file from the first note directory. The second note directory includes a note structure file and several note page files; The note page display module is used to display the note page according to the second note directory; The editing data generation module is used to generate page editing data in response to editing operations on the note page; If the page editing data is page structure modification data, the note structure file is updated according to the page structure modification data to obtain the first note structure file; The structure file copying module is used to copy the first note structure file to the third note directory; Based on the first note structure file, copy the corresponding note page file from the second note directory to the third note directory; The first note file acquisition module is used to compress and package the first note structure file and the corresponding note page file in the third note directory to obtain the first note file; The first note file replacement module is used to replace the note file in the first note directory with the first note file.

9. An electronic device comprising a display, a processor, and a memory; characterized in that, The memory stores a computer program adapted to be loaded by the processor and executed as described in any one of claims 1 to 7.

10. A computer readable storage medium having stored thereon a computer program, characterized in that, When executed by a processor, the computer program implements the note file update method as described in any one of claims 1 to 7.