Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the 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 data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as 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.
The information input method provided by the embodiment of the application is described in detail below through some embodiments and application scenarios thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is one of flowcharts of an information input method provided in an embodiment of the present application. As shown in fig. 1, the information input method may include the steps of:
and step 101, displaying N input templates on the editing page, wherein N is a positive integer.
In a first implementation manner, the electronic device may display the N input templates when an editing page is opened, that is, in the editing page; in the second implementation manner, after the electronic device opens the editing page and receives the first input, the N input templates are displayed on the editing page in response to the first input, which may be specifically determined according to the actual situation, and the embodiment of the present application is not limited to this.
For the second implementation manner, if the electronic device does not receive the first input, the user may directly input information in the editing page, and at this time, the input information is displayed according to the default display of the editing page. In a specific implementation, the first input may be a touch input to a target control in an editing page, where the target control is used to invoke the N input templates, and the target control may be always displayed in the editing page or invoked through other inputs. The first editing input may also be input of the electronic device for turning over or a sliding input with a sliding direction being a preset sliding direction, and the first editing input may be specifically determined according to an actual situation, which is not limited in the embodiment of the present application.
In an embodiment of the present application, the N input templates may include: at least one text entry template, at least one picture entry template.
In a specific implementation, in one implementation, each input template may display a name and display information corresponding to each input template. In another implementation, each text input template displays the same text according to the corresponding text display information, and each picture input template displays the same picture according to the corresponding picture display information. Therefore, the display information corresponding to the N input templates can be distinguished conveniently by a user, and the required input templates can be selected from the N input templates based on own requirements, so that the information input in the input templates can be close to or meet own requirements without editing after being input, and the editing probability of the information can be reduced.
The text display information corresponding to the text input template may include at least one of: text display style, font size, font color, font bolding, italics, underlining, transparency, highlighting color, paragraph display style, and the like.
The text display style may include, but is not limited to, at least one of:
Text display style 1: each paragraph of text is not provided with a sequence number and a subtitle;
text display style 2: each paragraph of the text is provided with a sequence number;
text display style 3: each paragraph of text is provided with a subtitle.
It will be appreciated that at least one item of text display information corresponding to different text input templates is different, for example: the font in the text display information corresponding to the text input template 1 is Song Ti, and the font in the text display information corresponding to the text input template 2 is regular script.
The picture display information corresponding to the picture input template may include: picture display style, picture display size, picture display scale, shading, etc.
The picture display style may include, but is not limited to, at least one of:
Picture display style 1: the picture is not provided with a frame;
picture display style 2: the picture is provided with a specific frame.
It can be understood that at least one item of picture display information corresponding to different picture input templates is different, for example: the picture display proportion in the picture display information corresponding to the picture input template 1 is 16:9, and the picture display proportion in the picture display information corresponding to the picture input template 2 is 3:2.
And 102, displaying a first input template selected from the N input templates in the editing page.
In a specific implementation, the first input template may include at least one input template, which may be specifically determined according to actual requirements, which is not limited in the embodiment of the present application.
In the case that the number of input templates included in the first input template is greater than 1, the first input template may include at least one input template of the N input templates, and the number of input templates included in the first input template may be less than, equal to, or greater than N; the first input templates may be sequentially displayed in the editing page according to a selection sequence, and it is understood that a user may subsequently adjust the display sequence of the input templates according to the user's own needs, and in practical application, the display sequence may be adjusted in the same page or may be adjusted across pages, and may specifically be determined according to the practical needs, which is not limited by the embodiment of the present application.
For ease of understanding, examples are illustrated below:
Assuming that the N input templates include 4 input templates, respectively: text input template 1, text input template 2, picture input template a and picture input template b, the user selects from the N input templates in order: the text input template 1, the picture input template a, the text input template 2, the picture input template a and the text input template 2, then in this case the first input template comprises 5 input templates. As shown in fig. 2, the display direction of the screen is vertical screen display, and the editing pages can be displayed sequentially from top to bottom: a text input template 1, a picture input template a, a text input template 2, a picture input template a, and a text input template 2. In fig. 2, the text input template 1 is denoted by 21, the picture input template a is denoted by 22, and the text input template 2 is denoted by 23.
It should be noted that, for convenience of understanding, the information input method according to the embodiment of the present application will be described below by taking the first input template as one input template of the N input templates as an example, but the number and the expression form of the input templates included in the first input template are not limited.
Step 103, receiving information input to the first input template, wherein the information input is used for inputting first information in the first input template.
In specific implementation, the first information is matched with the type of the first input template. Such as: in the case that the first input module is a text input module, the first information is text; and under the condition that the first input module is a picture input module, the first information is a picture.
And 104, responding to the information input, and displaying the first information in the editing page according to the first display information corresponding to the first input template.
It can be understood that the display information of the first information is the first display information.
It can be seen that, in the embodiment of the present application, if the user expects the first information to be displayed according to the first display information, the first input template may be selected before the first information is input, so that the first information is input in the first input template, and thus, after input, the first information may be displayed according to the first display information without editing, so that the editing probability of the information may be reduced.
It should be noted that, the second information that does not match the type of the first input template may also be input into the first input template. Such as: in the case that the first input module is a text input module, the second information is a picture; and under the condition that the first input module is a picture input module, the second information is text. And for the second information, the electronic equipment can display the text display information or the picture display information according to the default editing page.
In the information input method of the embodiment, if the user expects that some information input in the editing page is displayed in the target display information, before inputting the information, an input template in which the display information is close to or the same as the target display information can be selected, and the information is input in the selected input template, so that the display information of the information can be close to or conform to the target display information without editing after the information is input. In this way, if the user desires to display different information input in the editing page in different display information, only the corresponding information is input in the corresponding input template, so that the operation efficiency can be improved, and the editing times of the information can be reduced.
After displaying the first information input in the first input template in the editing page according to the display information corresponding to the first input template, the electronic device can change the display information of part or all of the first information by a user, which is described in detail below.
Optionally, after the first information is displayed in the editing page according to the first display information corresponding to the first input template in response to the information input, the method further includes:
receiving a first editing input to the first information;
responding to the first editing input, and displaying M information dividing modes, wherein M is a positive integer;
Selecting a first information dividing mode from the M information dividing modes, dividing the first information according to the first information dividing mode to obtain P pieces of sub-information, wherein P is a positive integer;
and editing the display information of the first information by taking the sub information as granularity.
The first editing input may be, but is not limited to being, represented as: selecting the input of the first information; and inputting the pressing of the display area of the first information.
The M information dividing modes are displayed, which can be understood as: names of the M information division modes are displayed, and further, division descriptions of the M information division modes may also be displayed.
In the case that the first information is text, the M information dividing modes may include at least one of: dividing a line of text into sub-information according to a line division mode; according to the word division mode, namely dividing a word into sub-information.
In the case that the first information is a picture, the M information dividing modes may include at least one of: dividing a specific number of pixels into sub-information according to a pixel number dividing mode; the imaging of an object is divided into sub-information according to the object imaging division mode.
The first information dividing manner may be any one of the M information dividing manners. After the electronic device divides the first information according to the first information division mode to obtain P pieces of sub information, the electronic device can edit the display information of the first information by taking the sub information as granularity.
Granularity may be understood as the edit unit of display information. For different sub-information, the display information of the sub-information can be independently edited, and the display information of the different sub-information can be the same or different after editing, and the display information can be specifically determined according to the actual situation, which is not limited by the embodiment of the application. Such as: the electronic device may edit the display information of at least one piece of sub information in the first information, and the display information of different pieces of sub information in the first information may be the same or different after editing.
In this optional embodiment, before editing the display information of the first information, the first information may be first divided, so that the display information of some or all of the first information may be edited based on the granularity after division, thereby improving the editing flexibility.
Optionally, the editing the display information of the first information with the sub information as granularity includes:
determining first sub-information in the P sub-information;
and displaying the first sub information according to second display information when receiving second editing input related to the first sub information, wherein the second display information is determined based on the second editing input.
The first sub-information may include some or all of the P sub-information.
In a specific implementation, in one implementation manner, the determination of the first sub-information may be implemented by selecting the entire content of the first sub-information.
In another implementation manner, optionally, the determining the first sub-information in the P sub-information includes:
receiving a press input to a first region of the edit page;
and responding to the pressing input, determining the sub-information corresponding to the first area as first sub-information in the P sub-information.
The sub-information corresponding to the first area may be understood as: and the sub-information of the information displayed in the first area. In this implementation manner, the first sub-information can be determined by pressing a partial area of the display area of the first information, and the entire content of the first sub-information is not required to be selected, so that the rate and accuracy of determining the first sub-information can be improved.
It should be noted that, the above implementation manner is merely an example, and the embodiment of the present application is not limited to the determining manner of the first sub-information, and any manner in which the first sub-information may be determined from the P sub-information may fall within the protection scope of the embodiment of the present application.
After determining the first sub-information, the electronic device may edit the display information of the first sub-information in response to the received second editing input, so that the first sub-information is displayed according to the second display information.
In a specific implementation, the second editing input may be: and a second editing input to the first sub-information, the second editing input being used to determine second display information of the first sub-information. In this implementation, the electronic device may display the first sub-information directly based on the second display information determined by the second editing input.
In another implementation, optionally, the second editing input includes a first sub-input and a second sub-input;
the displaying the first sub information according to the second display information when receiving the second editing input related to the first sub information comprises the following steps:
Receiving the first sub-input of the first sub-information, wherein the first sub-input is used for determining second display information of the first sub-information;
Responding to the first sub-input, displaying a preview page, displaying the first sub-information according to the second display information on the preview page, and displaying second sub-information according to the first display information, wherein the second sub-information is other information except the first sub-information in the first information;
Receiving the second sub-input to the preview page;
And in response to the second sub-input, displaying the first sub-information according to the second display information in the editing page in a case where the second sub-input is for confirming display of the preview page.
In this implementation, the second editing input includes a first sub-input and a second sub-input, where the first sub-input is used to determine second display information of the first sub-information, and trigger the electronic device to display a preview page.
The preview page may be displayed in hover over the edit page. The preview page is mainly different from the edit page in that: the display information of the first sub information is different. The concrete steps are as follows: when the electronic device displays a preview page, the first sub-information in the editing page is still displayed with the first display information, and the first sub-information in the preview page is displayed with the second display information. And when the preview page is used for a user to preview and the second display information displays the first sub-information, whether the whole condition of the first information meets the requirement of the user or not.
For ease of understanding, examples are illustrated below:
The first information is assumed to include sub-information a and sub-information b, the first sub-information is sub-information a, and the first display information. The display font of the first display information is Song Ti, and the display font of the second information is regular script.
Then, in the edit page, both the sub information a and the sub information b are displayed as sons, and in the preview page, the sub information a is displayed as regular script and the sub information b is displayed as Song Ti.
The second sub-input is used for confirming or denying the display of the preview page, namely, confirming whether the display of the preview page is put into practical use, namely, whether the first sub-information is displayed in the editing page according to the second display information.
When the second sub-input is used for confirming the display of the preview page, and the first sub-information is displayed by the second display information, the whole condition of the first information meets the requirement of a user, and the electronic equipment can display the first sub-information according to the second display information in the editing page.
When the second sub-input is used for denying the display of the preview page, the condition that the whole condition of the first information does not meet the requirement of a user when the first sub-information is displayed by the second display information is described, and the electronic equipment can maintain the display information of the first sub-information in the editing page unchanged, namely the first sub-information is still displayed according to the first display information in the editing page. It will be appreciated that the user may continue to edit the display information of the first sub-information until it meets his own needs.
In this implementation manner, before the new display information of the first sub-information is applied to the editing page, a preview page may be displayed for the user to confirm whether to apply the new display information of the first sub-information to the editing page, so that subsequent modification of the display information of the first sub-information may be reduced, and information operation efficiency may be improved.
It should be noted that, the various optional implementations described in the embodiments of the present application may be implemented in combination with each other without collision, or may be implemented separately, which is not limited to the embodiments of the present application.
For ease of understanding, examples are illustrated below:
in the following examples, an example is described in which an editing page appears as a bookmark.
In the example, the user can extract, mark and other operations on the target vocabulary by dividing the text recognition in the text editing scene by using the mobile phone note, so that the text editing efficiency can be improved, and the operation experience of the user in the note use can be improved.
The information input method of the present example may include the steps of:
Step one, entering a note, selecting modularized input, and displaying N input templates.
And step two, determining an input object (text and/or picture), and selecting a corresponding input template from the N input templates.
Taking the graphic and text mixed information display mode as an example, the selected input modules can be a text input template I, a picture input template I and a text input template II.
Selecting a text input template I and inputting text content A.
And selecting a picture, namely selecting a picture a by selecting a picture input template I.
And inputting text content B by using a text input template II.
And thirdly, editing the text.
The text content A is selected to be edited, and division modes such as word segmentation by row, word segmentation by word and the like can be popped up.
Word segmentation by line: and automatically adjusting through the modularized text input box mirror image, and performing word segmentation according to the adjusted line number.
Word segmentation according to words: word segmentation is performed according to words of the text.
After the line segmentation and word segmentation are carried out, the selected lines can be edited respectively, and the editing range comprises the following options: font bolding, italics, color, changing font, transparency, underlining. Editing can be directly performed after the corresponding word is selected.
If the picture selected by the user is edited, the editing mode is as follows: size, sequence of arrangement, shading, etc., the user can directly preview after finishing editing, and finish editing after determining no error.
By providing the line-by-line and word-by-word segmentation modes, the text processing is more convenient and faster for the user, the text editing operation can be rapidly completed, and the editing experience of the user is improved.
The present example may provide automatic typesetting functionality, may switch directly between different pages if multiple pages are involved, move the location, order, etc. of the modular text.
It should be noted that, in the information input method provided in the embodiment of the present application, the execution body may be an information input device, or a control module in the information input device for executing the information input method. In the embodiment of the present application, an information input device is described by taking an information input method performed by an information input device as an example.
Referring to fig. 3, fig. 3 is a block diagram of an information input apparatus according to an embodiment of the present application.
As shown in fig. 3, the information input apparatus 300 includes:
the first display module 301 is configured to display N input templates on an editing page, where N is a positive integer;
A second display module 302, configured to display, in the editing page, a first input template selected from the N input templates;
a first receiving module 303, configured to receive an information input to the first input template, where the information input is used to input first information in the first input template;
And the third display module 304 is configured to respond to the information input, and display the first information in the editing page according to the first display information corresponding to the first input template.
Optionally, the information input device 300 further includes:
The second receiving module is used for receiving a first editing input of the first information;
the fourth display module is used for responding to the first editing input and displaying M information dividing modes, wherein M is a positive integer;
The dividing module is used for selecting a first information dividing mode from the M information dividing modes, dividing the first information according to the first information dividing mode to obtain P pieces of sub-information, wherein P is a positive integer;
and the editing module is used for editing the display information of the first information by taking the sub information as granularity.
Optionally, the editing module includes:
a determining sub-module, configured to determine a first sub-information of the P sub-information;
and the display sub-module is used for displaying the first sub-information according to second display information when receiving a second editing input related to the first sub-information, and the second display information is determined based on the second editing input.
Optionally, the determining submodule includes:
a first receiving unit configured to receive a press input to a first area of the editing page;
and the determining unit is used for responding to the pressing input and determining the sub-information corresponding to the first area as the first sub-information in the P sub-information.
Optionally, the second editing input includes a first sub-input and a second sub-input;
the display sub-module is used for:
a second receiving unit configured to receive the first sub-input to the first sub-information, the first sub-input being used to determine second display information of the first sub-information;
The first display unit is used for responding to the first sub-input, displaying a preview page, displaying the first sub-information according to the second display information on the preview page, and displaying the second sub-information according to the first display information, wherein the second sub-information is other information except the first sub-information in the first information;
a third receiving unit configured to receive the second sub-input to the preview page;
And a second display unit configured to display the first sub information in the editing page in accordance with the second display information in response to the second sub input in a case where the second sub input is for confirming display of the preview page.
The information input device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The information input 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 information input device provided in the embodiment of the present application can implement each process implemented by the information input device in the method embodiment of fig. 1, and in order to avoid repetition, details are not repeated here.
Optionally, as shown in fig. 4, the embodiment of the present application further provides an electronic device 400, including a processor 401, a memory 402, and a program or an instruction (not shown in the drawing) stored in the memory 402 and capable of running on the processor 401, where the program or the instruction implements each process of the above embodiment of the information input method when executed by the processor 401, and the process can achieve the same technical effect, so that repetition is avoided and redundant description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 5 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, and processor 510.
Those skilled in the art will appreciate that the electronic device 500 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 150 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. 5 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.
The display unit 506 is configured to display N input templates on the editing page, where N is a positive integer; displaying a first input template selected from the N input templates in the editing page;
An input unit 504 for receiving an information input to the first input template, the information input being for inputting first information in the first input template;
and a display unit 506, configured to respond to the information input, and display the first information in the editing page according to first display information corresponding to the first input template.
Optionally, an input unit 504 is configured to receive a first editing input for the first information;
A display unit 506, configured to display M information dividing modes in response to the first editing input, where M is a positive integer;
A processor 510, configured to select a first information division manner from the M information division manners, divide the first information according to the first information division manner, obtain P pieces of sub-information, and P is a positive integer; and editing the display information of the first information by taking the sub information as granularity.
Optionally, the processor 510 is configured to determine a first sub-information of the P sub-information;
And a display unit 506 configured to display the first sub-information according to second display information when the input unit 504 receives a second editing input related to the first sub-information, the second display information being determined based on the second editing input.
Optionally, an input unit 504 is configured to receive a pressing input on the first area of the editing page;
and a processor 510, configured to determine, in response to the pressing input, the sub-information corresponding to the first area as first sub-information of the P sub-information.
Optionally, the second editing input includes a first sub-input and a second sub-input;
An input unit 504 for receiving the first sub-input of the first sub-information, the first sub-input being used for determining second display information of the first sub-information;
A display unit 506, configured to display a preview page in response to the first sub-input, display the first sub-information on the preview page according to the second display information, and display second sub-information according to the first display information, where the second sub-information is other information than the first sub-information in the first information;
An input unit 504 for receiving the second sub-input to the preview page;
And a display unit 506 configured to display the first sub information according to the second display information in the editing page in response to the second sub input in a case where the second sub input is for confirming display of the preview page.
It should be appreciated that in embodiments of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, with the graphics processor 5041 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 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen. Touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 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 509 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. Processor 510 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 510.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above information input method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the information input method embodiment, and can achieve the same technical effects, so that repetition is avoided and redundant description is omitted.
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.
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 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, an air conditioner, 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.