Background
The process of network interaction and content editing relates to the processing of a large number of texts, pictures and audios and videos, wherein a large number of contents which need to be repeatedly input exist, in the prior art, the contents of the texts which need to be repeatedly input are generally set as the output corresponding to the function keys, but the original functions of the function keys can be shielded by the method.
The method improves the input efficiency, but the corresponding relation between the shortcut key and the character content is fixed, the character content can not be modified after the editing page is input, the setting mode of the shortcut key is inflexible, and the quick input and the editing of the picture can not be realized.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a terminal shortcut input method, which can flexibly set a corresponding relationship between a shortcut key and a media content, and can implement shortcut input and editing of a picture.
The invention is realized by adopting the following scheme: a terminal shortcut input method specifically comprises the following steps:
step S1: the terminal starts shortcut key configuration according to a user request, and shortcut keys and placeholders corresponding to the shortcut keys are set in a shortcut key configuration interface;
step S2: inputting one or more placeholders in an editing mode, wherein media content corresponding to the input placeholders is blank content;
step S3: the terminal receives a request for configuring the placeholders to start placeholder configuration, sets media content corresponding to each placeholder in a placeholder configuration interface, and replaces the corresponding placeholder with the media content corresponding to the placeholder in the editing mode;
step S4: and when the terminal exits the editing mode, detecting whether the input content has a placeholder without media content, if so, prompting a user to process the corresponding placeholder, otherwise, directly exiting the editing mode.
Further, the setting of the media content corresponding to each placeholder in step S3 specifically includes: and selecting placeholders to be set and associating corresponding media content according to the prompt information corresponding to the placeholders, wherein the prompt information corresponding to each placeholder is the context information of the placeholder.
Further, the context information of the placeholder is identified by context information of the position of the placeholder; when the context information of the placeholder is a text, the context information is interception information of text characters, when the context information of the placeholder is a picture, the context information is interception information of characters of picture characteristic information, and when the context information of the placeholder is a combination of the text and the picture, the context information is interception information of combined characters of the text and the picture characteristic information.
Further, the step S3 further includes: and the terminal receives a request for modifying the placeholder configuration to start the modification of the placeholder configuration, selects the placeholder needing to modify the media content according to the prompt information of the placeholder and associates new media content.
Further, the media content is text or pictures existing on the terminal or the cloud server.
Further, the application containing the shortcut key configuration interface and the placeholder configuration interface is a software application, an APP or a software plug-in.
The setting of the shortcut key is to set the corresponding shortcut key by utilizing the combination of the characters and record the shortcut key into the input method, and the placeholder is a graphical style different from the characters of the input content.
Compared with the prior art, the invention has the following beneficial effects: according to the invention, the placeholder corresponding to the shortcut key is set, so that the placeholder is input in the editing mode of the terminal, after the user determines the media content corresponding to the placeholder, part or all of the placeholder is associated to the determined media content according to the prompt information of the placeholder, the corresponding placeholder is replaced by the media content in the editing mode, flexible and quick input is realized, the placeholder of part or all of the set media content can be further modified to associate new media content, and quick input and editing of pictures can be realized.
Detailed Description
The invention is further explained below with reference to the drawings and the embodiments.
As shown in fig. 1, the embodiment provides a terminal shortcut input method, which specifically includes the following steps:
s1, a terminal starts shortcut key configuration according to a user request, and shortcut keys and placeholders corresponding to the shortcut keys are set in a shortcut key configuration interface;
the shortcut key can be set in a mode of combining letters in the prior art or in a mode of combining the letters with other special characters, and then the finished shortcut key is set and recorded in the input method, wherein the placeholder is a graphic style different from the characters of the input content. For example, the shortcut key is set to zw #, and the corresponding placeholder is set to the open rectangle □ or the solid rectangle ■, in a specific implementation, the graphic style of the placeholder can be selected, added, and configured according to the user preference and requirement.
Input zw # in english input mode and replace the input zw # with the corresponding placeholder as confirmed by carriage return. Inputting zw # in a Chinese input mode, displaying placeholders in a candidate set of an input method prompt box, selecting numbers corresponding to the placeholders according to the number arrangement sequence of the candidate set, and inputting the placeholders in an editing mode; and the number arrangement order of the placeholder in the candidate set can be set, for example, the number arrangement order of the placeholder corresponding to the shortcut key zw # in the candidate set is set to 1, and the corresponding placeholder can be input by directly pressing the space key after the prompt box appears when the input zw # appears.
S2, inputting one or more placeholders in the editing mode, wherein the media content corresponding to the input placeholders is blank content;
specifically, in the editing mode of the terminal, one or more placeholders □ are input through the shortcut zw #, and at this time, the media content corresponding to the input placeholder □ is empty.
S3, the terminal receives a request for configuring the placeholders to start placeholder configuration, sets media content corresponding to each placeholder in a placeholder configuration interface, and replaces the corresponding placeholder with the media content corresponding to the placeholder in the editing mode;
the setting of the media content corresponding to each placeholder specifically includes: selecting placeholders to be set and associating corresponding media content according to the prompt information corresponding to the placeholders, wherein the prompt information corresponding to each placeholder is the context information of the placeholder;
the application comprising the shortcut key configuration interface and the placeholder configuration interface can be an independent software application or APP, or can be a software plug-in installed on the input method software or the content editing software and associated with the input method software and/or the content editing software, and the media content is a text or a picture existing on the terminal or the cloud server.
The context information of the placeholder is the context information identifier of the position where the placeholder is located, and when the context information of the placeholder is all text, the context information is intercepted information of text characters, for example, the front and/or rear 10 characters closest to the placeholder □ in the text characters are intercepted as the context information of the placeholder; when the context information of the placeholder is all pictures, the context information is interception information of characters of picture feature information, wherein the picture feature information is picture related information containing data such as picture names, picture content description, picture sizes and the like, for example, the front and/or rear 10 characters closest to the placeholder □ in the picture feature information characters of the intercepted pictures are used as the context information of the placeholder; when the context information of the placeholder is a combination of text and picture, and the context information is intercepted information of a combined character of characters and picture feature information, for example, when the placeholder □ has both picture and characters before and/or after, then the front and/or back 10 characters closest to the placeholder □ in the combined character of the text and picture feature information are intercepted as the context information of the placeholder. In the above cases, according to actual needs, the context information of the placeholder may also be intercepted by different numbers of characters before and after the closest placeholder, for example, the context information of the placeholder is intercepted by the first 12 characters and the last 8 characters of the closest placeholder □.
And S4, when the terminal exits the editing mode, detecting whether the input content has a placeholder without media content, if so, prompting a user to process the corresponding placeholder, and otherwise, directly exiting the editing mode.
In order to avoid that the final input content has a placeholder without media content, which causes content confusion, when the input content exits the editing mode, detecting whether the input content has a placeholder □ without media content, if so, prompting a user to process the corresponding placeholder, wherein the user can select to continuously configure the placeholder to set the media content with a blank media content placeholder according to the actual situation, and can also select to delete or hide the blank media content placeholder in the editing mode, wherein the hidden blank media content placeholder can be redisplayed in the editing mode; otherwise, directly exiting the editing mode.
After media content corresponding to each placeholder is set and the placeholder is replaced by the media content corresponding to the placeholder in the editing mode, a request for modifying the placeholder configuration can be received by the terminal to start modification of the placeholder configuration, and according to prompt information of the placeholder, the placeholder of the media content needing to be modified is selected and new media content is associated to achieve flexible modification of the media content corresponding to the placeholder.
Referring to fig. 2, a flowchart of a method for configuring placeholders in this embodiment is shown, which specifically includes the following steps:
s11, setting a context information range corresponding to the placeholder;
s22, setting an interception range of the intercepted information corresponding to the placeholder;
s33, generating prompt information corresponding to each placeholder according to the context information range and the interception range of the intercepted information;
and S44, selecting the placeholder to be set and associating the placeholder with corresponding media content according to the prompt message corresponding to the placeholder.
FIG. 3 is a schematic diagram of an interface for configuring and modifying placeholder media content according to the present embodiment.
Setting a context information range corresponding to a placeholder in advance as 80 characters before and after the placeholder, setting an interception range of the interception information as 30 characters before and after the placeholder, and accordingly generating prompt information corresponding to the placeholder, wherein the placeholder occupies 1 character by default, for example, 6 placeholders □ and ■ are input in an editing mode of a terminal, and specific input content comprises 4 content A: "residence is □, address is ■", and 2 contents B: often the residence is □, with an address of ■ ".
The two placeholders are configured by first selecting placeholder □ in the upper left corner, by clicking the find button on the interface, entering "home is" in the search box of the search and determining to search for the input in the prompt corresponding to placeholder □, and selects placeholder □ in 4 content a on the interface, e.g., highlights or bulges the 4 placeholders, clicks a configuration button on the interface, inquiring whether the user configures the placeholder into a character or a picture in a pop-up prompt box, selecting the character to input 'X city' and determining, continuing to search for 'frequently-living places are' selecting 2 placeholders and then configuring and selecting the character to input 'Y city' and determining, the above-mentioned 4 contents a are replaced with "place of residence is X city, address is ■", and 2 contents B are replaced with "place of frequent residence is Y city, address is ■" in the input mode of the terminal. This completes the configuration of placeholder □. The placeholder 9632; corresponding prompt information will detect the change and update in real time as the media content of the placeholder □ is configured.
Then, the placeholder is selected in the upper left corner, 9632is selected, the search for the placeholder with the address & & the place of residence is clicked and the placeholder of the 4 contents a is determined to be selected on the interface, 9632is selected, for example, the 4 placeholders are highlighted or protruded, a configuration button is clicked, the user is asked in a pop-up prompt box to configure the placeholder into a text or a picture, the text input of the text "square and round road" is selected and determined, the search for the placeholder with the address & & the place of frequent residence of the user is continued and then the text input of the text "sum and parallel road" is selected and determined, and then the 4 contents a are further replaced by "the place of residence is X, the address of the square and round road", and the 2 contents B are replaced by "the place of frequent residence is Y city, and the address of the sum and parallel road" in the input mode of the terminal. This completes the configuration of placeholders □ and ■.
Further, in the embodiment, the method comprises the steps of selecting a placeholder \9632searchingand searching for the placeholder \9632withthe address & & the place of residence being ' and determining to select the placeholder \9632inthe 4 contents A on the interface, for example, highlighting or protruding the 4 placeholders, clicking a modification button of the interface, inquiring whether the media content is modified into characters or pictures in a pop-up prompt box by a user, selecting the pictures, selecting a picture storage address through a local or cloud path and then determining, so that the character contents ' square and round paths ' corresponding to the 4 placeholders ■ can be modified into the picture contents displaying the path position information; the search is continued for "address & & frequent residence is" selecting the locator in 2 contents B ", clicking the modification button of the interface, inquiring the user in the pop-up prompt box whether to modify the media contents into characters or pictures, selecting the characters so as to modify the character contents" sum and level "corresponding to the 2 placeholders ■ into" civil road ", and the contents B become" frequent residence is Y city and address is democratic road ". This has been done to modify placeholders □ and ■.
Of course, after "□" or "■" is selected in the upper left corner, the corresponding "□" or "■" is manually clicked directly on the interface without a search function, and placeholders are highlighted or protruded to realize the selection of the placeholders.
In this embodiment, by setting the placeholder corresponding to the shortcut key, a placeholder is input in an editing mode of the terminal, after a user determines media content corresponding to the placeholder, a part or all of the placeholder is associated to the determined media content according to prompt information of the placeholder, and the corresponding placeholder is replaced by the media content in the editing mode, so that flexible and quick input is realized, the placeholder associated with new media content of the part or all of the set media content can be further modified subsequently, and quick input and editing of pictures can be realized.
The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.