[go: up one dir, main page]

CN117456056B - Mobile terminal image-text mixed arrangement block editing method - Google Patents

Mobile terminal image-text mixed arrangement block editing method Download PDF

Info

Publication number
CN117456056B
CN117456056B CN202311544441.3A CN202311544441A CN117456056B CN 117456056 B CN117456056 B CN 117456056B CN 202311544441 A CN202311544441 A CN 202311544441A CN 117456056 B CN117456056 B CN 117456056B
Authority
CN
China
Prior art keywords
time
editing
editor
user
text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311544441.3A
Other languages
Chinese (zh)
Other versions
CN117456056A (en
Inventor
柳骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Lanjingren Network Technology Co ltd
Original Assignee
Nanjing Lanjingren Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Lanjingren Network Technology Co ltd filed Critical Nanjing Lanjingren Network Technology Co ltd
Priority to CN202311544441.3A priority Critical patent/CN117456056B/en
Publication of CN117456056A publication Critical patent/CN117456056A/en
Application granted granted Critical
Publication of CN117456056B publication Critical patent/CN117456056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a mobile terminal image-text mixed arrangement block editing method, which relates to the technical field of image-text mixed arrangement block editing and comprises the following steps: s1, performing image-text mixed arrangement block editing operation according to text input of a user; s2, introducing a refined monitoring record into key operation points of the editor, acquiring data information when the editor edits according to a text input by a user, and processing the acquired data information. According to the invention, through monitoring the process of editing the image-text mixed arrangement block, when the editor stores the successfully edited image-text, when hidden danger that the edited content is not correctly stored or the stored data is damaged exists, an early warning prompt is sent to inform relevant personnel to know the hidden danger, the relevant hidden danger investigation work is timely arranged according to the process of editing the text input by the user, the hidden danger problem of the editor when editing the text input by the user is timely found, and the hidden danger problem is timely solved.

Description

Mobile terminal image-text mixed arrangement block editing method
Technical Field
The invention relates to the technical field of image-text mixed arrangement block editing, in particular to a mobile terminal image-text mixed arrangement block editing method.
Background
The mobile terminal image-text mixed-arrangement block editing refers to that in an application program or a webpage developed on a mobile device, a user can perform mixed-arrangement editing of texts and images, and the contents are organized according to blocks. The purpose of this editing approach is to allow the user to create rich text content in a more intuitive way where text and images can be combined together to form information that is more expressive.
The mobile terminal graphic mixed arrangement block editing usually uses an editor, and the role of the editor in the scene is to provide a user-friendly interface, so that a user can conveniently input, edit, format text, and insert or edit rich text contents such as pictures.
The prior art has the following defects: when the user successfully edits the image-text mixed-arranging block through the editor, the successfully edited image-text is usually saved through the editor, if the editing process of the image-text mixed-arranging block is abnormal but the successfully edited image-text is displayed, if the successfully edited image-text is saved through the editor, the incorrectly saved content or the saved data of the content edited by the user are damaged, so that a great amount of edited content of the user is lost or cannot be restored normally.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide a mobile terminal image-text mixed arrangement block editing method, which monitors the process of editing an image-text mixed arrangement block by an editor, when the editor stores successfully edited images and texts, and gives out early warning prompts to inform relevant personnel of knowing the hidden danger of the damage of the edited content or the data stored incorrectly, and timely arranges relevant hidden danger investigation work according to the process of editing the text input by a user, timely discovers hidden danger problems when the editor edits according to the text input by the user, timely solves the hidden danger problems, effectively avoids the damage of the incorrectly edited content or the data stored incorrectly, and solves the problems in the background technology.
In order to achieve the above object, the present invention provides the following technical solutions: a mobile terminal image-text mixed arrangement block editing method comprises the following steps:
s1, performing image-text mixed arrangement block editing operation according to text input of a user;
s2, introducing a refined monitoring record into a key operation point of the editor, acquiring data information when the editor edits according to a text input by a user, and processing the acquired data information;
s3, constructing an abnormality detection mechanism in the editor according to the processed data information, and monitoring key links in the editing process;
S4, before the user performs the storage operation, checking and analyzing the editing data in the editor, so as to ensure that the content edited by the user is correctly stored or the stored data is not damaged;
S5, when the editor stores the successfully edited image and text, the edited content is not correctly stored or the stored data is damaged, comprehensively analyzing and judging the editing process, and judging whether the editing process is accidentally abnormal or not;
and S6, when receiving the information of editing completion, storing the content successfully edited by the user into a back-end server or a local storage.
Preferably, the data information when the editor edits according to the text input by the user comprises performance measurement information and resource management information, wherein the performance measurement information when the editor edits according to the text input by the user comprises a data sequence duration abnormal floating index and a data read-write speed change index, the resource management information when the editor edits according to the text input by the user comprises a memory overflow index, after acquisition, the data sequence duration abnormal floating index and the data read-write speed change index are respectively marked as XL ξξ and DX ζζ, and the memory overflow index is marked as follows
Preferably, the abnormal floating index XL ξξ, the data read-write speed variation index DX ζζ and the memory overflow index of the data sequence duration abnormality generated in the Q time when the editor edits according to the text input by the user are obtainedAfter that, through XL ξξ、DXζζ andAn abnormality detection mechanism in an editor is constructed to generate an edit exponent BJ Index number according to the following formula: Wherein, mu, pi and theta are respectively the abnormal floating index XL ξξ of the duration of the data sequence, the data read-write speed variation index DX ζζ and the memory overflow index Μ, pi, θ are all greater than 0.
Preferably, the editor performs verification analysis on the editing index generated in the Q time when editing according to the text input by the user and a preset editing index reference threshold, and the result of the verification analysis is as follows:
if the editing index is larger than the editing index reference threshold, generating a verification success signal;
and if the editing index is smaller than or equal to the editing index reference threshold value, generating a verification failure signal.
Preferably, when the editor stores the successfully edited graphics context, if there is a hidden trouble that the edited content is not stored correctly or the stored data is damaged, a plurality of editing indexes generated later are acquired to establish an analysis set, and the analysis set is marked as I, i= { BJ Index number f }, f represents the number of the editing indexes in the analysis set, and f=1, 2, 3, 4, … …, u and u are positive integers;
Calculating an editing index standard deviation and an editing index average value by analyzing a plurality of editing indexes in the collection, calibrating the editing index standard deviation and the editing index average value into BJ Label (C) and BJ Flat plate respectively, comparing the editing index standard deviation BJ Label (C) and the editing index average value BJ Flat plate with preset standard deviation reference thresholds BJ Label (C) Reference to and BJ Flat plate Reference to respectively, and if the editing index standard deviation and the editing index average value meet the requirements Generating accidental signals and not giving out early warning prompts to the accidental signals, if not meetingGenerating a non-accidental signal, and sending an early warning prompt to the non-accidental signal to inform relevant personnel of the non-accidental signal.
Preferably, when the editing data in the editor is checked and analyzed to generate a check success signal, or the editing process is comprehensively analyzed and judged to generate an accidental signal, the information of editing completion is generated.
Preferably, the logic for obtaining the abnormal floating index of the duration of the data sequence is as follows:
S101, acquiring real-time serialization duration and real-time deserialization duration of an editor in Q time according to user input text, respectively calibrating the real-time serialization duration and the real-time deserialization duration as XL ξξ x and XL ξξ y, wherein x represents the number of the real-time serialization duration acquired in Q time by the editor in accordance with user input text, x=1, 2,3, 4, … … and N, N are positive integers, y represents the number of the real-time deserialization duration acquired in Q time by the editor in accordance with user input text, and y=1, 2,3, 4, … … and N, N are positive integers;
S102, comparing the real-time serialization time length and the real-time deserialization time length which are acquired in the Q time by the editor according to the text input by the user with the real-time serialization time length reference value and the real-time deserialization time length reference value respectively, recalibrating the real-time serialization time length which is larger than the real-time serialization time length reference value to XL ξξ x', recalibrating the real-time deserialization time length which is larger than the real-time deserialization time length reference value to XL ξξ y', wherein x 'represents the number of the real-time serialization time length which is larger than the real-time serialization time length reference value and is acquired in the Q time by the editor according to the text input by the user, x' =1, 2,3, 4, … …, N 'and N' are positive integers, y '=1, 2,3, 4, … … and N' are integers;
s103, calculating an abnormal floating index of the duration of the data sequence generated in the time Q when the editor edits according to the text input by the user, wherein the calculated expression is as follows: Wherein XL ξξ Reference to 1 represents a real-time serialization duration reference value, XL ξξ Reference to 2 represents a real-time deserialization duration reference value, N represents the total number of real-time serialization durations acquired in Q time when the editor edits according to the text input by the user, and N represents the total number of real-time deserialization durations acquired in Q time when the editor edits according to the text input by the user.
Preferably, the logic for obtaining the data read/write rate variation index is as follows:
S201, acquiring actual data reading rates and actual data writing rates of a plurality of adjacent time periods in Q time when an editor edits according to a text input by a user, and calibrating the actual data reading rates and the actual data writing rates as DX ζζ a and DX ζζ b respectively, wherein a represents the number of the actual data reading rates acquired in the Q time when the editor edits according to the text input by the user, a=1, 2, 3, 4, … …, A and A are positive integers, B represents the number of the actual data writing rates acquired in the Q time when the editor edits according to the text input by the user, and b=1, 2, 3, 4, … …, B and B are positive integers;
S202, calculating a data read-write speed variation index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Where a represents the total number of actual data read rates acquired at Q time by the editor when editing text entered by the user and B represents the total number of actual data write rates acquired at Q time by the editor when editing text entered by the user.
Preferably, the logic for memory overflow index retrieval is as follows:
S301, acquiring real-time request allocation memory and real-time available memory at corresponding time in Q time when an editor edits according to text input by a user, and respectively calibrating the real-time request allocation memory and the real-time available memory at corresponding time as And
S302, calculating a memory overflow index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Where [ t x,ty ] represents a period of time when the real-time request allocates memory greater than real-time available memory at the corresponding time, t x<ty.
In the technical scheme, the invention has the technical effects and advantages that:
According to the invention, through monitoring the process of carrying out image-text mixed arrangement block editing on the editor, when the editor stores successfully edited images and texts, when hidden danger that the edited content is not correctly stored or the stored data is damaged exists, an early warning prompt is sent to inform relevant personnel of the hidden danger, the relevant hidden danger investigation work is timely arranged according to the process of editing the text input by a user, the hidden danger problem of the editor when editing the text input by the user is timely found, and the hidden danger problem is timely solved, so that the damage to the data of which the content is not correctly stored or stored by the user is effectively avoided;
When the hidden danger that the edited content is not correctly stored or the stored data is damaged is perceived when the editor stores the successfully edited image and text, the method continues to carry out comprehensive analysis and judgment on the editing process, judges whether the editing process is accidentally abnormal, and can realize high-efficiency storage of the successfully edited image and text through the editor at the moment if only the accidental abnormality of the editing process is occurred, the method does not send out early warning prompt, thereby improving the early warning accuracy and ensuring that users carry out image and text mixed arrangement block editing through the editor efficiently.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments described in the present application, and other drawings may be obtained according to these drawings for those skilled in the art.
Fig. 1 is a schematic block diagram of a mobile terminal graphic-text mixed arrangement block editing method according to the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
The invention provides a mobile terminal image-text mixed arrangement block editing method as shown in figure 1, which comprises the following steps:
s1, performing image-text mixed arrangement block editing operation according to text input of a user;
the image-text mixed arrangement block editing operation comprises text editing, picture inserting, rich text style editing, block management, image-text mixed arrangement operation and the like;
text editing, namely, executing operations such as inserting, deleting and modifying text content according to text input of a user; the picture inserting function enables a user to easily select and insert pictures, and processes related operations such as uploading, cutting, rotating and the like of the pictures; editing rich text styles, such as bolded, italic, underlined, color, etc., ensures that the styles can be validated in the editor; managing the edited content in blocks, wherein each block can contain text, picture and other elements, which is helpful for a user to better organize and adjust the content, allows the user to perform picture-text mixed arrangement operation in an editor, and allows the user to insert pictures in texts and freely adjust the relative positions of the pictures and the texts;
s2, introducing a refined monitoring record into a key operation point of the editor, acquiring data information when the editor edits according to a text input by a user, and processing the acquired data information;
The key operation points comprise picture insertion, rich text style editing operation and the like, and the monitoring records comprise operation types, operation time, editor state records, event trigger records, performance index records and the like, so that subsequent analysis and abnormality positioning are facilitated;
The editor comprises performance measurement information and resource management information according to data information when the user inputs a text for editing, wherein the performance measurement information when the editor edits according to the user inputs the text comprises a data sequence duration abnormal floating index and a data read-write speed change index, the resource management information when the editor edits according to the user inputs the text comprises a memory overflow index, after acquisition, the data sequence duration abnormal floating index and the data read-write speed change index are respectively calibrated to XL ξξ and DX ζζ, and the memory overflow index is calibrated to be
The serialization and anti-serialization duration refers to the time consumed by serialization (conversion into a format capable of being stored or transmitted) and anti-serialization (restoration of stored or transmitted data into the graphic mixed data in the editor) of graphic mixed data in the mobile terminal graphic mixed block editor;
When the mobile terminal performs the image-text mixed editing, the time of serialization and deserialization may be affected by various factors including the performance of the editor, the performance of the equipment, the complexity of the editing content, etc., and when the time of serialization and deserialization is too long, there are certain potential problems, which may affect the correct storage of the editing content of the user or cause the damage of the stored data, and the following possible effects and explanations are as follows:
preservation overtime: if the time period of serialization and deserialization exceeds the expected waiting time of the user, the user may interrupt the operation or misuse the operation as a saving failure, and the situation may result in that the saving action is not successfully completed, and the content edited by the user is not correctly saved;
Data inconsistency: long time serialization and deserialization operations may mean that the state of the editor data may change during this process, and if the user makes a new edit during this period of time, but the data at this time has not been properly saved, the saved data may not contain the latest edit content, resulting in data inconsistency;
Data loss or corruption: if the saved data is incomplete due to errors or breaks in the serialization and deserialization processes, it may result in the saved data being lost or corrupted, possibly because a block or element in the serialization is not processed correctly, or is not restored correctly when deserialized;
concurrent edit conflict: if the serialization and de-serialization processes require a longer time, and concurrent editing exists between users, editing conflicts may result, for example, one user may have saved the edited content while editing, which may result in inconsistent or confusing data;
Therefore, the editor monitors the serialization time and the anti-serialization time when editing according to the text input by the user, and the editor can perceive that the excessive serialization time and the excessive anti-serialization time may cause hidden trouble that the edited content is not correctly stored or the stored data is damaged when the successfully edited image and text is stored by the editor.
The logic for obtaining the abnormal floating index of the duration of the data sequence is as follows:
S101, acquiring real-time serialization duration and real-time deserialization duration of an editor in Q time according to user input text, respectively calibrating the real-time serialization duration and the real-time deserialization duration as XL ξξ x and XL ξξ y, wherein x represents the number of the real-time serialization duration acquired in Q time by the editor in accordance with user input text, x=1, 2,3, 4, … … and N, N are positive integers, y represents the number of the real-time deserialization duration acquired in Q time by the editor in accordance with user input text, and y=1, 2,3, 4, … … and N, N are positive integers;
It should be noted that, with specialized performance monitoring tools, these tools generally provide real-time performance data monitoring functions, and some commonly used performance monitoring tools include Profiler tools in AndroidSQudio, insQrumenQs tools in Xcode, etc., which can monitor various performance indicators of the mobile editor during operation, including serialization and deserialization durations;
S102, comparing the real-time serialization time length and the real-time deserialization time length which are acquired in the Q time by the editor according to the text input by the user with the real-time serialization time length reference value and the real-time deserialization time length reference value respectively, recalibrating the real-time serialization time length which is larger than the real-time serialization time length reference value to XL ξξ x', recalibrating the real-time deserialization time length which is larger than the real-time deserialization time length reference value to XL ξξ y', wherein x 'represents the number of the real-time serialization time length which is larger than the real-time serialization time length reference value and is acquired in the Q time by the editor according to the text input by the user, x' =1, 2,3, 4, … …, N 'and N' are positive integers, y '=1, 2,3, 4, … … and N' are integers;
It should be noted that, the setting standard of the real-time serialization duration reference value and the real-time deserialization duration reference value generally needs to be balanced according to a specific application scene, different graphic and text mixed-arrangement contents may have different complexity, including elements such as pictures, videos, tables and the like, if the edited contents are more complex, longer serialization and deserialization durations may be required, so that the setting of the real-time serialization duration reference value and the real-time deserialization duration reference value is not specifically limited herein, and can be intelligently adjusted according to actual situations;
s103, calculating an abnormal floating index of the duration of the data sequence generated in the time Q when the editor edits according to the text input by the user, wherein the calculated expression is as follows: Wherein XL ξξ Reference to 1 represents a real-time serialization duration reference value, XL ξξ Reference to 2 represents a real-time deserialization duration reference value, N represents the total number of real-time serialization durations acquired in Q time when the editor edits according to the text input by the user, and N represents the total number of real-time deserialization durations acquired in Q time when the editor edits according to the text input by the user.
According to the calculation expression of the abnormal floating index of the data sequence duration, the larger the expression value of the abnormal floating index of the data sequence duration generated in the Q time when the editor edits according to the text input by a user, the larger the hidden trouble that the editor damages the data which is incorrectly saved or stored in the edited content when the successfully edited image and text is stored is indicated, and the smaller the hidden trouble that the editor damages the data which is incorrectly saved or stored in the edited content when the successfully edited image and text is stored is indicated.
When editing the mobile terminal image-text mixed arrangement block by the editor, the data read-write speed when the editor edits according to the text input by the user refers to the speed of the editor reading and writing the image-text mixed arrangement data in the process of editing the mobile terminal image-text mixed arrangement block, and the read speed refers to the speed of the editor reading the image-text mixed arrangement data from a data source (possibly a local storage, a remote server and the like), which relates to loading the content of the editor, including text, pictures, format information and the like; the writing rate refers to the speed at which the editor writes the user's editing operations to the teletext data held in memory, including user text entry, format change, insertion or deletion of blocks, etc.
The mobile terminal image-text mixed arrangement block editing relates to processing of different types of data such as images, texts and the like, and the large change of the data read-write speed of an editor can cause some problems, and the following details of several aspects which can cause the problems of the editor during storage are described below:
Concurrent edit conflict: if multiple users edit the same document at the same time, the editor needs to be able to handle the conflict of concurrent editing, if a certain user is editing a certain block of mixed content, and another user tries to save the document at the same time, the problem of data damage or coverage may be caused;
Data synchronization problem: the mobile terminal device may cause unstable data synchronization due to network fluctuation or other reasons, and if the user leaves the application before the editor saves, the data which is not synchronized may be lost or the data is saved incompletely;
The local cache is synchronized with the server: mobile-side editors typically use local caches to improve performance, but this may also lead to data inconsistencies, which may be problematic if the data in the local caches is not synchronized with the data at the server side;
Unstable network connections: the mobile device may be unstable in network connection during movement, and if the network connection is interrupted during storage of the editor, data may not be uploaded to the server correctly, so that storage failure or data damage is caused;
Data format problem: the mobile terminal image-text mixed arrangement block editing may contain complex data structures including text, images, patterns and the like, and an editor needs to ensure correct serialization and deserialization of the data during storage, otherwise, the stored data format may be incorrect;
therefore, the editor monitors the data read-write speed when editing according to the text input by the user, and can sense the hidden trouble that the edited content is not correctly saved or the saved data is damaged when the editor saves the successfully edited image and text because of the large change of the data read-write speed.
The logic for obtaining the data read-write speed variation index is as follows:
S201, acquiring actual data reading rates and actual data writing rates of a plurality of adjacent time periods (the time periods in the time periods are not specifically limited herein) in Q time when the editor edits according to the text input by the user, respectively calibrating the actual data reading rates and the actual data writing rates to DX ζζ a and DX ζζ b, wherein a represents the number of the actual data reading rates acquired in the Q time when the editor edits according to the text input by the user, a=1, 2,3, 4, … …, A and A are positive integers, B represents the number of the actual data writing rates acquired in the Q time when the editor edits according to the text input by the user, and b=1, 2,3, 4, … …, B and B are positive integers;
It should be noted that, using specialized performance monitoring tools, these tools generally provide real-time performance data monitoring functions, and on the mobile end, some performance monitoring tools for mobile applications, such as Profiler tools in Android SQudio, insQrumenQs tools in Xcode, etc., may be used to obtain the actual data reading rate and the actual data writing rate when the editor edits according to the text input by the user;
S202, calculating a data read-write speed variation index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Wherein A represents the total number of actual data reading rates acquired at the time Q when the editor edits according to the text input by the user, and B represents the total number of actual data writing rates acquired at the time Q when the editor edits according to the text input by the user;
The calculation expression of the data read-write speed variation index shows that the larger the expression value of the data read-write speed variation index generated in the Q time when the editor edits according to the text input by the user, the larger the hidden trouble that the editor damages the data with the edited content which is not correctly saved or saved when the successfully edited image and text is saved, and the smaller the hidden trouble that the editor damages the data with the edited content which is not correctly saved or saved when the successfully edited image and text is saved.
When the editor edits the mobile terminal image-text mixed arrangement block, the memory overflow when the editor performs image-text mixed arrangement means that the memory required to be allocated exceeds the available memory resource provided by a system or an application program in the running process of the program, and the situation usually occurs when the application program tries to request more memory space from an operating system, but the requirement cannot be met.
Memory overflow can cause problems for editors in saving successfully edited graphics and text, and can cause damage to data that is incorrectly saved or saved by user-edited content, the possible effects of which are set forth in more detail below:
Failing to complete the save operation: when the memory overflow occurs in the editor, the saving operation may not be completed, when the editor saves the graphic contents edited by the user, the edited data is generally required to be written into the memory and then saved to the storage device or the remote server, if the memory overflow occurs in the saving process, the saving operation may be interrupted, and the editor fails to complete the step of writing the edited contents into the permanent storage;
Data loss or inconsistency: memory overflow may cause incomplete or inconsistent data stored in the memory of the editor, the editor may lose the editing content which is not written yet when storing, or a part of editing content is stored, while another part of editing content is not successfully stored, which may cause inconsistent content edited by a user after storing, and part of data may be lost or damaged;
Unable to restore to the correct state: memory overflow may occur at the critical moment when the editor performs a save operation, which may result in the editor failing to restore the data to the correct save state, even if the user opens the editor again, since the previous save operation was not successfully completed, the editor may be loaded with partially edited content or incomplete data;
therefore, the memory condition when the editor edits according to the text input by the user is monitored, and the hidden trouble that the edited content is not correctly saved or the saved data is damaged when the editor saves the successfully edited image and text can be perceived.
The logic for memory overflow index acquisition is as follows:
S301, acquiring real-time request allocation memory and real-time available memory at corresponding time in Q time when an editor edits according to text input by a user, and respectively calibrating the real-time request allocation memory and the real-time available memory at corresponding time as And
It should be noted that, the mobile terminal performance monitoring tools (such as the Profiler tool Android SQudio or the InsQrumenQs tool of Xcode) provide a function of monitoring application performance in real time, where these tools generally include real-time monitoring of the memory usage, including real-time request for allocation of memory and real-time available memory at corresponding time;
s302, calculating a memory overflow index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Wherein [ t x,ty ] represents a time period when the real-time request allocation memory is larger than the real-time available memory at the corresponding time, and t x<ty;
According to the calculation expression of the memory overflow index, the larger the expression value of the memory overflow index generated in the Q time when the editor edits the text according to the user input, the larger the hidden trouble that the editor damages the data which is incorrectly saved or stored in the edited content when the successfully edited image and text is stored, and the smaller the hidden trouble that the editor damages the data which is incorrectly saved or stored in the edited content when the successfully edited image and text is stored.
S3, constructing an abnormality detection mechanism in the editor according to the processed data information, and monitoring key links in the editing process;
Acquiring a data sequence duration anomaly floating index XL ξξ, a data read-write rate variation index DX ζζ and a memory overflow index which are generated in Q time when an editor edits according to a text input by a user After that, through XL ξξ、DXζζ andAn abnormality detection mechanism in an editor is constructed to generate an edit exponent BJ Index number according to the following formula: Wherein, mu, pi and theta are respectively the abnormal floating index XL ξξ of the duration of the data sequence, the data read-write speed variation index DX ζζ and the memory overflow index Μ, pi, θ are all greater than 0;
According to a calculation formula, the larger the abnormal floating index of the time length of the data sequence generated in the Q time when the editor edits the text input by the user, the larger the variation index of the data read-write speed and the larger the memory overflow index, namely the smaller the expression value of the editing index BJ Index number generated in the Q time when the editor edits the text input by the user, the larger the hidden trouble that the edited content is incorrectly saved or the data saved when the editor saves the successfully edited image and text is damaged is shown, and the smaller the hidden trouble that the edited content is incorrectly saved or the data saved when the editor saves the successfully edited image and text is shown.
S4, before the user performs the storage operation, checking and analyzing the editing data in the editor, so as to ensure that the content edited by the user is correctly stored or the stored data is not damaged;
And carrying out check analysis on the editing index generated in the Q time when the editor edits according to the text input by the user and a preset editing index reference threshold value, wherein the result of the check analysis is as follows:
If the editing index is larger than the editing index reference threshold, generating a verification success signal, and saving the successfully edited image and text through an editor at the moment, so that efficient saving can be realized;
If the editing index is smaller than or equal to the editing index reference threshold, a verification failure signal is generated, and at the moment, the editor stores the successfully edited image and text, so that the edited content is not correctly stored or the stored data is damaged.
S5, when the editor stores the successfully edited image and text, the edited content is not correctly stored or the stored data is damaged, comprehensively analyzing and judging the editing process, and judging whether the editing process is accidentally abnormal or not;
when the editor stores successfully edited graphics and texts, and the edited content is not stored correctly or the stored data has hidden trouble, a plurality of editing indexes generated later are acquired to establish an analysis set, and the analysis set is marked as I, then I= { BJ Index number f }, f represents the number of the editing indexes in the analysis set, and f=1, 2,3, 4, … …, u and u are positive integers;
Calculating an editing index standard deviation and an editing index average value by analyzing a plurality of editing indexes in the collection, calibrating the editing index standard deviation and the editing index average value into BJ Label (C) and BJ Flat plate respectively, comparing the editing index standard deviation BJ Label (C) and the editing index average value BJ Flat plate with preset standard deviation reference thresholds BJ Label (C) Reference to and BJ Flat plate Reference to respectively, and if the editing index standard deviation and the editing index average value meet the requirements Generating an accidental signal and not giving an early warning prompt to the accidental signal, wherein the accidental abnormal hidden danger only occurs in the editing process, and the successfully edited image and text is saved by an editor at the moment, so that high-efficiency saving can be realized, and if the image and text is not satisfiedGenerating a non-accidental signal, sending an early warning prompt to the non-accidental signal, informing related personnel of the fact that the hidden danger of continuous abnormality appears in the editing process, wherein the hidden danger that the editor damages the data which is incorrectly stored or stored in the editing content when the successfully edited image and text is stored is larger, the hidden danger investigation needs to be timely carried out on the editor according to the editing process of the text input by the user, the hidden danger problem when the editor edits according to the text input by the user is timely found, and the hidden danger problem is timely solved;
s6, when receiving the information of editing completion, storing the content successfully edited by the user into a back-end server or a local storage;
When the editing data in the editor is checked and analyzed to generate a check success signal or the editing process is comprehensively analyzed and judged to generate an accidental signal, editing completion information is generated, so that the successfully edited image-text is saved through the editor, and efficient saving can be realized.
According to the invention, through monitoring the process of carrying out image-text mixed arrangement block editing on the editor, when the editor stores successfully edited images and texts, when hidden danger that the edited content is not correctly stored or the stored data is damaged exists, an early warning prompt is sent to inform relevant personnel of the hidden danger, the relevant hidden danger investigation work is timely arranged according to the process of editing the text input by a user, the hidden danger problem of the editor when editing the text input by the user is timely found, and the hidden danger problem is timely solved, so that the damage to the data of which the content is not correctly stored or stored by the user is effectively avoided;
When the hidden danger that the edited content is not correctly stored or the stored data is damaged is perceived when the editor stores the successfully edited image and text, the method continues to carry out comprehensive analysis and judgment on the editing process, judges whether the editing process is accidentally abnormal, and can realize high-efficiency storage of the successfully edited image and text through the editor at the moment if only the accidental abnormality of the editing process is occurred, the method does not send out early warning prompt, thereby improving the early warning accuracy and ensuring that users carry out image and text mixed arrangement block editing through the editor efficiently.
The above formulas are all formulas with dimensions removed and numerical values calculated, the formulas are formulas with a large amount of data collected for software simulation to obtain the latest real situation, and preset parameters in the formulas are set by those skilled in the art according to the actual situation.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
While certain exemplary embodiments of the present invention have been described above by way of illustration only, it will be apparent to those of ordinary skill in the art that modifications may be made to the described embodiments in various different ways without departing from the spirit and scope of the invention. Accordingly, the drawings and description are to be regarded as illustrative in nature and not as restrictive of the scope of the invention, which is defined by the appended claims.

Claims (7)

1. The mobile terminal image-text mixed arrangement block editing method is characterized by comprising the following steps of:
s1, performing image-text mixed arrangement block editing operation according to text input of a user;
s2, introducing a refined monitoring record into a key operation point of the editor, acquiring data information when the editor edits according to a text input by a user, and processing the acquired data information;
The editor comprises performance measurement information and resource management information according to data information when the user inputs a text for editing, wherein the performance measurement information when the editor edits according to the user inputs the text comprises a data sequence duration abnormal floating index and a data read-write speed change index, the resource management information when the editor edits according to the user inputs the text comprises a memory overflow index, after acquisition, the data sequence duration abnormal floating index and the data read-write speed change index are respectively calibrated to XL ξξ and DX ζζ, and the memory overflow index is calibrated to be
The logic for obtaining the abnormal floating index of the duration of the data sequence is as follows:
S101, acquiring real-time serialization duration and real-time deserialization duration of an editor in Q time according to user input text, respectively calibrating the real-time serialization duration and the real-time deserialization duration as XL ξξ x and XL ξξ y, wherein x represents the number of the real-time serialization duration acquired in Q time by the editor in accordance with user input text, x=1, 2,3, 4, … … and N, N are positive integers, y represents the number of the real-time deserialization duration acquired in Q time by the editor in accordance with user input text, and y=1, 2,3, 4, … … and N, N are positive integers;
S102, comparing the real-time serialization time length and the real-time deserialization time length which are acquired in the Q time by the editor according to the text input by the user with the real-time serialization time length reference value and the real-time deserialization time length reference value respectively, recalibrating the real-time serialization time length which is larger than the real-time serialization time length reference value to XL ξξ x', recalibrating the real-time deserialization time length which is larger than the real-time deserialization time length reference value to XL ξξ y', wherein x 'represents the number of the real-time serialization time length which is larger than the real-time serialization time length reference value and is acquired in the Q time by the editor according to the text input by the user, x' =1, 2,3, 4, … …, N 'and N' are positive integers, y '=1, 2,3, 4, … … and N' are integers;
s103, calculating an abnormal floating index of the duration of the data sequence generated in the time Q when the editor edits according to the text input by the user, wherein the calculated expression is as follows: Wherein XL ξξ Reference to 1 represents a real-time serialization duration reference value, XL ξξ Reference to 2 represents a real-time deserialization duration reference value, N represents the total number of real-time serialization durations acquired in Q time when the editor edits according to a text input by a user, and N represents the total number of real-time deserialization durations acquired in Q time when the editor edits according to a text input by a user;
s3, constructing an abnormality detection mechanism in the editor according to the processed data information, and monitoring key links in the editing process;
S4, before the user performs the storage operation, checking and analyzing the editing data in the editor, so as to ensure that the content edited by the user is correctly stored or the stored data is not damaged;
S5, when the editor stores the successfully edited image and text, the edited content is not correctly stored or the stored data is damaged, comprehensively analyzing and judging the editing process, and judging whether the editing process is accidentally abnormal or not;
and S6, when receiving the information of editing completion, storing the content successfully edited by the user into a back-end server or a local storage.
2. The method for editing a mobile terminal graphic and text mixed arrangement block according to claim 1, wherein the method is characterized in that a data sequence duration abnormal floating index XL ξξ, a data read-write speed variation index DX ζζ and a memory overflow index generated in Q time when an editor edits according to a text input by a user are obtainedAfter that, through XL ξξ、DXζζ andAn abnormality detection mechanism in an editor is constructed to generate an edit exponent BJ Index number according to the following formula: Wherein, mu, pi and theta are respectively the abnormal floating index XL ξξ of the duration of the data sequence, the data read-write speed variation index DX ζζ and the memory overflow index Μ, pi, θ are all greater than 0.
3. The method for editing the mobile terminal graphics context mixed arrangement block according to claim 2, wherein an editor performs verification analysis on an editing index generated in a Q time when editing a text input by a user and a preset editing index reference threshold, and the result of the verification analysis is as follows:
if the editing index is larger than the editing index reference threshold, generating a verification success signal;
and if the editing index is smaller than or equal to the editing index reference threshold value, generating a verification failure signal.
4. The method for editing a mobile terminal image-text mixed arrangement block according to claim 3, wherein when an editor stores an image-text which is successfully edited, there is a hidden danger that the edited content is not correctly stored or the stored data is damaged, a plurality of editing indexes which are generated later are obtained to establish an analysis set, and the analysis set is marked as I, i= { BJ Index number f }, f represents the number of the editing indexes in the analysis set, and f=1, 2, 3, 4, … …, u and u are positive integers;
Calculating an editing index standard deviation and an editing index average value by analyzing a plurality of editing indexes in the collection, calibrating the editing index standard deviation and the editing index average value into BJ Label (C) and BJ Flat plate respectively, comparing the editing index standard deviation BJ Label (C) and the editing index average value BJ Flat plate with preset standard deviation reference thresholds BJ Label (C) Reference to and BJ Flat plate Reference to respectively, and if the editing index standard deviation and the editing index average value meet the requirements Generating accidental signals and not giving out early warning prompts to the accidental signals, if not meetingGenerating a non-accidental signal, and sending an early warning prompt to the non-accidental signal to inform relevant personnel of the non-accidental signal.
5. The method for editing a mobile terminal graphic and text mixed layout block according to claim 3, wherein the editing completion information is generated when editing data in an editor is checked and analyzed to generate a check success signal or when an editing process is comprehensively analyzed and judged to generate an accidental signal.
6. The method for editing a mobile terminal graphic and text mixed arrangement block according to claim 1, wherein the logic for obtaining the data read-write rate variation index is as follows:
S201, acquiring actual data reading rates and actual data writing rates of a plurality of adjacent time periods in Q time when an editor edits according to a text input by a user, and calibrating the actual data reading rates and the actual data writing rates as DX ζζ a and DX ζζ b respectively, wherein a represents the number of the actual data reading rates acquired in the Q time when the editor edits according to the text input by the user, a=1, 2, 3, 4, … …, A and A are positive integers, B represents the number of the actual data writing rates acquired in the Q time when the editor edits according to the text input by the user, and b=1, 2, 3, 4, … …, B and B are positive integers;
S202, calculating a data read-write speed variation index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Where a represents the total number of actual data read rates acquired at Q time by the editor when editing text entered by the user and B represents the total number of actual data write rates acquired at Q time by the editor when editing text entered by the user.
7. The method for editing mobile terminal graphics context mixed arrangement blocks according to claim 1, wherein the logic for obtaining the memory overflow index is as follows:
S301, acquiring real-time request allocation memory and real-time available memory at corresponding time in Q time when an editor edits according to text input by a user, and respectively calibrating the real-time request allocation memory and the real-time available memory at corresponding time as And
S302, calculating a memory overflow index generated in Q time by an editor according to text input by a user for editing, wherein the calculated expression is as follows: Where [ t x,ty ] represents a period of time when the real-time request allocates memory greater than real-time available memory at the corresponding time, t x<ty.
CN202311544441.3A 2023-11-20 2023-11-20 Mobile terminal image-text mixed arrangement block editing method Active CN117456056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311544441.3A CN117456056B (en) 2023-11-20 2023-11-20 Mobile terminal image-text mixed arrangement block editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311544441.3A CN117456056B (en) 2023-11-20 2023-11-20 Mobile terminal image-text mixed arrangement block editing method

Publications (2)

Publication Number Publication Date
CN117456056A CN117456056A (en) 2024-01-26
CN117456056B true CN117456056B (en) 2024-08-27

Family

ID=89579877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311544441.3A Active CN117456056B (en) 2023-11-20 2023-11-20 Mobile terminal image-text mixed arrangement block editing method

Country Status (1)

Country Link
CN (1) CN117456056B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505015A (en) * 2021-06-21 2021-10-15 上海硬通网络科技有限公司 Application exception information acquisition method and device, computer equipment and storage medium
CN115392198A (en) * 2022-08-10 2022-11-25 厦门信息技术应用创新研究院有限公司 A method and system for leaving traces based on a rich text editor under a domestic terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1873721A1 (en) * 2006-06-26 2008-01-02 Fo2PIX Limited System and method for generating an image document with display of an edit sequence tree
JP2012185761A (en) * 2011-03-08 2012-09-27 Konica Minolta Business Technologies Inc Image forming apparatus, method of automated compilation of document data, and computer program
CN111241061B (en) * 2020-01-09 2023-04-07 平安科技(深圳)有限公司 Writing method of state database, data processing device and storage medium
US11934647B2 (en) * 2020-04-07 2024-03-19 Adobe Inc. Utilizing modularized action blocks in a graphical user interface to generate digital images with custom modifications
CN116747528B (en) * 2023-08-14 2023-10-27 欢喜时代(深圳)科技有限公司 Game background user supervision method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505015A (en) * 2021-06-21 2021-10-15 上海硬通网络科技有限公司 Application exception information acquisition method and device, computer equipment and storage medium
CN115392198A (en) * 2022-08-10 2022-11-25 厦门信息技术应用创新研究院有限公司 A method and system for leaving traces based on a rich text editor under a domestic terminal

Also Published As

Publication number Publication date
CN117456056A (en) 2024-01-26

Similar Documents

Publication Publication Date Title
DE102018113625A1 (en) ERROR INJECTION TESTING DEVICE AND METHOD
CN111274154A (en) Automatic testing method, device, equipment and storage medium
CN112561370A (en) Software version management method and device, computer equipment and storage medium
JP7557431B2 (en) Apparatus and method for supporting source code modification
CN117456056B (en) Mobile terminal image-text mixed arrangement block editing method
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN112445670A (en) eMMC test method and device
EP3534259A1 (en) Computer and method for storing state and event log relevant for fault diagnosis
CN103809988A (en) Information processing method and electronic device
CN116931843B (en) User online management system based on large language model
CN114218001A (en) Fault repairing method and device, electronic equipment and readable storage medium
CN118445164A (en) Data processing method and device for application program
CN109753488B (en) HTTP-based server operation log management method and system
CN115757099B (en) Automatic testing method and device for platform firmware protection and recovery function
CN112882869B (en) Servo system parameter management method, device, equipment and storage medium
CN115204617A (en) Power grid operation plan processing method, device, equipment and storage medium
JP2005234987A (en) Development source server, software trouble responding system and software trouble responding method
CN118152277B (en) Bootloader writing method, bootloader writing device, bootloader writing equipment and Bootloader writing medium
KR20230163634A (en) Log data file backup system for PLC and method thereof
CN110765022A (en) Method and device for automatically testing sample sending SSD, computer equipment and storage medium
CN110298935A (en) A kind of method, diagnostic device and server obtaining user operation habits information
CN115729557B (en) Script processing method and device
CN119252317A (en) RAM memory testing method, device, computer equipment and storage medium
CN114072738B (en) Controller, control system and control method
CN109697144B (en) Hard disk detection method of electronic equipment and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant