Note file updating method and device, storage medium and electronic equipment

By decompressing and updating note files in temporary directories in the ink screen note application, the problem of inefficient and errors in note saving is solved, achieving more efficient and accurate note file saving.

CN119201854AActive Publication Date: 2024-12-27GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310740724.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-20
Publication Date
2024-12-27
Estimated Expiration
2043-06-20

AI Technical Summary

Technical Problem

Note application on the ink screen has problems with low efficiency and unknown errors in saving notes when saving users' writing handwriting.

Method used

By decompressing the note file to a temporary directory in the note file update method, editing and updating, ensuring accurate copying and compression of structure files and page files, avoiding unknown errors, and improving storage accuracy.

Benefits of technology

Improve the efficiency and accuracy of note-taking files, and avoid unknown errors in note-taking applications when saving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201854A_ABST
    Figure CN119201854A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a note file updating method and device, a storage medium and electronic equipment, and the method comprises the steps: responding to a triggering operation of opening a note file from a first note directory, and decompressing the note file to a second note directory; displaying a note page according to the second note directory; generating page editing data in response to an editing operation on the note page; 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 a corresponding note page file from the second note directory to a third note directory according to the first note structure file; compressing and packaging the first note structure file and the corresponding note page file in the third note directory to obtain a first note file; and the first note file is used for replacing the note file, so that the note file storage accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of file management technology, and in particular, to a note file updating method, device, storage medium and electronic device. Background Art

[0002] As a new display technology, ink screen has been increasingly used in the field of electronic reading due to its advantages such as low power consumption and eye protection. Some note-taking applications in ink screens can not only display text, but also respond to the user's writing operation on the ink screen and display the handwriting. For example, in some application scenarios, students use the note-taking application on the ink screen to take notes and record.

[0003] In the process of realizing the present invention, the inventors found that there are at least the following problems in the traditional technology: when the note application on the ink screen saves the user's usage data, such as saving handwriting, the note saving efficiency may be low and unknown errors may occur in the note saving. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a note file updating method, device, storage medium and electronic device, which can improve the efficiency and accuracy of note saving.

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

[0006] In response to a trigger operation of opening a note file from the first note directory, the note file is decompressed into a second note directory; the second note directory includes a note structure file and a plurality of note page files;

[0007] According to the second note directory, display the note page;

[0008] 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;

[0009] Copy the first note structure file to the third note directory; and copy the corresponding note page file from the second note directory to the third note directory according to the first note structure file;

[0010] Compress and package the first note structure file and the corresponding note page file in the third note directory to obtain a 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 an embodiment of the present application, there is provided a device for updating a note file, comprising:

[0013] a note file decompression module, configured to decompress the note file to a second note directory in response to a trigger operation of opening the note file from the first note directory; the second note directory includes a note structure file and a plurality of note page files;

[0014] A note page display module, used to display a note page according to the second note directory;

[0015] An editing data generating module, for generating page editing data in response to an editing operation on a note page; 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;

[0016] A structure file copying module, used to copy the first note structure file to the third note directory; according to the first note structure file, copy the corresponding note page file from the second note directory to the third note directory;

[0017] A first note file obtaining module, used for compressing and packaging 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 file in the first note directory with the first note file.

[0019] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a display, a processor and a memory; the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the note file updating method as described above.

[0020] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the note file updating method as described above is implemented.

[0021] In response to a trigger operation of opening a note file from a first note directory, the embodiment of the present application decompresses the note file to a second note directory; the second note directory includes a note structure file and a plurality of note page files; the note page is displayed according to the second note directory; in response to an editing operation on the 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 file is copied 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; and the first note file replaces the note file in the first note directory. By setting a third note directory and copying the note page file from the second note directory to the third note directory according to the first note structure file, the present application avoids unknown errors that may occur when the note application saves the note page file to the second note directory, thereby improving the accuracy of the note file in the first note directory.

[0022] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.

[0023] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flowchart of a method for updating a note file according to an embodiment of the present application;

[0026] Figure 2 This is a flowchart of step S20 in the note file updating method according to an embodiment of the present application;

[0027] Figure 3 This is a flowchart of step S30 in the note file updating method according to an embodiment of the present application;

[0028] Figure 4 This is a schematic block diagram of the structure of a note file updating device shown in one embodiment of the present application;

[0029] Figure 5The present invention is a block diagram showing the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0032] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0033] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

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

[0035] An ink screen device refers to an electronic reading device that uses an electronic ink screen (E-ink or Electronic Paper Display / EPD). Generally speaking, an ink screen device includes an electronic ink screen and a processor; the electronic ink screen receives the voltage signal from the processor to display the corresponding content.

[0036] Among them, the electronic ink screen is a screen that does not emit light itself but relies on external reflection to achieve the display effect. Its display effect is very similar to that of paper materials. Therefore, the electronic ink screen can be compared to the experience of reading paper materials. Generally, the ink screen device uses a black and white electronic ink screen, in which the black and white electronic ink screen is composed of many microcapsules, each of which contains multiple black particles and multiple white particles, each of which has opposite charges; when it is necessary to display black content on the screen, the black particles are driven by voltage to move up to the top of the screen, and when white content is displayed, the white particles are driven by voltage to move up to the top of the screen, thereby displaying black and white content. In some technologies, by adding ink particles of different colors such as red, green, and blue to the capsule of the electronic ink screen, and then driving the particles of different colors to different positions in the capsule by voltage, and then through different combinations of the three primary colors of red, green, and blue, the ink screen device can display various color contents.

[0037] The processor may include one or more processing cores, which send voltage signals to the electronic ink screen so that the electronic ink screen displays corresponding content. The processor may run an application for rearranging the written content, and the application may be presented in a form that is suitable for the processor, such as an APP application. In some examples, it may also be presented in the form of a system plug-in, a web page plug-in, etc.

[0038] The note file update method of the embodiment of the present application can be applied to application scenarios such as teaching scenarios and conference scenarios. In one application scenario of the present application: students write notes on the ink screen through the note application of the ink screen device, wherein the note application can display written text, non-written text, picture content, and / or audio content. For example, the note application displays a question, and the student records the steps to solve the question next to the question. There may also be no non-written text and / or picture content on the ink screen, for example, the ink screen is blank, and the student writes notes on it. Among them, the written notes written by the student on the ink screen may include text content and / or graphic content, etc.

[0039] In the process of implementing the present invention, the inventors found that when students use the note application on the ink screen to write notes, the note application on the ink screen may have low note saving efficiency and unknown errors when saving user usage data, such as handwriting and deletion of note pages.

[0040] Based on this, the present application proposes a note file updating method, device, storage medium and electronic device.

[0041] Example 1

[0042] The note file updating method disclosed in the embodiment of the present application is applied to an electronic device, and is described below using the electronic device as an ink screen device.

[0043] The following will be combined with the attached Figures 1 to 3 , the note file updating method provided in the embodiment of the present application is introduced in detail.

[0044] See also Figure 1 The note file updating method provided in the embodiment of the present application comprises the following steps:

[0045] S10: In response to a triggering operation of opening a note file from the first note directory, the note file is decompressed into a second note directory; the second note directory includes a note structure file and a plurality of note page files.

[0046] The first note directory is a directory that stores several note files. Specifically, it can be a folder where the note files are located, or it can be a storage path where the note files are located. The second note directory is a directory where the note files are stored after being decompressed. 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 of a note structure file, several note page files and several note resource files. The note file can be a compressed package, for example, a zip compressed package or a rar compressed package.

[0048] The note structure file is used to describe the attribute information of the note page, including but not limited to the number of note pages and the order between note pages. The note page file is used to describe the content information of the note page, including handwriting. The note resource file is used to describe the non-text content information on the note page, including but not limited to image content and audio. Among them, a note page file can be associated with one or more note resource files, or it can be associated with no note resource files.

[0049] In an embodiment of the present application, a user selects a note file from a first note directory to open it, the note application detects the user's trigger operation to open the note file, decompresses the note file, obtains a note structure file, several note page files, and several note resource files, and saves the note structure file, several note page files, and several note resource files to a second note directory.

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

[0051] In an embodiment of the present application, the note application can read a note structure file, several note page files, and several note resource files from the second note directory, and display several note pages. Among them, all note pages share a note structure file, each note page corresponds to a note page file, and a note page can correspond to one or more note resource files, or may not correspond to a note resource file. Optionally, the note 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 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 a first note structure file.

[0053] The editing operation on the note page may include adding, deleting, moving, copying or pasting the content of the note page, etc., and may also include deleting one or more note pages among multiple note pages. The page structure modification data is used to indicate the modification of the note structure file.

[0054] In the embodiment of the present application, if the note page is deleted, the number of note pages is reduced, and the note structure file will send changes. Specifically, the note application detects that the user deletes the note page, generates page structure modification data, updates the note structure file according to the page structure modification data, and obtains the first note structure file.

[0055] S40: copying the first note structure file to the third note directory; and according to the first note structure file, copying the corresponding note page file 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 the embodiment of the present application, the inventor found that: after the note page is deleted, the note structure file in the second note directory is updated to the first note structure file, but the note page file and note resource file corresponding to the note page in the second note directory may not be deleted. If the note page file, note resource file and the first note structure file are directly packaged and compressed from the second note directory to the first note directory, the note file 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, determining the deleted note page, and copying the note page files of the remaining note pages from the second note directory to the third note directory, the error that the note page file and note resource file corresponding to the deleted note page are not deleted in the second note directory 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 a first note file.

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

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

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

[0063] According to the embodiment of the present application, in response to a trigger operation of opening 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 a plurality of note page files; the note page is displayed according to the second note directory; in response to an editing operation on the 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 file is copied 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 a first note file; and the first note file replaces the note file in the first note directory. By setting a third note directory and copying the note page file from the second note directory to the third note directory according to the first note structure file, the present application avoids unknown errors that may occur when the note application saves the note page file to the second note directory, thereby improving the accuracy of the note file in the first note directory.

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

[0065] S201: reading a note structure file and a target note page file from a second note directory through a main thread; wherein the target note page file is any one of a plurality of note page files;

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

[0067] In the embodiment of the present application, the main thread reads the note structure file and the target note page file and performs page rendering, so that the note page can be automatically and quickly displayed. 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 specifically 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 a first note structure file.

[0070] In an embodiment of the present application, the note application adopts an asynchronous thread reading and saving mechanism to achieve the separation of reading and writing of note files. Specifically, when the note application displays the note page, it reads the decompressed note file from the second note directory through the main thread. When the note application saves the page structure modification data, it updates the note structure file through the child thread to obtain the first note structure file. Since the child thread and the main thread are independent of each other and work in parallel, the efficiency of note saving is improved. Optionally, when updating the note structure file, a storage technology based on the protocol buffers protocol can be used to improve the efficiency of file updating.

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

[0072] S302: Displaying a plurality of note page thumbnails in a preset area of ​​the note page;

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

[0074] Among them, the note page thumbnail is the thumbnail 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, obtain multiple note pages, scale the multiple note pages according to a preset ratio, and generate thumbnails of multiple note pages.

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

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

[0077] In one embodiment, the note file updating method includes step S61, which is 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 the note page file is updated according to the page editing data generated by the previous editing operation between the two adjacent editing operations to obtain a first note structure file and / or a first note page file.

[0079] In an embodiment of the present application, the moment when each editing operation occurs 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 is updated.

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

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

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

[0083] The triggering operation for saving the note page may be a user triggering a save control of the note page, or a user exiting the editing operation of the note page.

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

[0085] In one embodiment, the note file updating method includes steps S63 to S65, which are specifically as follows:

[0086] S63: 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 a first note page file;

[0087] S64: compressing and packaging the note structure file and the first note page file to obtain a 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 the addition, deletion, movement, copying or pasting of the content of the note page, for example, writing new handwriting on the note page.

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

[0091] Since the update of the note page file will basically not go wrong, the note structure file in the second note directory and the first note page file can be directly compressed and packaged to obtain the second note file, and then the second note file can be sent to the first note directory, thereby automatically and quickly replacing the note file in the first note directory.

[0092] Example 2

[0093] The following is an embodiment of the device of the present application, which can be used to execute the content of the method in Embodiment 1 of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the content of the method in Embodiment 1 of the present application.

[0094] See also Figure 4 , a note file updating device 200 disclosed in an embodiment of the present application includes:

[0095] The note file decompression module 201 is used to decompress the note file to a second note directory in response to a trigger operation of opening the note file from the first note directory; the second note directory includes a note structure file and a plurality of 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 generating module 203 is used to generate page editing data in response to the editing operation 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 a 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; according to the first note structure file, copy the corresponding note page file from the second note directory to the third note directory;

[0099] A first note file obtaining 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 a first note file;

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

[0101] According to the embodiment of the present application, in response to a trigger operation of opening 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 a plurality of note page files; the note page is displayed according to the second note directory; in response to an editing operation on the 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 file is copied 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 a first note file; and the first note file replaces the note file in the first note directory. By setting a third note directory and copying the note page file from the second note directory to the third note directory according to the first note structure file, the present application avoids unknown errors that may occur when the note application saves the note page file to the second note directory, thereby improving the accuracy of the note file in the first note directory.

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

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

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

[0105] In one embodiment, the editing data generating module 203 includes:

[0106] The structure file updating unit is used for, 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.

[0107] In one embodiment, the editing data generating module 203 includes:

[0108] A thumbnail display unit, used to display a plurality of note page thumbnails in a preset area of ​​the note page;

[0109] The modification data generating unit is used 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] A first note page file obtaining unit, configured to update the note page file according to the page content modification data to obtain the first note page file if the page editing data is page content modification data;

[0112] A second note file obtaining unit, used for compressing and packaging the note structure file and the first note page file to obtain a second note file;

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

[0114] The embodiment of the note file updating device of the embodiment of the present application only uses the division of the above-mentioned functional modules as an example when executing the note file updating method. In actual applications, the above-mentioned 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 embodiment of the note file updating device of the embodiment of the present application can be applied to electronic devices, such as ink screen devices, and the device embodiment can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the file processing in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for execution. From a hardware perspective, the electronic device in which it is located may include a processor, a memory, a display, a network interface, a user interface, and a communication bus, which are interconnected through a communication bus or other known methods.

[0116] Example 3

[0117] The following is an embodiment of the device of the present application, which can be used to execute the content of the method in Embodiment 1 of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the content of the method in Embodiment 1 of the present application.

[0118] See also Figure 5 The present application also provides an electronic device 300, which may be a touch screen device, an ink screen device, etc. In an embodiment of the present application, the electronic device 300 is an ink screen device. The 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] Among them, the display 330 includes an electronic ink screen; the electronic ink screen can receive touch operations or writing operations input by the user through fingers or input devices.

[0120] The user interface 350 is mainly used to provide an input interface for the user and obtain data input by the user. 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 realize the connection and communication between these components.

[0123] Among them, the processor 310 may include one or more processing cores. The processor 310 uses various interfaces and lines to connect various parts within the entire electronic device 300, and executes various functions and processes data of the electronic device 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 320, and calling data stored in the memory 320. Optionally, the processor 310 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 310 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed by the display layer; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 310, but implemented separately by a chip.

[0124] Among them, the memory 320 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 320 includes a non-transitory computer-readable storage medium. The memory 320 can be used to store instructions, programs, codes, 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 a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 320 may also be optionally at least one storage device located away from the aforementioned processor 310. As Figure 5 As shown, the memory 320 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 note file update application stored in the memory 320, and specifically execute the steps of the note file update method of Example 1. The specific execution process can refer to the specific instructions shown in Example 1, which will not be repeated here.

[0126] Example 4

[0127] The present application also provides a computer-readable storage medium on which a computer program is stored, and the instructions are suitable for being loaded by a processor and executing the method steps of the above-mentioned embodiment 1. The specific execution process can refer to the specific description shown in embodiment 1, and will not be repeated here. The device where the storage medium is located can be a personal computer, a laptop computer, a smart phone, a tablet computer, an ink screen device, and other electronic devices.

[0128] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0129] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0130] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

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

[0133] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0134] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0135] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0136] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A note file updating method, characterized in that: The steps include: In response to a trigger operation of opening a note file from a first note directory, the note file is decompressed into a second note directory; the second note directory includes a note structure file and a plurality of note page files; According to the second note directory, displaying a note page; In response to an editing operation on the note page, generating page editing data; 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; Copy the first note structure file to the third note directory; According to the first note structure file, copy the corresponding note page file from the second note directory to the third note directory; Compress and package the first note structure file and the corresponding note page file in the third note directory to obtain a first note file; The first note file replaces the note file in the first note directory.

2. The note file updating method according to claim 1, characterized in that: The following steps are also included: 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 a first note page file; Compress and package the note structure file and the first note page file to obtain a second note file; The second note file replaces the note file in the first note directory.

3. The note file updating 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 is updated according to the page editing data generated by the previous editing operation of the two adjacent editing operations to obtain a first note structure file and / or a first note page file.

4. The note file updating method according to claim 1, characterized in that: In response to a triggering operation of saving the note page, the note structure file and / or the note page file is 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 a note page according to the second note directory includes: 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 the plurality of note page files; The note structure file and the target note page file are rendered through the main thread to display the note page.

6. The method for updating a note file 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 a 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 the editing operation on the note page includes: A plurality of note page thumbnails are displayed in a preset area of ​​the note page; In response to a deletion operation on at least one of the note page thumbnails, page structure modification data is generated.

8. A note file updating device, characterized in that: include: a note file decompression module, configured to decompress the note file into a second note directory in response to a trigger operation of opening the note file from the first note directory; The second note directory includes a note structure file and a plurality of note page files; A note page display module, used for displaying a note page according to the second note directory; An editing data generating module, configured to generate page editing data in response to an editing operation 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 a first note structure file; A structure file copying module, used to copy the first note structure file to a third note directory; According to the first note structure file, copy the corresponding note page file from the second note directory to the third note directory; A first note file obtaining module, used for compressing and packaging the first note structure file and the corresponding note page file in the third note directory to obtain a 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, and the computer program is suitable for being loaded by the processor and executing the note file updating method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the note file updating method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Notebook page processing method, computer equipment and storage medium

    CN109710144A

  • Note file storage method and device, equipment and computer readable storage medium

    CN111506272A

  • Source code reinforcement method and device, computer equipment and storage medium

    CN111666078A

  • Webpage generation method and device and computer readable storage medium

    CN112632437A

  • Data storage method and system, terminal equipment and storage medium

    CN113806803A