[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118301148A - File processing method and device and electronic equipment - Google Patents

File processing method and device and electronic equipment Download PDF

Info

Publication number
CN118301148A
CN118301148A CN202410381597.2A CN202410381597A CN118301148A CN 118301148 A CN118301148 A CN 118301148A CN 202410381597 A CN202410381597 A CN 202410381597A CN 118301148 A CN118301148 A CN 118301148A
Authority
CN
China
Prior art keywords
file
revision information
input
information
revision
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
CN202410381597.2A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202410381597.2A priority Critical patent/CN118301148A/en
Publication of CN118301148A publication Critical patent/CN118301148A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a file processing method and device and electronic equipment, and belongs to the technical field of computers. The method comprises the following steps: receiving a first input of a user to a first file; in response to the first input, updating the first file according to first revision information corresponding to the first input; receiving a second input; transmitting the first revision information to the second electronic device in response to the second input; the second electronic device updates the second file according to the first revision information, and a corresponding relation exists between the second file and the first file.

Description

File processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to a file processing method, a file processing device and electronic equipment.
Background
With the popularity of mobile devices and network technology, file transfer has become an integral part of everyday life. However, existing file management approaches have some problems of inconvenience and inefficiency.
For example, after a file is transmitted from a sender to a receiver, if the file needs to be revised, a user of the sender often needs to revise the file and then send the revised file to the receiver, which results in complicated operations.
Disclosure of Invention
The embodiment of the application aims to provide a file processing method, a file processing device and electronic equipment, which can solve the technical problem of complicated operation of revising the existing file.
In a first aspect, an embodiment of the present application provides a method for processing a file, where the method includes:
Receiving a first input of a user to a first file;
Responding to the first input, and updating the first file according to first revision information corresponding to the first input;
receiving a second input;
Transmitting the first revision information to a second electronic device in response to a second input; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
In a second aspect, an embodiment of the present application provides another method for processing a file, where the method includes:
and under the condition that first revision information sent by the first electronic equipment is received, updating a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file of the first electronic equipment.
In a third aspect, an embodiment of the present application provides a file processing apparatus, including:
The first receiving module is used for receiving a first input of a user on a first file;
A first updating module, configured to respond to the first input, and update the first file according to first revision information corresponding to the first input;
a second receiving module for receiving a second input;
The first sending module is used for sending the first revision information to the second electronic equipment; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
In a fourth aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as provided in the first aspect.
In a fifth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as provided in the first aspect.
In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to execute programs or instructions to implement a method as provided in the first aspect.
In a seventh aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement a method as provided in the first aspect.
In the file processing method, the device and the electronic equipment, when receiving the first input of the user to the first file, the first file is updated according to the first revision information corresponding to the first input, and when receiving the second input of the user, the first revision information is sent to the second electronic equipment, so that the second electronic equipment updates the second file according to the first revision information. Therefore, the user revises a certain file in one device, and files on other devices can be synchronously updated, so that complicated file revising operations are avoided.
Drawings
FIG. 1 is a flow chart of a method for processing a file according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a document processing apparatus according to another embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
Fig. 4 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
In order to solve the technical problems, the application provides a file processing method. The file processing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flow chart of a file processing method according to an embodiment of the present application, where the method may include:
s101, receiving a first input of a user on a first file;
In this embodiment, the first file may be a text file or an image file in the first electronic device. The user may modify the content in the first file via the first input. Taking the first file as a text file as an example, the first input may be used to instruct adding, deleting or editing text content in the first file, and the first input may also be used to adjust the format and brightness of the first file.
S102, responding to the first input, and updating the first file according to first revision information corresponding to the first input;
In this embodiment, after the first input is responded, the first revision information corresponding to the first input may be acquired, and at the same time, the first file may enter a revision mode, where the content displayed in the first file in the revision mode includes the actual content in the first file, and the first revision information corresponding to the first input. The first revision information may include new text, deleted text, format modification information, annotation information, other marks, and the like corresponding to the first input.
After the first revision information is acquired, the first revision information records modification operations of the first file by the user of the first electronic device, but these modification operations are not reflected in the actual content of the text file, and only after the first file is updated by the first revision information, the actual content of the first file is updated based on the first input of the user, and the first revision information displayed in the first file is removed.
For example, if the first revision information is the newly added content, updating the first file according to the first revision information may be accepting the newly added content in the first file; updating the first file may be to preserve a deleted state of the text in the first file if the first revision information is a deleted text, and may be to confirm the modification of the format in the first file if the first revision information is a format modification information.
S103, receiving a second input;
in this embodiment, the second input is an input that the user instructs to send the first revision information to the second electronic device.
S104, responding to a second input, and sending the first revision information to a second electronic device; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
In the embodiment of the application, the second file is a file with the same content as the first file in the second electronic device. The first file and the second file may be files downloaded at the same network address, and the second file may also be a first file transmitted from the first electronic device to the second electronic device.
After receiving a first input of a user to the first file and acquiring first revision information corresponding to the first input, the first electronic device can update the first file according to the first revision information, and the user can also send the first revision information to the second electronic device through a second input so that the second file is updated on the second electronic device according to the first revision information, thereby ensuring that the same revision of the contents in the first file and the second file is performed.
In addition, if the second file in the second electronic device is in a closed state or a background running state at the first moment when the second electronic device receives the first revision information, that is, the second file is not displayed in the second electronic device at the first moment, an unread identifier may be generated, where the unread identifier indicates that unread revision information exists in the second file, and the unread identifier is added to a display area of the file identifier of the second file, so as to update the file identifier of the second file. In this way, the user can know whether the unread revision information exists in the second file by checking the file identification of the second file, so as to remind the user to check the file processing information in time.
In the application, under the condition of receiving the first input of the user to the first file, the first file is updated according to the first revision information corresponding to the first input, and under the condition of receiving the second input of the user, the first revision information is sent to the second electronic equipment, so that the second electronic equipment updates the second file according to the first revision information. Therefore, the user revises a certain file in one device, and files on other devices can be synchronously updated, so that complicated file revising operations are avoided.
In some embodiments, the method further comprises:
And sending a revision notification corresponding to the first revision information to the second electronic equipment.
In this embodiment, after the first revision information corresponding to the first input is acquired in the first electronic device, a revision notification may be generated in the first electronic device, and the revision notification may be sent to the second electronic device. The revision notification may be sent to the second electronic device simultaneously with the first revision information, or may be sent to the second electronic device after the first revision information. The second electronic device, after receiving the revision notification, may output the content of the revision notification to a user of the second electronic device in the form of a pop-up window or in the form of voice.
Therefore, the user of the second electronic device can be reminded through the revision notification, and the second electronic device can avoid missing the revision information after receiving the new file revision information.
In some embodiments, the method further comprises:
And under the condition that second revision information sent by the second electronic equipment is received, updating the first file according to the second revision information.
In this embodiment, the user of the second electronic device may revise the second file on the second electronic device to obtain second revision information, the second electronic device may update the second file according to the second revision information, and the second electronic device may further transmit the second revision information to the first electronic device, so that the first electronic device may update the first file according to the second revision information.
Therefore, the user only revises the second file in the second electronic device, and correspondingly, the first file with the same content as the second file on the first electronic device is also updated according to the revision, so that the efficiency of file revision is improved.
In some embodiments, the first revision information and the second revision information are revision information for first content of the first file;
the updating the first file according to the first revision information corresponding to the first input includes:
and if the first revision information is different from the second revision information, if confirmation information of the first revision information is received, updating the first content of the first file according to the first revision information.
In this embodiment, if the user of the first electronic device inputs the first file and the user of the second electronic device inputs the second file in a revising manner, second revision information corresponding to the revising input of the second file may be obtained, and the first revision information and the second revision information may be compared.
Since the contents of the first file and the second file are the same, if the first revision information is different from the second revision information and both the first revision information and the second revision information are used to indicate the modification of the first content in the file, it can be considered that there is a conflict between the first revision information and the second revision information.
As some optional embodiments, in a case where there is a conflict between the first revision information and the second revision information, the first electronic device may display the first revision information and the second revision information, if a user of the first electronic device selects to accept the first revision information, the displayed first revision information may be confirmed, the first electronic device may acquire corresponding confirmation information, and update the first content in the first file according to the first revision information according to the confirmation information. Likewise, the second electronic device may also display the first revision information and the second revision information, and select which revision information to update the second file according to a confirmation operation by a user of the second electronic device.
As other alternative embodiments, in the case where there is a conflict between the first revision information and the second revision information, the comparison information may be generated in the first electronic device according to the first revision information and the second revision information, the comparison information including the first revision information and the second revision information displayed in different display manners, and then the comparison information may be transmitted to the second electronic device.
The user can select a revision mode on the first electronic device and/or the second electronic device through the comparison information, the first file can be updated according to the first revision information under the condition that the first electronic device receives the confirmation information of the first revision information in the comparison information, the second electronic device also receives the confirmation information of the first revision information, and the second file is updated according to the first revision information based on the confirmation information of the first revision information; when the first electronic device receives the confirmation information of the second revision information in the comparison information, the first file can be updated according to the second revision information, and the second electronic device can update the second file according to the second revision information based on the confirmation information of the second revision information; under the condition that the first electronic device receives the confirmation information of the combined revision information in the comparison information, the first file is updated according to the combined revision information, and the second electronic device also updates the second file according to the combined revision information based on the confirmation information of the combined revision information, wherein the combined revision information is formed by combining at least part of the first revision information and at least part of the second revision information.
Wherein the confirmation information may be generated in response to a first confirmation input by the user on the first electronic device or may be generated in response to a second confirmation input by the user on the second electronic device.
By the method, the first file and the second file can be revised at the same time, and the revision mode is flexibly selected to modify the first file and the second file under the condition that the revision content conflicts.
In some embodiments, if the first revision information and the second revision information are revision information for a first content of a first file, a first identification is displayed at a first location corresponding to the first content if the first revision information is different from the second revision information.
In the present embodiment, since the contents of the first file and the second file are the same, if the first revision information is different from the second revision information, and both the first revision information and the second revision information are used to indicate the modification of the first content in the file, it can be considered that there is a conflict between the first revision information and the second revision information on the revision of the first content.
The first revision information can be added in a first display mode at a first position corresponding to the first content in the first file and the second file, the second revision information can be added in a second display mode, and the first identification can be added and displayed. The first display mode can be in a blue font, and the second display mode can be in a green font; the first identifier may be a text bolded identifier.
The content with modification conflict can be highlighted through the first identifier, so that the modification conflict part is obviously distinguished from the normal content, and the user can conveniently conduct subsequent review.
In some embodiments, before receiving the first input of the first file by the user, the method further includes:
Acquiring equipment parameters of the second electronic equipment and network parameters between the first electronic equipment and the second electronic equipment;
Determining a file transmission data packet according to the equipment parameter and the network parameter;
Transmitting the file transmission data packet to the second electronic device; and the second electronic equipment obtains the second file based on the file transmission data packet.
In this embodiment, when it is detected that the first electronic device is about to transmit the first file to the second electronic device, the device parameter of the second electronic device and the network parameter between the first electronic device and the second electronic device may be acquired, the compression parameter of the first file is determined according to the device parameter and the network parameter, and the file transmission data packet is determined according to the compression parameter of the first file.
The device parameters of the second electronic device may include a model number and a core number of the processor; capacity and type of memory, resolution and size of display, etc.; the network parameters may include bandwidth, delay, network topology, etc. of the network.
Specifically, multiple file formats supported by the second electronic device may be automatically generated according to device parameters of the second electronic device. Meanwhile, the first electronic device calculates the exact size of the file in different file formats, evaluates network parameters between the first electronic device and the second electronic device, and recommends a plurality of different compression parameters, wherein the compression parameters comprise compression ratios.
The target format and the target compression parameters can be selected from a plurality of compression parameters and a plurality of file formats, the first file is subjected to format conversion according to the target format, then the first file after format conversion is compressed according to the target compression ratio to obtain a file transmission data packet, the first electronic device transmits the file transmission data packet to the second electronic device, and the second electronic device can analyze the file transmission data packet to obtain the second file.
By the method, the file can be quickly sent according to the network condition, and format compatibility among different devices can be realized according to the device parameters of the receiving end device.
In some embodiments, the first electronic device may determine the first format and the first sharpness based on the device parameters and the network parameters; then converting the file format of the first file into the first format to obtain a third file; and compressing the third file according to the compression parameters to obtain a second file, wherein the definition of the second file is the first definition. And then generating a file transfer data packet according to the second file.
In this embodiment, the first format that is most matched with the second electronic device and the first compression ratio that is most suitable for transmission may be directly determined according to the device parameters, where the definition of the first file after being compressed according to the first compression ratio is the first definition.
After the first format and the first definition are determined, the file format of the first file can be converted into the first format to obtain a third file, and the third file is compressed according to the first compression ratio to obtain a second file with the first definition. And generating a file transmission data packet according to the second file for data transmission.
By the method, the conversion mode of the first file can be rapidly determined, and the conversion from the first file to the second file can be automatically completed.
In some embodiments, the specific process of converting the first file into the second file according to the device parameter and the network parameter may be: acquiring at least one format identifier and at least one definition identifier according to the equipment parameters and the network parameters, wherein each format identifier corresponds to a file format, and each definition identifier corresponds to a definition; then displaying at least one format identifier and at least one definition identifier; receiving input of a first format identifier and a first definition identifier, wherein at least one format identifier comprises the first format identifier, and at least one definition identifier comprises the first definition identifier; and converting the first file into a second file with a second format and a second definition, wherein the second format is a file format corresponding to the first format identifier, and the second definition is a file definition corresponding to the first definition identifier.
In this embodiment, at least one format identifier and at least one definition identifier may be obtained according to the device parameter and the network parameter, and then the at least one format identifier and the at least one definition identifier are displayed on the first electronic device, the user may select a second format from the at least one format identifier by inputting, and select a second definition from the at least one definition identifier, so that the first file may be converted into a second file of the second format and the second definition.
For example, at least one format identifier is displayed on the conversion interface of the file format, where the user selects a first format identifier from the at least one format identifier, that means that the user wants to convert the first file into a second format corresponding to the first format identifier, after the user selects the first format identifier, a corresponding definition selection box for selecting the first format identifier may be triggered, where the definition selection box includes at least one definition identifier corresponding to each definition in the second format and a file size in each definition, and the user may select the first definition identifier based on the file size.
Through the mode, the format and the definition of the file can be recommended to the user according to the hardware difference of the sending equipment and the receiving equipment and the network condition, the user can manually select according to the application scene requirement, and the user requirement is matched on the premise of meeting the equipment and the network requirement.
In some embodiments, before the first electronic device performs data transmission, a file identifier of at least one file and a device identifier of at least one third electronic device may be displayed on the first electronic interface, where the third electronic device is a device communicatively connected to the first electronic device, the at least one third electronic device includes a second electronic device, and the at least one file includes the first file;
Receiving transmission input of a user to a first file identifier and a first electronic device identifier, wherein the first file identifier is a file identifier of the first file, and the first electronic device identifier is a device identifier of a second electronic device;
And generating a transmission instruction in response to the first input, wherein the transmission instruction is used for indicating a file transmission data packet corresponding to a second file obtained by converting the first file to be transmitted to the second electronic equipment.
In this embodiment, in the case that the user wants to perform file transmission, the sending device displays the file identifier of at least one file meeting the transmission condition and the device identifiers of the currently connectable electronic devices, and the first file identifier may be dragged to at least partially overlap with the first electronic device identifier through the transmission input, or the first electronic device identifier may be dragged to at least partially overlap with the first file identifier through the transmission input, which indicates that the first file corresponding to the first file identifier is ready to be sent to the second electronic device corresponding to the first electronic device identifier. So that a transmission instruction can be generated.
In this way, the user can be visually assisted in issuing instructions for file transfer.
In some embodiments, the method further comprises:
receiving a third input;
And responding to the third input, and searching revision information in the first file according to a search keyword corresponding to the third input.
In this embodiment, the third input may be an input by which the user searches for revision information through a search keyword. After the first electronic device receives the search keyword input by the user, the search keyword and the first file processing information in the first electronic device can be matched in semantic similarity, and revised information, obtained by matching, in the first file, with the semantic similarity larger than a first similarity threshold value can be displayed as a search result.
Specifically, when the user wants to perform file retrieval in the first file, the search box of the first file may be called out. When a user inputs a search keyword in a search box, the first electronic device automatically utilizes a word embedding vectorization algorithm to calculate the semantic similarity between the input search keyword and each piece of revision information in the first file, and determines revision information with higher semantic similarity. For example, in the matching process of semantic similarity, the first electronic device may construct an inverted index and a dictionary tree according to the revision information to accelerate the matching process.
By the above searching mode, the revision information can be included in the search category, and accurate search results are obtained through matching of the search keywords and the revision information, so that accurate searching of the revision information is completed.
In addition, the user can search the files matched with the search keywords in the files through the search keywords, and when the user inputs the search keywords, the first electronic device can calculate semantic similarity between the input search keywords and text content and revision information of each file and determine the files with higher similarity. For example, N files with semantic similarity greater than a first threshold may be determined, and file identifications of the N files may be obtained.
After the file identifications of the N files are obtained by matching, the file identifications of the N files may be displayed, so that the user selects the file identification of the file to be accessed from among the file identifications of the N files. Specifically, the file identifications of the N files may be returned according to the ranking result of the semantic similarity, where the file identifications corresponding to the files with higher semantic similarity are ranked higher. By the method, the instant and accurate search result can be returned, and accurate file retrieval is completed.
In some embodiments, the method further comprises:
receiving a fourth input of a first file identification of the first file;
responding to the fourth input, and updating the first file identifier according to the labeling information corresponding to the fourth input;
Receiving a fifth input;
Transmitting the annotation information to the second electronic device in response to the fifth input; and the second electronic equipment updates a second file identifier of the second file according to the marking information.
In this embodiment, the fourth input is an input that the user adds the annotation information in the display area of the first file identifier, and the user may input the annotation information in the input box on the first file identifier, where the annotation information is displayed in the display area of the first file identifier in the form of a display control. The display area of the first file identifier may be located on the first file identifier or may be located around the first file identifier.
For example, the display area of the first file identifier may be below the first file identifier, and the display control may be a floating bubble box. The floating bubble frame can have certain transparency and fillet design, and can not shade the first file mark while ensuring visibility. The user can click the floating bubble frame to quickly activate the editing mode of the annotation information, so that the added annotation is modified or deleted.
Considering the labeling information with different lengths, the device can intelligently adjust the size of the floating bubble frame to avoid overflow of the labeling information. When the labeling information is longer, the floating bubble frame can support the left-right sliding effect, and all the labeling information is displayed in a circulating mode. The user can control the annotation information part to be browsed independently by fine adjustment of the sliding distance.
In addition, the fifth input is used for indicating the first electronic device to send the labeling information to the second electronic device, so that the second electronic device displays a display control comprising the labeling information in the same manner in the display area of the file identifier of the second file. Therefore, synchronous display of the annotation information on the first file and the second file is realized.
In this way, the same label information can be synchronously displayed on the first file and the second file through the display control, which is directly observed, and the display of the file identification is not excessively blocked or affected.
Another embodiment of the present application provides a method for processing a file, which may include:
and under the condition that first revision information sent by the first electronic equipment is received, updating a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file of the first electronic equipment.
In this embodiment, the second file is a file in the second electronic device, which has the same content as the first file. The first file and the second file may be files downloaded at the same network address, and the second file may also be a first file transmitted from the first electronic device to the second electronic device.
The user can perform first input on the first electronic device to generate first revision information corresponding to the first input, then update the first file according to the first revision information on the first electronic device, send the first revision information to the second electronic device, and the second electronic device can update the second file according to the first revision information after receiving the first revision information.
In this embodiment, when a first input of a user to a first file is received, the first file is updated according to first revision information corresponding to the first input, and when a second input of the user is received, the first revision information is sent to a second electronic device, so that the second electronic device updates the second file according to the first revision information. Therefore, the user revises a certain file in one device, and files on other devices can be synchronously updated, so that complicated file revising operations are avoided.
In some embodiments, the method further comprises:
receiving a revision notification corresponding to the first revision information sent by the first electronic device;
and displaying the revision notification.
In this embodiment, after the first revision information corresponding to the first input is acquired in the first electronic device, a revision notification may be generated in the first electronic device, and the revision notification may be sent to the second electronic device. The revision notification may be sent to the second electronic device simultaneously with the first revision information, or may be sent to the second electronic device after the first revision information. The second electronic device, after receiving the revision notification, may output the content of the revision notification to a user of the second electronic device in the form of a pop-up window or in the form of voice.
Therefore, the user of the second electronic device can be reminded of receiving new file revision information through the revision notification, and omission of the revision information is avoided.
In some embodiments, the method further comprises:
Receiving a sixth input from the user to the second file,
In response to the sixth input, updating the second file according to second revision information corresponding to the sixth input;
Receiving a seventh input;
and transmitting the second revision information to the first electronic device in response to the seventh input, wherein the first electronic device updates the first file according to the second revision information.
In this embodiment, the user may modify the content in the second file through the sixth input. After responding to the sixth input, second revision information corresponding to the sixth input can be acquired, and the second file is updated by using the second revision information, wherein the first file is the file with the same content as the second file in the first electronic device.
After receiving the sixth input of the user to the second file and obtaining the second revision information corresponding to the sixth input, the second electronic device may update the second file according to the second revision information, and the user may send the second revision information to the first electronic device through the seventh input, so that the first file is updated on the first electronic device according to the second revision information, so as to ensure that the same revision is performed on the contents in the first file and the second file.
In this way, the user can only make one revision on the second electronic device, i.e., the first file and the second file can be updated in the same manner, thereby improving the efficiency of file revision.
In some embodiments, the first revision information and the second revision information are revision information for first content of the first file;
the updating the second file according to the first revision information includes:
and if the first revision information is different from the second revision information, if confirmation information of the first revision information is received, updating the first content of the second file according to the first revision information.
In this embodiment, if the user of the first electronic device inputs the first file and the user of the second electronic device inputs the sixth file at the same time, the second electronic device may acquire the second revision information and the first revision information corresponding to the sixth input of the second file. The second electronic device may display the first revision information and the second revision information, and if the user of the second electronic device selects to accept the first revision information, the second electronic device may confirm the displayed first revision information, obtain confirmation information corresponding to the first revision information, and update the first content in the second file according to the confirmation information and the first revision information.
By the method, the first file and the second file can be revised at the same time, and the revision mode is flexibly selected to modify the first file and the second file under the condition that the revision content conflicts.
In some embodiments, the method further comprises:
receiving labeling information sent by the first electronic equipment;
Updating a second file identifier of the second file according to the labeling information; and the first electronic equipment updates a first file identifier of the first file according to the labeling information.
In this embodiment, if the user adds the annotation information to the first file identifier, and the first electronic device sends the annotation information to the second electronic device, the second electronic device displays a display control including the annotation information in the display area of the file identifier of the second file in the same manner. Therefore, synchronous display of the annotation information on the first file and the second file is realized.
In this way, the same label information can be synchronously displayed on the first file and the second file through the display control, which is visually observed, and the display of the file identification is not excessively blocked or affected
In addition, the second electronic device may also receive an eighth input of the second file by the user; and displaying the second file in response to the eighth input, and jumping the display page of the second file to the position of the second content, wherein the first revision information is revision information of the second content of the first file.
In this embodiment, the eighth input is an input for the user to view the second file, and the eighth input may be an input for opening the second file on the second electronic device, or may be an input for displaying the second file running in the background of the second electronic device at the front end.
The second file may be displayed at a front end of the second electronic device in response to an eighth input of the user, and then a display page of the second file is jumped to a position of the second content, wherein the first revision information is revision information of the second content of the first file, and the first revision information is also used for indicating revision of the second content in the second file because the contents of the first file and the second file are identical.
In other words, after the first revision information is received, when the user opens the second file, the display page of the second file automatically jumps to the revision position indicated by the first revision information, so that the user can conveniently and quickly view the revision content.
Fig. 2 is a schematic structural diagram of a document processing device according to another embodiment of the present application, and as shown in fig. 2, the document processing device may include:
a first receiving module 201, configured to receive a first input of a first file from a user;
A first updating module 202, configured to respond to the first input, and update the first file according to first revision information corresponding to the first input;
A second receiving module 203 for receiving a second input;
A first sending module 204, configured to send the first revision information to a second electronic device; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
In the application, under the condition of receiving the first input of the user to the first file, the first file is updated according to the first revision information corresponding to the first input, and under the condition of receiving the second input of the user, the first revision information is sent to the second electronic equipment, so that the second electronic equipment updates the second file according to the first revision information. Therefore, the user revises a certain file in one device, and files on other devices can be synchronously updated, so that complicated file revising operations are avoided.
In another optional example, the above-mentioned file processing apparatus further includes:
and the second sending module is used for sending the revision notification corresponding to the first revision information to the second electronic equipment.
In another optional example, the above-mentioned file processing apparatus further includes:
And the second updating module is used for updating the first file according to the second revision information under the condition that the second revision information sent by the second electronic equipment is received.
In another alternative example, the first revision information and the second revision information are revision information for first content of the first file; the second updating module further includes:
And the first updating unit is used for updating the first content of the first file according to the first revision information if the confirmation information of the first revision information is received under the condition that the first revision information is different from the second revision information.
In another optional example, the above-mentioned file processing apparatus further includes:
The first acquisition module is used for acquiring the equipment parameters of the second electronic equipment and the network parameters between the first electronic equipment and the second electronic equipment;
The first determining module is used for determining a file transmission data packet according to the equipment parameter and the network parameter;
The third sending module is used for sending the file transmission data packet to the second electronic equipment; and the second electronic equipment obtains the second file based on the file transmission data packet.
In another optional example, the above-mentioned file processing apparatus further includes:
A third receiving module for receiving a third input;
And the searching module is used for responding to the third input and searching revision information in the first file according to the search keyword corresponding to the third input.
In another optional example, the above-mentioned file processing apparatus further includes:
A fourth receiving module for receiving a fourth input of a first file identification of the first file;
the third updating module is used for responding to the fourth input and updating the first file identification according to the marking information corresponding to the fourth input;
a fifth receiving module for receiving a fifth input;
A fourth sending module, configured to send the labeling information to the second electronic device in response to the fifth input; and the second electronic equipment updates a second file identifier of the second file according to the marking information.
Another embodiment of the present application further provides another document processing apparatus, where the document processing apparatus may include:
And the fourth updating module is used for updating a second file according to the first revision information under the condition that the first revision information sent by the first electronic equipment is received, and a corresponding relation exists between the second file and the first file of the first electronic equipment.
In another optional example, the above-mentioned file processing apparatus further includes:
A sixth receiving module, configured to receive a revision notification corresponding to the first revision information sent by the first electronic device;
and the display module is used for displaying the revision notification.
In another optional example, the above-mentioned file processing apparatus further includes:
A seventh receiving module, configured to receive a sixth input from a user to the second file;
a fifth updating module, configured to respond to the sixth input, and update the second file according to second revision information corresponding to the sixth input;
An eighth receiving module for receiving a seventh input;
and a fifth sending module, configured to send the second revision information to the first electronic device in response to the seventh input, where the first electronic device updates the first file according to the second revision information.
In another optional example, the above-mentioned file processing apparatus further includes:
And a sixth updating module, configured to update, if the first revision information is different from the second revision information, the first content of the second file according to the first revision information if acknowledgement information for the first revision information is received.
In another optional example, the above-mentioned file processing apparatus further includes:
A ninth receiving module, configured to receive the labeling information sent by the first electronic device;
a seventh updating module, configured to update a second file identifier of the second file according to the labeling information; and the first electronic equipment updates a first file identifier of the first file according to the labeling information.
The file processing device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a robot, a wearable device, an ultra-Mobile personal computer (UMPC), a netbook or a personal digital assistant (personal DIGITAL ASSISTANT, PDA), etc., a server, a network attached storage (NetworkAttached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine, a self-service machine, etc., a server, a network attached storage (NetworkAttached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The file processing device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The file processing device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 3, the embodiment of the present application further provides an electronic device 100, including a processor 110, a memory 119, and a program or an instruction stored in the memory 119 and capable of running on the processor 110, where the program or the instruction implements each process of the above-mentioned embodiment of the file processing method when executed by the processor 110, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Referring to fig. 4 in combination, fig. 4 is a schematic hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 100 includes, but is not limited to: radio frequency unit 121, network module 122, audio output unit 123, input unit 124, sensor 125, display unit 126, user input unit 127, interface unit 128, memory 129, and processor 120.
Those skilled in the art will appreciate that the electronic device 120 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 120 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the user input unit 127 is configured to receive a first input of a first file by a user;
a processor 120, configured to respond to the first input, and update the first file according to first revision information corresponding to the first input;
A user input unit 127 for receiving a second input;
A radio frequency unit 121, configured to send the first revision information to a second electronic device; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
In the application, under the condition of receiving the first input of the user to the first file, the first file is updated according to the first revision information corresponding to the first input, and under the condition of receiving the second input of the user, the first revision information is sent to the second electronic equipment, so that the second electronic equipment updates the second file according to the first revision information. Therefore, the user revises a certain file in one device, and files on other devices can be synchronously updated, so that complicated file revising operations are avoided.
In another optional example, the radio frequency unit 121 is further configured to send a revision notification corresponding to the first revision information to the second electronic device.
In another alternative example, the processor 120 is further configured to update the first file according to the second revision information when receiving the second revision information sent by the second electronic device.
In another alternative example, the first revision information and the second revision information are revision information of a first content of the first file, and the processor 120 is further configured to update the first content of the first file according to the first revision information if confirmation information of the first revision information is received if the first revision information is different from the second revision information.
In another alternative example, the processor 120 is further configured to:
Acquiring equipment parameters of the second electronic equipment and network parameters between the first electronic equipment and the second electronic equipment;
Determining a file transmission data packet according to the equipment parameter and the network parameter;
the radio frequency unit 121 is further configured to send the file transfer data packet to the second electronic device; and the second electronic equipment obtains the second file based on the file transmission data packet.
In another alternative example, the user input unit 127 described above is also used to receive a third input;
The processor 120 is further configured to: and responding to the third input, and searching revision information in the first file according to a search keyword corresponding to the third input.
In another alternative example, the user input unit 127 is further configured to receive a fourth input of a first file identifier of the first file;
the processor 120 is further configured to respond to the fourth input, and update the first file identifier according to the labeling information corresponding to the fourth input;
the user input unit 127 is also configured to receive a fifth input;
The radio frequency unit 121 is further configured to send the labeling information to the second electronic device in response to the fifth input; and the second electronic equipment updates a second file identifier of the second file according to the marking information.
In another alternative example, the processor 120 is further configured to:
and under the condition that first revision information sent by the first electronic equipment is received, updating a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file of the first electronic equipment.
In another alternative example, the radio frequency unit 121 is configured to:
receiving a revision notification corresponding to the first revision information sent by the first electronic device;
the display unit 126 is also configured to display the revision notification.
In another alternative example, the user input unit 127 described above is also used to:
receiving a sixth input of a user to the second file;
The processor 120 is further configured to respond to the sixth input, and update the second file according to second revision information corresponding to the sixth input;
the user input unit 127 is also configured to receive a seventh input;
the radio frequency unit 121 is further configured to send the second revision information to the first electronic device in response to the seventh input, where the first electronic device updates the first file according to the second revision information.
In another optional example, the processor 120 is further configured to update the first content of the second file according to the first revision information if acknowledgement information of the first revision information is received in a case where the first revision information is different from the second revision information.
In another optional example, the radio frequency unit 121 is further configured to receive annotation information sent by the first electronic device;
The processor 120 is further configured to update a second file identifier of the second file according to the labeling information; and the first electronic equipment updates a first file identifier of the first file according to the labeling information.
It should be appreciated that in embodiments of the present application, the input unit 124 may include a graphics processor (Graphics Processing Unit, GPU) 1241 and a microphone 1242, with the graphics processor 1241 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 126 may include a display panel 1261, and the display panel 1261 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 127 includes at least one of a touch panel 1271 and other input devices 1272. Touch panel 1271 is also referred to as a touch screen. Touch panel 1271 may include two parts, a touch detection device and a touch controller. Other input devices 1272 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 129 may be used to store software programs and various data. The memory 129 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 129 may include volatile memory or nonvolatile memory, or the memory 129 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (RandomAccess Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM). Memory 129 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 120 may include one or more processing units; optionally, the processor 120 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 120.
The embodiment of the application also provides a readable storage medium, and the readable storage medium stores a program or an instruction, which when executed by a processor, implements each process of the above embodiment of the file processing method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the file processing method can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the above-described embodiments of the file processing method, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (15)

1. A method of file processing, the method performed by a first electronic device, comprising:
Receiving a first input of a user to a first file;
Responding to the first input, and updating the first file according to first revision information corresponding to the first input;
receiving a second input;
Transmitting the first revision information to a second electronic device in response to a second input; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
2. The method according to claim 1, wherein the method further comprises:
And sending a revision notification corresponding to the first revision information to the second electronic equipment.
3. The method according to claim 1, wherein the method further comprises:
And under the condition that second revision information sent by the second electronic equipment is received, updating the first file according to the second revision information.
4. The method of claim 3, wherein the first revision information and the second revision information are revision information for first content of the first file;
the updating the first file according to the first revision information corresponding to the first input includes:
and if the first revision information is different from the second revision information, if confirmation information of the first revision information is received, updating the first content of the first file according to the first revision information.
5. The method according to claim 1, wherein the method further comprises:
Acquiring equipment parameters of the second electronic equipment and network parameters between the first electronic equipment and the second electronic equipment;
Determining a file transmission data packet according to the equipment parameter and the network parameter;
Transmitting the file transmission data packet to the second electronic device; and the second electronic equipment obtains the second file based on the file transmission data packet.
6. The method according to claim 1, wherein the method further comprises:
receiving a third input;
And responding to the third input, and searching revision information in the first file according to a search keyword corresponding to the third input.
7. The method according to claim 1, wherein the method further comprises:
receiving a fourth input of a first file identification of the first file;
responding to the fourth input, and updating the first file identifier according to the labeling information corresponding to the fourth input;
Receiving a fifth input;
Transmitting the annotation information to the second electronic device in response to the fifth input; and the second electronic equipment updates a second file identifier of the second file according to the marking information.
8. A method of file processing, the method performed by a second electronic device, comprising:
and under the condition that first revision information sent by the first electronic equipment is received, updating a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file of the first electronic equipment.
9. The method of claim 8, wherein the method further comprises:
receiving a revision notification corresponding to the first revision information sent by the first electronic device;
and displaying the revision notification.
10. The method of claim 8, wherein the method further comprises:
Receiving a sixth input from the user to the second file,
In response to the sixth input, updating the second file according to second revision information corresponding to the sixth input;
Receiving a seventh input;
and transmitting the second revision information to the first electronic device in response to the seventh input, wherein the first electronic device updates the first file according to the second revision information.
11. The method of claim 10, wherein the first revision information and the second revision information are revision information for first content of the first file;
the updating the second file according to the first revision information includes:
and if the first revision information is different from the second revision information, if confirmation information of the first revision information is received, updating the first content of the second file according to the first revision information.
12. The method of claim 8, wherein the method further comprises:
receiving labeling information sent by the first electronic equipment;
Updating a second file identifier of the second file according to the labeling information; and the first electronic equipment updates a first file identifier of the first file according to the labeling information.
13. A document processing apparatus, comprising:
The first receiving module is used for receiving a first input of a user on a first file;
A first updating module, configured to respond to the first input, and update the first file according to first revision information corresponding to the first input;
a second receiving module for receiving a second input;
The first sending module is used for sending the first revision information to the second electronic equipment; and the second electronic equipment updates a second file according to the first revision information, wherein a corresponding relation exists between the second file and the first file.
14. A document processing apparatus, comprising:
And the second updating module is used for updating a second file according to the first revision information under the condition that the first revision information sent by the first electronic equipment is received, and a corresponding relation exists between the second file and the first file of the first electronic equipment.
15. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the file processing method of any of claims 1-12.
CN202410381597.2A 2024-03-29 2024-03-29 File processing method and device and electronic equipment Pending CN118301148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410381597.2A CN118301148A (en) 2024-03-29 2024-03-29 File processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410381597.2A CN118301148A (en) 2024-03-29 2024-03-29 File processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN118301148A true CN118301148A (en) 2024-07-05

Family

ID=91685468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410381597.2A Pending CN118301148A (en) 2024-03-29 2024-03-29 File processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN118301148A (en)

Similar Documents

Publication Publication Date Title
CN106874390B (en) Browser history record viewing method and terminal
KR101756042B1 (en) Method and device for input processing
CN109561211B (en) Information display method and mobile terminal
CN112486385A (en) File sharing method and device, electronic equipment and readable storage medium
CN109710088B (en) Information searching method and device
CN112333084B (en) File sending method and device and electronic equipment
CN114374663B (en) Message processing method and message processing device
WO2021017238A1 (en) Text generation method and apparatus
CN113849092A (en) Content sharing method and device and electronic equipment
CN108595107B (en) Interface content processing method and mobile terminal
CN112383662B (en) Information display method and device and electronic equipment
CN111954079A (en) Image processing method, image processing apparatus, electronic device, and medium
CN109063076B (en) Picture generation method and mobile terminal
CN111223166A (en) Image display method, image display device, electronic apparatus, and medium
CN108491502B (en) News tracking method, terminal, server and storage medium
WO2024149183A1 (en) Document display method and apparatus, and electronic device
CN107862728B (en) Picture label adding method and device and computer readable storage medium
CN118301148A (en) File processing method and device and electronic equipment
CN113839789B (en) Information sending method and device
CN116775982A (en) Search methods, apparatus, equipment and media
CN113905125B (en) Video display method and device, electronic equipment and storage medium
CN112765447B (en) Data searching method and device and electronic equipment
CN115243062B (en) Scene display method and device, screen display device, electronic device and storage medium
CN112732464B (en) Pasting method, device and electronic equipment
CN112612400B (en) Text content processing method and electronic equipment

Legal Events

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