CN116702715A - Memorandum operation method, device and storage medium - Google Patents

Memorandum operation method, device and storage medium Download PDF

Info

Publication number
CN116702715A
CN116702715A CN202211521348.6A CN202211521348A CN116702715A CN 116702715 A CN116702715 A CN 116702715A CN 202211521348 A CN202211521348 A CN 202211521348A CN 116702715 A CN116702715 A CN 116702715A
Authority
CN
China
Prior art keywords
note
notes
data
content
user
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.)
Pending
Application number
CN202211521348.6A
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211521348.6A priority Critical patent/CN116702715A/en
Publication of CN116702715A publication Critical patent/CN116702715A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a memo operation method, a memo operation device and a storage medium. The method comprises the following steps: responding to a starting operation of a user for starting a memo application, displaying a note list of the memo application and an editing area, wherein the note list is used for displaying information of notes, and the editing area is used for displaying the content of any selected note; responding to the merging operation of a user on at least two notes in the note list, merging the at least two notes, and displaying merged note contents in the editing area; the note list comprises information of at least two notes. In this way, the user can achieve the effect of combining a plurality of notes only by very simple operation, so that the user experience can be improved.

Description

Memorandum operation method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for operating a memo, and a storage medium.
Background
Currently, a memo application is provided in many electronic devices, and a user can add notes to the memo. The note has the advantages of saving paper resources, being convenient to use, rich in content, small in occupied space, easy to store and the like, and people are more and more used to using the note. In a practical scenario, each note created by the user is independent, and the user can only operate on one note at a time.
For example, in some specific application scenarios, there is a need for a user to copy the contents of multiple notes to the same note, in which case the user is required to open multiple notes in the memo one by one, and then copy the contents of these notes to the same note one by one. However, the operation process is too complicated, easy to make mistakes and poor in user experience.
Disclosure of Invention
The embodiment of the application provides a memo operation method, a memo operation device and a storage medium, which are applied to the technical field of computers and are used for solving the problems of complicated memo operation and poor user experience when notes are combined.
In a first aspect, the present application provides a memo operation method, including: responding to a starting operation of a user for starting a memo application, displaying a note list of the memo application and an editing area, wherein the note list is used for displaying information of notes, and the editing area is used for displaying the content of any selected note; in response to a user's merging operation of at least two notes in the note list, merging the at least two notes, and displaying the merged note content in the editing area; the note list comprises information of at least two notes. Therefore, the notes to be combined can be opened one by one, frequent interface switching is not needed, and the operation is simple, so that a user has better use experience for the note combination.
In one possible implementation, in response to a user's merge operation of at least two notes in a note list, merging the at least two notes includes: when the editing area displays the contents of the target note of the at least two notes, the contents of the other notes are incorporated into the target note in response to a drag operation by the user to drag the other notes of the at least two notes from the note list to the editing area. Therefore, through the operation of opening one note and dragging one or more other notes to be combined into the editing area for displaying the content of the opened notes, the combination of the notes is realized, only one note is required to be opened, frequent switching of interfaces is not involved, and the operation is simple and convenient.
In one possible implementation, a rich text editor is included in the memo application to incorporate the contents of other notes into the target note, including: sending a note merging instruction to the rich text editor, wherein the note merging instruction comprises the content of other notes; the rich text editor determines the target position dragged by the user in the editing area and updates the data structure of the target note according to the content and the target position of other notes; wherein the data structure is a tree structure for characterizing content in the target note; displaying the merged note content in the edit region, comprising: and displaying the updated note content of the target note in the editing area according to the updated data structure of the target note. The user can adjust the note insertion position according to the requirement through the drag operation so as to meet various merging requirements of the user.
In one possible implementation, if the number of other notes in the at least two notes is greater than or equal to two, before sending the note merging instruction to the rich text editor, the method further includes: and merging the contents of the other notes according to the sequence of the modification time of the other notes to obtain the contents of the other notes in the note merging instruction. The operation process is simple, but can meet the combination requirement of various notes of a user.
In one possible implementation, in response to a user's merge operation of at least two notes in a note list, merging the at least two notes includes: responding to the selection operation of the user on at least two notes in the note list, and selecting at least two notes; and in response to a merging operation of the at least two selected notes by the user, merging the at least two notes in order of modification time of the at least two notes. In the embodiment of the application, the user can realize the note merging function based on the set key options of the merging function, so that the note merging operation process with complicated steps in the prior art is realized in a simpler mode.
In one possible implementation, merging at least two notes in order of modification time of the at least two notes includes: acquiring data of at least two notes from a database for storing note data; and splicing the data according to the sequence of the modification time of at least two notes to obtain the data of the combined notes. The operation process is simple, but can meet the combination requirement of various notes of a user.
In one possible implementation, in response to a user's merge operation of at least two notes in a note list, merging the at least two notes includes: in response to a drag operation by a user to drag other notes of the at least two notes from the note list to the target note, content of the other notes is incorporated into the target note. The user expects the combined notes to be combined through the drag operation, the notes to be combined do not need to be opened one by one, the copy and paste operation and the frequent interface switching are not needed, the operation is simple and convenient, and the user has better use experience for combining the notes in the memo application.
In one possible implementation, the content of the other notes is incorporated into the target note, including: acquiring data of other notes and data of target notes from a database for storing note data; the data of the other notes are spliced after the data of the target notes to obtain the data of the combined notes. Therefore, the data of the notes to be combined are spliced in the background, so that the combination of the notes is realized, a user only needs to carry out simple dragging operation, frequent interface switching is not needed, and the use experience of the user is effectively improved.
In one possible implementation, if the number of other notes in the at least two notes is greater than or equal to two, stitching the data of the other notes after the data of the target note to obtain the data of the merged note further includes: and splicing the data of the other notes according to the sequence of the modification time of the other notes so as to obtain the data of the other notes in at least two notes. The operation process is simple, but can meet the combination requirement of various notes of a user.
In one possible implementation, the memo application includes a rich text editor, and the displaying of the combined note content in the edit area includes: the rich text editor loads the data of the merged notes from the database and updates the data structure of the merged notes according to the data of the merged notes; wherein the data structure is a tree structure for characterizing content in the note; and displaying the merged note content in the editing area according to the merged note data structure. This facilitates the user to view the combined note content in the editor area.
In one possible implementation, after merging at least two notes, the method further includes: deleting the combined note in the at least two notes. Thus, the memory resource overhead of the terminal equipment can be saved.
In a second aspect, the present application provides a terminal device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The terminal device may be a mobile phone, a personal computer (personal computer, PC), a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), or the like.
The terminal device includes: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory to cause the terminal device to perform the memo operation method as described in the first aspect or any one of the possible implementations of the first aspect.
In a third aspect, the present application provides a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the memo operation method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, the present application provides a computer program product comprising a computer program which, when run, causes the computer to perform the memo operation method as described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, the present application provides a chip comprising a processor for invoking a computer program in memory to perform the memo operation method as described in the first aspect or any one of the possible implementations of the first aspect.
It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
FIG. 1 is a schematic illustration of a note product interface;
fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a memo application according to an exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of another memo application according to an embodiment of the present application;
FIG. 5 is a schematic diagram I of a memo operation method according to an embodiment of the present application;
FIG. 6a is a diagram illustrating a memo application interface according to one embodiment of the present application;
FIG. 6b is a second diagram illustrating an interface of a memo application provided by an embodiment of the present application;
FIG. 7a is a third diagram illustrating an interface of a memo application provided by an embodiment of the present application;
FIG. 7b is a diagram illustrating a memo application interface according to an embodiment of the present application;
FIG. 7c is a diagram illustrating a memo application interface according to an embodiment of the present application;
FIG. 7d is a diagram illustrating a memo application interface according to an embodiment of the present application;
FIG. 8 is a diagram of a memo application interface according to one embodiment of the present application;
FIG. 9 is a diagram illustrating an interface eight of a memo application provided by an embodiment of the present application;
FIG. 10 is a second schematic diagram of a memo operation method according to an embodiment of the present application;
FIG. 11 is a diagram illustrating a memo application interface according to an exemplary embodiment of the present application;
FIG. 12 is a schematic diagram showing an interface of a memo application according to an embodiment of the present application;
FIG. 13 is an eleventh interface diagram of a memo application provided by an embodiment of the present application;
FIG. 14 is a third diagram illustrating a method of memo operation according to an embodiment of the present application;
fig. 15 is a schematic diagram showing an interface twelve of a memo application according to an embodiment of the present application.
Detailed Description
For purposes of clarity in describing the embodiments of the present application, the words "exemplary" or "such as" are used herein to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
The "at … …" in the embodiment of the present application may be an instant when a certain situation occurs, or may be a period of time after a certain situation occurs, which is not particularly limited. In addition, the display interface provided by the embodiment of the application is only used as an example, and the display interface can also comprise more or less contents.
Currently, a memo application is provided in many electronic devices, and a user can add notes to the memo. The note has the advantages of saving paper resources, being convenient to use, rich in content, small in occupied space, easy to store and the like, and people are more and more used to using the note.
In an actual scenario, in some specific application scenarios, there is a need for a user to merge multiple notes, where the user is required to open multiple notes, and switch back and forth in an interface where the open multiple notes are located, so as to copy the content of the multiple notes into the same note.
By way of example, FIG. 1 illustrates an interface schematic of a memo application in which notes may be added. The memo application may be, for example, an application having a rich text editor function in the terminal device, which allows the user to record events such as life and work at any time. As shown in fig. 1, the interface of the memo application may include a folder list area, a note editing area, etc., wherein the note editing area is used to display the contents of the notes.
In an alternative implementation, the user may change the order of notes in the note list by a drag operation. As shown in fig. 1, the user may drag note E and note F to adjust the ordering of note E, F, and the terminal device may move note E and note F in response to this movement operation, at which time the order of the notes in the note list may change.
In an alternative implementation, the user may drag one note in the note list to a position intermediate to the other two notes to trigger the sequence adjustment operation.
In another alternative implementation, the user may merge notes through a complex series of operations. When there is a demand for merging notes, for example, the content of note B is merged into note a, the user may open note B to trigger the display of the content of note B in the interface of the terminal device, the user copies the content of note B again, then opens note a to enable the display of the content of note a in the interface of the terminal device, and then pastes the content of note B into the content of note a, thereby completing merging of note a and note B.
The above operation is only aimed at combining two note contents, so that such complicated and complicated steps are required, and the combination error or failure is caused by easy operation errors, and when more notes are required to be combined, the complexity degree is increased, so that when the note combination requirement exists, the memo operation in the prior art is complicated, and the user experience is poor.
In view of this, the embodiment of the present application provides a memo operation method, which can achieve the effect of merging notes by simple operation, and specifically, when a user drags one or more notes in a note list to other notes in the note list, or when the user drags one or more notes in the note list to currently displayed note content in an editing area, or when the user selects a plurality of notes and selects a merge function, the terminal device may perform the note merge operation. In this way, the user can achieve the effect of combining a plurality of notes only by very simple operation, so that the user experience can be improved.
Fig. 2 shows a schematic structural diagram of a terminal device to which the embodiment of the present application is applicable. As shown in fig. 2, the terminal device may include: processor 110, external memory interface 120, internal memory 121, usb interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. It will be appreciated that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device. In other embodiments of the application, the terminal device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a display processing unit (display process unit, DPU), and/or a neural-network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In some embodiments, the terminal device may also include one or more processors 110. The processor may be a neural hub and a command center of the terminal device. The processor can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution. A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 uses or recycles. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby improving the efficiency of the terminal device.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a USB interface, among others. The USB interface 130 is an interface conforming to the USB standard, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge a terminal device, or may be used to transfer data between the terminal device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset.
It will be understood that the connection relationship between the modules illustrated in the embodiment of the present application is illustrated schematically, and does not constitute a structural limitation of the terminal device. In other embodiments of the present application, the terminal device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The wireless communication function of the terminal device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the terminal device may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G or the like applied on a terminal device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier, etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), NFC, infrared technology (IR), etc. applied on the terminal device. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, the antenna 1 of the terminal device is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160 so that the terminal device can communicate with the network and other devices through wireless communication technology. The wireless communication techniques may include GSM, GPRS, CDMA, WCDMA, TD-SCDMA, LTE, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a Beidou satellite navigation system (bei dou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The terminal device may implement display functions through a GPU, a display screen 194, an application processor, and the like. The application processor may include an NPU and/or a DPU. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute instructions to generate or change display information. The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of terminal equipment can be realized through NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc. The DPU is also referred to as a display sub-system (DSS) for adjusting the color of the display screen 194, and may adjust the color of the display screen via a color three-dimensional (3D) look-up table (LUT). The DPU can also perform processes such as scaling, noise reduction, contrast enhancement, backlight brightness management, hdr processing, display parameter Gamma adjustment, and the like on the picture.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-OLED, or a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED). In some embodiments, the terminal device may include 1 or N display screens 194, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, data files such as music, photos, videos, etc. are stored in an external memory card.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may cause the terminal device to execute various functional applications, data processing, and the like by executing the above-described instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system; the storage area may also store one or more applications (e.g., gallery, contacts, etc.), and so forth. The storage data area may store data created during use of the terminal device (e.g., photos, contacts, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 110 may cause the terminal device to perform various functional applications and data processing by executing instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.
The terminal device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc. Wherein the audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A or listen to hands-free calls. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device picks up a call or voice message, the voice can be picked up by placing the receiver 170B close to the human ear. Microphone 170C, also known as a "microphone" or "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The terminal device may be provided with at least one microphone 170C. In other embodiments, the terminal device may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the terminal device may be further provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording functions, etc. The earphone interface 170D is used to connect a wired earphone. The earphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or may be a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Fig. 3 is a schematic diagram of a framework of a memo application according to an embodiment of the present application. Taking the Android (Android) side memo application as an example in fig. 3, as shown in fig. 3, the memo application of An Zhuoduan includes a native (native) layer and a web view (WebView) layer.
The method comprises the steps of realizing UI rendering by using an Android native application programming interface (application programming interface, API) and a User Interface (UI) framework at the native layer, acquiring user intention through monitoring an event of the UI layer, and transmitting the monitored event to the native layer through Javascript (JS) and an Android communication interface (JS interface).
The WebView layer is used for accepting an interface layer and a rich text editor, and comprises two layers of designs of the interface layer and the rich text editor. The interface layer is used for rendering components except the editor and carrying a JS and android communication interface.
The rich text editor is a framework for realizing the editing of rich text contents by a user and comprises five modules, namely a rendering mechanism, a history record, a plug-in mechanism, behaviors and a data model.
The data model may construct a tree structure (data structure) from a data format according to tags, and correspond a cursor and a selection area to the data structure through a path (path) and an offset (offset) using Web characteristics. The positioning of the cursor is determined by a path and an offset, and the numerical value of the path represents the path from the root of the data model of the document to the text interface where the cursor is positioned; the offset represents the offset of the cursor on the text interface.
Behavior the operation of data in a data model may be defined as nine behaviors, including: inserting nodes, splitting nodes, inserting selection areas, moving nodes, inserting texts, merging nodes, setting attributes, removing nodes and removing texts. These nine types of operations can be used for historical backtracking and collaborative editing of scenes.
The plug-in mechanism can be combined with elements (elements such as text, pictures and tables) rendered by the interface based on the nine behaviors. Data and behavior can be combined to implement different functions. The different formats of data in the rich text editor are implemented in plug-in mechanisms, such as: list, ordered list, unordered list, etc.
The history is used to record each behavior of the user.
Rendering mechanisms rely on open source UI frameworks and Web capabilities to render elements in a data structure onto an interface.
Fig. 4 is a schematic diagram of another memo application according to an embodiment of the present application. Taking a memo application at the PC side as an example in fig. 4, the memo application at the PC side realizes an editor function based on a Web framework, and the memo application includes a UI rendering layer, a user event processing service, an instruction service, and a rich text editor. The UI rendering layer includes a react component, a hypertext markup language (HTML) layout, and cascading style sheet (cascading style sheets, CSS) styles.
The UI rendering layer may pass the click event of the user to the user event handling service. The user event processing service identifies a user intent from the event and invokes the instruction service to match an instruction corresponding to the user intent. For example, user intent may include setting bold, setting italics, adding pictures, adding colors, setting word sizes, and so forth. Through a series of operations such as instruction subscription, instruction matching, instruction distribution and the like, the instructions are transmitted to a rich text editor, and the rich text editor realizes editing behaviors expected by a user based on the instructions.
Similar to the overall design thought of android, the rich text editor comprises five modules, namely a rendering mechanism, a history record, a plug-in mechanism, behaviors and a data model. The description of each module may refer to the description of fig. 3 above, and will not be repeated here.
The following describes in detail a technical solution of an embodiment of the present application and how the technical solution of the embodiment of the present application solves the above technical problems with specific embodiments in combination with the accompanying drawings. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 5 is a schematic diagram illustrating a memo operation method according to an embodiment of the present application. As shown in fig. 5, the method includes:
s501: in response to a start operation of a user starting the memo application, a note list of the memo application for displaying information of notes and an edit area for displaying contents of any one of the notes selected are displayed.
The information of the note may include a title of the note, a modification time of the note, and the like.
Fig. 6a illustrates an interface diagram of a memo application according to an embodiment of the present application. As shown in fig. 6a, the interface of the memo application may include a folder list, a note list, a user event response area, and an edit area. In which information of a plurality of notes, such as notes titled note a, note B, note C, note D, etc. in fig. 6a, may be displayed in the note list.
When a user selects a note in the note list, the content of the note may be displayed in the edit area. In fig. 6a, the user selects a new note, and the user has not yet entered any content, so the note has no title for a while. The user may perform editing actions for the note.
Illustratively, the editing behavior may include adding text, adding pictures, setting bold, setting italics, setting word sizes, setting colors, etc. in the user event response area.
After the user selects a note in the note list, the content of the note is displayed in the edit area. At this time, if the user reselects a plurality of notes in the note list, the content displayed in the editing area may be unchanged, and the plurality of notes may or may not include the note currently displayed in the editing area.
Referring to fig. 6a and 6b, exemplary, fig. 6b shows a second interface schematic diagram of a memo application according to an embodiment of the present application. In the interface shown in fig. 6a, the content of the new note is displayed in the editing area, and at this time, if the user reselects the note C and the note D on the basis of selecting the new note, the interface of the memo application may be as shown in fig. 6b, where the content of the new note is still displayed in the editing area.
S502: in response to a user's merging operation of at least two notes in the note list, merging the at least two notes, and displaying the merged note content in the editing area; the note list comprises information of at least two notes.
In the embodiment of the present application, the merging operation may be an operation of triggering a merging function option after selecting a note to be merged, or an operation of dragging one or more notes in a note list to another note in the note list, or an operation of dragging one or more notes in the note list to the content of another note being displayed in an editing area.
The terminal device may combine the contents of the plurality of notes in response to a combining operation of the user, so as to obtain combined note contents. For example, if the user's merge operation is for note A, B, C, the terminal device may merge the contents of note A, B, C.
Specifically, the terminal device may further display the merged note content in the editing area, so that the user can browse the merged note content and edit the merged note content to meet the requirement of the user.
In the embodiment of the application, in response to a starting operation of starting a memo application by a user, a note list of the memo application and an editing area are displayed, wherein the note list is used for displaying information of notes, and the editing area is used for displaying the content of any selected note; in response to a user's merging operation of at least two notes in the note list, merging the at least two notes, and displaying the merged note content in the editing area; the note list comprises information of at least two notes. Therefore, the notes to be combined can be opened one by one, frequent interface switching is not needed, and the operation is simple, so that a user has better use experience for the note combination.
In one possible implementation manner, the merging at least two notes in the note list in response to the merging operation of the user, may include: when the editing area displays the contents of the target note of the at least two notes, the contents of the other notes are incorporated into the target note in response to a drag operation by the user to drag the other notes of the at least two notes from the note list to the editing area.
The target note is a note currently displayed in the editing area, and the contents of other notes can be combined into the target note to obtain a combined note. For example, if the user wishes to merge the content of note a and the content of note B into note C, then target note C may be opened, causing the edit area to display the content of the note; for another example, if the user wishes to incorporate the contents of note B into note a, the target note a may be opened and the edit area may be caused to display the contents of the note. The target notes may change in content before and after merging.
When the other notes in the at least two notes are a plurality of notes, the content of the other notes is the content of the plurality of notes after being combined, and the specific combining manner will be described in detail in the following steps, which will not be repeated herein.
Fig. 7a illustrates a third interface schematic diagram of a memo application provided by an embodiment of the present application. As shown in fig. 7a, when the user selects an opened note as a note a and the content "content a" of the note a is displayed in the editing area, the note a may be understood as a target note, and at this time, the terminal device may respond to a drag operation of the user to drag the note C from the note list to the editing area.
In the interface shown in fig. 7a, the terminal device may display the interface shown in fig. 7b in response to the user's operation of reselecting the note C based on the selection a, and fig. 7b illustrates an exemplary interface diagram of a memo application provided by an embodiment of the present application. When note C is selected again on the basis of selection of a, the content "content a" of note a is still displayed in the edit area, as in the interface shown in fig. 7 b.
Fig. 7c illustrates an interface diagram of a memo application according to an embodiment of the present application. In the interface shown in fig. 7b, the terminal device may display the interface shown in fig. 7C in response to an operation of the user dragging the note C to the editing area. As shown in the interface of fig. 7C, note C is in a dragged state.
Fig. 7d illustrates an interface diagram of a memo application according to an embodiment of the present application. In the interface shown in fig. 7C, assuming that the content of note C is "content C", the combined interface may be as shown in fig. 7 d. As shown in the interface of fig. 7d, the content of note C may be merged at the end of the content of note a, and the merged content is "content a content C", and is displayed in the editing area, where the merged note C in the note list may or may not be deleted, and may be set according to the actual requirement.
In this embodiment, the merged note is the other note of the at least two notes that were dragged. For example, when note B and note C are dragged into the content of note a being displayed in the edit area, the combined notes are note B and note C.
In one possible implementation, a rich text editor may be included in the memo application that incorporates the contents of the other notes into the target note, which may include: sending a note merging instruction to the rich text editor, wherein the note merging instruction comprises the content of other notes; the rich text editor determines the target position dragged by the user in the editing area and updates the data structure of the target note according to the content and the target position of other notes; wherein the data structure may be a tree structure for characterizing content in the target note; displaying the merged note content in the edit region, comprising: and displaying the updated note content of the target note in the editing area according to the updated data structure of the target note.
The memo may further include a UI rendering layer and a business logic layer (also referred to as a note merging service), where after the user performs the merging operation, the rendering layer sends a merging instruction to the business logic layer based on the merging operation, and the business logic layer determines contents of other notes to be merged based on the received merging instruction, and sends a note merging instruction including the merged contents of the other notes to the rich text editor.
The note merge instruction may be used to instruct the rich text editor to update the data structure of the target note. The note merge instruction may be in any form of field, character, or value.
In the embodiment of the application, the data structure corresponding to the content in each note exists in a tree structure. For example, in the example shown in fig. 7a, where the content of note a is "content a", the data structure of the rich text content, i.e., the content of note a, in the rich text editor may be represented as:
the type field may set an element type of the rich text content, the paramgram indicates that the element type is text, and the child stores specific rich text content of the element of the paramgram type. For example, in the example of FIG. 7a, the parallelgram type element content is "content A".
Optionally, the memo application may further include a database, in which specific note data is stored, and the positional relationship, format, etc. of each data in the note may be represented based on a data structure.
In a possible implementation, when the rich text editor receives the note merging instruction, determining a target position dragged by the user in the editing area, where the target position is an insertion position of contents of other notes, the rich text editor may further add the contents of other notes to the target position in the target note according to the determined target position and the contents of other notes carried in the note merging instruction, update a data structure of the target note according to a change of the contents in the target note, and display updated note contents of the target note in the editing area according to the updated data structure of the target note.
For example, in the example of fig. 7a, when the user drags the note C to the end position of the content of the note a in the editing area, as described in the above example, the terminal device sends a note merging instruction to the rich text editor, and the rich text editor updates the data structure of the target note, which may be expressed as:
The terminal device renders an interface corresponding to the updated note content of the target note displayed in the editing area according to the updated data structure of the target note, and the interface can be referred to as an interface shown in fig. 7 d.
In the implementation manner, the user can adjust the note insertion position according to the requirement through the drag operation so as to meet various merging requirements of the user.
Optionally, if the number of other notes in the at least two notes is greater than or equal to two, before sending the note merging instruction to the rich text editor, the method further includes: and merging the contents of the other notes according to the sequence of the modification time of the other notes to obtain the contents of the other notes in the note merging instruction.
In the embodiment of the application, if the number of other notes in at least two notes is greater than or equal to two, that is, when the user drags, two or more notes are simultaneously dragged into the editing area. Before sending the note merging instruction to the rich text editor, the terminal equipment merges two or more notes which are simultaneously dragged to the editing area by the user, namely, merges other notes in at least two notes, and the content of the notes obtained after merging is the content of other notes to be carried in the note merging instruction sent to the rich text editor by the terminal equipment, and is also the content to be inserted into the target notes. Alternatively, the business logic layer of the memo application may first combine the contents of other notes to obtain the contents of other notes, and then insert the contents of other notes into the designated positions of the target notes by the rich text editor based on the user drag operation. The operation process is simple, but can meet the combination requirement of various notes of a user.
The other notes of the at least two notes, the number of which is greater than or equal to two, are combined, and can be combined according to the modification sequence of each other note.
Fig. 8 illustrates an interface diagram seven of a memo application according to an embodiment of the present application. As shown in fig. 8, when the user selects an opened note as note a and the content "content a" of note a is displayed in the edit area, note a may be understood as a target note, and at this time, the terminal device may incorporate the content of note B and note C in note a in response to a drag operation of the user to drag note B and note C from the note list to the edit area. In the merging process, the terminal device may first merge the contents of note B and note C according to the modification time sequence of note B and note C, to obtain the contents of the notes after the note B and note C are merged, that is, the contents of other notes to be carried in the note merging instruction. The specific merging method will be described in detail in the following steps, and will not be described herein.
In the embodiment of the application, when two or more notes are simultaneously dragged into the editing area to be combined, the note B and the note C are combined according to the sequence of the modification time, and then the combined note content of the note B and the note C is combined into the note A, so that the content of the note A, the content of the note B and the content of the note C in the note A can be sequentially arranged, and the readability of the combined note content is improved on the basis of simple and convenient operation of a user.
In one possible implementation, the merging at least two notes in the note list in response to the merging operation of the user, may further include: responding to the selection operation of the user on at least two notes in the note list, and selecting at least two notes; and in response to a merging operation of the at least two selected notes by the user, merging the at least two notes in order of modification time of the at least two notes.
In the embodiment of the application, the user can select at least two notes in the note list at will in sequence, for example, note A is selected first, note B is selected on the basis of note A selection, and note A and note B are selected. Multiple notes in the note list can be selected at the same time, and the mode of selecting the multiple notes is not limited by the embodiment of the application.
In the embodiment of the application, after the notes to be combined are selected, the terminal equipment can respond to the combining operation of the user on the selected notes, and the combining operation can be the operation of triggering the combining function.
Referring to fig. 7a and 9, exemplary, fig. 9 shows an interface diagram eight of a memo application according to an embodiment of the present application. In the interface shown in fig. 7a, the terminal device may display the interface shown in fig. 9 a in response to an operation of the user to reselect note B on the basis of selecting note a and to reselect note C on the basis of selecting note a and note B. As with the interface shown in FIG. 9 a, note A, note B and note C are in the selected state.
In the interface shown in fig. 9 a, after the user selects at least two notes in the note list, the user may click on the right mouse button, and in response to this operation, the terminal device may display a right button popup 901, and the terminal device may display the interface shown in fig. 9 b. The interface shown in fig. 9 b may include a right button popup 901, and other contents displayed in the interface may be referred to the interface shown in fig. 9 a, which is not described herein. The right key popup 901 may be an interface superimposed on the interface shown in fig. 9 b. The right button popup 901 is used for displaying more functions in the memo application, and the right button popup 901 may be an interactive popup, which is not limited in the embodiment of the present application. Specifically, the right flick window 901 may include: delete option and merge option 902, etc. The delete option is used to delete the selected note and the merge option 902 is used to merge the selected note.
Further, when the at least two selected notes are merged, the at least two selected notes may be sorted according to the modification time of each of the at least two selected notes, and the contents of each of the at least two selected notes are merged according to the sorting. For example, the sorting may be performed in the order of the modification time or in the reverse order, which is not particularly limited in the embodiment of the present application.
In the embodiment of the application, the merged note is the second note and more than the selected note in the selected at least two notes. For example, when the user selects all of note B, note a, and note C to perform the merging operation, and the first selected note is note B, and the second and third selected notes are note a and note C, respectively, then the merged note is the second selected note and the third selected note, i.e., note a and note C.
In the embodiment of the application, the user can realize the note merging function based on the set key options of the merging function, so that the note merging operation process with complicated steps in the prior art is realized in a simpler mode.
Specific implementations of note merging according to modification time are described below. Fig. 10 illustrates a schematic diagram two of a memo operation method according to an embodiment of the present application. As shown in fig. 10, the method includes:
s1001: a User Interface (UI) rendering layer renders an interface of the memo application in response to an operation of the user to launch the memo application. The rendered interface may be as shown with reference to fig. 6 a.
S1002: and the UI rendering layer responds to the operation of merging executed by the user and sends a merging instruction to the business logic layer.
The operation of performing merging by the user may include an operation of clicking a merging option in a right click window after the user selects a plurality of notes in the note list. In response to this operation, the UI rendering layer sends a merge instruction to the business logic layer. Alternatively, the merge instruction may include information of notes to be merged, for example, a note identifier or the like.
S1003: the business logic layer receives the merging instruction and sends a request for acquiring the data of the selected notes to the database.
In the embodiment of the application, after receiving the note merging instruction, the business logic layer can acquire the data of the selected note from a Database (DB) storing the note data, and the merging instruction can be in any form such as a field, a character or a numerical value.
The data of each note in the note list is stored in the database, and the format of the data of each note stored in the database can be a standard 5 th generation version hypertext markup language (hyper text markup language, html 5) format, and the Html5 format is a standard format in webpage technology.
By way of example, note a's content is text data "content a", and note a's data stored in the database may be: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p >, modification time is: 1661832238197.
Specifically, the business logic layer sends a data acquisition request to the database based on the information of the notes to be combined, which is included in the combination instruction, so as to acquire the data of the notes selected by the user.
S1004: the business logic layer receives the data of the selected notes returned by the database.
S1005: the business logic layer sorts the data of the selected notes according to the modification time.
In the embodiment of the present application, the selected notes may be sorted according to the modification time, and the sorting may be performed according to the order of the modification time or the reverse order, which is not particularly limited.
S1006: and the business logic layer splices the data of each selected note according to the sequence to obtain the data of the combined note.
And when the terminal equipment responds to the fact that the user selects a combining option in the right-click popup window to achieve combining, ordering at least two selected notes in the note list. For example, the terminal device sequentially selects the note a, the note B and the note C in response to the user selecting the note a, the note B and the note C, where the note a is the first note selected by the user and may be understood as the target note. The business logic layer sorts the notes A, B and C according to the modification time of the notes A, B and C, and the business logic layer splices the data of the notes A, B and C according to the sort to obtain the data of the combined notes, wherein the data of the combined notes comprise the content of the combined notes, and the content of the combined notes can be in the target notes, namely the notes A, or can be understood that the content of the notes B and C is combined into the target notes, namely the notes A, namely the data of the notes A is changed.
Illustratively, the content of note a before merging is text data "content a", and the data of note a stored in the database is: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p >, modification time is: 1661832238197; the content of note B is text data "content B", and the data of note B stored in the database is: < pclass= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p >, modification time is: 1661832238198; the content of note C is text data "content C"; the data of note C stored in the database are: < pclass= "Nb Ai h_n" > < h-text > < font > content C </h-text > </p >, modification time is: 1661832238199. after sorting according to the modification time of the notes a, B and C, the business logic layer may splice the data of the note a, the data of the note B and the data of the note C to obtain the data of the combined note, and if the first note selected by the user when the user selects the note a, the note B and the note C is the note a, the combined note is the note a with changed data, and the data of the note a becomes: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p > < pclass= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p > < pclass= "Nb Ai h_n" > < h-text > < font > content C </h-text > </p >.
S1007: and the business logic layer writes the data of the combined notes into a database.
S1008: and recording the data change of the combined notes in the database.
Still taking the above example of merging the contents of note B and note C in note a, the data of note a recorded in the database is composed of: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p > becomes: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p > < pclass= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p > < pclass= "Nb Ai h_n" > < h-text > < font > content C </h-text > </p >. Meanwhile, the data of the merged note B and the data of the note C may be deleted in the database.
S1009: and displaying the combined note content in the editing area.
As will be understood with reference to the interface of fig. 9 a and fig. 11, taking the above description of the combination of the contents of note B and note C in note a as an example, fig. 11 shows a schematic diagram of an interface of a memo application provided by the embodiment of the present application. The interface of the memo application before merging may be as shown in fig. 9 a. After the merging is completed, the interface of the memo application may be as shown in fig. 11. As in the interface shown in fig. 11, after merging the contents of note B and note C in note a, note a is displayed in a note list area in the interface of the memo application, the edit area may display note a, note B and note C and the subsequent contents, and note B and note C in the note list area have been deleted.
In the embodiment of the application, the data of the notes to be combined are spliced in the background, so that the combination of the notes is realized, a user only needs to perform simple combination operation and does not need to perform frequent interface switching, and the use experience of the user is effectively improved.
In one possible implementation, the merging at least two notes in the note list in response to the merging operation of the user, may include: in response to a drag operation by a user to drag other notes of the at least two notes from the note list to the target note, content of the other notes is incorporated into the target note.
In the embodiment of the application, the target note can be understood as a note with content changed before and after merging in at least two notes in the note list. For example, if the content of note a and the content of note B are combined into note C, the target note is note C; for another example, if the content of note B is incorporated into note a, then the target note is note a.
In a possible implementation, the terminal device may select the other note of the at least two notes in response to a drag operation of the user to drag the other note of the at least two notes from the note list to the target note, and drag the other note to the target note to incorporate the content of the other note into the target note. In the merging process, the user does not need to open the notes to be merged one by one, and does not need to frequently switch interfaces, so that the operation is simple and convenient.
Exemplary, fig. 12 shows a schematic interface diagram of a memo application provided by an embodiment of the present application. As in the interface shown in fig. 12 a, the user selects note C, and the content "content C" of note C may be displayed in the editing area.
Assuming that the user desires to incorporate note C into note a, in the interface shown in fig. 12 a, the terminal device may display the interface shown in fig. 12 b in response to an operation of the user dragging note C to the target note, that is, note a, in the note list. As in the interface shown in fig. 12 b, note C is in a dragged state.
In the interface shown in fig. 12 b, assuming that the content of note a is "content a", the combined interface may be as shown in fig. 12 c. As shown in the interface of fig. 12C, the combined content is a content composed of an upper line and a lower line, and is displayed in the editing area, and at this time, note C in the note list may or may not be deleted, and may be set according to the actual requirement.
In this embodiment, the merged note is the other note of the at least two notes that were dragged. For example, when note B and note C are dragged over note A, the combined notes are note B and note C.
In the embodiment of the application, the notes which are expected to be combined by the user are combined through the dragging operation, the notes to be combined do not need to be opened one by one, the copy and paste operation and the frequent interface switching are not needed, the operation is simple and convenient, and the user has better use experience for combining the notes in the memo application.
In a possible implementation, the performing merging and operation in step S1002 may further include a drag operation of the user dragging the other notes of the at least two notes from the note list to the target note, and when the terminal device merges the content of the other notes into the target note in response to the drag operation of the user dragging the other notes of the at least two notes from the note list to the target note, the business logic layer concatenates the data of the other notes of the at least two notes being dragged with the data of the target note, and then obtains the data of the merged note.
It should be noted that at least two notes in the note list include other notes and target notes, so that data of the selected notes, that is, data of the other notes and data of the target notes, are acquired from a database storing note data at the business logic layer.
In a possible implementation, after the service logic layer obtains the data of the other notes and the data of the target notes, the service logic layer may splice the data of the other notes to the data of the target notes to obtain the data of the combined notes, that is, combine the content of the other notes into the target notes.
Illustratively, the content of note a before merging is text data "content a", and the data of note a stored in the database is: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p >; the content of note B is text data "content B", and the data of note B stored in the database is: < pclass= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p >. Assuming that the user drags the note B to the note a, the target note is the note a, the other notes are the note B, and the business logic layer may splice the data of the note B to the data of the note a to obtain the data of the merged note, that is, the data of the target note, and the data of the target note, that is, the data of the note a becomes: < pclass= "Nb Ai h_n" > < h-text > < font > content a </h-text > </p > < pclass= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p >.
In the embodiment of the application, the data of the notes to be combined are spliced in the background, so that the combination of the notes is realized, a user only needs to carry out simple dragging operation and does not need to carry out frequent interface switching, and the use experience of the user is effectively improved.
Optionally, if the number of other notes in the at least two notes is greater than or equal to two, stitching the data of the other notes after the data of the target note to obtain the data of the combined note, and further including: and splicing the data of the other notes according to the sequence of the modification time of the other notes so as to obtain the data of the other notes in at least two notes.
In the embodiment of the application, if the number of other notes in at least two notes is greater than or equal to two, that is, when the user drags, two or more notes are simultaneously dragged to the target note.
In a possible implementation, after the service logic layer obtains the data of the other notes and the data of the target note, if the number of the other notes is greater than or equal to two, the data of the other notes are spliced according to the sequence of the modification time of each other note, so as to obtain the data of the other notes in at least two notes, and then the obtained data of the other notes can be spliced after the data of the target note.
Fig. 13 illustrates an eleventh interface schematic diagram of a memo application according to an embodiment of the present application. As shown in fig. 13, assuming that the user desires to merge note B and note C into note a, the terminal device may first splice together data of note B and data of note C acquired from the database in order of modification times of note B and note C in response to a drag operation of the user to drag other notes of the at least two notes from the note list to the target note, that is, a drag operation of dragging note B and note C to note a.
In the embodiment of the application, when two or more notes are simultaneously dragged into a target note to be combined, the note B and the note C are combined according to the sequence of modification time, and then the combined note content of the note B and the note C is combined into the note A, so that the content of the note A, the content of the note B and the content of the note C in the note A can be sequentially arranged, and the readability of the combined note content is improved on the basis of simple operation of a user.
In one possible implementation, a method may include displaying combined note content in an edit region, the method including: the rich text editor loads the data of the merged notes from the database and updates the data structure of the merged notes according to the data of the merged notes; wherein the data structure is a tree structure for characterizing content in the note; and displaying the merged note content in the editing area according to the merged note data structure.
In a possible implementation, a rich text editor may also be included in the memo application. After the database obtains the data of the merged notes, namely the changed data of the target notes, the database can change and update the data of the target notes to a UI rendering layer of the terminal equipment, the UI rendering layer calls a rich text editor, the rich text editor loads the data of the merged notes from the database, updates a data structure of the merged notes according to the data of the merged notes, and displays merged note contents in an editing area according to the data structure of the merged notes.
By way of example, assuming note a is incorporated into note C, the data for note C in the database changes and the data for note a is deleted. The rich text editor loads the combined note data, namely the changed note C data, updates the note C data structure according to the changed note C data, and displays the note C content in the editing area according to the updated note C data structure, wherein the note C content comprises note A content, namely note A is combined into note C.
On the basis of the above embodiment, in order to more clearly describe the technical solution provided by the embodiment of the present application, an example will be described below in which a segment of the content of note a is dragged to the editing area of note a by using note B and note C as examples. For example, referring to fig. 14, fig. 14 shows a third schematic diagram of a memo operation method provided by an embodiment of the present application, where the method may include:
S1401: and the UI rendering layer responds to the dragging operation of dragging other notes of at least two notes in the note list to the editing area corresponding to the target note by the user, and sends a merging instruction to the business logic layer.
The merging instruction is used for instructing the business logic layer to send the content of other notes to the rich text editor. When the number of other notes is greater than or equal to two, the merging instruction is further used for instructing the business logic layer to merge the other notes according to the modification time sequence of the other notes.
S1402: the business logic layer receives a merging instruction, merges the selected plurality of notes, and sends a note merging instruction to a plug-in mechanism of the rich text editor, wherein the note merging instruction can comprise the content of the notes after the selected plurality of notes are merged.
In embodiments of the present application, the selected plurality of notes may be understood as other notes having a number greater than or equal to two. For example, when the user drags the notes B and C to the edit area corresponding to the note a, the notes B and C are the selected notes. The selected combination of the plurality of notes may be referred to above in steps S1003 to S1008, and will not be described here.
S1403: a plug-in mechanism of the rich text editor receives the note merge instruction and sends an instruction to the data model identifying the selection.
S1404: the data model receives an instruction identifying a selection of regions. The selection area here includes a cursor, which is a selection area having the same starting point and ending point.
The position of the cursor may be a target position in the editing area of the target note.
S1405: the data model identifies a selection field in an edit region of the target note.
S1406: the data model sends a message to the plug-in mechanism to complete the identification. Accordingly, the plug-in mechanism receives the message completing the identification.
S1407: the plug-in mechanism determines the business logic that performs the insertion of the data.
Wherein the data is inserted, i.e. the content of the combined notes of other notes is inserted
S1408: the plug-in mechanism sends instructions to the behavior that abstract the operation of the inserted data. Accordingly, the behavior receives instructions that abstract operations of the interposed data.
S1409: behavior abstracts the operation of the inserted data into the inserted node of the nine behaviors described above based on instructions that abstract the operation of the inserted data.
S1410: the behavior sends instructions to the data model to update the data structure, carrying the abstract behavior (i.e., the inserted node). Accordingly, the data model receives instructions to update the data structure.
S1411: the data model determines, based on the abstracted behavior, that an operation to insert data in the data structure is to be performed, and locates the insertion position of the content of the other note-combined notes in the data structure based on the selection identified in S1405.
S1412: the data model updates the data structure based on the insertion location. The update data structure includes the contents of the other notes combined at the insertion location.
Assuming that each other note is a note B and a note C, respectively, and assuming that the content of note B is "content B", the content of note C is "content C", the data stored in the database by the content of the note after the other notes are combined according to the modification time sequence may be: the < p > < p class= "Nb Ai h_n" > < h-text > < font > content B </h-text > </p > < p class= "Nb Ai h_n" > < h-text > < font > content C </h-text > </p >.
Assuming that the plug-in mechanism is located at the position of the cursor identified in the data model, that is, the target position is the end of the content of note a, after executing business logic of inserting the content of the note after combining other notes, the data structure of the target note, that is, note a, in the data model is updated as follows:
s1413: the data model sends an instruction to the history record to add the user behavior record, carrying the change of the data structure. Accordingly, the history record receives an instruction to add a user behavior record.
Wherein the change in the data structure includes inserting the contents of the other notes combined at the insertion location.
S1414: the history record adds a user behavior record in the history stack, recording changes in the data structure.
S1415: the history record sends changes in the data structure to the rendering mechanism. Accordingly, the rendering mechanism receives the change in the data structure.
S1416: the rendering mechanism updates the change of the data structure to the UI interface, and displays the updated content of the target note on the UI interface.
S1417: the rendering mechanism will send update instructions to the database and accordingly the database receives update instructions. The update instruction is used for indicating the database to delete the data of the selected notes, namely the data of each other note, and also indicating the data of the database update target note.
S1418: the database sends a message to the UI rendering layer that the update was successful. Accordingly, the UI rendering layer receives the update success message, deletes the selected plurality of notes, that is, the merged notes, from the note list, and updates the notes in the note list.
Exemplary, fig. 15 shows twelve interface diagrams of a memo application provided by an embodiment of the present application. As shown in fig. 15, when note B and note C are dragged to the segment of the content of note a in the edit area of note a, updated note a, that is, the content of the updated target note is displayed in the edit area, and note B and note C in the note list have been deleted.
In the embodiment of the application, the user expects the merged notes through the dragging operation, the rich text editor updates the data structure of the merged notes, and renders the merged notes into the interface of the memo application according to the data structure of the merged notes which are not updated, so that the merged notes which the user expects to merge do not need to be opened one by one, the copy and paste operation and the frequent switching of the interface do not need to be carried out, the operation is simple and convenient, and the user has better use experience for merging the notes in the memo application.
The embodiment of the application provides a terminal device, which comprises: comprising the following steps: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to cause the terminal device to perform the method described above.
The embodiment of the application provides a chip. The chip comprises a processor for invoking a computer program in a memory to perform the technical solutions in the above embodiments. The principle and technical effects of the present application are similar to those of the above-described related embodiments, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium stores a computer program. The computer program realizes the above method when being executed by a processor. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
In one possible implementation, the computer readable medium may include random access memory (random access memory, RAM), read-only memory (ROM), compact disk (compact disc read-only memory, CD-ROM) or other optical disk memory, magnetic disk memory or other magnetic storage device, or any other medium targeted for carrying or storing the desired program code in the form of instructions or data structures, and accessible by a computer. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (digital subscriber line, DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes optical disc, laser disc, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Embodiments of the present application provide a computer program product comprising a computer program which, when executed, causes a computer to perform the above-described method.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing detailed description of the application has been presented for purposes of illustration and description, and it should be understood that the foregoing is by way of illustration and description only, and is not intended to limit the scope of the application.

Claims (14)

1. A memo operation method, comprising:
responding to a starting operation of a user for starting a memo application, displaying a note list of the memo application and an editing area, wherein the note list is used for displaying information of notes, and the editing area is used for displaying the content of any selected note;
responding to the merging operation of a user on at least two notes in the note list, merging the at least two notes, and displaying merged note contents in the editing area; the note list comprises information of at least two notes.
2. The method of claim 1, wherein the merging at least two notes in the note list in response to a merging operation by a user of the at least two notes comprises:
and when the editing area displays the content of the target note in the at least two notes, combining the content of other notes in the target note in response to a drag operation of a user dragging the other notes in the at least two notes from the note list to the editing area.
3. The method of claim 2, wherein the memo application includes a rich text editor therein, the incorporating the content of the other notes into the target note including:
Sending a note merging instruction to the rich text editor, wherein the note merging instruction comprises the content of the other notes;
the rich text editor determines a target position dragged by a user in the editing area, and updates a data structure of the target note according to the content of the other notes and the target position; wherein the data structure is a tree structure for characterizing content in the target note;
the displaying the merged note content in the editing area includes:
and displaying the updated note content of the target note in the editing area according to the updated data structure of the target note.
4. The method of claim 3, wherein if the number of other notes in the at least two notes is greater than or equal to two, before sending a note merge instruction to the rich text editor, further comprising:
and merging the contents of the other notes according to the sequence of the modification time of the other notes to obtain the contents of the other notes in the note merging instruction.
5. The method of claim 1, wherein the merging at least two notes in the note list in response to a merging operation by a user of the at least two notes comprises:
Responding to the selection operation of the user on the at least two notes in the note list, and selecting the at least two notes;
and in response to a merging operation of the at least two selected notes by a user, merging the at least two notes in the order of the modification time of the at least two notes.
6. The method of claim 5, wherein merging the at least two notes in order of their modification times comprises:
acquiring data of the at least two notes from a database for storing note data; and splicing the data according to the sequence of the modification time of the at least two notes to obtain the data of the combined notes.
7. The method of claim 1, wherein the merging at least two notes in the note list in response to a merging operation by a user of the at least two notes comprises:
and merging the content of other notes in the at least two notes into the target note in response to a drag operation of a user dragging the other notes from the note list to the target note.
8. The method of claim 7, wherein the incorporating the content of the other notes into the target note comprises:
Acquiring data of the other notes and data of the target notes from a database for storing note data;
and splicing the data of the other notes after the data of the target notes to obtain the data of the combined notes.
9. The method of claim 8, wherein if the number of other notes in the at least two notes is greater than or equal to two, concatenating the data of the other notes after the data of the target note to obtain the data of the merged note, further comprising:
and splicing the data of the other notes according to the sequence of the modification time of the other notes so as to obtain the data of the other notes in the at least two notes.
10. The method of claim 6 or 8 or 9, wherein a rich text editor is included in the memo application, and wherein displaying the combined note content in the editing area includes:
the rich text editor loads the data of the merged notes from the database and updates the data structure of the merged notes according to the data of the merged notes; wherein the data structure is a tree structure for characterizing content in the note;
And displaying the merged note content in the editing area according to the merged note data structure.
11. The method of any of claims 1-10, wherein after the merging the at least two notes, further comprising: deleting the combined note in the at least two notes.
12. A terminal device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory to cause the terminal device to perform the method of any one of claims 1-11.
13. A computer readable storage medium storing a computer program, which when executed by a processor implements the method according to any one of claims 1-11.
14. A computer program product comprising a computer program which, when run, causes a computer to perform the method of any of claims 1-11.
CN202211521348.6A 2022-11-30 2022-11-30 Memorandum operation method, device and storage medium Pending CN116702715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211521348.6A CN116702715A (en) 2022-11-30 2022-11-30 Memorandum operation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211521348.6A CN116702715A (en) 2022-11-30 2022-11-30 Memorandum operation method, device and storage medium

Publications (1)

Publication Number Publication Date
CN116702715A true CN116702715A (en) 2023-09-05

Family

ID=87836262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211521348.6A Pending CN116702715A (en) 2022-11-30 2022-11-30 Memorandum operation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN116702715A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198561A1 (en) * 2006-02-10 2007-08-23 Samsung Electronics Co., Ltd. Method and apparatus for merging data objects
KR20150107392A (en) * 2014-03-14 2015-09-23 주식회사 인프라웨어 Method and apparatus for managing electronic document's merging

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198561A1 (en) * 2006-02-10 2007-08-23 Samsung Electronics Co., Ltd. Method and apparatus for merging data objects
KR20150107392A (en) * 2014-03-14 2015-09-23 주식회사 인프라웨어 Method and apparatus for managing electronic document's merging

Similar Documents

Publication Publication Date Title
WO2020238774A1 (en) Notification message preview method and electronic device
WO2020244492A1 (en) Screen projection display method and electronic device
CN111694475B (en) Terminal control method and device and terminal equipment
WO2022078295A1 (en) Device recommendation method and electronic device
EP4242810A1 (en) Application sharing method, and electronic device and storage medium
CN111679811B (en) Web service construction method and device
CN111158924B (en) Content sharing method and device, electronic equipment and readable storage medium
CN114201097A (en) Interaction method among multiple application programs
CN114077411A (en) Data transmission method and device
EP4167072A1 (en) Method for opening file, and device
EP4209890A1 (en) File transmission method and related device
CN116095413B (en) Video processing method and electronic equipment
CN116702715A (en) Memorandum operation method, device and storage medium
CN116069214A (en) Cross-control interface interaction method, electronic device, medium and program product
CN114117269A (en) Memorandum information collection method and device, electronic equipment and storage medium
CN116737667A (en) Method for importing portable document format file and terminal equipment
WO2023174200A1 (en) Interface display method and related device
WO2023134525A1 (en) Appearance setting method and electronic device
CN116069215B (en) Schedule creation method, terminal equipment and terminal system
CN115879436B (en) Electronic book quality inspection method
US20240086035A1 (en) Display Method and Electronic Device
WO2024001813A1 (en) Input control method, electronic device and system
WO2024027238A1 (en) Multi-device cooperation method, electronic device and related product
CN116795461A (en) Interface display method and related device
CN118035390A (en) Method for generating overview, terminal equipment and server

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