A mobile terminal mixed text and image block editing method

By introducing monitoring and anomaly detection mechanisms into the mobile graphic and text mixed block editor, the problem of incorrectly saving content or data corruption during saving is solved, achieving correct saving of content and high efficiency of the editor.

CN117456056BActive Publication Date: 2024-08-27NANJING LANJINGREN NETWORKS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311544441.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2024-08-27
Estimated Expiration
2043-11-20

AI Technical Summary

Technical Problem

During the block editing process of mixed graphics and text on the mobile terminal, when the editor saves successfully edited content, the content may not be saved correctly or the data may be damaged, causing the content edited by the user to be lost or unable to be restored normally.

Method used

By introducing a monitoring mechanism into the editor, we can obtain and process data information when users input text for editing, build an anomaly detection mechanism, monitor key links, verify data before saving, generate editing indexes, analyze hidden dangers during saving, and issue early warning prompts in a timely manner And troubleshoot the issue to ensure the content is saved correctly.

Benefits of technology

It effectively avoids the problem of incorrect saving of user-edited content or data corruption, improves the accuracy and user experience of the editor, and ensures the efficiency of mixed graphics and text block editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117456056B
    Figure CN117456056B
Patent Text Reader

Abstract

The present invention discloses a mobile terminal mixed text and image block editing method, which relates to the technical field of mixed text and image block editing, and includes the following steps: S1, performing mixed text and image block editing operations according to the text input by the user; S2, introducing refined monitoring records at the key operation points of the editor, obtaining data information when the editor edits according to the text input by the user, and processing the obtained data information. The present invention monitors the process of the editor performing mixed text and image block editing. When the editor saves the successfully edited text and image and there is a hidden danger that the edited content is not correctly saved or the saved data is damaged, an early warning prompt is issued to notify relevant personnel, and relevant hidden danger investigation work is arranged in time for the process when the editor edits according to the text input by the user, and hidden danger problems when the editor edits according to the text input by the user are discovered in time, and hidden danger problems are solved in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of mixed text and image block editing, and in particular to a mobile terminal mixed text and image block editing method. Background Art

[0002] Mobile text and image mixed block editing means that in applications or web pages developed on mobile devices, users can perform mixed editing of text and images and organize the content in blocks. The purpose of this editing method is to allow users to create rich text content in a more intuitive way, where text and images can be combined to form more expressive information.

[0003] An editor is usually used for mixed text and image block editing on mobile terminals. The role of the editor in this scenario is to provide a user-friendly interface that allows users to easily input, edit, and format text, and insert or edit rich text content such as pictures.

[0004] The prior art has the following deficiencies: when a user successfully edits a mixed text and image block through an editor, the successfully edited text and image is usually saved through the editor. If an abnormality occurs during the editing process of the mixed text and image block but the image is still displayed as successfully edited, if the successfully edited text and image continues to be saved through the editor, the content edited by the user may not be saved correctly or the saved data may be damaged, thereby causing a large amount of content edited by the user to be lost or unable to be restored normally.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0006] The purpose of the present invention is to provide a method for mixed-typesetting and block-editing of images and texts on a mobile terminal. By monitoring the process of mixed-typesetting and block-editing of images and texts by an editor, when the editor saves the successfully edited images and texts and there is a hidden danger that the edited content is not correctly saved or the saved data is damaged, an early warning prompt is issued to notify relevant personnel, and relevant hidden danger investigation work is arranged in time for the process when the editor edits the text input by the user, and the hidden danger problems when the editor edits the text input by the user are discovered in time, and the hidden danger problems are solved in time, effectively avoiding the user's edited content from being saved incorrectly or the saved data from being damaged, so as to solve the problems in the above-mentioned background technology.

[0007] In order to achieve the above object, the present invention provides the following technical solution: a mobile terminal mixed text and image block editing method, comprising the following steps:

[0008] S1, performing mixed text and image block editing operations according to the user's text input;

[0009] S2. Introduce refined monitoring records at key operation points of the editor to obtain data information when the editor edits the text input by the user, and process the obtained data information;

[0010] S3. Build an anomaly detection mechanism in the editor based on the processed data information to monitor the key links in the editing process;

[0011] S4. Before the user performs a save operation, the edited data in the editor is verified and analyzed to ensure that the content edited by the user is correctly saved or the saved data is not damaged;

[0012] S5. When the editor saves the successfully edited image and text and there is a hidden danger that the edited content is not saved correctly or the saved data is damaged, a comprehensive analysis and judgment is made on the editing process to determine whether there is an accidental abnormality in the editing process;

[0013] S6. When receiving the information indicating that the editing is completed, the content successfully edited by the user is saved to the backend server or local storage.

[0014] Preferably, the data information when the editor is editing the text input by the user includes performance measurement information and resource management information, wherein the performance measurement information when the editor is editing the text input by the user includes the data sequence duration abnormal floating index and the data read and write rate change index, and the resource management information when the editor is editing the text input by the user includes the memory overflow index. After collection, the data sequence duration abnormal floating index and the data read and write rate change index are calibrated as XL, XL and XL, respectively. ξξ and DX ζζ , and mark the memory overflow index as

[0015] Preferably, the abnormal floating index XL of the data sequence duration generated by the editor within Q time when editing the text input by the user is obtained. ξξ , Data read and write rate change index DX ζζ And the memory overflow index After that, through XL ξξ DX ζζ as well as Build anomaly detection mechanism in the editor and generate editing index BJ 指数 , based on the formula: Where μ, π, and θ are the abnormal floating index XL of the data sequence duration, respectively. ξξ , Data read and write rate change index DX ζζ , Memory overflow index The preset proportional coefficients, μ, π, and θ are all greater than 0.

[0016] Preferably, the editing index generated by the editor within Q time when the user inputs text for editing is verified and analyzed with a preset editing index reference threshold, and the result of the verification analysis is as follows:

[0017] If the editing index is greater than the editing index reference threshold, a verification success signal is generated;

[0018] If the editing index is less than or equal to the editing index reference threshold, a verification failure signal is generated.

[0019] Preferably, when the editor saves the successfully edited image and text, if there is a risk that the edited content is not saved correctly or the saved data is damaged, several edit indexes generated subsequently are obtained to establish an analysis set, and the analysis set is marked as I, then I = {BJ 指数 f}, f represents the number of the edit index in the analysis set, f = 1, 2, 3, 4, ..., u, u is a positive integer;

[0020] By analyzing several editing indices in the set, the standard deviation of the editing index and the average value of the editing index are calculated, and the standard deviation of the editing index and the average value of the editing index are denoted as BJ 标 and BJ 平 , and edit the index standard deviation BJ 标 and edit index average BJ 平 The pre-set standard deviation reference threshold BJ 标 参考 and BJ 平 参考 Compare and if satisfied Then an accidental signal is generated, and no warning is issued for the accidental signal. If it does not meet A non-accidental signal is generated, and an early warning is issued for the non-accidental signal to inform relevant personnel.

[0021] Preferably, when the editing data in the editor is verified and analyzed to generate a verification success signal, or when the editing process is comprehensively analyzed and judged to generate an accidental signal, the information that the editing is completed is generated.

[0022] Preferably, the logic for obtaining the abnormal floating index of the data sequence duration is as follows:

[0023] S101, obtaining the real-time serialization duration and real-time deserialization duration of the editor in Q time when editing the text input by the user, and marking the real-time serialization duration and the real-time deserialization duration as XL respectively ξξ x and XL ξξ y, x represents the number of the real-time serialization duration obtained by the editor within Q time when editing the text input by the user, x=1, 2, 3, 4, ..., N, N is a positive integer, y represents the number of the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user, y=1, 2, 3, 4, ..., n, n is a positive integer;

[0024] S102, compare the real-time serialization duration and the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user with the real-time serialization duration reference value and the real-time deserialization duration reference value respectively, and recalibrate the real-time serialization duration greater than the real-time serialization duration reference value to XL ξξ x' , recalibrate the real-time deserialization duration that is greater than the real-time deserialization duration reference value to XL ξξ y' , x' represents the number of the real-time serialization duration obtained by the editor within Q time and greater than the real-time serialization duration reference value when editing the text input by the user, x'=1, 2, 3, 4, ..., N', N' is a positive integer, y' represents the number of the real-time deserialization duration obtained by the editor within Q time and greater than the real-time deserialization duration reference value when editing the text input by the user, y'=1, 2, 3, 4, ..., n', n' is a positive integer;

[0025] S103, calculating the abnormal floating index of the duration of the data sequence generated by the editor within Q time when the editor edits the text input by the user, and the calculation expression is: In the formula, XL ξξ 参考1 Indicates the real-time serialization duration reference value, XL ξξ 参考2 It represents the reference value of real-time deserialization duration. N represents the total number of real-time serialization durations obtained within Q time when the editor edits the text input by the user. n represents the total number of real-time deserialization durations obtained within Q time when the editor edits the text input by the user.

[0026] Preferably, the logic for obtaining the data read and write rate change index is as follows:

[0027] S201, obtaining the actual data reading rate and the actual data writing rate of several adjacent time periods in Q time when the editor is editing the text input by the user, and marking the actual data reading rate and the actual data writing rate as DX ζζ a and DX ζζ b, a represents the number of the actual data reading rate obtained by the editor within Q time when editing the text input by the user, a=1, 2, 3, 4, ..., A, A is a positive integer, b represents the number of the actual data writing rate obtained by the editor within Q time when editing the text input by the user, b=1, 2, 3, 4, ..., B, B is a positive integer;

[0028] S202, calculating the data read / write rate change index generated by the editor within Q time when editing the text input by the user, the calculation expression is: Wherein, A represents the total number of actual data read rates obtained at Q time when the editor edits the text input by the user, and B represents the total number of actual data write rates obtained at Q time when the editor edits the text input by the user.

[0029] Preferably, the logic for obtaining the memory overflow index is as follows:

[0030] S301, obtaining the real-time request allocated memory and the real-time available memory at the corresponding time when the editor is editing the text input by the user within Q time, and marking the real-time request allocated memory and the real-time available memory at the corresponding time as and

[0031] S302, calculate the memory overflow index generated by the editor within Q time when editing the text input by the user, and the calculation expression is: In the formula, [t x , t y ] indicates the period when the real-time requested memory allocation is greater than the real-time available memory at the corresponding moment, t x <t y .

[0032] In the above technical solution, the technical effects and advantages provided by the present invention are:

[0033] The present invention monitors the process of mixed text and image editing by the editor. When the editor saves the successfully edited image and image and there is a hidden danger that the edited content is not correctly saved or the saved data is damaged, an early warning prompt is issued to notify relevant personnel to know, and relevant hidden danger investigation work is arranged in time for the process when the editor edits the text input by the user, and the hidden danger problems when the editor edits the text input by the user are discovered in time, and the hidden danger problems are solved in time, so as to effectively avoid the content edited by the user from being not correctly saved or the saved data from being damaged;

[0034] When the present invention senses that there is a risk that the edited content is not correctly saved or the saved data is damaged when the editor saves the successfully edited image and text, the present invention continues to perform a comprehensive analysis and judgment on the editing process to determine whether there are accidental abnormalities in the editing process. If only accidental abnormalities in the editing process occur, the editor can also achieve efficient saving of the successfully edited image and text at this time, and no early warning prompt is issued, thereby improving the accuracy of the early warning and ensuring that the user can efficiently perform mixed and block editing of images and texts through the editor. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0036] Figure 1 The present invention is a module schematic diagram of a method for editing mixed text and image blocks on a mobile terminal. DETAILED DESCRIPTION

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present disclosure will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art.

[0038] The present invention provides Figure 1 A mobile terminal mixed text and image block editing method shown includes the following steps:

[0039] S1, performing mixed text and image block editing operations according to the user's text input;

[0040] The mixed text and image block editing operations include text editing, image insertion, rich text style editing, block management, and mixed text and image operations;

[0041] Text editing is to insert, delete, and modify text content based on the user's text input; the picture insertion function allows users to easily select and insert pictures, and handle related operations such as picture uploading, cropping, and rotating; edit rich text styles, such as bold, italic, underline, color, etc., to ensure that these styles can take effect in the editor; manage the edited content in blocks, each block can contain elements such as text and pictures, which helps users better organize and adjust content, allowing users to mix pictures and text in the editor, and users can insert pictures in text and freely adjust the relative position of pictures and text;

[0042] S2. Introduce refined monitoring records at key operation points of the editor to obtain data information when the editor edits the text input by the user, and process the obtained data information;

[0043] Key operation points include image insertion and rich text style editing operations. Monitoring records include operation type, operation time, editor status records, event trigger records, performance indicator records, etc., which are helpful for subsequent analysis and abnormal location.

[0044] The data information when the editor is editing according to the user input text includes performance measurement information and resource management information. Among them, the performance measurement information when the editor is editing according to the user input text includes the data sequence duration abnormal floating index and the data read and write rate change index. The resource management information when the editor is editing according to the user input text includes the memory overflow index. After collection, the data sequence duration abnormal floating index and the data read and write rate change index are calibrated as XL, ... ξξ and DX ζζ , and mark the memory overflow index as

[0045] The serialization and deserialization duration refers to the time consumed for serializing (converting to a format that can be stored or transmitted) and deserializing (restoring the stored or transmitted data to the mixed text and image data in the editor) mixed text and image data in the mobile terminal mixed text and image block editor.

[0046] When editing mixed text and images on a mobile device, the length of time for serialization and deserialization may be affected by many factors, including editor performance, device performance, and the complexity of the edited content. When the serialization and deserialization time is too long, there are indeed some potential problems that may affect the correct saving of the user's edited content or cause the saved data to be corrupted. The following are possible impacts and explanations:

[0047] Save timeout: If the serialization and deserialization time exceeds the user's expected waiting time, the user may interrupt the operation or mistakenly believe that the save operation failed. This may result in the save operation not being completed successfully and the user's edited content not being saved correctly.

[0048] Data inconsistency: Long serialization and deserialization operations may mean that the state of the editor data may have changed during this process. If the user makes new edits during this period and the data has not been saved correctly at this time, the saved data may not contain the latest edits, resulting in data inconsistency;

[0049] Data loss or corruption: If the saved data is incomplete due to errors or interruptions in the serialization and deserialization process, the saved data may be lost or corrupted. This may be because a block or element in the serialization is not processed correctly, or it is not restored correctly during deserialization;

[0050] Concurrent editing conflicts: If the serialization and deserialization process takes a long time, and there are concurrent edits between users, editing conflicts may occur. For example, while one user is editing, another user may have already saved the edited content, which may cause inconsistent or confusing data.

[0051] Therefore, by monitoring the serialization and deserialization times when the editor edits the text input by the user, it can be perceived that excessively long serialization and deserialization times may cause the edited content to not be correctly saved or the saved data to be damaged when the editor saves the successfully edited text and images.

[0052] The logic for obtaining the abnormal floating index of the data series duration is as follows:

[0053] S101, obtaining the real-time serialization duration and real-time deserialization duration of the editor in Q time when editing the text input by the user, and marking the real-time serialization duration and the real-time deserialization duration as XL respectively ξξ x and XL ξξ y , x represents the number of the real-time serialization duration obtained by the editor within Q time when editing the text input by the user, x=1, 2, 3, 4, ..., N, N is a positive integer, y represents the number of the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user, y=1, 2, 3, 4, ..., n, n is a positive integer;

[0054] It should be noted that professional performance monitoring tools are usually used to provide real-time performance data monitoring functions. Some commonly used performance monitoring tools include the Profiler tool in AndroidSQudio and the InsQrumenQs tool in Xcode. These tools can monitor various performance indicators of mobile editors at runtime, including serialization and deserialization duration.

[0055] S102, compare the real-time serialization duration and the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user with the real-time serialization duration reference value and the real-time deserialization duration reference value respectively, and recalibrate the real-time serialization duration greater than the real-time serialization duration reference value to XL ξξ x', recalibrate the real-time deserialization duration that is greater than the real-time deserialization duration reference value to XL ξξ y' , x' represents the number of the real-time serialization duration obtained by the editor within Q time and greater than the real-time serialization duration reference value when editing the text input by the user, x'=1, 2, 3, 4, ..., N', N' is a positive integer, y' represents the number of the real-time deserialization duration obtained by the editor within Q time and greater than the real-time deserialization duration reference value when editing the text input by the user, y'=1, 2, 3, 4, ..., n', n' is a positive integer;

[0056] It should be noted that the setting standards of the real-time serialization duration reference value and the real-time deserialization duration reference value usually need to be weighed according to the specific application scenario. Different mixed text and image content may have different complexities, including elements such as pictures, videos, and tables. If the edited content is more complex, it may require longer serialization and deserialization times. Therefore, the setting of the real-time serialization duration reference value and the real-time deserialization duration reference value is not specifically limited here, and can be adjusted intelligently according to actual conditions;

[0057] S103, calculating the abnormal floating index of the duration of the data sequence generated by the editor within Q time when the editor edits the text input by the user, and the calculation expression is: In the formula, XL ξξ 参考1 Indicates the real-time serialization duration reference value, XL ξξ 参考2 It represents the reference value of real-time deserialization duration. N represents the total number of real-time serialization durations obtained within Q time when the editor edits the text input by the user. n represents the total number of real-time deserialization durations obtained within Q time when the editor edits the text input by the user.

[0058] From the calculation expression of the data sequence duration abnormal floating index, it can be seen that the larger the performance value of the data sequence duration abnormal floating index generated within the Q time when the editor edits the text input by the user, the greater the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text. Conversely, the smaller the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text.

[0059] When editing mixed text and image blocks on a mobile terminal through an editor, the data reading and writing rate when the editor edits according to the user input text refers to the rate at which the editor reads and writes mixed text and image data during the mobile terminal mixed text and image block editing process. The reading rate refers to the speed at which the editor reads mixed text and image data from the data source (which may be local storage, remote server, etc.), which involves loading editor content, including text, pictures, format information, etc.; the writing rate refers to the speed at which the editor writes the user's editing operations to the mixed text and image data saved in the memory, which includes user text input, format changes, inserting or deleting blocks, and other operations.

[0060] Mobile terminal mixed text and image block editing involves processing different types of data such as images and texts. The large fluctuations in the data reading and writing rates of the editor may cause some problems. The following details several aspects that may cause problems when saving the editor:

[0061] Concurrent editing conflicts: If multiple users are editing the same document at the same time, the editor needs to be able to handle concurrent editing conflicts. If one user is editing the mixed text and image content of a block, and another user tries to save the document at the same time, data corruption or overwriting may occur.

[0062] Data synchronization issues: Data synchronization on mobile devices may be unstable due to network fluctuations or other reasons. If the user leaves the app before the editor is saved, data that has not yet been synchronized may be lost or incompletely saved;

[0063] Synchronize local cache with server: Mobile editors usually use local cache to improve performance, but this may also cause data inconsistency. If the data in the local cache is not synchronized with the data on the server, problems may occur when saving;

[0064] Unstable network connection: When a mobile device is in motion, the network connection may be unstable. If the network connection is interrupted when the editor is saving, the data may not be correctly uploaded to the server, resulting in a save failure or data corruption.

[0065] Data format issues: Mobile-end mixed text and image block editing may contain complex data structures, including text, images, styles, etc. The editor needs to ensure that this data is correctly serialized and deserialized when saving, otherwise the saved data format may be incorrect;

[0066] Therefore, by monitoring the data reading and writing rate when the editor edits the text input by the user, it can be perceived that large fluctuations in the data reading and writing rate may cause the editor to save the successfully edited text and images incorrectly or the saved data may be damaged.

[0067] The logic for obtaining the data read and write rate change index is as follows:

[0068] S201, obtaining the actual data reading rate and the actual data writing rate of several adjacent time periods (the length of the time period is not specifically limited here) during the Q time when the editor is editing the text input by the user, and marking the actual data reading rate and the actual data writing rate as DX ζζ a and DX ζζ b , a represents the number of the actual data reading rate obtained by the editor within Q time when editing the text input by the user, a=1, 2, 3, 4, ..., A, A is a positive integer, b represents the number of the actual data writing rate obtained by the editor within Q time when editing the text input by the user, b=1, 2, 3, 4, ..., B, B is a positive integer;

[0069] It should be noted that professional performance monitoring tools are used. These tools usually provide real-time performance data monitoring functions. On the mobile side, some performance monitoring tools for mobile applications can be used, such as the Profiler tool in Android SQudio and the InsQrumenQs tool in Xcode, to obtain the actual data reading rate and actual data writing rate when the editor is editing the text input by the user;

[0070] S202, calculating the data read / write rate change index generated by the editor within Q time when editing the text input by the user, the calculation expression is: Wherein, A represents the total number of actual data read rates obtained at Q time when the editor is editing according to the user input text, and B represents the total number of actual data write rates obtained at Q time when the editor is editing according to the user input text;

[0071] From the calculation expression of the data reading and writing rate variation index, it can be seen that the larger the performance value of the data reading and writing rate variation index generated within Q time when the editor edits the text input by the user, the greater the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text. Conversely, the smaller the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text.

[0072] When editing mixed text and images on a mobile device through an editor, memory overflow occurs when the editor is mixing text and images. This means that during program execution, the requested memory exceeds the available memory resources that the system or application can provide. This usually occurs when an application attempts to request more memory space from the operating system but is unable to meet this requirement.

[0073] Memory overflow may cause problems when the editor saves successfully edited images and texts, which may cause the user's edited content to not be saved correctly or the saved data to be corrupted. The following is a detailed description of the possible impacts:

[0074] Failure to complete the save operation: When the editor has a memory overflow, the save operation may fail to complete. When the editor saves the graphic content edited by the user, it usually needs to write the edited data into the memory and then save it to the storage device or remote server. If the memory overflow occurs during the save process, the save operation may be interrupted and the editor may fail to complete the step of writing the edited content into permanent storage;

[0075] Data loss or inconsistency: Memory overflow may cause incomplete or inconsistent data saved in the editor memory. When saving, the editor may lose the edited content that has not been written, or save part of the edited content while the other part fails to be saved successfully. This may cause inconsistency in the content edited by the user after saving, and some data may be lost or damaged;

[0076] Unable to restore to the correct state: Memory overflow may occur at the critical moment when the editor performs a save operation, which will cause the editor to be unable to restore the data to the correct saved state. Even if the user opens the editor again, the editor may load partial edited content or incomplete data because the previous save operation failed to complete successfully.

[0077] Therefore, by monitoring the memory situation of the editor when editing text input by the user, it can be detected that memory overflow may cause the editor to save the successfully edited text and graphics without correctly saving the edited content or the hidden danger of the saved data being damaged.

[0078] The logic for obtaining the memory overflow index is as follows:

[0079] S301, obtaining the real-time request allocated memory and the real-time available memory at the corresponding time when the editor is editing the text input by the user within Q time, and marking the real-time request allocated memory and the real-time available memory at the corresponding time as and

[0080] It should be noted that mobile performance monitoring tools (such as Android SQudio's Profiler tool or Xcode's InsQrumenQs tool) provide real-time monitoring of application performance. These tools usually include real-time monitoring of memory usage, including real-time request allocation of memory and real-time available memory at the corresponding moment.

[0081] S302, calculate the memory overflow index generated by the editor within Q time when editing the text input by the user, and the calculation expression is: In the formula, [t x , t y ] indicates the period when the real-time requested memory allocation is greater than the real-time available memory at the corresponding moment, t x <t y ;

[0082] From the calculation expression of the memory overflow index, it can be seen that the larger the performance value of the memory overflow index generated by the editor within the Q time when editing the text input by the user, the greater the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text. Conversely, the smaller the risk that the edited content will not be correctly saved or the saved data will be damaged when the editor saves the successfully edited image and text.

[0083] S3. Build an anomaly detection mechanism in the editor based on the processed data information to monitor the key links in the editing process;

[0084] Get the abnormal floating index XL of the data sequence length generated by the editor within Q time when editing the user input text ξξ , Data read and write rate change index DX ζζ And the memory overflow index After that, through XL ξξ DX ζζ as well as Build anomaly detection mechanism in the editor and generate editing index BJ 指数 , based on the formula: Where μ, π, and θ are the abnormal floating index XL of the data sequence duration, respectively. ξξ , Data read and write rate change index DX ζζ , Memory overflow index The preset proportional coefficients, μ, π, and θ are all greater than 0;

[0085] From the calculation formula, we can know that the larger the abnormal floating index of the data sequence generated by the editor within Q time when editing the user input text, the larger the data read and write rate change index, and the larger the memory overflow index, that is, the editing index BJ generated by the editor within Q time when editing the user input text 指数 The smaller the performance value, the greater the risk that the edited content will not be saved correctly or the saved data will be damaged when the editor saves the successfully edited image and text. Conversely, the smaller the risk that the edited content will not be saved correctly or the saved data will be damaged when the editor saves the successfully edited image and text.

[0086] S4. Before the user performs a save operation, the edited data in the editor is verified and analyzed to ensure that the content edited by the user is correctly saved or the saved data is not damaged;

[0087] The editing index generated by the editor within Q time when the user inputs text for editing is verified and analyzed with the preset editing index reference threshold. The results of the verification analysis are as follows:

[0088] If the editing index is greater than the editing index reference threshold, a verification success signal is generated. At this time, the successfully edited image and text are saved through the editor, which can achieve efficient saving;

[0089] If the editing index is less than or equal to the editing index reference threshold, a verification failure signal is generated. At this time, when the editor saves the successfully edited image and text, there is a risk that the edited content is not saved correctly or the saved data is damaged.

[0090] S5. When the editor saves the successfully edited image and text and there is a hidden danger that the edited content is not saved correctly or the saved data is damaged, a comprehensive analysis and judgment is made on the editing process to determine whether there is an accidental abnormality in the editing process;

[0091] When the editor saves the successfully edited image and text, there is a risk that the edited content is not saved correctly or the saved data is damaged, a number of edit indexes generated subsequently are obtained to establish an analysis set, and the analysis set is marked as I, then I = {BJ 指数 f}, f represents the number of the edit index in the analysis set, f = 1, 2, 3, 4, ..., u, u is a positive integer;

[0092] By analyzing several editing indices in the set, the standard deviation of the editing index and the average value of the editing index are calculated, and the standard deviation of the editing index and the average value of the editing index are denoted as BJ 标 and BJ 平 , and edit the index standard deviation BJ 标 and edit index average BJ 平 The pre-set standard deviation reference threshold BJ 标 参考 and BJ 平 参考 Compare and if satisfied An accidental signal is generated, but no warning is issued for the accidental signal, indicating that the editing process only has an accidental abnormality. At this time, the successfully edited image and text can be saved through the editor, which can also achieve efficient saving. If it does not meet the requirements, A non-accidental signal is generated, and an early warning is issued for the non-accidental signal to inform relevant personnel, indicating that a hidden danger of continuous abnormality has occurred in the editing process. At this time, when the editor saves the successfully edited image and text, there is a high hidden danger that the edited content is not saved correctly or the saved data is damaged. It is necessary to promptly check the hidden dangers of the editor when editing according to the user input text, promptly discover the hidden dangers of the editor when editing according to the user input text, and solve the hidden dangers in a timely manner;

[0093] S6. When receiving the information that the editing is completed, the content successfully edited by the user is saved to the backend server or local storage;

[0094] When the editing data in the editor is verified and analyzed to generate a verification success signal, or a comprehensive analysis and judgment of the editing process generates an accidental signal, the editing completion information is generated, indicating that the successfully edited graphics and texts can be saved through the editor at this time, and efficient saving can be achieved.

[0095] The present invention monitors the process of mixed text and image editing by the editor. When the editor saves the successfully edited image and image and there is a hidden danger that the edited content is not correctly saved or the saved data is damaged, an early warning prompt is issued to notify relevant personnel to know, and relevant hidden danger investigation work is arranged in time for the process when the editor edits the text input by the user, and the hidden danger problems when the editor edits the text input by the user are discovered in time, and the hidden danger problems are solved in time, so as to effectively avoid the content edited by the user from being not correctly saved or the saved data from being damaged;

[0096] When the present invention senses that there is a risk that the edited content is not correctly saved or the saved data is damaged when the editor saves the successfully edited image and text, the present invention continues to perform a comprehensive analysis and judgment on the editing process to determine whether there are accidental abnormalities in the editing process. If only accidental abnormalities in the editing process occur, the editor can also achieve efficient saving of the successfully edited image and text at this time, and no early warning prompt is issued, thereby improving the accuracy of the early warning and ensuring that the user can efficiently perform mixed and block editing of images and texts through the editor.

[0097] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0098] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0100] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.

Claims

1. A mobile terminal mixed text and image block editing method, It is characterized in that The following steps are involved: S1, performing mixed text and image block editing operations according to the user's text input; S2. Introduce refined monitoring records at key operation points of the editor to obtain data information when the editor edits the text input by the user, and process the obtained data information; The data information when the editor is editing according to the user input text includes performance measurement information and resource management information. Among them, the performance measurement information when the editor is editing according to the user input text includes the data sequence duration abnormal floating index and the data read and write rate change index. The resource management information when the editor is editing according to the user input text includes the memory overflow index. After collection, the data sequence duration abnormal floating index and the data read and write rate change index are calibrated as XL, ... ξξ and DX ζζ , and mark the memory overflow index as The logic for obtaining the abnormal floating index of the data series duration is as follows: S101, obtaining the real-time serialization duration and real-time deserialization duration of the editor in Q time when editing the text input by the user, and marking the real-time serialization duration and the real-time deserialization duration as XL respectively ξξ x and XL ξξ y , x represents the number of the real-time serialization duration obtained by the editor within Q time when editing the text input by the user, x=1, 2, 3, 4, ..., N, N is a positive integer, y represents the number of the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user, y=1, 2, 3, 4, ..., n, n is a positive integer; S102, compare the real-time serialization duration and the real-time deserialization duration obtained by the editor within Q time when editing the text input by the user with the real-time serialization duration reference value and the real-time deserialization duration reference value respectively, and recalibrate the real-time serialization duration greater than the real-time serialization duration reference value to XL ξξ x' , recalibrate the real-time deserialization duration that is greater than the real-time deserialization duration reference value to XL ξξ y' , x' represents the number of the real-time serialization duration obtained by the editor within Q time and greater than the real-time serialization duration reference value when editing the text input by the user, x'=1, 2, 3, 4, ..., N', N' is a positive integer, y' represents the number of the real-time deserialization duration obtained by the editor within Q time and greater than the real-time deserialization duration reference value when editing the text input by the user, y'=1, 2, 3, 4, ..., n', n' is a positive integer; S103, calculating the abnormal floating index of the duration of the data sequence generated by the editor within Q time when the editor edits the text input by the user, and the calculation expression is: In the formula, XL ξξ 参考1 Indicates the real-time serialization duration reference value, XL ξξ 参考2 Indicates the reference value of real-time deserialization duration, N indicates the total number of real-time serialization durations obtained by the editor within Q time when editing the text input by the user, and n indicates the total number of real-time deserialization durations obtained by the editor within Q time when editing the text input by the user; S3. Build an anomaly detection mechanism in the editor based on the processed data information to monitor the key links in the editing process; S4. Before the user performs a save operation, the edited data in the editor is verified and analyzed to ensure that the content edited by the user is correctly saved or the saved data is not damaged; S5. When the editor saves the successfully edited image and text and there is a hidden danger that the edited content is not saved correctly or the saved data is damaged, a comprehensive analysis and judgment is made on the editing process to determine whether there is an accidental abnormality in the editing process; S6. When receiving the information indicating that the editing is completed, the content successfully edited by the user is saved to the backend server or local storage.

2. According to claim 1, a mobile terminal mixed text and image block editing method, It is characterized in that Get the abnormal floating index XL of the data sequence length generated by the editor within Q time when editing the user input text ξξ , Data read and write rate change index DX ζζ And the memory overflow index After that, through XL ξξ DX ζζ as well as Build anomaly detection mechanism in the editor and generate editing index BJ 指数 , based on the formula: Where μ, π, and θ are the abnormal floating index XL of the data sequence duration, respectively. ξξ , Data read and write rate change index DX ζζ , Memory overflow index The preset proportional coefficients, μ, π, and θ are all greater than 0.

3. A mobile terminal mixed text and image block editing method according to claim 2, It is characterized in that The editing index generated by the editor within Q time when the user inputs text for editing is verified and analyzed with the preset editing index reference threshold. The results of the verification analysis are as follows: If the editing index is greater than the editing index reference threshold, a verification success signal is generated; If the editing index is less than or equal to the editing index reference threshold, a verification failure signal is generated.

4. A mobile terminal mixed text and image block editing method according to claim 3, It is characterized in that When the editor saves the successfully edited image and text, there is a risk that the edited content is not saved correctly or the saved data is damaged, a number of edit indexes generated subsequently are obtained to establish an analysis set, and the analysis set is marked as I, then I = {BJ 指数 f }, f represents the number of the edit index in the analysis set, f = 1, 2, 3, 4, ..., u, u is a positive integer; By analyzing several editing indices in the set, the standard deviation of the editing index and the average value of the editing index are calculated, and the standard deviation of the editing index and the average value of the editing index are denoted as BJ 标 and BJ 平 , and edit the index standard deviation BJ 标 and edit index average BJ 平 The pre-set standard deviation reference threshold BJ 标 参考 and BJ 平 参考 Compare and if satisfied Then an accidental signal is generated, and no warning is issued for the accidental signal. If it does not meet A non-accidental signal is generated, and an early warning is issued for the non-accidental signal to inform relevant personnel.

5. According to claim 3, a mobile terminal mixed text and image block editing method, It is characterized in that When the editing data in the editor is verified and analyzed to generate a verification success signal, or when a comprehensive analysis and judgment of the editing process generates an accidental signal, the information that the editing is completed is generated.

6. A mobile terminal mixed text and image block editing method according to claim 1, It is characterized in that The logic for obtaining the data read and write rate change index is as follows: S201, obtaining the actual data reading rate and the actual data writing rate of several adjacent time periods in Q time when the editor is editing the text input by the user, and marking the actual data reading rate and the actual data writing rate as DX ζζ a and DX ζζ b , a represents the number of the actual data reading rate obtained by the editor within Q time when editing the text input by the user, a=1, 2, 3, 4, ..., A, A is a positive integer, b represents the number of the actual data writing rate obtained by the editor within Q time when editing the text input by the user, b=1, 2, 3, 4, ..., B, B is a positive integer; S202, calculating the data read / write rate change index generated by the editor within Q time when editing the text input by the user, the calculation expression is: Wherein, A represents the total number of actual data read rates obtained at Q time when the editor edits the text input by the user, and B represents the total number of actual data write rates obtained at Q time when the editor edits the text input by the user.

7. A mobile terminal mixed text and image block editing method according to claim 1, It is characterized in that The logic for obtaining the memory overflow index is as follows: S301, obtaining the real-time request allocated memory and the real-time available memory at the corresponding time when the editor is editing the text input by the user within Q time, and marking the real-time request allocated memory and the real-time available memory at the corresponding time as and S302, calculate the memory overflow index generated by the editor within Q time when editing the text input by the user, and the calculation expression is: In the formula, [t x , t y ] indicates the period when the real-time requested memory allocation is greater than the real-time available memory at the corresponding moment, t x <t y .