Summary of the invention
For the defect of above prior art, the invention reside in document processing software, in the input network address perhaps during the text of E-mail address or file path name format, be automatically converted to the content of Ultra link attribute and shown.
Technical scheme of the present invention is:
A kind of method of automatic identification recommendation hyperlink label type, contain following steps:
1) determine user's chosen content;
2) receive the triggering command of inserting hyperlink;
3) according to default hyperlink naming rule storehouse, chosen content is compared the type of judgement hyperlink;
4) hyperlink that shows the Ultra link attribute frame and will have a step 3) judgement type is inserted;
5) will have the hyperlink that judges type and be added into described chosen content.
The invention allows for a kind of system of applying above method, comprising:
Input equipment, for the triggering command of user in selecting content input insertion hyperlink;
Processor, receive to insert the triggering command of hyperlink, determines user's chosen content, according to default hyperlink naming rule storehouse, chosen content compared the type of judgement hyperlink;
Display device, show the Ultra link attribute frame of having inserted the hyperlink with judgement type.
As a kind of of above technology, supplement, the type of described hyperlink comprises URL address, Email and filename.
As a kind of of above technology, supplement, while in chosen content, comprising the filename with imperfect pathname, under current or default file catalogue, search the file that meets this document name, and the complete path name that will find file is inserted in the Ultra link attribute frame of demonstration.
The invention allows for a kind of equipment that comprises the above system, described equipment is PC computer or mobile device.
The present invention judges whether the form that input content contains meets network address/E-mail address/forms such as file path name, is change and show the Ultra link attribute frame with hyperlink.By the present invention, when inserting hyperlink, can help user's suitable hyperlink type of identification automatically, and automatically insert corresponding properties settings, the step that simplifies the operation, increase work efficiency.
Embodiment
The present invention is directed to the content with specific format, simplify the manual step while adding Ultra link attribute.The present invention will carry out judgement and the identification of content for certain content, recommend reasonable, corresponding hyperlink label type.The flow process that simplifies the operation, increase work efficiency.
As shown in Figure 1, at first the user is selected need add the content of hyperlink, as chooses certain section content of text, certain cell or text box etc., and system identification goes out user's chosen content.The user triggers " insertion hyperlink " command function, and in the PC field, this can be by the realization of mouse button click, and in mobile application, this can shake equipment by the user, the user clicks certain button or the user uses the realizations such as certain gestures.System receives described command function, identify the content of hyperlink and carry out the content judgement, wherein system compares the naming rule in hyperlink content and default hyperlink naming rule storehouse, judges whether it meets specific naming rule, as URL address, Email, filename etc.System, according to result of determination, is selected corresponding hyperlink type automatically: webpage, Email, external file or other type.Final system is in the result of automatically inserting above identification in property box that fills out of the selected content of correspondence.
In a specific embodiment of the present invention, the at first selected linked contents that needs identification of user, such as by towing, selecting one section URL address www.urlformat.com, after selected, trigger and insert the hyperlink order, system is according to behind hyperlink naming rule storehouse, judging that this content is the URL address, in hyperlink, the page is set, Lookup protocol hyperlink type is " webpage ", and, in " address " item, automatically inserts this address.
In another embodiment, the selected linked contents that needs identification of user, such as an E-mail address usrename@user.com, after selected, trigger and insert the hyperlink order, system is according to behind hyperlink naming rule storehouse, judging that this content is E-mail address, in hyperlink, the page is set, Lookup protocol hyperlink type is " E-mail address ", and, in " e-mail address " item, automatically inserts this E-mail address.
In another embodiment, the user is after the selected linked contents that need identify, as select the content C:/Documents/file.doc in one section include file path, trigger and insert the hyperlink order, system is according to behind hyperlink naming rule storehouse, judging that this content is file path, in hyperlink, arrange in " address " item of the page, automatically insert this address.
In another embodiment, the selected linked contents that needs identification of user, as the content file.doc of one section include file name, after selecting, trigger and insert the hyperlink order, system judges that this content is file path, under the current or default file catalogue of automatic search, whether there is the file that meets this document name, in this way, in hyperlink, arrange in " address " of the page, automatically insert this document address, simultaneously file browser is positioned in this catalogue.
Certainly, where necessary, the user can be in the Ultra link attribute frame, and namely above-described hyperlink arranges in " address " item of the page, revises hyperlink to required address.
Therefore, automatic identification proposed by the invention is also recommended the method for hyperlink label type and the system of adopting said method can be identified hyperlink automatically and according to its content Lookup protocol type and attribute item, and wherein interpretable hyperlink form is not limited to the forms such as URL address, E-mail address, file path.In addition, only during the include file name, whether retrieval has the target location of suitable recommendable file as hyperlink under current or default file catalogue automatically in the hyperlink content.
The present invention, by the form of default hyperlink rule base judgement input content, searches user-selected content and whether meets the forms such as network address/E-mail address, is to change to provide hyperlink.When inserting hyperlink, the present invention can help user's suitable hyperlink type of identification automatically, and automatically inserts corresponding properties settings, and the step that simplifies the operation, increase work efficiency.
The present invention is except above-mentioned embodiment, and its equivalent technical solutions also should, within its protection domain, be narrated at this no longer one by one.