CN103279453A - Method, device and terminal device for processing files - Google Patents

Method, device and terminal device for processing files Download PDF

Info

Publication number
CN103279453A
CN103279453A CN2013102152593A CN201310215259A CN103279453A CN 103279453 A CN103279453 A CN 103279453A CN 2013102152593 A CN2013102152593 A CN 2013102152593A CN 201310215259 A CN201310215259 A CN 201310215259A CN 103279453 A CN103279453 A CN 103279453A
Authority
CN
China
Prior art keywords
content
text
correspondence
described non
attribute
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.)
Granted
Application number
CN2013102152593A
Other languages
Chinese (zh)
Other versions
CN103279453B (en
Inventor
杨亮
曾健
徐萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN201310215259.3A priority Critical patent/CN103279453B/en
Publication of CN103279453A publication Critical patent/CN103279453A/en
Application granted granted Critical
Publication of CN103279453B publication Critical patent/CN103279453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device and a terminal device for processing files, and belongs to the field of terminal devices. The method includes receiving a command of a user to open a designated file; acquiring non-text content attributes when identifiers for identifying non-text contents exist in the designated file; searching and acquiring current resources corresponding to the non-text contents according to the non-text content attributes; and outputting the current resources of the non-text contents on the basis of the contents of the designated file. In the method, the current resources of the non-text contents are acquired in real time according to the non-text contents when the file contained the non-text contents is opened, so that even information corresponding to the non-text contents is rectified, updated resources can be outputted as well, the problem of inconformity of information of the terminal device caused by the rectification of the resources corresponding to the non-text contents is avoided. Besides, the purpose of recording is achieved, and meanwhile, accuracy of displayed contents is guaranteed.

Description

Document handling method, device and terminal device
Technical field
The present invention relates to the terminal device field, particularly a kind of document handling method, device and terminal device.
Background technology
Along with the development of intelligent mobile terminal, people can utilize portable terminal simply to handle official business and operation such as written record.In order to realize functions such as written record, portable terminal provides some text instruments, for example: memo, p.m.entry etc.
For the form of expression of rich text instrument, some text instruments also provide the insertion function of non-content of text simultaneously, for example insert picture, contact person etc.General, insert non-content of text in the text in order to be implemented in, the text instrument provides the insertion interface, can select local resource by inserting interface, for example picture, contact person etc., and with the local resource insertion current file of selecting, the text instrument can be preserved these local resources hereof with the form of its support.
Describe in memo, to insert the artificial example of contact: be chosen in when inserting the contact person in the memo the user, can open the user communication record page to select by the insertion interface of memo, when the user selects to insert " Zhang San ", can in address list, extract Zhang San's telephone number, and in memo, be shown as follows: [Zhang San: 254232555]
In realizing process of the present invention, the inventor finds that there is following problem at least in correlation technique:
Because the local resource that inserts is to be extracted, to copy hereof, preserve hereof be the version that copies of this local resource, therefore, when the local resource that inserts changes, the copying version and can not make response of this local resource of preserving in the file, make that information can not be unified on same portable terminal, can not reach the purpose of record.For example: when Zhang San's telephone number changed, the telephone number that inserts in the memo can not change.
Summary of the invention
For fear of the skimble-scamble problem of non-content of text that changes and cause owing to the local resource content of inserting the object correspondence, the embodiment of the invention provides a kind of document handling method, device and terminal device.Described technical scheme is as follows:
On the one hand, provide a kind of document handling method, described method comprises:
Receive the instruction that the user opens specified file;
When having the identifier that is used for the non-content of text of sign in the described specified file, obtain non-content of text attribute;
Search and obtain the current resource of described non-content of text correspondence according to described non-content of text attribute;
Based on the content of text of described specified file, export the current resource of described non-content of text correspondence.
When having the identifier that is used for the non-content of text of sign in the described specified file, to obtain before the described non-content of text attribute, described method also comprises:
When receiving the instruction of in described specified file, inserting non-content of text, based on the corresponding non-content of text attribute of described instruction, obtain and the corresponding identifier of described non-content of text attribute, insert described identifier and described non-content of text in the corresponding position of described instruction.
The current resource of searching and obtain described non-content of text correspondence according to described non-content of text attribute comprises:
When described non-content of text attribute is used to indicate local resource, based on described non-content of text attribute, obtain the resource store path of described non-content of text attribute correspondence; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
When described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtains the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
Based on the content of text of described specified file, the current resource of exporting described non-content of text correspondence comprises:
According to the analysis mode of described non-content of text correspondence, the current resource of described non-content of text correspondence is resolved;
When the content of text of the described specified file of output, in the described specified file current resource corresponding with the described non-content of text of the corresponding position display of described identifier.
Described non-content of text attribute comprises multimedia file, contact person, network address, bookmark, shortcut, user-defined file or the file content that can obtain by address reference.
On the other hand, provide a kind of document handling apparatus, described device comprises:
Receiver module is used for receiving the instruction that the user opens specified file;
The attribute acquisition module is used for obtaining non-content of text attribute when there is the identifier that is used for the non-content of text of sign in described specified file;
The content acquisition module is for the current resource of searching and obtain described non-content of text correspondence according to described non-content of text attribute;
Output module is used for the content of text based on described specified file, exports the current resource of described non-content of text correspondence.
Described device also comprises:
Insert module, be used for when receiving when described specified file inserts the instruction of non-content of text, based on the corresponding non-content of text attribute of described instruction, obtain and the corresponding identifier of described non-content of text attribute, insert described identifier and described non-content of text in the corresponding position of described instruction.
Described content acquisition module comprises:
The first content acquiring unit is used for based on described non-content of text attribute, obtaining the resource store path of described non-content of text attribute correspondence when described non-content of text attribute is used to indicate local resource; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
The second content acquiring unit, be used for when described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtain the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
Described output module comprises:
Resolution unit is used for the analysis mode according to described non-content of text correspondence, and the current resource of described non-content of text correspondence is resolved;
Output unit is used for when the content of text of the described specified file of output, in the described specified file current resource corresponding with the described non-content of text of the corresponding position display of described identifier.
Described non-content of text attribute comprises multimedia file, contact person, network address, bookmark, shortcut, user-defined file or the file content that can obtain by address reference.
Another aspect, a kind of terminal device is provided, terminal device includes storer, and one or more than one program, one of them or an above procedure stores and are configured to be carried out by the above processor of or and state one or an above program and comprise be used to the instruction of carrying out following operation in storer:
Receive the instruction that the user opens specified file;
When having the identifier that is used for the non-content of text of sign in the described specified file, obtain non-content of text attribute;
Search and obtain the current resource of described non-content of text correspondence according to described non-content of text attribute;
Based on the content of text of described specified file, export the current resource of described non-content of text correspondence.
The beneficial effect that the technical scheme that the embodiment of the invention provides is brought is:
By when opening the file that comprises non-content of text, according to the real-time current resource of obtaining this non-content of text of non-content of text, even having guaranteed the information of non-content of text correspondence changes, also can export the resource after the renewal, the skimble-scamble problem of terminal device information of having avoided the resource owing to non-content of text correspondence to change and cause, in the purpose that has reached record, guaranteed the accuracy of displaying contents.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of document handling method of providing of the embodiment of the invention;
Fig. 2 is the process flow diagram of a kind of document handling method of providing of the embodiment of the invention;
Fig. 3 is the structural representation of a kind of document handling apparatus of providing of the embodiment of the invention;
Fig. 4 is the structural representation of the related terminal device of the embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Fig. 1 is the process flow diagram of a kind of document handling method of providing of the embodiment of the invention.Referring to Fig. 1, described method comprises:
101, receive the instruction that the user opens specified file;
This specified file can refer to the file that memo, p.m.entry or other text instruments are supported.
102, when having the identifier that is used for the non-content of text of sign in this specified file, obtain this non-content of text attribute;
Wherein, this non-content of text attribute includes but not limited to multimedia file, contact person, network address, bookmark, shortcut, the user-defined file that can obtain by address reference or file content etc.As preferred embodiment a kind of, above-mentioned multimedia file can comprise picture, audio file, video file etc.
Need to prove that different non-content of text attributes are corresponding to different identifiers, to avoid obscuring between the identifier, for example, the corresponding identifier of picture file be " ", the corresponding identifier of contact person is " ## ".
In embodiments of the present invention, preserve the database of setting up in advance on the local terminal equipment, this database is for the corresponding relation between the resource store path of identifier, non-content of text attribute and the non-content of text of preserving non-content of text.
103, search and obtain the current resource of described non-content of text correspondence according to described non-content of text attribute;
104, based on the content of text of this specified file, export the current resource of this non-content of text correspondence.
The method that the embodiment of the invention provides, by when opening the file that comprises non-content of text, according to the real-time current resource of in local resource, obtaining this non-content of text of non-content of text, even having guaranteed the information of non-content of text correspondence changes, also can export the resource after the renewal, the skimble-scamble problem of terminal device information of having avoided the local resource owing to non-content of text correspondence to change and cause in the purpose that has reached record, has guaranteed the accuracy of displaying contents.
Preferable, when having the identifier that is used for the non-content of text of sign in this specified file, to obtain before this non-content of text attribute, this method also comprises:
When receiving the instruction of in this specified file, inserting non-content of text, based on the corresponding non-content of text attribute of this instruction, obtain and the corresponding identifier of this non-content of text attribute, insert this identifier and this non-content of text in the corresponding position of this instruction.
Preferable, from the local resource of this non-content of text attribute correspondence, the current resource of obtaining this non-content of text correspondence comprises:
Based on this non-content of text attribute, obtain the resource store path of this non-content of text attribute correspondence;
Based on this resource store path, in this resource store path, be index with this non-content of text, obtain the current resource of this non-content of text correspondence.
Preferable, based on the content of text of this specified file, the current resource of exporting this non-content of text correspondence comprises:
According to the analysis mode of this non-content of text correspondence, the current resource of this non-content of text correspondence is resolved;
When the content of text of this specified file of output, in this specified file current resource corresponding with this non-content of text of the corresponding position display of this identifier.
The method that the embodiment of the invention provides, by when opening the file that comprises non-content of text, according to the real-time current resource of obtaining this non-content of text of non-content of text, even having guaranteed the information of non-content of text correspondence changes, also can export the resource after the renewal, the skimble-scamble problem of terminal device information of having avoided the resource owing to non-content of text correspondence to change and cause in the purpose that has reached record, has guaranteed the accuracy of displaying contents.
Fig. 2 is the process flow diagram of a kind of document handling method of providing of the embodiment of the invention.Referring to Fig. 2, this inventive embodiments specifically comprises:
201, receive the instruction that the user opens specified file;
Before this step 201, this method also comprises step 200: when receiving the instruction of inserting non-content of text in this specified file, based on the corresponding non-content of text attribute of this instruction, obtain and the corresponding identifier of this non-content of text attribute, insert this identifier and this non-content of text in the corresponding position of this instruction.Wherein, this specified file can be the file of current establishment, can also be existing file.
In the present embodiment, specified file is that example describes with the memo file.
202, the content of text in the parsing specified file;
Terminal device is resolved the content of text in the specified file according to default analysis mode.It is corresponding with the coded system of specified file to preset analysis mode, and the embodiment of the invention is not done restriction to this.
203, when having the identifier that is used for the non-content of text of sign in this specified file, obtain this non-content of text attribute;
In the present embodiment, non-content of text specifically refers to showing when output, is presented as the content of non-pure character string, for example can for: picture, business card, express delivery odd numbers, have email address that hyperlink points to etc.
Terminal device when having the identifier that is used for the non-content of text of sign in knowing specified file, can determine that this specified file is inserted with non-content of text in the indicated position of this identifier in the process that specified file is resolved.As, when judgement obtain comprising in the current specified file " " time, illustrate that then this specified file is inserted with picture in this position.
When in determining this specified file, being inserted with non-content of text, according to the corresponding relation between the resource store path of identifier, non-content of text attribute and non-content of text of the non-content of text of storage in advance, obtain the non-content of text attribute of this identifier correspondence.
For example, when the user insert be picture the time, then identifier concrete can for "
Figure BDA00003284062300072
12345678 ", wherein, " " be the identifier that to be used to indicate current non-content of text attribute be picture, " 12345678 " are for being used to indicate the field of this non-content of text;
In embodiments of the present invention, when non-content of text attribute is the contact person, preferably, the data layout of this non-content of text comprises: identifier and field, and preferably, identifier is made up of second " ## " at first " ## " and field end, field is made up of telephone number, " @ ", name of contact person, be that example describes with this data layout only in embodiments of the present invention, in actual scene, this data layout can also only comprise the part in identifier and the field.
For example, when the user insert be the contact person time, when the user insert be the contact person time, what then identifier was concrete can be " ##254232555@ Zhang San ## ", wherein, first " ## " is contact person's identifier for being used to indicate current non-content of text attribute, " 254232555@ Zhang San " is for being used to indicate the field of this non-content of text, the terminating symbol of the current identifier of second " ## " expression, wherein, " 254232555 " are contact person's telephone number, and " Zhang San " is contact person's name.
204, based on this non-content of text attribute, search and obtain the current resource of this non-content of text attribute correspondence;
Wherein, the current resource of non-content of text correspondence can be local resource or Internet resources, and then non-content of text is used to indicate local resource or Internet resources.Correspondingly, for the different non-content of text that inserts, need in different resources, to carry out searching of current resource, for example:
When the non-content of text that inserts is contact person's business card, then need in local resource (All Contacts's business card of local storage), carry out searching of current resource in memo;
In memo, insert when the express delivery odd numbers, then need in Internet resources (databases of handling details are followed the tracks of in the express delivery that express delivery manufacturer provides), carry out searching of current resource.
Below above-mentioned two kinds of situations are specifically described respectively:
(1) when described non-content of text attribute is used to indicate local resource, need in local resource, search the current resource of non-content of text attribute correspondence, this step 204 comprises the steps:
204-1, based on this non-content of text attribute, obtain the resource store path of this non-content of text attribute correspondence;
As preferred embodiment a kind of, according to the corresponding relation between the resource store path of identifier, non-content of text attribute and the non-content of text of the non-content of text of preserving in advance, obtain the resource store path of this non-content of text attribute correspondence.
Be that example describes with following non-content of text attribute only, when the corresponding non-content of text attribute of identifier was multimedia file, the resource store path of this non-content of text attribute correspondence shone upon local multimedia file folder; When the corresponding non-content of text attribute of identifier was picture, the resource store path of this non-content of text attribute correspondence shone upon local photograph album; Or when the non-content of text attribute of identifier correspondence was the contact person, the resource store path of this non-content of text attribute correspondence shone upon local address list; Or, when the corresponding non-content of text attribute of identifier is the user-defined file that can obtain by address reference, resource store path mapping this document of this non-content of text attribute correspondence.
204-2, based on this resource store path, in this resource store path, be index with this non-content of text, obtain the current resource of this non-content of text correspondence;
This non-content of text is a field or hyperlink, and this field in fact can be file identification or file name or the document keyword etc. for the corresponding resource of inquiry, and hyperlink can be used for shining upon the resource store path of non-content of text.
Being that example describes with following non-content of text attribute only, when the corresponding non-content of text attribute of identifier is multimedia file, is index with this non-content of text in multimedia file folder, obtains the current resource of this non-content of text correspondence; When the corresponding non-content of text attribute of identifier is picture, in local photograph album, be index with this non-content of text, obtain the current resource of this non-content of text correspondence; Or, when the non-content of text attribute of identifier correspondence is the contact person, in local address list, be index with the name field in this non-content of text, obtain the current resource of this non-content of text correspondence; Or, when the corresponding non-content of text attribute of identifier is the user-defined file that can obtain by address reference, in this document name, be index with this non-content of text, obtain the current resource of this non-content of text correspondence.
For example, be that " ## " is example with detected identifier, the non-content of text of object that current insertion then is described is a contact person.As, the non-content of text that reads is " ##254232555@ Zhang San ## ", then inquires about from this this locality address list according to " Zhang San ", obtains the current telephone number of Zhang San.
The situation that is the contact person with non-content of text attribute describes, because contact person's name generally can not change, therefore, can search this contact person's up-to-date resource according to the contact person's who inserts in the specified file name in local address list.
(2) when described non-content of text attribute is used to indicate Internet resources, need in Internet resources, search the current resource of non-content of text attribute correspondence, this step 204 can adopt following method:
Obtain the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
For example: when the non-content of text that inserts in the memo was the express delivery odd numbers of A express company, then the query interface that provides by this A company returned the express delivery odd numbers to its database, searched the last state of this express delivery list as current resource.
205, according to the analysis mode of this non-content of text correspondence, the current resource of this non-content of text correspondence is resolved;
Need to prove that different non-content of text attributes can after having determined non-content of text attribute, according to the analysis mode of this non-content of text correspondence, be resolved the current resource of this non-content of text correspondence corresponding to different analysis modes.
206, when the content of text of this specified file of output, in this specified file current resource corresponding with this non-content of text of the corresponding position display of this identifier.
As preferred embodiment a kind of, information and non-content of text attribute included in the current resource of the non-content of text correspondence of above-mentioned demonstration have direct relation, when non-content of text attribute is picture, the current resource that shows is picture, and when non-content of text attribute is the contact person, the current resource that shows can comprise head portrait, telephone number, name etc., and the information of demonstration can define by user or developer.
In addition, current resource for non-content of text, the form output of all right hyperlink, when the user clicks this hyperlink, show the resource content of hyperlink correspondence, as serving as that the artificial example of contact describes with non-content of text, when when showing specified file, can show hyperlink in the insertion position of this non-content of text, make to show this contact person's business card when the user clicks this hyperlink.
Be that hyperlink is that example describes with this non-content of text attribute again, the non-content of text that comprises in specified file is an express delivery odd numbers, and when this non-content of text attribute is hyperlink, then inquire about the latest news of express delivery according to this piece odd numbers, and show this latest news in the position of this non-content of text correspondence of specified file.
Need to prove, if when in specified file, inserting this non-content of text, this non-content of text correspondence be content 1, telephone number as contact person Zhang San is " 010101 ", and by the response to instructing when the front opening specified file, from local resource, carried out real-time inquiry according to this non-content of text, the Zhang San's who gets access to telephone number is " 254232555 ", then on the basis of the content of text of specified file, show Zhang San's name and the telephone number after the renewal, a plurality of information that certainly, can also show this non-content of text correspondence.At this moment, different in initial resource when inserting non-content of text shown resource with when front opening the time, shown resource is the up-to-date resource of this non-content of text correspondence, also for providing continuous user, the terminal user experiences owing to the change situation of the information inconsistency that causes of local resource with regard to having avoided.
The method that the embodiment of the invention provides, by when opening the file that comprises non-content of text, according to non-content of text real-time from network or the local current resource of obtaining this non-content of text, even having guaranteed the information of non-content of text correspondence changes, also can export the resource after the renewal, the skimble-scamble problem of terminal device information of having avoided local resource or Internet resources owing to non-content of text correspondence to change and cause, in the purpose that has reached record, guaranteed the accuracy of displaying contents.
Fig. 3 is the structural representation that the embodiment of the invention provides a kind of document handling apparatus.Referring to Fig. 3, this device comprises:
Receiver module 301 is used for receiving the instruction that the user opens specified file;
Attribute acquisition module 302 is used for obtaining this non-content of text attribute when there is the identifier that is used for the non-content of text of sign in this specified file;
Content acquisition module 303 is for the current resource of searching and obtain described non-content of text correspondence according to described non-content of text attribute;
Output module 304 is used for the content of text based on this specified file, exports the current resource of this non-content of text correspondence.
Preferable, this device also comprises:
Insert module, be used for when receiving when this specified file inserts the instruction of non-content of text, based on the corresponding non-content of text attribute of this instruction, obtain and the corresponding identifier of this non-content of text attribute, insert this identifier and this non-content of text in the corresponding position of this instruction.
Preferable, this content acquisition module comprises:
The first content acquiring unit is used for based on described non-content of text attribute, obtaining the resource store path of described non-content of text attribute correspondence when described non-content of text attribute is used to indicate local resource; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
The second content acquiring unit, be used for when described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtain the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
This preferable output module comprises:
Resolution unit is used for the analysis mode according to this non-content of text correspondence, and the current resource of this non-content of text correspondence is resolved;
Output unit is used for when the content of text of this specified file of output, in this specified file current resource corresponding with this non-content of text of the corresponding position display of this identifier.
The non-content of text attribute of preferable this comprises multimedia file, contact person, network address, bookmark, shortcut, user-defined file or the file content that can obtain by address reference.
The device that the embodiment of the invention provides, by when opening the file that comprises non-content of text, according to the real-time current resource of obtaining this non-content of text of non-content of text, even having guaranteed the information of non-content of text correspondence changes, also can export the resource after the renewal, the skimble-scamble problem of terminal device information of having avoided the resource owing to non-content of text correspondence to change and cause in the purpose that has reached record, has guaranteed the accuracy of displaying contents.
Need to prove: the document handling apparatus that above-described embodiment provides is when file processing, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the inner structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the document handling apparatus that above-described embodiment provides and document handling method embodiment belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The all or part of step that one of ordinary skill in the art will appreciate that realization above-described embodiment can be finished by hardware, also can instruct relevant hardware to finish by program, the program of being somebody's turn to do can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
Fig. 4 is the structural representation of the related terminal device of the embodiment of the invention, and this terminal device can be used for implementing the document handling method that above-described embodiment provides.Specifically:
Terminal device 400 can comprise RF(Radio Frequency, radio frequency) parts such as circuit 110, the storer 120 that includes one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, the processor 180 that includes processing core more than or and power supply 190.It will be understood by those skilled in the art that the terminal device structure shown in Fig. 4 does not constitute the restriction to terminal device, can comprise than the more or less parts of diagram, perhaps make up some parts, perhaps different arrangements of components.Wherein:
RF circuit 110 can be used for receiving and sending messages or communication process in, the reception of signal and transmission especially, after the downlink information of base station received, are transferred to one or an above processor 180 and are handled; In addition, will be referred to up data and send to the base station.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by operation, and various functions are used and data are handled thereby carry out.Storer 120 can mainly comprise storage program area and storage data field, wherein, but the required application program (such as sound-playing function, image playing function etc.) of storage program area storage operating system, at least one function etc.; The data (such as voice data, phone directory etc.) created according to the use of terminal device 400 etc. can be stored in the storage data field.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, so that the visit of processor 180 and 130 pairs of storeies 120 of input block to be provided.
Input block 130 can be used for receiving numeral or the character information of input, and generation is imported with the user arranges and function control is relevant keyboard, mouse, control lever, optics or trace ball signal.Preferably, input block 130 can comprise tactile sensitive surfaces 131 and other input equipments 132.Touch sensitive surfaces 131, be also referred to as touch display screen or Trackpad, can collect the user or near touch operation (using any suitable object such as finger, stylus or annex touching on the sensitive surfaces 131 or touching near the sensitive surfaces 131 operation such as the user) thereon, and drive corresponding coupling arrangement according to predefined formula.Optionally, touch sensitive surfaces 131 and can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, gives processor 180 again, and the order that energy receiving processor 180 is sent is also carried out.In addition, can adopt polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize touching sensitive surfaces 131.Except touching sensitive surfaces 131, input block 130 can also comprise other input equipments 132.Preferably, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, the control lever etc.
Display unit 140 can be used for showing the information of being imported by the user or offer user's information and the various graphical user interface of terminal device 400 that these graphical user interface can be made of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, can adopt LCD (Liquid Crystal Display, LCD), OLED forms such as (Organic Light-Emitting Diode, Organic Light Emitting Diodes) to dispose display panel 141.Further, touch sensitive surfaces 131 and can cover display panel 141, when touch that sensitive surfaces 131 detects thereon or near touch operation after, send processor 180 to determining the type of touch event, provide corresponding vision output according to the type of touch event at display panel 141 with preprocessor 180.Though in Fig. 4, touch sensitive surfaces 131 and display panel 141 and be as two independently parts realize input and input function, in certain embodiments, can will touch the integrated and realization input and output function of sensitive surfaces 131 and display panel 141.
Terminal device 400 also can comprise at least a sensor 150, such as optical sensor, motion sensor and other sensors.Preferably, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated the brightness of display panel 141 according to the light and shade of ambient light, proximity transducer can cut out display panel 141 and/or backlight when terminal device 400 moves in one's ear.A kind of as motion sensor, the acceleration of gravity sensor can detect the size of the acceleration that (is generally three) on all directions, size and the direction of gravity be can detect when static, the application (such as shielding switching, dependent game, the calibration of magnetometer attitude anyhow), Vibration identification correlation function (such as passometer, knock) etc. of mobile phone attitude can be used for identifying; As for terminal device 400 other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and the terminal device 400.Voicefrequency circuit 160 can be transferred to loudspeaker 161 with the electric signal after the voice data conversion that receives, and is converted to voice signal output by loudspeaker 161; On the other hand, microphone 162 is converted to electric signal with the voice signal of collecting, by being converted to voice data after voicefrequency circuit 160 receptions, after again voice data output processor 180 being handled, to send to such as another terminal device, perhaps export voice data to storer 120 in order to further handle through RF circuit 110.Voicefrequency circuit 160 also may comprise earphone jack, so that communicating by letter of peripheral hardware earphone and terminal device 400 to be provided.
WiFi belongs to the short range wireless transmission technology, terminal device 400 by WiFi module 170 can help that the user sends and receive e-mail, browsing page and visit streaming video etc., it provides wireless broadband internet visit for the user.Though Fig. 4 shows WiFi module 170, be understandable that it does not belong to must constituting of terminal device 400, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 180 is control centers of terminal device 400, utilize various interface to be connected the various piece of whole mobile phone with circuit, by moving or carry out software program and/or the module that is stored in the storer 120, and call the data that are stored in the storer 120, carry out various functions and the deal with data of terminal device 400, thereby mobile phone is carried out integral monitoring.Optionally, processor 180 can comprise one or more processing cores; Preferably, processor 180 can integrated application processor and modem processor, and wherein, application processor is mainly handled operating system, user interface and application program etc., and modem processor is mainly handled radio communication.Be understandable that above-mentioned modem processor also can not be integrated in the processor 180.
Terminal device 400 comprises that also the power supply 190(that powers to each parts is such as battery), preferably, power supply can link to each other with processor 180 logics by power-supply management system, thereby realizes functions such as management charging, discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or random component such as AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown, terminal device 400 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal device is touch-screen display, terminal device also includes storer, and one or more than one program, one of them or an above procedure stores and are configured to be carried out by the above processor of or and state one or an above program and comprise be used to the instruction of carrying out following operation in storer:
Receive the instruction that the user opens specified file;
When having the identifier that is used for the non-content of text of sign in the described specified file, obtain described non-content of text attribute;
From the local resource of described non-content of text attribute correspondence, obtain the current resource of described non-content of text correspondence;
Based on the content of text of described specified file, export the current resource of described non-content of text correspondence.
Preferable, this storer also is used for storage to give an order:
When receiving the instruction of in described specified file, inserting non-content of text, based on the corresponding non-content of text attribute of described instruction, obtain and the corresponding identifier of described non-content of text attribute, insert described identifier and described non-content of text in the corresponding position of described instruction.
Preferable, this storer also is used for storage to give an order:
When described non-content of text attribute is used to indicate local resource, based on described non-content of text attribute, obtain the resource store path of described non-content of text attribute correspondence; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
When described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtains the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
Preferable, this storer also is used for storage to give an order:
According to the analysis mode of described non-content of text correspondence, the current resource of described non-content of text correspondence is resolved;
When the content of text of the described specified file of output, in the described specified file current resource corresponding with the described non-content of text of the corresponding position display of described identifier.
Preferable, described non-content of text attribute comprises multimedia file, contact person, network address, bookmark, shortcut, the user-defined file that can obtain by address reference or file content etc.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. a document handling method is characterized in that, described method comprises:
Receive the instruction that the user opens specified file;
When having the identifier that is used for the non-content of text of sign in the described specified file, obtain non-content of text attribute;
Search and obtain the current resource of described non-content of text correspondence according to described non-content of text attribute;
Based on the content of text of described specified file, export the current resource of described non-content of text correspondence.
2. method according to claim 1 is characterized in that, when having the identifier that is used for the non-content of text of sign in the described specified file, obtains before the described non-content of text attribute, and described method also comprises:
When receiving the instruction of in described specified file, inserting non-content of text, based on the corresponding non-content of text attribute of described instruction, obtain and the corresponding identifier of described non-content of text attribute, insert described identifier and described non-content of text in the corresponding position of described instruction.
3. method according to claim 1 is characterized in that, the current resource of searching and obtain described non-content of text correspondence according to described non-content of text attribute comprises:
When described non-content of text attribute is used to indicate local resource, based on described non-content of text attribute, obtain the resource store path of described non-content of text attribute correspondence; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
When described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtains the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
4. method according to claim 3 is characterized in that, based on the content of text of described specified file, the current resource of exporting described non-content of text correspondence comprises:
According to the analysis mode of described non-content of text correspondence, the current resource of described non-content of text correspondence is resolved;
When the content of text of the described specified file of output, in the described specified file current resource corresponding with the described non-content of text of the corresponding position display of described identifier.
5. method according to claim 1 is characterized in that, described non-content of text attribute comprises multimedia file, contact person, network address, bookmark, shortcut, user-defined file or the file content that can obtain by address reference.
6. a document handling apparatus is characterized in that, described device comprises:
Receiver module is used for receiving the instruction that the user opens specified file;
The attribute acquisition module is used for obtaining non-content of text attribute when there is the identifier that is used for the non-content of text of sign in described specified file;
The content acquisition module is for the current resource of searching and obtain described non-content of text correspondence according to described non-content of text attribute;
Output module is used for the content of text based on described specified file, exports the current resource of described non-content of text correspondence.
7. device according to claim 6 is characterized in that, described device also comprises:
Insert module, be used for when receiving when described specified file inserts the instruction of non-content of text, based on the corresponding non-content of text attribute of described instruction, obtain and the corresponding identifier of described non-content of text attribute, insert described identifier and described non-content of text in the corresponding position of described instruction.
8. device according to claim 6 is characterized in that, described content acquisition module comprises:
The first content acquiring unit is used for based on described non-content of text attribute, obtaining the resource store path of described non-content of text attribute correspondence when described non-content of text attribute is used to indicate local resource; Based on described resource store path, in described resource store path, be index with described non-content of text, obtain the current resource of described non-content of text correspondence;
The second content acquiring unit, be used for when described non-content of text attribute is used to indicate Internet resources, based on described non-content of text attribute, obtain the interface of searching of this non-content of text attribute correspondence, and search interface is searched text content correspondence in Internet resources current resource by this.
9. device according to claim 7 is characterized in that, described output module comprises:
Resolution unit is used for the analysis mode according to described non-content of text correspondence, and the current resource of described non-content of text correspondence is resolved;
Output unit is used for when the content of text of the described specified file of output, in the described specified file current resource corresponding with the described non-content of text of the corresponding position display of described identifier.
10. device according to claim 7 is characterized in that, described non-content of text attribute comprises multimedia file, contact person, network address, bookmark, shortcut, user-defined file or the file content that can obtain by address reference.
11. portable terminal, it is characterized in that, comprise: storer, and one or more than one program, one of them or an above procedure stores and are configured to be carried out by the above processor of or and state one or an above program and comprise be used to the instruction of carrying out following operation in storer:
Receive the instruction that the user opens specified file;
When having the identifier that is used for the non-content of text of sign in the described specified file, obtain non-content of text attribute;
Search and obtain the current resource of described non-content of text correspondence according to described non-content of text attribute;
Based on the content of text of described specified file, export the current resource of described non-content of text correspondence.
CN201310215259.3A 2013-05-31 2013-05-31 Document handling method and device Active CN103279453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310215259.3A CN103279453B (en) 2013-05-31 2013-05-31 Document handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310215259.3A CN103279453B (en) 2013-05-31 2013-05-31 Document handling method and device

Publications (2)

Publication Number Publication Date
CN103279453A true CN103279453A (en) 2013-09-04
CN103279453B CN103279453B (en) 2016-08-17

Family

ID=49061978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310215259.3A Active CN103279453B (en) 2013-05-31 2013-05-31 Document handling method and device

Country Status (1)

Country Link
CN (1) CN103279453B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843789A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Rich text monitoring method and device
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783062A (en) * 2004-11-29 2006-06-07 国际商业机器公司 File editing device and file editing method
CN1790316A (en) * 2005-12-20 2006-06-21 无锡永中科技有限公司 Method of inserting and playing slide in file
CN1973285A (en) * 2004-06-24 2007-05-30 佳思腾软件公司 Document processing method and device
TW200905481A (en) * 2007-07-20 2009-02-01 Ensky Technology Co Ltd File processing apparatus and method therefor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1973285A (en) * 2004-06-24 2007-05-30 佳思腾软件公司 Document processing method and device
CN1783062A (en) * 2004-11-29 2006-06-07 国际商业机器公司 File editing device and file editing method
CN1790316A (en) * 2005-12-20 2006-06-21 无锡永中科技有限公司 Method of inserting and playing slide in file
US20080320380A1 (en) * 2005-12-20 2008-12-25 Guojun Pan Method for Inserting and Broadcasting Slides in a Document
TW200905481A (en) * 2007-07-20 2009-02-01 Ensky Technology Co Ltd File processing apparatus and method therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843789A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Rich text monitoring method and device
CN106775916A (en) * 2017-02-17 2017-05-31 北京金山安全软件有限公司 Method and device for reducing application installation packages and electronic equipment

Also Published As

Publication number Publication date
CN103279453B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
US20170286092A1 (en) Terminal device and version upgrading method
CN103279288B (en) Data transmission method, device and terminal unit
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
CN104281600B (en) The method and apparatus of Intelligent Selection word
CN103458016A (en) Method and device for picture management and terminal device
CN104123316A (en) Resource collection method, device and facility
CN103455582A (en) Display method of navigation page of browser and mobile terminal
CN107436948B (en) File searching method and device and terminal
CN103455330A (en) Application program management method, terminal, equipment and system
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN103605668A (en) Webpage bookmark storing method and device and mobile terminal
CN104424278B (en) A kind of method and device obtaining hot spot information
CN106921791A (en) The storage and inspection method of a kind of multimedia file, device and mobile terminal
CN103491245A (en) Method and device for storing short messages and terminal equipment
CN104216929A (en) Method and device for intercepting page elements
CN103399911A (en) Access processing method, device and terminal device on basis of browser client
CN103455583A (en) Method and device for establishing virtual directory and electronic equipment
CN104679724A (en) Page noting method and device
CN103310007A (en) Method, device and equipment for switching webpage
CN106951492A (en) File search method, device and electronic equipment
CN108270757A (en) A kind of user account switching method, device, client and system
CN103488720A (en) Method, system and client for viewing data
CN104063400A (en) Data search method and data search device
CN104731806B (en) A kind of method and terminal for quickly searching user information in social networks
CN103383701A (en) Information retrieving method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102 Beijing Wangjing West Road, a volume of stone world building, A, block, floor 12

Applicant before: Xiaomi Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100102 CHAOYANG, BEIJING TO: 100085 HAIDIAN, BEIJING

C14 Grant of patent or utility model
GR01 Patent grant