WO2024066505A1 - Content display method and apparatus, and storage medium - Google Patents

Content display method and apparatus, and storage medium Download PDF

Info

Publication number
WO2024066505A1
WO2024066505A1 PCT/CN2023/101417 CN2023101417W WO2024066505A1 WO 2024066505 A1 WO2024066505 A1 WO 2024066505A1 CN 2023101417 W CN2023101417 W CN 2023101417W WO 2024066505 A1 WO2024066505 A1 WO 2024066505A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
closed
display
format
touch screen
Prior art date
Application number
PCT/CN2023/101417
Other languages
French (fr)
Chinese (zh)
Inventor
全赛彬
田韫
杨阳
冷继南
郑文植
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024066505A1 publication Critical patent/WO2024066505A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present invention relates to the field of computer technology, and in particular to a method, device and storage medium for displaying content.
  • An electronic device with a touch screen is an advanced educational or conference-assisted human-computer interaction device. It can be used with projectors, computers and other tools to achieve functions such as dust-free writing and free writing. With the popularity of online meetings, electronic whiteboards are also being used more and more.
  • This type of electronic device not only has traditional text writing functions, but also can provide rich derivative functions such as graphics, tables, documents, audio and video. Among them, the user can write in the table provided by the electronic whiteboard, and then the electronic whiteboard displays the content written by the user.
  • the content displayed on the touch screen is often consistent with the content entered by the user, which means that when there is a problem with the format of the content entered by the user, manual adjustment is often required, which greatly affects the user experience.
  • the embodiments of the present application provide a method, apparatus, storage medium, computing device and product including a computer program for displaying content, which can make the format of the content handwritten input by the user on the electronic device more unified or beautiful, enhance the user's visual experience, and improve the convenience of user use.
  • the present application provides a method for displaying content, which is applied to an electronic device with a touch screen, and a first closed figure is displayed on the touch screen.
  • the method includes: obtaining a first handwriting trajectory input by a user in the first closed figure; displaying the first handwriting trajectory on the touch screen; obtaining first content according to the first handwriting trajectory; determining a first display format of the first content, the first display format including a first display position of the first content in the first closed figure, the first display position being different from the display position of the first handwriting trajectory on the touch screen; and displaying the first content on the touch screen in the first display format.
  • the handwriting of the user can be displayed on the touch screen, and the first content input by the user can be obtained according to the handwriting.
  • the display format of the display position containing the first content can be determined, and the first content can be displayed according to the display position, so that the content input by the user displayed by the electronic device can be in a suitable position, which is convenient for the user to view and improves the convenience of the user when using.
  • the first content is obtained by performing optical character recognition (OCR) on the first handwriting trajectory.
  • OCR optical character recognition
  • the first content is text, numbers, or patterns.
  • the method further includes: stopping displaying the first handwriting trace on the touch screen.
  • determining a first display format of the first content includes: determining a first display position according to a content alignment format of the first closed graphic or a predefined content alignment format, where the content alignment format includes any one of left alignment, right alignment, center alignment, both end alignment, and distributed alignment.
  • the display position can be determined by determining the alignment format, so that the first content can be displayed at an appropriate position in the closed graphic, thereby improving the user experience.
  • the first display format further includes a first display size of the first content, so that the size of the first content displayed on the electronic device is a size suitable for the user to view, thereby improving the user experience.
  • the first display size is different from the display size of the first handwriting trace on the touch screen.
  • determining the first display format of the first content includes: The first display size is determined according to the content size specification; or, the first display size is determined according to the display size of the first handwriting track on the touch screen.
  • the first content can be displayed in a suitable size in the first closed graphic, and the user experience will not be affected due to the font being too large or too small.
  • the first display format further includes: a display color of the first content.
  • the first content is text
  • the first display format also includes a font of the first content.
  • the method also includes: obtaining a second handwriting trajectory input by the user in the first closed figure; obtaining a second content according to the second handwriting trajectory; determining a second display format according to the first display format, the second display format including a second display position of the first content and the second content in the first closed figure; and displaying the first content and the second content on the touch screen in the second display format.
  • the content input by the user for the second time can be combined with the content input for the first time to form a whole, and the whole can be displayed at a suitable position to meet the user's usage habits.
  • the method before displaying the first content and the second content on the touch screen in the second display format, the method further includes: displaying a second handwriting trace on the touch screen; and stopping displaying the second handwriting trace on the touch screen after a preset time period.
  • the second display position is determined by the first content alignment format; and determining the second display format according to the first display format includes: determining the second display position according to the first content alignment format.
  • the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
  • a second closed figure is also displayed on the touch screen, and the method further includes: obtaining a third handwriting trajectory input by the user in the second closed figure; obtaining third content according to the third handwriting trajectory; determining a third display format of the third content, the third display format including a third display position of the third content in the second closed figure, the third display position being obtained according to a content alignment format of the second closed figure or a predefined content alignment format; and displaying the third content on the touch screen in the third display format.
  • the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure. In this way, the content in the two closed figures can maintain a unified alignment format, making the content look more neat.
  • the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size.
  • the content in the two closed graphics can also maintain a uniform size specification, for example, the same font size, so that the content can look more neat.
  • the method before displaying the third content on the touch screen in the third display format, the method further includes: displaying a third handwriting trace on the touch screen; and stopping displaying the third handwriting trace on the touch screen after a preset time period.
  • the method further includes: in response to a fourth handwriting track input by the user in the second closed figure, enlarging the second closed figure; obtaining a fourth content according to the fourth handwriting track; determining a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to the content alignment format of the second closed figure or a predefined content alignment format; and displaying the third content and the fourth content on the touch screen in the fourth display format.
  • the second closed figure cannot accommodate the user's input content.
  • enlarging the second closed figure can make the user's input content all within the closed figure, which is in line with the user's usage habits.
  • the method before displaying the third content and the fourth content on the touch screen in a fourth display format, the method also includes: displaying an enlarged second closed figure on the touch screen; displaying a fourth handwriting trajectory on the touch screen; and stopping displaying the fourth handwriting trajectory on the touch screen after a preset time period.
  • the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned
  • the method further includes: enlarging the first closed figure according to the enlarged second closed figure so that the enlarged first closed figure and the enlarged second closed figure are aligned; determining a fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure; and displaying the first content on the touch screen in the fifth display format.
  • the first closed figure and the second closed figure are both rectangles and the first closed figure and the second closed figure are aligned
  • the first closed figure and the second closed figure can be regarded as a table with two cells.
  • the other cell is synchronously adjusted according to the adjusted cell, which will make the two cells still aligned, which is more in line with the user's usage habits.
  • the method further includes: in response to the user deleting the fourth content in the second closed figure, reducing the second closed figure; and displaying the third content on the touch screen in a third display format.
  • the method further includes: reducing the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determining a sixth display format of the first content in the reduced first closed figure, the sixth display format including a display position of the first content in the reduced first closed figure; and displaying the first content on the touch screen in the sixth display format.
  • the first content includes a plurality of identifiers in a sequential relationship
  • determining the first display format of the first content includes: performing line break processing on the first content according to the plurality of identifiers; and determining a first display position of the first content after line break processing according to a content alignment format of the first closed figure or a predefined content alignment format. In this way, line break is performed on the input content in the first content and the second content, making it more convenient for the user to view the displayed content.
  • a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, and the first content and the third content include identifiers with a sequential relationship
  • the method further includes: filling the fifth content in the third closed figure so that the first content, the third content, and the fifth content include identifiers with a sequential relationship.
  • the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
  • a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the method also includes: filling the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
  • the numbers input by the user can be automatically calculated, which can save the user from having to perform the calculations themselves, saving the user's time and improving the user's usage efficiency.
  • the present application provides a method for displaying content, which is applied to an electronic device with a touch screen, and a first closed figure is displayed on the touch screen.
  • the method includes: obtaining a first handwriting trajectory input by a user in the first closed figure; displaying the first handwriting trajectory on the touch screen; adjusting the display position of the first handwriting trajectory in the first closed figure according to a content alignment format or a predefined content alignment format in the first closed figure; and displaying the first handwriting trajectory on the touch screen at the adjusted display position.
  • the handwriting of the user can be displayed on the touch screen and the display position of the handwriting can be adjusted, so that the content input by the user displayed on the electronic device can be in a suitable position and the user's handwriting style can be retained, which is convenient for the user to view and improves the convenience of user use.
  • the method further includes: adjusting the display size of the first handwriting trajectory according to a predefined display size; displaying the first handwriting trajectory on the touch screen at the adjusted display position, including: displaying the first handwriting trajectory on the touch screen at the adjusted display position and at the adjusted display size.
  • the present application provides a device for displaying content, which is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen.
  • the device may include: an acquisition module, used to acquire a first handwriting trajectory input by a user in the first closed figure; a display module, used to display the first handwriting trajectory on the touch screen; a processing module, used to obtain first content according to the first handwriting trajectory; the processing module is also used to determine a first display format of the first content, the first display format includes a first display position of the first content in the first closed figure, and the first display position is different from the display position of the first handwriting trajectory on the touch screen; the display module is also used to display the first content on the touch screen in the first display format.
  • the first content is obtained by performing optical character recognition (OCR) on the first handwriting trajectory.
  • OCR optical character recognition
  • the first content is text, numbers, or patterns.
  • the display module is further configured to stop displaying the first handwriting trace on the touch screen.
  • the processing module is further used to: determine the first display position according to the content alignment format of the first closed graphic or a predefined content alignment format, the content alignment format including any one of left alignment, right alignment, center alignment, two-end alignment and distributed alignment.
  • the first display format also includes a first display size of the first content.
  • the first display size is different from the display size of the first handwriting trace on the touch screen.
  • the processing module is further used to: determine the first display size according to a predefined content size specification of the first closed figure; or determine the first display size according to a display size of the first handwriting track on the touch screen.
  • the first display format further includes: a display color of the first content.
  • the first content is text
  • the first display format also includes a font of the first content.
  • the processing module is also used to: obtain a second handwriting trajectory input by the user in the first closed figure; obtain the second content according to the second handwriting trajectory; determine the second display format according to the first display format, the second display format including the first content and the second content in the first closed figure.
  • the display module is also used to display the first content and the second content on the touch screen in the second display format.
  • the display module before displaying the first content and the second content on the touch screen in the second display format, is further used to: display a second handwriting trajectory on the touch screen; and stop displaying the second handwriting trajectory on the touch screen after a preset time period.
  • the second display position is determined by the first content alignment format; and the processing module is further configured to determine the second display position according to the first content alignment format.
  • the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
  • a second closed figure is also displayed on the touch screen, and the acquisition module is further used to acquire a third handwriting trajectory input by the user in the second closed figure; the processing module is further used to obtain third content based on the third handwriting trajectory; determine a third display format of the third content, the third display format includes a third display position of the third content in the second closed figure, and the third display position is obtained according to the content alignment format of the second closed figure or a predefined content alignment format; the display module is further used to display the third content on the touch screen in the third display format.
  • the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure.
  • the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size.
  • the display module before displaying the third content on the touch screen in the third display format, is further used to display a third handwriting track on the touch screen; after a preset time period, the third handwriting track is stopped from being displayed on the touch screen.
  • the processing module is also used to: enlarge the second closed figure in response to a fourth handwriting trajectory input by the user in the second closed figure; obtain a fourth content based on the fourth handwriting trajectory; determine a fourth display format of the third content and the fourth content based on the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained based on a content alignment format of the second closed figure or a predefined content alignment format; the display module is also used to display the third content and the fourth content on the touch screen in the fourth display format.
  • the display module before displaying the third content and the fourth content on the touch screen in a fourth display format, is also used to: display an enlarged second closed figure on the touch screen; display a fourth handwriting trajectory on the touch screen; and stop displaying the fourth handwriting trajectory on the touch screen after a preset time period.
  • the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned
  • the processing module is also used to: enlarge the first closed figure according to the enlarged second closed figure, so that the enlarged first closed figure and the enlarged second closed figure are aligned; determine a fifth display format of the first content in the enlarged first closed figure, the fifth display format includes the display position of the first content in the enlarged first closed figure; the display module is also used to display the first content on the touch screen in the fifth display format.
  • the processing module is further used to: in response to the user deleting the fourth content in the second closed figure, reduce the size of the second closed figure; and the display module is further used to display the third content on the touch screen in a third display format.
  • the processing module is also used to: reduce the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determine a sixth display format of the first content in the reduced first closed figure, the sixth display format including the display position of the first content in the reduced first closed figure; the display module is also used to display the first content on the touch screen in the sixth display format.
  • the first content includes a plurality of identifiers in a sequential relationship
  • the processing module is further used to: perform line break processing on the first content according to the plurality of identifiers; determine the line break according to the content alignment format of the first closed figure or the predefined content alignment format; The first display position of the processed first content.
  • a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are identifications with a sequential relationship, and the processing module is also used to: fill the fifth content in the third closed figure so that the first content, the third content, and the fifth content are identifications with a sequential relationship.
  • the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
  • a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the processing module is also used to: fill the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
  • the present application provides a device for displaying content, which is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen.
  • the device includes: an acquisition module, used to acquire a first handwriting trajectory input by a user in the first closed figure; a display module, used to display the first handwriting trajectory on the touch screen; a processing module, used to adjust the display position of the first handwriting trajectory in the first closed figure according to the content alignment format in the first closed figure or a predefined content alignment format; the display module is also used to display the first handwriting trajectory on the touch screen with the adjusted display position.
  • the processing module is further used to: adjust the display size of the first handwriting trajectory according to a predefined display size; the display module is further used to: display the first handwriting trajectory on the touch screen with the adjusted display position and the adjusted display size.
  • the present application provides a computer-readable storage medium, comprising computer-readable instructions.
  • a computer reads and executes the computer-readable instructions, the computer executes the method described in any one of the first aspect and/or the second aspect.
  • the present application provides a computing device comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method described in any one of the first aspect and/or the second aspect is executed.
  • the present application provides a product comprising a computer program, which, when the computer program product runs on a processor, enables the processor to execute the method as described in any one of the first aspect and/or the second aspect.
  • FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG2 is a schematic diagram of an electronic device provided in an embodiment of the present application.
  • FIG3 is a schematic diagram of a display content provided by an embodiment of the present application.
  • FIG4 is a schematic diagram of a method for displaying content provided by an embodiment of the present application.
  • FIG5 is a schematic diagram of an effect of displaying content provided by an embodiment of the present application.
  • FIG6 is a schematic diagram of a font outsourcing frame provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a method for an electronic device to display a second content provided by an embodiment of the present application.
  • FIG8 is a schematic diagram showing an effect of an electronic device displaying a second content provided by an embodiment of the present application.
  • FIG9 is a schematic diagram of dragging content outside a graphic into a graphic for display provided by an embodiment of the present application.
  • FIG10 is a schematic diagram of content alignment provided by an embodiment of the present application.
  • FIG11 is a schematic diagram of a method for displaying content in a second closed graphic according to an embodiment of the present application.
  • FIG12 is a schematic diagram of another method for displaying content in a second closed graphic according to an embodiment of the present application.
  • FIG13 is a schematic diagram of a graphic size adjustment provided by an embodiment of the present application.
  • FIG14 is a schematic diagram of adjusting the size of a graphic after input is completed, provided in an embodiment of the present application.
  • FIG15 is a schematic diagram of an implementation of adjusting the size of a graphic provided in an embodiment of the present application.
  • FIG16 is a schematic diagram of automatic filling of graphic content provided by an embodiment of the present application.
  • FIG17 is a schematic diagram of automatic calculation of graphic content provided by an embodiment of the present application.
  • FIG18 is a schematic diagram of automatic calculation of user selected content provided by an embodiment of the present application.
  • FIG19 is a schematic diagram of another automatic calculation of user-selected content provided by an embodiment of the present application.
  • FIG20 is a schematic diagram of a content display device provided by the present application.
  • FIG. 21 is a schematic diagram of another content display device provided in the present application.
  • a and/or B in this article is a description of the association relationship of associated objects, indicating that there can be three relationships.
  • a and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone.
  • the symbol "/" in this article indicates that the associated objects are in an or relationship, for example, A/B means A or B.
  • first and second in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects.
  • a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.
  • words such as “exemplary” or “for example” are used to indicate examples, illustrations or descriptions. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as “exemplary” or “for example” is intended to present related concepts in a specific way.
  • multiple means two or more than two.
  • multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
  • the electronic device can be a portable electronic device with a processor, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (such as a smart watch, etc.), a vehicle-mounted device, etc.
  • portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems.
  • the portable electronic device may also be a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel, etc.).
  • the electronic device may not be a portable device, for example, it may be an electronic whiteboard, such as a cabinet electronic whiteboard or a wall-mounted electronic whiteboard, or it may be a desktop computer, such as a PC, or it may be a television, etc.
  • an electronic whiteboard such as a cabinet electronic whiteboard or a wall-mounted electronic whiteboard
  • a desktop computer such as a PC
  • FIG1 exemplarily shows a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the application scenario includes a user 100 and an electronic device 200, and the electronic device 200 includes a touch screen.
  • multiple applications can be installed in the electronic device 200, such as video conferencing, screen writing, whiteboard, file management, camera, image and other applications.
  • the electronic device 200 can use the display content method provided in the embodiment of the present application to adjust the display format of the content (e.g., text or pattern, etc.) input by the user 100, and display the content input by the user 100 on the touch screen in the adjusted display format.
  • the user 100 can see that the content displayed on the touch screen is the content of the adjusted display format, so that the content displayed on the touch screen is more unified or beautiful, which enhances the user's visual experience and improves the convenience of the user when using it.
  • FIG. 1 only schematically provides an application scenario and does not limit the application scenario of the method for displaying content provided in the present application.
  • the electronic device 200 with a processor is separated from the touch screen, and the electronic device 200 and the touch screen can be connected via a wired or wireless method.
  • the touch screen can be used to obtain the operation instructions of the user 100, and send the instructions to the processor via a wired or wireless method for execution, and the processor returns the execution result to the processor.
  • the method for displaying content provided in this application can be applied to many more scenarios, which will not be listed one by one in this application.
  • the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 251, a wireless communication module 252, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.
  • SIM subscriber identification module
  • the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, an acceleration sensor 280D, a proximity light sensor 280E, an ambient light sensor 280F, a fingerprint sensor 280G, a temperature sensor 280H and a touch sensor 280I.
  • the electronic device 200 may also include other sensors, such as a magnetic sensor, a distance sensor, a bone conduction sensor, etc.
  • the antenna 1 and antenna 2 shown in FIG. 2 are examples, and other antennas may also be included in other embodiments.
  • the electronic device shown in FIG. 2 is only an example and does not constitute a limitation on the electronic device.
  • the electronic device 200 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application-specific integrated circuits.
  • the processor 210 in FIG. 2 may include one or more processing units.
  • the processor 210 may include an application processor (AP), a baseband processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP) and/or a neural-network processing unit (NPU).
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller may be the nerve center and command center of the electronic device 200.
  • the controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
  • the processor 210 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 210 is a cache memory.
  • the memory may store instructions or data that the processor 210 has just used or cyclically used.
  • the memory may store program code for a method for displaying content. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 210, and thus improving the efficiency of the system.
  • the processor 210 can run the display content method provided in the present application, and the processor 210 can respond to the user's operation on the touch screen and start the function corresponding to the user's operation.
  • the processor 210 integrates different devices, such as integrating a CPU and a GPU, the CPU and the GPU can cooperate to execute the display content method provided in the present application to obtain faster processing efficiency.
  • the external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
  • the external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as pictures and videos can be saved in the external memory card.
  • the internal memory 221 can be used to store computer executable program codes, and the executable program codes include instructions.
  • the internal memory 221 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc., for example, a program code for a method of displaying content may be stored.
  • the data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc.
  • the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
  • the processor 210 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, A subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 210 may include multiple groups of I2C buses.
  • the processor 210 may be coupled to the touch sensor 280K, the charger, the flash, the camera 293, etc. through different I2C bus interfaces.
  • the processor 210 may be coupled to the touch sensor 280K through the I2C interface, so that the processor 210 communicates with the touch sensor 280K through the I2C bus interface, thereby realizing the touch function of the electronic device 200.
  • the I2S interface can be used for audio communication.
  • the processor 210 can include multiple groups of I2S buses.
  • the processor 210 can be coupled to the audio module 270 via the I2S bus to achieve communication between the processor 210 and the audio module 270.
  • the audio module 270 can transmit an audio signal to the wireless communication module 252 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 270 and the wireless communication module 252 can be coupled via a PCM bus interface.
  • the audio module 270 can also transmit audio signals to the wireless communication module 252 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 210 and the wireless communication module 252.
  • the processor 210 communicates with the Bluetooth module in the wireless communication module 252 through the UART interface to implement the Bluetooth function.
  • the audio module 270 can transmit an audio signal to the wireless communication module 252 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 294 and the camera 293.
  • the MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 210 and the camera 293 communicate via the CSI interface to realize the shooting function of the electronic device 200.
  • the processor 210 and the display screen 294 communicate via the DSI interface to realize the display function of the electronic device 200.
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 210 with the camera 293, the display 294, the wireless communication module 252, the audio module 270, the sensor module 280, etc.
  • the GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
  • the USB interface 230 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200.
  • the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 240 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 240 may receive charging input from a wired charger through the USB interface 230.
  • the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 240 is charging the battery 242, it may also power the electronic device 200 through the power management module 241.
  • the power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 252.
  • the power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 241 can also be set in the processor 210.
  • the power management module 241 and the charging management module 240 can also be set in the same device.
  • the wireless communication function of the electronic device 200 can be realized through the antenna 1, the antenna 2, the mobile communication module 251, the wireless communication module 252, It is implemented by modem processor and baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 251 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the electronic device 200.
  • the mobile communication module 251 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 251 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 251 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 251 can be set in the processor 210.
  • at least some of the functional modules of the mobile communication module 251 can be set in the same device as at least some of the modules of the processor 210.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 251 or other functional modules.
  • the wireless communication module 252 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 200.
  • the wireless communication module 252 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 252 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210.
  • the wireless communication module 252 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 200 is coupled to the mobile communication module 251, and the antenna 2 is coupled to the wireless communication module 252, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), new radio access technology (NR), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 294 is used to display images, videos, etc.
  • the display screen 294 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED active-matrix organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • NPU is a neural network (NN) computing processor that draws on the structure of biological neural networks, such as By learning from the transmission mode between neurons in the human brain, the input information can be quickly processed and self-learned continuously.
  • the NPU can realize applications such as intelligent cognition of the electronic device 200, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 280A can be set on the display screen 294.
  • a capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the gyro sensor 280B can be used to determine the motion posture of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 280B.
  • the gyro sensor 280B can be used for shooting anti-shake.
  • the gyro sensor 280B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates the altitude through the air pressure value measured by the air pressure sensor 280C to assist in positioning and navigation.
  • the acceleration sensor 280D can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the proximity light sensor 280E may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 200 emits infrared light outward through the light emitting diode.
  • the electronic device 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 can determine that there is no object near the electronic device 200.
  • the electronic device 200 can use the proximity light sensor 280E to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 280E can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
  • the ambient light sensor 280F is used to sense the ambient light brightness.
  • the electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived ambient light brightness.
  • the ambient light sensor 280F can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 280F can also cooperate with the proximity light sensor 280E to detect whether the electronic device 200 is in a pocket to prevent accidental touch.
  • the fingerprint sensor 280G is used to collect fingerprints.
  • the electronic device 200 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • a fingerprint sensor can be configured on the front of the electronic device 200 (below the display screen 294), or a fingerprint sensor can be configured on the back of the electronic device 200 (below the rear camera).
  • the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the electronic device 200.
  • the fingerprint sensor can be configured in the touch screen, can be a part of the touch screen, or can be configured in the touch screen in other ways.
  • the fingerprint sensor can also be implemented as a full-panel fingerprint sensor, so the touch screen can be regarded as a panel where fingerprints can be collected at any position.
  • the fingerprint sensor can process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 210, and the processor 210 makes corresponding processing according to the fingerprint processing result.
  • the fingerprint sensor can also send the collected fingerprint to the processor 210 so that the processor 210 processes the fingerprint (for example, fingerprint verification, etc.).
  • the fingerprint sensor in this application can adopt any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technology.
  • the temperature sensor 280H is used to detect temperature.
  • the electronic device 200 uses the temperature detected by the temperature sensor 280H to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280H exceeds a threshold, the electronic device 200 reduces the performance of a processor located near the temperature sensor 280H to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 heats the battery 242 to avoid abnormal shutdown of the electronic device 200 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 performs a boost on the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 280I is also called a "touch panel”.
  • the touch sensor 280I can be set on the display screen 294.
  • the touch sensor 280I and the display screen 294 form a touch screen, also called a "touch screen”.
  • the touch sensor 280I is used to detect a touch operation acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation may be provided through the display screen 294.
  • the touch sensor 280I may also be disposed on the surface of the electronic device 200, which is different from the location of the display screen 294.
  • FIG3 shows a schematic diagram of display content.
  • a closed figure 11 is displayed on the touch screen of the electronic device (not shown in the figure), and the closed figure is composed of 4 rectangular figures, and each rectangle can be called a cell in the closed figure 11.
  • the user can input "picture”, “shape”, “text” and “character” by handwriting in cells 111, 112, 113, and 114 respectively.
  • the electronic device can perform optical character recognition (OCR) according to the trajectory of the user's handwriting input and display the text in the corresponding cell after recognition, that is, display the content shown in FIG3 (B).
  • OCR optical character recognition
  • OCR refers to the process of an electronic device translating a shape into computer text using a character recognition method, that is, the process of an electronic device scanning text data, analyzing and processing image files, and obtaining text and board information.
  • the recognized printed text is displayed where the text is written, but the size and position of the text are not changed.
  • an embodiment of the present application provides a method for displaying content, in which the electronic device recognizes the content of the user's handwriting input and adjusts the format of the content of the user's handwriting input in the closed figure provided by the touch screen of the electronic device, so that the format of the content of the user's handwriting input on the electronic device remains relatively uniform, thereby improving the user experience.
  • the method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
  • Fig. 4 shows a method for displaying content. As shown in Fig. 4, the method may include:
  • S41 Acquire a first handwriting trajectory input by a user in a first closed figure displayed on a touch screen of an electronic device, and display the first handwriting trajectory on the touch screen.
  • a first closed figure is displayed on the touch screen of the electronic device.
  • the first closed figure refers to a two-dimensional plane that can be divided into several spatial shapes by outlines, which are limited recognizable shapes, such as rectangles, rhombuses, circles, trapezoids, etc.
  • the first closed figure can be an existing figure or a figure hand-drawn by the user.
  • the user performs handwriting input in the first closed figure, and the content of the handwriting input can be any text (Chinese characters, letters, numbers, etc.), patterns, etc., and the size of the content input by the user may not be fixed.
  • the first closed figure can be a blank figure or a figure that already has content. While the user is handwriting inputting content, the electronic device can obtain the trajectory of the user's input content in the first closed figure and display these trajectories on the touch screen.
  • the first handwritten trajectory may be a trajectory corresponding to one character or one pattern, or may be a trajectory corresponding to multiple characters or multiple patterns, and this application does not limit this.
  • a closed figure is displayed on the touch screen of the electronic device, and the closed figure is a rectangle.
  • the user has handwritten four characters in the rectangle.
  • the electronic device obtains the trajectory of the user's handwriting, the trajectory can be displayed in the rectangle.
  • the first content may be obtained by performing OCR recognition on the first handwriting trajectory, and each individual in the first content may be a sub-content of the first content.
  • the electronic device obtains the trajectory of the handwritten input content of the user in the first closed figure, performs OCR recognition on the trajectory, and obtains the first content input by the user.
  • the electronic device obtains the trajectory of the user's handwriting input of the first content within the first closed figure (rectangle), and performs OCR recognition on the user's handwriting trajectory to obtain the four words "graphic text” input by the user.
  • the four words "graphic text” are the first content input by the user, wherein each individual word (such as the word "picture”) is a sub-content of the first content.
  • S43 Determine a first display format of the first content, where the first display format may include a first display position of the first content in the first closed graph, wherein the first display position may be different from a display position of the first handwriting track on the touch screen.
  • the electronic device after the electronic device obtains the first content input by the user's handwriting, it can also obtain the first display format of the first content.
  • the first display format may include the first display position of the first content in the first graphic, and the touch screen can display the first content according to the position information provided by the first display position.
  • determining the first display format of the first content may include: determining the first display position according to the content alignment format of the first closed figure or a predefined content alignment format, wherein the content alignment format includes left alignment, center alignment, right alignment, and both ends alignment. and any of the distributed alignments.
  • the first display position may be determined according to the content alignment format of the first closed figure. For example, if there is already center-aligned content in the first closed figure, the electronic device determines that the first content input by the user may also be center-aligned, that is, the first content is displayed in the middle of the first closed figure.
  • the first display position may also be determined according to a predefined content alignment format. For example, if the first closed figure in which the user inputs content predefines the alignment format as left alignment, the electronic device may determine that the first display position of the first content input by the user is on the left side of the first closed figure.
  • the electronic device after the electronic device obtains the first content, it can detect and identify the key features contained in the first content, and determine the alignment format according to the key features.
  • the key features refer to some sub-contents in the first content that have a certain pattern, such as "1", “2", “3” and other ordered numbers, or " ⁇ XX”, “ ⁇ XX”, “ ⁇ XX”, etc. all use " ⁇ " as the beginning of the content.
  • the electronic device obtains that the first content input by the user in the first closed figure is 3 lines of text, and the first character of each line of text is "1", “2", “3", or “1", "2", “3”, or “A”, “B", “C” and other numbers.
  • the number can be used as the key feature of the first content, and the alignment type can be determined to be left-aligned based on this key feature (number).
  • the electronic device detects and recognizes that the key feature of the first content in the first closed figure is that the first content includes graphics and text, with the graphics on the left and the text on the right, then the alignment format can be determined to be right-aligned.
  • the first display format may further include a first display size of the first content.
  • the first display size refers to the size of the text, pattern or number corresponding to the first content. If the first content input by the user is text, the first display size can be in the font size as a unit. The larger the font size, the smaller the text. The largest font size is "primary" and the smallest font size is "eight", such as small four, five, etc. Of course, points (also known as pounds, point, pt) can also be used as units. When points are used as units, the larger the point value, the larger the text. The maximum point value can be 72 and the minimum point value can be 5.
  • the first display size can be determined according to the outer frame of the first content. The outer frame refers to a frame that can completely surround the first content.
  • the outer frame can be a regular shape, such as a circle (an outer frame surrounding the word “ ⁇ ” as shown in Figure 6), a rectangle (an outer frame surrounding the word “ ⁇ ” as shown in Figure 6), a diamond (an outer frame surrounding the word “ ⁇ ” as shown in Figure 6), etc., or it can be an irregular shape.
  • the first display size and the display size of the first handwriting track on the touch screen can be the same or different.
  • the touch screen of the electronic device displays the first content, it can also display the first content according to the size information indicated by the first display size.
  • the first display size is 18 points (pt), which means that when the touch screen of the electronic device displays the first content, the size of the first content is 18 points. Therefore, when the touch screen of the electronic device displays the first content, the first content can be displayed in a size of 18 points.
  • determining the first display format of the first content may also include: determining the first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
  • the electronic device after the electronic device obtains the first content handwritten by the user, it can also obtain the first display size of the first content.
  • the first display size can be pre-set by the first closed figure. For example, the electronic device pre-sets the content in the first closed figure to be kept at 16 points (point, pt), then the electronic device can display the first content in a 16-point size when displaying the first content.
  • the first display size can also be determined according to the display size of the first handwriting track on the touch screen. For example, if the display size of the first handwriting track when the user is handwriting is 18 points, it can be determined that the second display size is also 18 points, and then the electronic device can display the first content in an 18-point size when displaying the first content.
  • the first display size can be consistent with the display size of the first handwriting track on the touch screen, or the two are related to each other (for example, the first display size can be half of the display size of the first handwriting track, that is, the display size of the first handwriting track is 18 points, then the first display size can be 9 points), etc.
  • the first display format may further include a display color of the first content.
  • the first display format may further include a display color of the first content, and the first content is displayed according to the color. For example, if the display color in the first display format is black, the touch screen may display the color of the first content as black when displaying the first content.
  • the first content is text or numbers
  • the first display format may further include a font of the first content.
  • the content input by the user is text or numbers
  • the first display format may also include a font of the first content, and the first content is displayed according to the font.
  • the font in the first display format is Kaiti
  • the touch screen may display the font of the first content as Kaiti when displaying the first content.
  • the first content includes multiple identifiers in a sequential relationship
  • determining the first display format of the first content may include: performing line break processing on the first content according to the multiple identifiers, and determining the first display position of the first content after the line break processing according to the content alignment format of the first closed figure or the predefined content alignment format.
  • the first content input by the user includes multiple identifiers, and these identifiers have a sequential relationship
  • the electronic device can wrap the first content according to these identifiers, and use each identifier as the header of each line.
  • the first content input by the user is "1. Development 2. Test 3. Verification”
  • the electronic device determines that the first content input by the user includes identifiers such as "1", “2", and "3”, and these identifiers are identifiers with a sequential relationship, then the electronic device can split the first content into 3 lines, and the content of each line starts with the identifiers such as "1", "2", and “3", and the content of the 3 lines is "1. Development", “2. Test”, and "3. Verification” respectively.
  • the electronic device after determining the first display format and the first content, displays the first content in the first display format on the touch screen. After displaying the first handwriting track and before displaying the first content, the touch screen of the electronic device may stop displaying the first handwriting track.
  • the electronic device determines that the first content is "graphic text” and the first display format is "regular script, 18pt, black, and centered display”. Then the four words "graphic text” are displayed in regular script, 18pt, black, and centered display within the closed graphic (rectangle).
  • the handwriting of the user when the user performs handwriting input on the touch screen of the electronic device, the handwriting of the user can be displayed on the touch screen, and the first content input by the user can be obtained according to the handwriting. Further, the display format of the display position containing the first content can be determined, and the first content can be displayed according to the display position, so that the content input by the user displayed by the electronic device can be in a suitable position, which is convenient for the user to view and improves the convenience of the user when using.
  • the user can continue to input the second content in the first closed figure, and the electronic device can display the first content and the second content as a whole through the touch screen.
  • the electronic device can obtain the second handwriting trajectory of the user's handwriting input and recognize the handwriting trajectory to obtain the second content.
  • the user can also input the second content in other ways, such as: input through an external device such as a keyboard, or the user drags the content from outside the first closed figure into the closed figure, etc.
  • FIG7 shows a process in which the electronic device displays the second content.
  • S71 and S72 in FIG7 may refer to the description of the aforementioned steps S41-S42, which will not be described in detail here.
  • the process in which the electronic device displays the second content may include the following steps:
  • S71 Acquire a second handwriting trajectory input by the user in the first closed figure.
  • S73 Determine a second display format according to the first display format, where the second display format includes the first content and a second display position of the second content in the first closed figure.
  • a first closed graphic is displayed on the touch screen, and a first content is displayed in the first closed graphic.
  • the electronic device has obtained the second content input by the user.
  • the electronic device can determine the second display format according to the first display format in the first closed graphic.
  • the second display format can be but is not limited to the same as the first display format.
  • the second display format is used to indicate that the first content and the second content are displayed according to the second display format in the first closed graphic of the touch screen.
  • a rectangle is displayed on the touch screen, and the first content is displayed in the rectangle, which is a word " ⁇ "; when the user enters a word " ⁇ ” in the rectangle, the electronic device performs OCR recognition according to the trajectory of the word " ⁇ ” written by the user, and obtains that the second content entered by the user is a word " ⁇ ".
  • the word " ⁇ " and the word " ⁇ " are displayed in the first closed figure.
  • the electronic device can display " ⁇ " on the touch screen in the same format as the display format of " ⁇ ".
  • the existing content in the first closed figure is the word " ⁇ ", and there is a word “ ⁇ ” outside the figure.
  • the user can drag the word “ ⁇ ” into the first closed figure where the word “ ⁇ ” is located.
  • the electronic device can first obtain the trajectory of the word “ ⁇ ” dragged in by the user, and then perform OCR recognition on the acquired trajectory to obtain that the second content dragged in by the user is the word " ⁇ ".
  • the electronic device can determine the second display format of the word " ⁇ ” and the word “ ⁇ ” according to the first display format of the first content " ⁇ ” and display the word " ⁇ ” and the word “ ⁇ ” in the second display format on its touch screen.
  • the identifiers in the second content have a sequential relationship with the identifiers in the first content, and the first content and the second content as a whole are wrapped according to the sequential relationship of the multiple identifiers, and the alignment format is determined according to the key features in the first content and the second content.
  • the electronic device acquires the first content and the second content, and the electronic device can use the first content and the second content as
  • the first content includes a first identifier
  • the second content includes a second identifier.
  • the first identifier and the second identifier have a sequential relationship, and the first identifier and the second identifier can be used as key features of the overall content.
  • the overall content is wrapped according to the sequential relationship between the first identifier and the second identifier, and the alignment format is determined according to the key feature.
  • the first content in the first closed graphic is "1. Development", and the first content is displayed in the center.
  • the electronic device detects and recognizes the second content input by the user, which is respectively “1" and "2" in the first content.
  • the number is used as a key feature to determine that the second display format includes left alignment, as shown in FIG. 10 (B).
  • the first content in the first closed graphic is "1. Development 2. Test", which is displayed in the center.
  • the electronic device detects and recognizes the second content input by the user, which is respectively "1", “2” and “3” in the first content.
  • the number is used as a key feature to determine that the second display format is left-aligned, and "3. Verification” is wrapped, as shown in FIG. 10 (D).
  • the first content existing in the first closed graphic is "1. Development”
  • the electronic device detects and recognizes the second content input by the user, which has "1", “2", and “3” respectively in the original first content, and uses the number as the key feature, determines that the second display format is left-aligned, and at the same time performs line wrap processing on "2. Test 3. Verify", as shown in (F) of Figure 10.
  • the second display format includes the first content and a second display size of the second content, the second display size being the same as the first display size.
  • the electronic device can display the first content and the second content in the second display format on the touch screen.
  • the specific display method can refer to the aforementioned step S44, which will not be described in detail here.
  • the user inputs the second content in the first closed figure that already has the first content.
  • the electronic device can determine the second display format based on the display format of the existing first content, and display the first content and the second content in the second display format. This can enable the newly input content in the first closed figure to maintain the same format as the original content, which is more in line with the user's habits.
  • the touch screen may have not only a first closed figure but also a second closed figure, and the user may also input content in the second closed figure.
  • FIG11 shows a process of displaying content in a second closed graph.
  • S111, S112, S113 and S114 in FIG11 may refer to the description of the aforementioned steps S41, S42, S43 and S44, which will not be described in detail here.
  • the process of displaying content may include the following steps:
  • S111 Acquire a third handwriting trajectory input by the user in the second closed figure.
  • S113 Determine a third display format of the third content, where the third display format includes a third display position of the third content in the second closed figure, where the third display position is obtained according to a content alignment format of the second closed figure or a predefined content alignment format.
  • each closed figure is a separate individual, and the content display in each closed figure can be a separate format.
  • the display formats of the two closed figures may be the same or different.
  • the third display format also includes a third display size of the third content, and the third display size may be consistent with the first display size or inconsistent.
  • the content alignment format of the second closed figure may be consistent with the content alignment format of the first closed figure or inconsistent.
  • a first closed figure and a second closed figure are displayed on the touch screen, and a third content is displayed in the second closed figure.
  • the user can enter a fourth content in the second closed figure.
  • the fourth content entered by the user is relatively large, or the user writes a large word when entering the fourth content, and the second closed figure cannot accommodate the third content and the fourth content. In this case, the second closed figure can be enlarged.
  • Fig. 12 shows a method for displaying content.
  • the method for displaying content may include the following steps:
  • the user enters the fourth content in the second closed figure (the third content already exists in the second closed figure), and the electronic The sub-device obtains the fourth handwriting track input by the user, and in response to the handwriting track, the electronic device enlarges the second closed figure. For example, referring to FIG13, the user handwrites the two characters " ⁇ " in the second closed figure, and the characters exceed the boundary of the second closed figure. At this time, the second closed figure can be enlarged so that the two characters " ⁇ " are still in the second closed figure.
  • the electronic device can obtain the fourth handwriting trajectory, determine the minimum outer bounding box of the fourth handwriting trajectory, and determine whether the boundary of the minimum outer bounding box exceeds the threshold of the boundary line of the second closed figure.
  • the threshold of the boundary line can be equal to the size of the boundary line of the second closed figure, or it can be less than the size of the boundary line of the second closed figure.
  • the electronic device determines that the boundary of the minimum outer bounding box of the fourth handwriting trajectory exceeds the threshold of the boundary line of the second closed figure, it is determined that the fourth handwriting trajectory exceeds the boundary of the second closed figure, and the second closed figure needs to be enlarged so that the fourth handwriting trajectory is within the second closed figure.
  • Figure 14 As shown in Figure 14, the user enters the four words "development and testing" in the second closed figure, and the electronic whiteboard obtains the handwriting input trajectory of the four words, and determines its minimum outer bounding box according to the handwriting input trajectory of the four words.
  • (A) in Figure 14 shows the situation where the boundary of the minimum outer bounding box exceeds the boundary line of the second closed figure
  • (C) in Figure 14 shows the situation where the boundary of the minimum outer bounding box does not exceed the boundary of the second closed figure, but exceeds the threshold of the boundary of the second closed figure.
  • the boundary of the minimum outer bounding box exceeds the boundary line of the second closed figure, the boundary of the minimum outer bounding box must exceed the threshold of the boundary line of the second closed figure.
  • the size of the boundary line of the second closed figure can be adjusted so that the boundary of the minimum outer bounding box is smaller than the threshold of the boundary line of the second closed figure, that is, as shown in (B) and (D) in Figure 14.
  • the second closed figure can be enlarged and expanded according to the content of the user input after the user completes the input (the input is completed, such as the user has lifted the pen in the case of handwriting input). For example, as shown in FIG13, the user enters "literature" in the second closed figure, and after completing the input, the electronic device enlarges the second closed figure.
  • the second closed figure can also be enlarged in real time as the user inputs. For example, as shown in FIG15, the electronic device determines that the current touch point on the touch screen during handwriting input by the user is less than a threshold value from the boundary of the second closed figure, and the boundary of the second closed figure is expanded along the moving direction of the current touch point.
  • S123 Determine a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including fourth display positions of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to a content alignment format of the second closed figure or a predefined content alignment format.
  • the above steps S122 to S124 may refer to the above steps S42 to S44, which will not be repeated here.
  • the second closed figure when the user inputs a large amount of content or a large font in the second closed figure, the second closed figure cannot fully display the content within the closed figure. At this time, the second closed figure can be enlarged so that the content input by the user remains within the closed figure, thereby improving the user's visual experience.
  • the first closed figure and the second closed figure may be rectangles, and the first closed figure and the second closed figure are aligned, and the first closed figure may be enlarged according to the enlarged second closed figure. If the second closed figure and the first closed figure are two rectangles displayed side by side horizontally, the alignment may be the height alignment of the two rectangles; if the second closed figure and the first closed figure are two rectangles displayed side by side vertically, the alignment may be the width alignment of the two rectangles.
  • the first closed figure may be enlarged according to the enlarged second closed figure, so that the enlarged first closed figure is aligned with the enlarged second closed figure.
  • the method for displaying content provided in the embodiment of the present application can also determine the fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure, and display the first content on the touch screen in the fifth display format.
  • the user may also delete the fourth content in the second closed graphic, and the electronic device may reduce the size of the second closed graphic in response to the user's deletion operation.
  • the electronic device can also reduce the first closed figure according to the reduced second closed figure, so that the reduced closed figure and the reduced second closed figure still maintain an aligned state.
  • the first closed figure and the second closed figure are both rectangles, and the first closed figure and the second closed figure are aligned.
  • the first closed figure and the second closed figure can be regarded as a table with two cells. In this way, after one cell is adjusted, the other cell is adjusted synchronously according to the adjusted cell, so that the two cells still remain aligned, which conforms to the user's usage habits. used.
  • a first closed figure, a second closed figure, and a third closed figure are displayed on the touch screen of the electronic device.
  • the first closed figure, the second closed figure, and the third closed figure may all be rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned with each other.
  • the first content is displayed in the first closed figure
  • the third content is displayed in the second closed figure.
  • the first content and the third content are identifiers with a sequential relationship.
  • the method for displaying content may also include: filling the fifth content in the third closed figure so that the first content, the third content, and the fifth content are identifiers with a sequential relationship.
  • the identifier with a sequential relationship may be a number with a sequential increasing relationship or a sequential decreasing relationship. Alternatively, it may be a letter with a sequential increasing relationship or a sequential decreasing relationship.
  • the electronic device after acquiring the first content and the third content input by the user, identifies the first content and the third content input by the user and determines that the first content and the third content are identifiers with a sequential relationship.
  • the identifier can be a number or a letter.
  • Figure 16 where three mutually aligned rectangles are displayed on the touch screen, which are the first closed figure, the second closed figure, and the third closed figure.
  • the first closed figure contains the first content, which is "1”
  • the second closed figure contains the third content, which is "2”.
  • the first content and the third content are pure numbers, and the first content and the third content are in a preset sequence.
  • the preset sequence refers to a certain sequence of numbers, such as continuous numbers, numbers in an arithmetic progression, a geometric progression, etc.
  • the electronic device can automatically fill in numbers in the third closed figure, and the filled numbers maintain the same preset sequence as the first content and the second content.
  • the electronic device may pop up a prompt box to ask the user whether to fill the third closed figure. After the user chooses to confirm automatic filling, the electronic device fills the third closed figure.
  • a first closed figure, a second closed figure, and a third closed figure are displayed on the touch screen of the electronic device.
  • the first closed figure, the second closed figure, and the third closed figure may all be rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned with each other.
  • the first content is displayed in the first closed figure
  • the third content is displayed in the second closed figure
  • the first content and the third content are numbers.
  • the method of displaying content may also include: filling the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
  • the first content and the third content are pure numbers, and the user enters a mathematical function in the third closed figure.
  • the electronic device can calculate the first content and the third content according to the mathematical function entered by the user, fill the calculation result into the third closed figure, and replace the mathematical function entered by the user.
  • a null value can be returned to the user.
  • the first content is “1200”
  • the third content is “1500”
  • the user enters the mathematical function “sum” in the third closed figure.
  • the electronic device confirms that the user wishes to sum the first content and the third content, and then adds the first content and the third content to obtain a calculation result of “2700”.
  • This calculation result “2700” is filled into the third closed figure, replacing the “sum” entered by the user, i.e., (B) in FIG. 17 .
  • the electronic device can also perform calculations on numbers selected by the user.
  • the user selects a first closed figure and a second closed figure, and the first content in the first closed figure and the third content in the second closed figure are both numbers.
  • the electronic device displays prompt information, and the prompt information is used to display the calculation method represented by at least one mathematical formula.
  • the user selects the calculation method, and the electronic device calculates the first content and the third content selected by the user according to the calculation method selected by the user, and fills the calculation result into the third closed figure.
  • the user selects the first closed figure and the second closed figure, the first closed figure contains the first content "1200", and the second closed figure contains the third content "1500”.
  • the electronic device pops up a prompt box, which contains the options of "sum”, “average”, “product”, and “quotient”, each of which corresponds to a calculation formula.
  • the user can select "sum”, that is, sum the first content and the third content, and obtain the calculation result "2700".
  • the calculation result is filled into the third closed figure.
  • the electronic device supports voice input, and after the user selects the first closed figure and the second closed figure, the user can input by voice to perform a calculation operation.
  • the calculation input by the user by voice may include but is not limited to sum, difference, average, quotient, product, mean square error, etc.
  • the user selects a first closed figure and a second closed figure, and the first closed figure There is a first content "1200" in the closed figure, and a third content “1500” in the second closed figure.
  • the user can input "sum” by voice, and the electronic device calculates the contents in the first figure and the second figure according to the calculation method input by the user's voice, and obtains the calculation result "2700".
  • the calculation result "2700" is filled into the third closed figure.
  • the content input by the user in the closed figure is a number
  • the user can select a calculation method.
  • the electronic device can automatically calculate the number input by the user according to the calculation method selected by the user, eliminating the process of the user's own calculation and improving the convenience of user use.
  • the embodiment of the present application also provides another method for displaying content, which can also be applied to an electronic device with a touch screen, and a first closed graphic is displayed on the touch screen.
  • the method for displaying content may include:
  • a first handwriting trajectory input by a user in a first closed graph is obtained.
  • the first handwriting track is displayed on the touch screen.
  • the display position of the first handwriting track in the first closed figure is adjusted according to the content alignment format of the first closed figure or a predefined content alignment format.
  • the first handwriting track is displayed on the touch screen at the adjusted display position.
  • the embodiment of the method for displaying content provided in this embodiment can refer to the aforementioned embodiment of performing OCR recognition on handwritten handwriting, which will not be described in detail here.
  • the display size of the first handwriting track can also be adjusted according to a predefined display size to better meet the viewing habits of the user.
  • displaying the first handwriting track on the touch screen at the adjusted display position may include: displaying the first handwriting track on the touch screen at the adjusted display position and at the adjusted display size.
  • the size of the sequence number of each step in the above-mentioned embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
  • the first closed figure, the second closed figure, and the third closed figure in the embodiment do not limit the number of figures.
  • the number of closed figures can be increased or decreased as needed.
  • a plurality of aligned rectangles one of the closed figures
  • the steps in the above-mentioned embodiments can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here. All or part of any feature of any embodiment of the present application can be freely and arbitrarily combined without contradiction. The combined technical scheme is also within the scope of the present application.
  • an embodiment of the present application also provides a device for displaying content.
  • FIG20 shows the structure of a device for displaying content.
  • the device for displaying content can be deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen.
  • the device 2000 for displaying content may include: an acquisition module 2001, used to acquire a first handwriting trajectory input by a user in a first closed figure; a display module 2002, used to display the first handwriting trajectory on the touch screen; a processing module 2003, used to obtain the first content according to the first handwriting trajectory; the processing module 2003 is also used to determine the first display format of the first content, the first display format includes the first display position of the first content in the first closed figure, and the first display position is different from the display position of the first handwriting trajectory on the touch screen; the display module 2002 is also used to display the first content on the touch screen in the first display format.
  • the first content is obtained by performing optical character recognition on the first handwriting trace.
  • the first content is text, numbers, or patterns.
  • the display module 2002 is further configured to stop displaying the first handwriting track on the touch screen.
  • the processing module 2003 is further used to determine the first display position according to the content alignment format of the first closed graphic or a predefined content alignment format, where the content alignment format includes any one of left alignment, right alignment, center alignment, two-end alignment and distributed alignment.
  • the first display format also includes a first display size of the first content.
  • the first display size is different from the display size of the first handwriting trace on the touch screen.
  • the processing module 2003 is further used to: determine the first display size according to a predefined content size specification of the first closed figure; or determine the first display size according to the display size of the first handwriting track on the touch screen.
  • the first display format further includes: a display color of the first content.
  • the first content is text
  • the first display format also includes a font of the first content.
  • the processing module 2003 is also used to: obtain a second handwriting trajectory input by the user in the first closed figure; obtain a second content based on the second handwriting trajectory; determine a second display format based on the first display format, the second display format including the first content and the second content in the first closed figure.
  • the second display position; the display module 2002 is also used to display the first content and the second content on the touch screen in the second display format.
  • the display module 2002 before displaying the first content and the second content on the touch screen in the second display format, is further used to: display a second handwriting trajectory on the touch screen; and stop displaying the second handwriting trajectory on the touch screen after a preset time period.
  • the second display position is determined by the first content alignment format; the processing module 2003 is further configured to determine the second display position according to the first content alignment format.
  • the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
  • a second closed figure is also displayed on the touch screen
  • the acquisition module 2001 is also used to obtain a third handwriting trajectory input by the user in the second closed figure
  • the processing module 2003 is also used to obtain a third content based on the third handwriting trajectory
  • determine a third display format of the third content the third display format includes a third display position of the third content in the second closed figure, and the third display position is obtained according to the content alignment format of the second closed figure or a predefined content alignment format
  • the display module 2002 is also used to display the third content on the touch screen in the third display format.
  • the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure.
  • the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size.
  • the display module 2002 before displaying the third content on the touch screen in the third display format, is further used to display a third handwriting track on the touch screen; after a preset time period, the third handwriting track is stopped from being displayed on the touch screen.
  • the processing module 2003 is also used to: enlarge the second closed figure in response to a fourth handwriting trajectory input by the user in the second closed figure; obtain a fourth content according to the fourth handwriting trajectory; determine a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to the content alignment format of the second closed figure or a predefined content alignment format; the display module 2002 is also used to display the third content and the fourth content on the touch screen in the fourth display format.
  • the display module 2002 before displaying the third content and the fourth content on the touch screen in a fourth display format, is also used to: display an enlarged second closed figure on the touch screen; display a fourth handwriting trajectory on the touch screen; and stop displaying the fourth handwriting trajectory on the touch screen after a preset time period.
  • the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned
  • the processing module 2003 is also used to: enlarge the first closed figure according to the enlarged second closed figure, so that the enlarged first closed figure and the enlarged second closed figure are aligned; determine a fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure; the display module 2002 is also used to display the first content on the touch screen in the fifth display format.
  • the processing module 2003 is further used to: in response to the user deleting the fourth content in the second closed figure, reduce the size of the second closed figure; and the display module 2002 is further used to display the third content on the touch screen in a third display format.
  • the processing module 2003 is also used to: reduce the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determine a sixth display format of the first content in the reduced first closed figure, the sixth display format including the display position of the first content in the reduced first closed figure; the display module 2002 is also used to display the first content on the touch screen in the sixth display format.
  • the first content includes multiple identifiers in a sequential relationship
  • the processing module 2003 is further used to: perform line break processing on the first content according to the multiple identifiers; and determine the first display position of the first content after the line break processing according to the content alignment format of the first closed graphic or the predefined content alignment format.
  • a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, and the first content and the third content are rectangular.
  • the processing module 2003 is further used to fill the fifth content in the third closed figure so that the first content, the third content and the fifth content are the identifications with a sequential relationship.
  • the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
  • a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the processing module 2003 is also used to: fill the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
  • the above-mentioned device is used to execute the method in the above-mentioned embodiment.
  • the implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method.
  • the working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
  • an embodiment of the present application further provides a device for displaying content.
  • FIG21 shows the structure of another device for displaying content.
  • the device for displaying content can be deployed in an electronic device having a touch screen, on which a first closed figure is displayed.
  • the device 2100 for displaying content may include: an acquisition module 2101 for acquiring a first handwriting trajectory input by a user in a first closed figure; a display module 2102 for displaying the first handwriting trajectory on the touch screen; a processing module 2103 for adjusting the display position of the first handwriting trajectory in the first closed figure according to a content alignment format in the first closed figure or a predefined content alignment format; and the display module 2102 is further used to display the first handwriting trajectory on the touch screen at the adjusted display position.
  • the processing module 2103 is further used to: adjust the display size of the first handwriting trajectory according to a predefined display size; the display module 2102 is further used to: display the first handwriting trajectory on the touch screen with the adjusted display position and the adjusted display size.
  • the above-mentioned device is used to execute the method in the above-mentioned embodiment.
  • the implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method.
  • the working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
  • processors in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.
  • the general-purpose processor may be a microprocessor or any conventional processor.
  • the method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium.
  • the storage medium can also be a component of the processor.
  • the processor and the storage medium can be located in an ASIC.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A content display method, applied to an electronic device comprising a touch screen, a first closed graph being displayed on the touch screen. The method comprises: acquiring a first handwriting track input by a user in the first closed graph; displaying the first handwriting track on the touch screen; obtaining first content according to the first handwriting track; determining a first display format of the first content, wherein the first display format comprises a first display position of the first content in the first closed graph, and the first display position is different from the display position of the first handwriting track on the touch screen; and displaying the first content on the touch screen in the first display format. Thus, by identifying the content of a user's handwriting input on an electronic device, and adjusting the display position of the content of the user's handwriting input, the content of the user's handwriting input displayed by the electronic device can be at a proper position, thereby improving the user experience.

Description

一种显示内容的方法、装置及存储介质A method, device and storage medium for displaying content
本申请要求于2022年9月30日提交中国国家知识产权局、申请号为202211206210.7、申请名称为“一种显示内容的方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 30, 2022, with application number 202211206210.7 and application name “A method, device and storage medium for displaying content”, the entire contents of which are incorporated by reference in this application.
技术领域Technical Field
本发明涉及计算机技术领域,尤其涉及一种显示内容的方法、装置及存储介质。The present invention relates to the field of computer technology, and in particular to a method, device and storage medium for displaying content.
背景技术Background technique
带有触控屏的电子设备(例如,交互式的电子白板)是一种先进的教育或会议辅助人机交互设备,它可以配合投影机、电脑等工具,实现无尘书写、随意书写等功能。随着线上会议的流行,电子白板也得到越来越多的应用。该类电子设备不仅具有传统的文字书写功能,还可以提供图形、表格、文档和音视频等丰富的衍生功能。其中,用户可以在电子白板提供的表格内进行书写,之后,电子白板对用户书写的内容进行显示。但是,触控屏上所显示的内容往往与用户输入的内容保持一致,这使得当用户输入的内容格式存在问题时,往往需要人工手动调节,大大影响了用户体验。An electronic device with a touch screen (for example, an interactive electronic whiteboard) is an advanced educational or conference-assisted human-computer interaction device. It can be used with projectors, computers and other tools to achieve functions such as dust-free writing and free writing. With the popularity of online meetings, electronic whiteboards are also being used more and more. This type of electronic device not only has traditional text writing functions, but also can provide rich derivative functions such as graphics, tables, documents, audio and video. Among them, the user can write in the table provided by the electronic whiteboard, and then the electronic whiteboard displays the content written by the user. However, the content displayed on the touch screen is often consistent with the content entered by the user, which means that when there is a problem with the format of the content entered by the user, manual adjustment is often required, which greatly affects the user experience.
发明内容Summary of the invention
为了解决现有技术中存在的问题,本申请实施例提供了一种显示内容的方法、装置、存储介质、计算设备及包含计算机程序的产品,能够实现将用户在电子设备上手写输入的内容的格式更加统一或美观,提升用户的视觉体验,且提高用户使用时的便捷性。In order to solve the problems existing in the prior art, the embodiments of the present application provide a method, apparatus, storage medium, computing device and product including a computer program for displaying content, which can make the format of the content handwritten input by the user on the electronic device more unified or beautiful, enhance the user's visual experience, and improve the convenience of user use.
第一方面,本申请提供一种显示内容的方法,应用于具有触控屏的电子设备,触控屏上显示有第一封闭图形,该方法包括:获取用户在第一封闭图形中输入的第一手写轨迹;在触控屏上显示第一手写轨迹;根据第一手写轨迹得到第一内容;确定第一内容的第一显示格式,第一显示格式包括第一内容在第一封闭图形中的第一显示位置,第一显示位置与第一手写轨迹在触控屏上的显示位置不同;以第一显示格式在触控屏上显示第一内容。In a first aspect, the present application provides a method for displaying content, which is applied to an electronic device with a touch screen, and a first closed figure is displayed on the touch screen. The method includes: obtaining a first handwriting trajectory input by a user in the first closed figure; displaying the first handwriting trajectory on the touch screen; obtaining first content according to the first handwriting trajectory; determining a first display format of the first content, the first display format including a first display position of the first content in the first closed figure, the first display position being different from the display position of the first handwriting trajectory on the touch screen; and displaying the first content on the touch screen in the first display format.
这样,当用户在电子设备的触控屏上进行手写输入时,在触控屏上可以显示用户手写输入的笔迹,并根据该笔迹得到用户输入的第一内容。进一步地,可以确定包含有第一内容的显示位置的显示格式,并根据该显示位置对第一内容进行显示,这样可以使电子设备所显示的用户输入的内容在合适的位置,方便用户查看,提高用户使用时的便捷性。In this way, when the user performs handwriting input on the touch screen of the electronic device, the handwriting of the user can be displayed on the touch screen, and the first content input by the user can be obtained according to the handwriting. Furthermore, the display format of the display position containing the first content can be determined, and the first content can be displayed according to the display position, so that the content input by the user displayed by the electronic device can be in a suitable position, which is convenient for the user to view and improves the convenience of the user when using.
在一些可能的实现方式中,第一内容是对第一手写轨迹进行光学字符识别(optical character recognition,OCR)得到的。In some possible implementations, the first content is obtained by performing optical character recognition (OCR) on the first handwriting trajectory.
在一些可能的实现方式中,第一内容为文字、数字或图案。In some possible implementations, the first content is text, numbers, or patterns.
在一些可能的实现方式中,在显示第一手写轨迹之后,且在显示第一内容之前,该方法还包括:在触控屏上停止显示第一手写轨迹。In some possible implementations, after displaying the first handwriting trace and before displaying the first content, the method further includes: stopping displaying the first handwriting trace on the touch screen.
这样,在进行第一内容显示的时候,可以避免手写轨迹对显示第一内容时的干扰,提升了用户体验。In this way, when the first content is displayed, the interference of the handwriting track on the display of the first content can be avoided, thereby improving the user experience.
在一些可能的实现方式中,确定第一内容的第一显示格式,包括:根据第一封闭图形的内容对齐格式或预定义的内容对齐格式,确定第一显示位置,内容对齐格式包括左对齐,右对齐,居中对齐,两端对齐以及分散对齐中的任意一种。In some possible implementations, determining a first display format of the first content includes: determining a first display position according to a content alignment format of the first closed graphic or a predefined content alignment format, where the content alignment format includes any one of left alignment, right alignment, center alignment, both end alignment, and distributed alignment.
这样,在对第一内容进行显示的时候,可以通过确定对齐格式从而确定显示位置,使第一内容可以显示在封闭图形中的一个恰当的位置,提高用户的使用体验。In this way, when the first content is displayed, the display position can be determined by determining the alignment format, so that the first content can be displayed at an appropriate position in the closed graphic, thereby improving the user experience.
在一些可能的实现方式中,第一显示格式还包括第一内容的第一显示大小。由此以使得电子设备所显示的第一内容的大小处于适宜用户查看的大小,提升用户体验。In some possible implementations, the first display format further includes a first display size of the first content, so that the size of the first content displayed on the electronic device is a size suitable for the user to view, thereby improving the user experience.
在一些可能的实现方式中,第一显示大小与第一手写轨迹在触控屏上的显示大小不同。In some possible implementations, the first display size is different from the display size of the first handwriting trace on the touch screen.
在一些可能的实现方式中,确定第一内容的第一显示格式,包括:根据第一封闭图形的预定义 的内容大小规格确定第一显示大小;或者,根据第一手写轨迹在触控屏上的显示大小,确定第一显示大小。In some possible implementations, determining the first display format of the first content includes: The first display size is determined according to the content size specification; or, the first display size is determined according to the display size of the first handwriting track on the touch screen.
这样,可以使第一内容在第一封闭图形中显示时有一个合适的大小,不会因为字太大或太小而影响用户的体验。In this way, the first content can be displayed in a suitable size in the first closed graphic, and the user experience will not be affected due to the font being too large or too small.
在一些可能的实现方式中,第一显示格式还包括:第一内容的显示颜色。In some possible implementations, the first display format further includes: a display color of the first content.
在一些可能的实现方式中,第一内容为文字,第一显示格式还包括第一内容的字体。In some possible implementations, the first content is text, and the first display format also includes a font of the first content.
在一些可能的实现方式中,该方法还包括:获取用户在第一封闭图形中输入的第二手写轨迹;根据第二手写轨迹得到第二内容;根据第一显示格式确定第二显示格式,第二显示格式包括第一内容和第二内容在第一封闭图形中的第二显示位置;以第二显示格式在触控屏上显示第一内容和第二内容。In some possible implementations, the method also includes: obtaining a second handwriting trajectory input by the user in the first closed figure; obtaining a second content according to the second handwriting trajectory; determining a second display format according to the first display format, the second display format including a second display position of the first content and the second content in the first closed figure; and displaying the first content and the second content on the touch screen in the second display format.
这样,可以使用户在第二次输入时的内容与第一次输入的内容形成一个整体,对这个整体在合适的位置进行显示,可以符合用户的使用习惯。In this way, the content input by the user for the second time can be combined with the content input for the first time to form a whole, and the whole can be displayed at a suitable position to meet the user's usage habits.
在一些可能的实现方式中,在以第二显示格式在触控屏上显示第一内容和第二内容之前,该方法还包括:在触控屏上显示第二手写轨迹;在预设的时间段之后,在触控屏上停止显示第二手写轨迹。In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the method further includes: displaying a second handwriting trace on the touch screen; and stopping displaying the second handwriting trace on the touch screen after a preset time period.
在一些可能的实现方式中,第二显示位置由第一内容对齐格式确定;根据第一显示格式确定第二显示格式,包括:根据第一内容对齐格式确定第二显示位置。In some possible implementations, the second display position is determined by the first content alignment format; and determining the second display format according to the first display format includes: determining the second display position according to the first content alignment format.
在一些可能的实现方式中,第二显示格式包括第一内容和第二内容的第二显示大小,第二显示大小与第一显示大小相同。In some possible implementations, the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
在一些可能的实现方式中,触控屏上还显示有第二封闭图形,该方法还包括:获取用户在第二封闭图形中输入的第三手写轨迹;根据第三手写轨迹得到第三内容;确定第三内容的第三显示格式,第三显示格式包括第三内容在第二封闭图形中的第三显示位置,第三显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;以第三显示格式在触控屏上显示第三内容。In some possible implementations, a second closed figure is also displayed on the touch screen, and the method further includes: obtaining a third handwriting trajectory input by the user in the second closed figure; obtaining third content according to the third handwriting trajectory; determining a third display format of the third content, the third display format including a third display position of the third content in the second closed figure, the third display position being obtained according to a content alignment format of the second closed figure or a predefined content alignment format; and displaying the third content on the touch screen in the third display format.
在一些可能的实现方式中,第一封闭图形的内容对齐格式与第二封闭图形的内容对齐格式一致。这样,可以使两个封闭图形中的内容保持一个统一的对齐格式,使得内容看起来更加整齐。In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure. In this way, the content in the two closed figures can maintain a unified alignment format, making the content look more neat.
在一些可能的实现方式中,第三显示格式还包括第三内容的第三显示大小,第三显示大小与第一显示大小一致。这样,也可以使两个封闭图形中的内容保持统一的大小规格,例如,同样的字号,因而可以使得内容看起来更加整齐。In some possible implementations, the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size. In this way, the content in the two closed graphics can also maintain a uniform size specification, for example, the same font size, so that the content can look more neat.
在一些可能的实现方式中,在以第三显示格式在触控屏上显示第三内容之前,该方法还包括:在触控屏上显示第三手写轨迹;在预设的时间段之后,在触控屏上停止显示第三手写轨迹。In some possible implementations, before displaying the third content on the touch screen in the third display format, the method further includes: displaying a third handwriting trace on the touch screen; and stopping displaying the third handwriting trace on the touch screen after a preset time period.
在一些可能的实现方式中,该方法还包括:响应于用户在第二封闭图形中输入的第四手写轨迹,调大第二封闭图形;根据第四手写轨迹,得到第四内容;根据调大后的第二封闭图形和第三显示格式确定第三内容和第四内容的第四显示格式,第四显示格式包括第三内容和第四内容在调大后的第二封闭图形中的第四显示位置,第四显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;以第四显示格式在触控屏上显示第三内容和第四内容。这样,在用户输入的内容较多,或者用户手写的字较大时,第二封闭图形内是容纳不下用户输入的内容,此时将第二封闭图形调大,可以使用户输入的内容都在封闭图形内,符合用户的使用习惯。In some possible implementations, the method further includes: in response to a fourth handwriting track input by the user in the second closed figure, enlarging the second closed figure; obtaining a fourth content according to the fourth handwriting track; determining a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to the content alignment format of the second closed figure or a predefined content alignment format; and displaying the third content and the fourth content on the touch screen in the fourth display format. In this way, when the user inputs a lot of content or the user's handwritten words are large, the second closed figure cannot accommodate the user's input content. At this time, enlarging the second closed figure can make the user's input content all within the closed figure, which is in line with the user's usage habits.
在一些可能的实现方式中,在以第四显示格式在触控屏上显示第三内容和第四内容之前,该方法还包括:在触控屏上显示调大后的第二封闭图形;在触控屏上显示第四手写轨迹;在预设的时间段之后,在触控屏上停止显示第四手写轨迹。In some possible implementations, before displaying the third content and the fourth content on the touch screen in a fourth display format, the method also includes: displaying an enlarged second closed figure on the touch screen; displaying a fourth handwriting trajectory on the touch screen; and stopping displaying the fourth handwriting trajectory on the touch screen after a preset time period.
在一些可能的实现方式中,第一封闭图形和第二封闭图形为矩形,且第一封闭图形和第二封闭图形对齐,该方法还包括:根据调大后的第二封闭图形,调大第一封闭图形,以使得调大后的第一封闭图形和调大后的第二封闭图形对齐;确定第一内容在调大后的第一封闭图形中的第五显示格式,第五显示格式包括第一内容在调大后的第一封闭图形中的显示位置;以第五显示格式在触控屏上显示第一内容。In some possible implementations, the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned, and the method further includes: enlarging the first closed figure according to the enlarged second closed figure so that the enlarged first closed figure and the enlarged second closed figure are aligned; determining a fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure; and displaying the first content on the touch screen in the fifth display format.
其中,在第一封闭图形和第二封闭图形都为矩形,且第一封闭图形和第二封闭图形对齐的情况下,第一封闭图形和第二封闭图形可以看做是一个有两个单元格的表格,这样,在一个单元格进行调整后,根据调整的单元格同步调整另一个单元格,会使得两个单元格依然对齐,更符合用户的使用习惯。Among them, when the first closed figure and the second closed figure are both rectangles and the first closed figure and the second closed figure are aligned, the first closed figure and the second closed figure can be regarded as a table with two cells. In this way, after one cell is adjusted, the other cell is synchronously adjusted according to the adjusted cell, which will make the two cells still aligned, which is more in line with the user's usage habits.
在一些可能的实现方式中,该方法还包括:响应于用户在第二封闭图形中删除第四内容,调小第二封闭图形;以第三显示格式在触控屏上显示第三内容。 In some possible implementations, the method further includes: in response to the user deleting the fourth content in the second closed figure, reducing the second closed figure; and displaying the third content on the touch screen in a third display format.
在一些可能的实现方式中,该方法还包括:根据调小后的第二封闭图形,调小第一封闭图形,以使得调小后的第一封闭图形与调小后的第二封闭图形对齐;确定第一内容在调小后的第一封闭图形中的第六显示格式,第六显示格式包括第一内容在调小后的第一封闭图形中的显示位置;以第六显示格式在触控屏上显示第一内容。In some possible implementations, the method further includes: reducing the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determining a sixth display format of the first content in the reduced first closed figure, the sixth display format including a display position of the first content in the reduced first closed figure; and displaying the first content on the touch screen in the sixth display format.
在一些可能的实现方式中,第一内容包括具有顺序关系的多个标识,确定第一内容的第一显示格式,包括:根据多个标识对第一内容进行换行处理;根据第一封闭图形的内容对齐格式或预定义的内容对齐格式确定换行处理后的第一内容的第一显示位置。这样,在第一内容和第二内容中对输入的内容进行换行,使用户在查看显示的内容时更加方便。In some possible implementations, the first content includes a plurality of identifiers in a sequential relationship, and determining the first display format of the first content includes: performing line break processing on the first content according to the plurality of identifiers; and determining a first display position of the first content after line break processing according to a content alignment format of the first closed figure or a predefined content alignment format. In this way, line break is performed on the input content in the first content and the second content, making it more convenient for the user to view the displayed content.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容包括具有顺序关系的标识,方法还包括:在第三封闭图形中填充第五内容,以使得第一内容、第三内容和第五内容包括具有顺序关系的标识。这样,在第一内容和第二内容包括有顺序关系的标识时,通过在第三封闭图形中自动填充内容,可以免去用户的手动输入,提供用户的使用效率。In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, and the first content and the third content include identifiers with a sequential relationship, and the method further includes: filling the fifth content in the third closed figure so that the first content, the third content, and the fifth content include identifiers with a sequential relationship. In this way, when the first content and the second content include identifiers with a sequential relationship, by automatically filling the content in the third closed figure, the user's manual input can be avoided, thereby improving the user's usage efficiency.
在一些可能的实现方式中,具有顺序关系的标识为具有顺序递增关系或顺序递减关系的数字;或者,为具有顺序递增关系或顺序递减关系的字母。In some possible implementations, the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容为数字,方法还包括:在第三封闭图形中填充第五内容,第五内容为数字,且第五内容是将第一内容和第三内容按照预定的公式计算得到。In some possible implementations, a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the method also includes: filling the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
这样,在第一内容和第二内容都为数字的情况下,可以对用户输入的数字进行自动计算,可以免去用户自己进行计算的操作,节省用户的时间,提高用户的使用效率。In this way, when both the first content and the second content are numbers, the numbers input by the user can be automatically calculated, which can save the user from having to perform the calculations themselves, saving the user's time and improving the user's usage efficiency.
第二方面,本申请提供一种显示内容的方法,应用于具有触控屏的电子设备,触控屏上显示有第一封闭图形,该方法包括:获取用户在第一封闭图形中输入的第一手写轨迹;在触控屏上显示第一手写轨迹;根据第一封闭图形中的内容对齐格式或预定义的内容对齐格式调整第一手写轨迹在第一封闭图形中的显示位置;以调整后的显示位置在触控屏上显示第一手写轨迹。In a second aspect, the present application provides a method for displaying content, which is applied to an electronic device with a touch screen, and a first closed figure is displayed on the touch screen. The method includes: obtaining a first handwriting trajectory input by a user in the first closed figure; displaying the first handwriting trajectory on the touch screen; adjusting the display position of the first handwriting trajectory in the first closed figure according to a content alignment format or a predefined content alignment format in the first closed figure; and displaying the first handwriting trajectory on the touch screen at the adjusted display position.
这样,当用户在电子设备的触控屏上进行手写输入时,在触控屏上可以显示用户手写输入的笔迹,并对该笔迹的显示位置进行调整,从而可以使电子设备所显示的用户输入的内容在合适的位置,且保留了用户的手写风格,便于用户查看,提高了用户使用时的便捷性。In this way, when the user performs handwriting input on the touch screen of the electronic device, the handwriting of the user can be displayed on the touch screen and the display position of the handwriting can be adjusted, so that the content input by the user displayed on the electronic device can be in a suitable position and the user's handwriting style can be retained, which is convenient for the user to view and improves the convenience of user use.
在一些可能的实现方式中,该方法还包括:根据预定义的显示大小,调整第一手写轨迹的显示大小;以调整后的显示位置在触控屏上显示第一手写轨迹,包括:以调整后的显示位置,且以调整后的显示大小,在触控屏上显示第一手写轨迹。In some possible implementations, the method further includes: adjusting the display size of the first handwriting trajectory according to a predefined display size; displaying the first handwriting trajectory on the touch screen at the adjusted display position, including: displaying the first handwriting trajectory on the touch screen at the adjusted display position and at the adjusted display size.
应理解,上述第一方面中各种可能的实施方式方可以直接或间接地应用该第二方面的方法中,并可以获得相同或相似的技术效果。It should be understood that various possible implementation methods in the above-mentioned first aspect can be directly or indirectly applied to the method of the second aspect, and can achieve the same or similar technical effects.
第三方面,本申请提供一种显示内容的装置,部署于具有触控屏的电子设备,触控屏上显示有第一封闭图形,该装置可以包括:获取模块,用于获取用户在第一封闭图形中输入的第一手写轨迹;显示模块,用于在触控屏上显示第一手写轨迹;处理模块,用于根据第一手写轨迹得到第一内容;处理模块,还用于确定第一内容的第一显示格式,第一显示格式包括第一内容在第一封闭图形中的第一显示位置,第一显示位置与第一手写轨迹在触控屏上的显示位置不同;显示模块,还用于以第一显示格式在触控屏上显示第一内容。In a third aspect, the present application provides a device for displaying content, which is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen. The device may include: an acquisition module, used to acquire a first handwriting trajectory input by a user in the first closed figure; a display module, used to display the first handwriting trajectory on the touch screen; a processing module, used to obtain first content according to the first handwriting trajectory; the processing module is also used to determine a first display format of the first content, the first display format includes a first display position of the first content in the first closed figure, and the first display position is different from the display position of the first handwriting trajectory on the touch screen; the display module is also used to display the first content on the touch screen in the first display format.
在一些可能的实现方式中,第一内容是对第一手写轨迹进行光学字符识别(optical character recognition,OCR)得到的。In some possible implementations, the first content is obtained by performing optical character recognition (OCR) on the first handwriting trajectory.
在一些可能的实现方式中,第一内容为文字、数字或图案。In some possible implementations, the first content is text, numbers, or patterns.
在一些可能的实现方式中,在显示第一手写轨迹之后,且在显示第一内容之前,显示模块还用于在触控屏上停止显示第一手写轨迹。In some possible implementations, after displaying the first handwriting trace and before displaying the first content, the display module is further configured to stop displaying the first handwriting trace on the touch screen.
在一些可能的实现方式中,处理模块还用于:根据第一封闭图形的内容对齐格式或预定义的内容对齐格式,确定第一显示位置,内容对齐格式包括左对齐,右对齐,居中对齐,两端对齐以及分散对齐中的任意一种。 In some possible implementations, the processing module is further used to: determine the first display position according to the content alignment format of the first closed graphic or a predefined content alignment format, the content alignment format including any one of left alignment, right alignment, center alignment, two-end alignment and distributed alignment.
在一些可能的实现方式中,第一显示格式还包括第一内容的第一显示大小。In some possible implementations, the first display format also includes a first display size of the first content.
在一些可能的实现方式中,第一显示大小与第一手写轨迹在触控屏上的显示大小不同。In some possible implementations, the first display size is different from the display size of the first handwriting trace on the touch screen.
在一些可能的实现方式中,处理模块还用于:根据第一封闭图形的预定义的内容大小规格确定第一显示大小;或者,根据第一手写轨迹在触控屏上的显示大小,确定第一显示大小。In some possible implementations, the processing module is further used to: determine the first display size according to a predefined content size specification of the first closed figure; or determine the first display size according to a display size of the first handwriting track on the touch screen.
在一些可能的实现方式中,第一显示格式还包括:第一内容的显示颜色。In some possible implementations, the first display format further includes: a display color of the first content.
在一些可能的实现方式中,第一内容为文字,第一显示格式还包括第一内容的字体。In some possible implementations, the first content is text, and the first display format also includes a font of the first content.
在一些可能的实现方式中,处理模块还用于:获取用户在第一封闭图形中输入的第二手写轨迹;根据第二手写轨迹得到第二内容;根据第一显示格式确定第二显示格式,第二显示格式包括第一内容和第二内容在第一封闭图形中的第二显示位置;显示模块还用于以第二显示格式在触控屏上显示第一内容和第二内容。In some possible implementations, the processing module is also used to: obtain a second handwriting trajectory input by the user in the first closed figure; obtain the second content according to the second handwriting trajectory; determine the second display format according to the first display format, the second display format including the first content and the second content in the first closed figure. The display module is also used to display the first content and the second content on the touch screen in the second display format.
在一些可能的实现方式中,在以第二显示格式在触控屏上显示第一内容和第二内容之前,显示模块还用于:在触控屏上显示第二手写轨迹;在预设的时间段之后,在触控屏上停止显示第二手写轨迹。In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the display module is further used to: display a second handwriting trajectory on the touch screen; and stop displaying the second handwriting trajectory on the touch screen after a preset time period.
在一些可能的实现方式中,第二显示位置由第一内容对齐格式确定;处理模块还用于根据第一内容对齐格式确定第二显示位置。In some possible implementations, the second display position is determined by the first content alignment format; and the processing module is further configured to determine the second display position according to the first content alignment format.
在一些可能的实现方式中,第二显示格式包括第一内容和第二内容的第二显示大小,第二显示大小与第一显示大小相同。In some possible implementations, the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
在一些可能的实现方式中,触控屏上还显示有第二封闭图形,获取模块还用于获取用户在第二封闭图形中输入的第三手写轨迹;处理模块还用于根据第三手写轨迹得到第三内容;确定第三内容的第三显示格式,第三显示格式包括第三内容在第二封闭图形中的第三显示位置,第三显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;显示模块还用于以第三显示格式在触控屏上显示第三内容。In some possible implementations, a second closed figure is also displayed on the touch screen, and the acquisition module is further used to acquire a third handwriting trajectory input by the user in the second closed figure; the processing module is further used to obtain third content based on the third handwriting trajectory; determine a third display format of the third content, the third display format includes a third display position of the third content in the second closed figure, and the third display position is obtained according to the content alignment format of the second closed figure or a predefined content alignment format; the display module is further used to display the third content on the touch screen in the third display format.
在一些可能的实现方式中,第一封闭图形的内容对齐格式与第二封闭图形的内容对齐格式一致。In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure.
在一些可能的实现方式中,第三显示格式还包括第三内容的第三显示大小,第三显示大小与第一显示大小一致。In some possible implementations, the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size.
在一些可能的实现方式中,在以第三显示格式在触控屏上显示第三内容之前,显示模块还用于在触控屏上显示第三手写轨迹;在预设的时间段之后,在触控屏上停止显示第三手写轨迹。In some possible implementations, before displaying the third content on the touch screen in the third display format, the display module is further used to display a third handwriting track on the touch screen; after a preset time period, the third handwriting track is stopped from being displayed on the touch screen.
在一些可能的实现方式中,处理模块还用于:响应于用户在第二封闭图形中输入的第四手写轨迹,调大第二封闭图形;根据第四手写轨迹,得到第四内容;根据调大后的第二封闭图形和第三显示格式确定第三内容和第四内容的第四显示格式,第四显示格式包括第三内容和第四内容在调大后的第二封闭图形中的第四显示位置,第四显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;显示模块还用于以第四显示格式在触控屏上显示第三内容和第四内容。In some possible implementations, the processing module is also used to: enlarge the second closed figure in response to a fourth handwriting trajectory input by the user in the second closed figure; obtain a fourth content based on the fourth handwriting trajectory; determine a fourth display format of the third content and the fourth content based on the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained based on a content alignment format of the second closed figure or a predefined content alignment format; the display module is also used to display the third content and the fourth content on the touch screen in the fourth display format.
在一些可能的实现方式中,在以第四显示格式在触控屏上显示第三内容和第四内容之前,显示模块还用于:在触控屏上显示调大后的第二封闭图形;在触控屏上显示第四手写轨迹;在预设的时间段之后,在触控屏上停止显示第四手写轨迹。In some possible implementations, before displaying the third content and the fourth content on the touch screen in a fourth display format, the display module is also used to: display an enlarged second closed figure on the touch screen; display a fourth handwriting trajectory on the touch screen; and stop displaying the fourth handwriting trajectory on the touch screen after a preset time period.
在一些可能的实现方式中,第一封闭图形和第二封闭图形为矩形,且第一封闭图形和第二封闭图形对齐,处理模块还用于:根据调大后的第二封闭图形,调大第一封闭图形,以使得调大后的第一封闭图形和调大后的第二封闭图形对齐;确定第一内容在调大后的第一封闭图形中的第五显示格式,第五显示格式包括第一内容在调大后的第一封闭图形中的显示位置;显示模块还用于以第五显示格式在触控屏上显示第一内容。In some possible implementations, the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned, and the processing module is also used to: enlarge the first closed figure according to the enlarged second closed figure, so that the enlarged first closed figure and the enlarged second closed figure are aligned; determine a fifth display format of the first content in the enlarged first closed figure, the fifth display format includes the display position of the first content in the enlarged first closed figure; the display module is also used to display the first content on the touch screen in the fifth display format.
在一些可能的实现方式中,处理模块还用于:响应于用户在第二封闭图形中删除第四内容,调小第二封闭图形;显示模块还用于以第三显示格式在触控屏上显示第三内容。In some possible implementations, the processing module is further used to: in response to the user deleting the fourth content in the second closed figure, reduce the size of the second closed figure; and the display module is further used to display the third content on the touch screen in a third display format.
在一些可能的实现方式中,处理模块还用于:根据调小后的第二封闭图形,调小第一封闭图形,以使得调小后的第一封闭图形与调小后的第二封闭图形对齐;确定第一内容在调小后的第一封闭图形中的第六显示格式,第六显示格式包括第一内容在调小后的第一封闭图形中的显示位置;显示模块还用于以第六显示格式在触控屏上显示第一内容。In some possible implementations, the processing module is also used to: reduce the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determine a sixth display format of the first content in the reduced first closed figure, the sixth display format including the display position of the first content in the reduced first closed figure; the display module is also used to display the first content on the touch screen in the sixth display format.
在一些可能的实现方式中,第一内容包括具有顺序关系的多个标识,处理模块还用于:根据多个标识对第一内容进行换行处理;根据第一封闭图形的内容对齐格式或预定义的内容对齐格式确定换行 处理后的第一内容的第一显示位置。In some possible implementations, the first content includes a plurality of identifiers in a sequential relationship, and the processing module is further used to: perform line break processing on the first content according to the plurality of identifiers; determine the line break according to the content alignment format of the first closed figure or the predefined content alignment format; The first display position of the processed first content.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容为具有顺序关系的标识,处理模块还用于:在第三封闭图形中填充第五内容,以使得第一内容、第三内容和第五内容为具有顺序关系的标识。In some possible implementations, a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are identifications with a sequential relationship, and the processing module is also used to: fill the fifth content in the third closed figure so that the first content, the third content, and the fifth content are identifications with a sequential relationship.
在一些可能的实现方式中,具有顺序关系的标识为具有顺序递增关系或顺序递减关系的数字;或者,为具有顺序递增关系或顺序递减关系的字母。In some possible implementations, the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容为数字,处理模块还用于:在第三封闭图形中填充第五内容,第五内容为数字,且第五内容是将第一内容和第三内容按照预定的公式计算得到。In some possible implementations, a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the processing module is also used to: fill the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
第四方面,本申请提供一种显示内容的装置,部署于具有触控屏的电子设备,触控屏上显示有第一封闭图形,该装置包括:获取模块,用于获取用户在第一封闭图形中输入的第一手写轨迹;显示模块,用于在触控屏上显示第一手写轨迹;处理模块,用于根据第一封闭图形中的内容对齐格式或预定义的内容对齐格式调整第一手写轨迹在第一封闭图形中的显示位置;显示模块,还用于以调整后的显示位置在触控屏上显示第一手写轨迹。In a fourth aspect, the present application provides a device for displaying content, which is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen. The device includes: an acquisition module, used to acquire a first handwriting trajectory input by a user in the first closed figure; a display module, used to display the first handwriting trajectory on the touch screen; a processing module, used to adjust the display position of the first handwriting trajectory in the first closed figure according to the content alignment format in the first closed figure or a predefined content alignment format; the display module is also used to display the first handwriting trajectory on the touch screen with the adjusted display position.
在一些可能的实现方式中,处理模块还用于:根据预定义的显示大小,调整第一手写轨迹的显示大小;显示模块还用于:以调整后的显示位置,且以调整后的显示大小,在触控屏上显示第一手写轨迹。In some possible implementations, the processing module is further used to: adjust the display size of the first handwriting trajectory according to a predefined display size; the display module is further used to: display the first handwriting trajectory on the touch screen with the adjusted display position and the adjusted display size.
第五方面,本申请提供一种计算机可读存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行如第一方面和/或第二方面任一项所述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, comprising computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method described in any one of the first aspect and/or the second aspect.
第六方面,本申请提供一种计算设备,包括处理器和存储器,其中,所述存储器中存储有计算机程序指令,所述计算机程序指令被所述处理器运行时,执行如第一方面和/或第二方面任一项所述的方法。In a sixth aspect, the present application provides a computing device comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method described in any one of the first aspect and/or the second aspect is executed.
第七方面,本申请提供一种包含计算机程序的产品,当计算机程序产品在处理器上运行时,使得所述处理器执行如第一方面和/或第二方面任一项所述的方法。In a seventh aspect, the present application provides a product comprising a computer program, which, when the computer program product runs on a processor, enables the processor to execute the method as described in any one of the first aspect and/or the second aspect.
可以理解的是,上述第三方面至第七方面的有益效果可以参见上述第一方面和第二方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the third to seventh aspects mentioned above can be found in the relevant descriptions of the first and second aspects mentioned above, and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
图1是本申请实施例提供的一种应用场景的示意图;FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2是本申请实施例提供的一种电子设备的示意图;FIG2 is a schematic diagram of an electronic device provided in an embodiment of the present application;
图3是本申请实施例提供的一种显示内容的示意图;FIG3 is a schematic diagram of a display content provided by an embodiment of the present application;
图4是本申请实施例提供的一种显示内容的方法示意图;FIG4 is a schematic diagram of a method for displaying content provided by an embodiment of the present application;
图5是本申请实施例提供的一种显示内容的效果示意图;FIG5 is a schematic diagram of an effect of displaying content provided by an embodiment of the present application;
图6是本申请实施例提供的一种字体外包框的示意图;FIG6 is a schematic diagram of a font outsourcing frame provided in an embodiment of the present application;
图7是本申请实施例提供的一种电子设备显示第二内容的方法示意图;FIG. 7 is a schematic diagram of a method for an electronic device to display a second content provided by an embodiment of the present application;
图8是本申请实施例提供的一种电子设备显示第二内容的效果示意图;FIG8 is a schematic diagram showing an effect of an electronic device displaying a second content provided by an embodiment of the present application;
图9是本申请实施例提供的一种图形外的内容拖入图形内进行显示的示意图;FIG9 is a schematic diagram of dragging content outside a graphic into a graphic for display provided by an embodiment of the present application;
图10是本申请实施例提供的一种内容对齐的示意图;FIG10 is a schematic diagram of content alignment provided by an embodiment of the present application;
图11是本申请实施例提供的一种第二封闭图形显示内容的方法示意图;FIG11 is a schematic diagram of a method for displaying content in a second closed graphic according to an embodiment of the present application;
图12是本申请实施例提供的另一种第二封闭图形显示内容的方法示意图;FIG12 is a schematic diagram of another method for displaying content in a second closed graphic according to an embodiment of the present application;
图13是本申请实施例提供的一种图形大小调整的示意图;FIG13 is a schematic diagram of a graphic size adjustment provided by an embodiment of the present application;
图14是本申请实施例提供的一种输入完成后对图形大小调整的示意图; FIG14 is a schematic diagram of adjusting the size of a graphic after input is completed, provided in an embodiment of the present application;
图15是本申请实施例提供的一种实施调整图形大小的示意图;FIG15 is a schematic diagram of an implementation of adjusting the size of a graphic provided in an embodiment of the present application;
图16是本申请实施例提供的一种图形内容自动填充的示意图;FIG16 is a schematic diagram of automatic filling of graphic content provided by an embodiment of the present application;
图17是本申请实施例提供的一种图形内容自动计算的示意图;FIG17 is a schematic diagram of automatic calculation of graphic content provided by an embodiment of the present application;
图18是本申请实施例提供的一种用户选择内容自动计算的示意图;FIG18 is a schematic diagram of automatic calculation of user selected content provided by an embodiment of the present application;
图19是本申请实施例提供的另一种用户选择内容自动计算的示意图;FIG19 is a schematic diagram of another automatic calculation of user-selected content provided by an embodiment of the present application;
图20是本申请所述来提供的一种内容显示装置的示意图;FIG20 is a schematic diagram of a content display device provided by the present application;
图21是本申请所述来提供的另一种内容显示装置的示意图。FIG. 21 is a schematic diagram of another content display device provided in the present application.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
本文中术语“和/或”,是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中符号“/”表示关联对象是或者的关系,例如A/B表示A或者B。The term "and/or" in this article is a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The symbol "/" in this article indicates that the associated objects are in an or relationship, for example, A/B means A or B.
本文中的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一响应消息和第二响应消息等是用于区别不同的响应消息,而不是用于描述响应消息的特定顺序。The terms "first" and "second" in the specification and claims herein are used to distinguish different objects rather than to describe a specific order of the objects. For example, a first response message and a second response message are used to distinguish different response messages rather than to describe a specific order of the response messages.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或者两个以上,例如,多个处理单元是指两个或者两个以上的处理单元等;多个元件是指两个或者两个以上的元件等。In the description of the embodiments of the present application, unless otherwise specified, "multiple" means two or more than two. For example, multiple processing units refer to two or more processing units, etc.; multiple elements refer to two or more elements, etc.
为便于对本申请实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。To facilitate the understanding of the embodiments of the present application, the following will further explain and illustrate specific embodiments in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.
本申请公开的显示内容方法的技术方案可以应用于设置有触控屏的电子设备中。在本申请一些实施例中,电子设备可以是具有处理器的便携式电子设备,诸如手机、平板电脑、具备无线通讯功能的可穿戴设备(比如智能手表等)、车载设备等。便携式电子设备的示例性实施例包括但不限于搭载或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是诸如具有触敏表面(比如触控面板等)的膝上型计算机(Laptop)等。应当理解的是,在本申请其他一些实施例中,上述电子设备也可以不是便携式设备,例如也可以是电子白板,比如柜式电子白板或镶墙式电子白板等,或者也可以是台式计算机,例如PC,或者也可以是电视机等。The technical solution of the method for displaying content disclosed in the present application can be applied to an electronic device provided with a touch screen. In some embodiments of the present application, the electronic device can be a portable electronic device with a processor, such as a mobile phone, a tablet computer, a wearable device with a wireless communication function (such as a smart watch, etc.), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to devices equipped with Or a portable electronic device with other operating systems. The portable electronic device may also be a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel, etc.). It should be understood that in some other embodiments of the present application, the electronic device may not be a portable device, for example, it may be an electronic whiteboard, such as a cabinet electronic whiteboard or a wall-mounted electronic whiteboard, or it may be a desktop computer, such as a PC, or it may be a television, etc.
图1示例性示出了本申请实施例提供的一种应用场景示意图。该应用场景包括用户100以及电子设备200,电子设备200包括触控屏。可选的,电子设备200中可以安装多个应用程序,比如视频会议、投屏书写、白板、文件管理、相机、图像等应用程序。示例性地,以用户100选中电子设备200中的白板应用程序进行文字书写为例,用户100在白板上书写一个或多个文字时,电子设备200可以采用本申请实施例提供的显示内容方法对用户100手写输入的内容(例如,文字或图案等)的显示格式进行调整,并以调整后的显示格式将用户100的输入的内容显示在触控屏上。此时用户100可以看到触控屏上显示的是调整显示格式的内容,使得在触控屏上显示的内容更加统一或美观,提升用户的视觉体验,且提高用户使用时的便捷性。FIG1 exemplarily shows a schematic diagram of an application scenario provided by an embodiment of the present application. The application scenario includes a user 100 and an electronic device 200, and the electronic device 200 includes a touch screen. Optionally, multiple applications can be installed in the electronic device 200, such as video conferencing, screen writing, whiteboard, file management, camera, image and other applications. For example, taking the case where the user 100 selects the whiteboard application in the electronic device 200 for text writing as an example, when the user 100 writes one or more words on the whiteboard, the electronic device 200 can use the display content method provided in the embodiment of the present application to adjust the display format of the content (e.g., text or pattern, etc.) input by the user 100, and display the content input by the user 100 on the touch screen in the adjusted display format. At this time, the user 100 can see that the content displayed on the touch screen is the content of the adjusted display format, so that the content displayed on the touch screen is more unified or beautiful, which enhances the user's visual experience and improves the convenience of the user when using it.
需要说明的是,图1仅示意性的提供了一种应用场景,并不对本申请提供的显示内容方法的应用场景构成限定。例如,在一种可能的场景中,带有处理器的电子设备200与触摸屏是分开的,电子设备200与触摸屏之间可以通过有线或无线的方式进行连接。触摸屏可以用于获取用户100的操作指令,将指令通过有线或者无线的方式发送至处理器处进行执行,处理器将执行结果返回 给触摸屏进行显示。本申请提供的显示内容方法可以适用于更多种场景,本申请不再一一列举。It should be noted that FIG. 1 only schematically provides an application scenario and does not limit the application scenario of the method for displaying content provided in the present application. For example, in one possible scenario, the electronic device 200 with a processor is separated from the touch screen, and the electronic device 200 and the touch screen can be connected via a wired or wireless method. The touch screen can be used to obtain the operation instructions of the user 100, and send the instructions to the processor via a wired or wireless method for execution, and the processor returns the execution result to the processor. The method for displaying content provided in this application can be applied to many more scenarios, which will not be listed one by one in this application.
基于图1所示的应用场景,本申请实施例提供了一种电子设备。参见图2,电子设备可以包括处理器210、外部存储器接口220、内部存储器221、通用串行总线(universal serial bus,USB)接口230、充电管理模块240、电源管理模块241、电池242、天线1、天线2、移动通信模块251、无线通信模块252、音频模块270、扬声器270A、受话器270B、麦克风270C、耳机接口270D、传感器模块280、按键290、马达291、指示器292、摄像头293、显示屏294以及用户标识模块(subscriber identification module,SIM)卡接口295等。其中,传感器模块280可以包括压力传感器280A、陀螺仪传感器280B、气压传感器280C、加速度传感器280D、接近光传感器280E、环境光传感器280F、指纹传感器280G、温度传感器280H和触摸传感器280I,当然,电子设备200也可以包括其它传感器,比如磁传感器、距离传感器、骨传导传感器等。Based on the application scenario shown in FIG1 , an embodiment of the present application provides an electronic device. Referring to FIG2 , the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 251, a wireless communication module 252, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. Among them, the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, an acceleration sensor 280D, a proximity light sensor 280E, an ambient light sensor 280F, a fingerprint sensor 280G, a temperature sensor 280H and a touch sensor 280I. Of course, the electronic device 200 may also include other sensors, such as a magnetic sensor, a distance sensor, a bone conduction sensor, etc.
需要说明的是,图2中示出的天线1、天线2是一种示例,在其它一些实施例中也可以包括其它天线。应当理解,图2示出的电子设备仅是一种示例,并不构成对电子设备的限定。例如,电子设备200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be noted that the antenna 1 and antenna 2 shown in FIG. 2 are examples, and other antennas may also be included in other embodiments. It should be understood that the electronic device shown in FIG. 2 is only an example and does not constitute a limitation on the electronic device. For example, the electronic device 200 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application-specific integrated circuits.
下面结合图2对电子设备200的部分部件进行具体的介绍:The following is a detailed introduction to some components of the electronic device 200 in conjunction with FIG. 2 :
图2中的处理器210,可以包括一个或多个处理单元,比如,处理器210可以包括应用处理器(application processor,AP)、基带处理器、图形处理器(graphics processing unit,GPU)、图像信号处理器(image signal processor,ISP)、控制器、存储器、视频编解码器、数字信号处理器(digital signal processor,DSP)和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备200的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 210 in FIG. 2 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a baseband processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP) and/or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. The controller may be the nerve center and command center of the electronic device 200. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据,比如该存储器可以存储显示内容方法的程序代码。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用,从而可避免重复存取,可减少处理器210的等待时间,因而可提高系统的效率。The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. For example, the memory may store program code for a method for displaying content. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 210, and thus improving the efficiency of the system.
处理器210可以运行本申请提供的显示内容方法,处理器210可以响应于用户对触控屏的操作,启动与用户的操作相对应的功能。当处理器210集成不同的器件,比如集成CPU和GPU时,CPU和GPU可以配合执行本申请提供的显示内容方法,以得到较快的处理效率。The processor 210 can run the display content method provided in the present application, and the processor 210 can respond to the user's operation on the touch screen and start the function corresponding to the user's operation. When the processor 210 integrates different devices, such as integrating a CPU and a GPU, the CPU and the GPU can cooperate to execute the display content method provided in the present application to obtain faster processing efficiency.
外部存储器接口220可以用于连接外部存储卡,例如Micro SD卡,可以实现扩展电子设备200的存储能力。外部存储卡通过外部存储器接口220与处理器210通信,可以实现数据存储功能。比如,可以将图片,视频等文件保存在外部存储卡中。The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as pictures and videos can be saved in the external memory card.
内部存储器221可以用于存储计算机可执行程序代码,可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等,比如可以存储显示内容方法的程序代码。存储数据区可存储电子设备200使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器221可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在内部存储器221的指令和/或存储在设置于处理器中的存储器的指令,执行电子设备200的各种功能应用以及数据处理。The internal memory 221 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc., for example, a program code for a method of displaying content may be stored. The data storage area may store data created during the use of the electronic device 200 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device 200 by running instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
在一些实施例中,处理器210可以包括一个或多个接口。比如,接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口, 用户标识模块(subscriber identity module,SIM)接口,和/或,通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 210 may include one or more interfaces. For example, the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, A subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器210可以包含多组I2C总线。处理器210可以通过不同的I2C总线接口分别耦合触摸传感器280K,充电器,闪光灯,摄像头293等。例如:处理器210可以通过I2C接口耦合触摸传感器280K,使处理器210与触摸传感器280K通过I2C总线接口通信,实现电子设备200的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 210 may include multiple groups of I2C buses. The processor 210 may be coupled to the touch sensor 280K, the charger, the flash, the camera 293, etc. through different I2C bus interfaces. For example, the processor 210 may be coupled to the touch sensor 280K through the I2C interface, so that the processor 210 communicates with the touch sensor 280K through the I2C bus interface, thereby realizing the touch function of the electronic device 200.
I2S接口可以用于音频通信。在一些实施例中,处理器210可以包含多组I2S总线。处理器210可以通过I2S总线与音频模块270耦合,实现处理器210与音频模块270之间的通信。在一些实施例中,音频模块270可以通过I2S接口向无线通信模块252传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 210 can include multiple groups of I2S buses. The processor 210 can be coupled to the audio module 270 via the I2S bus to achieve communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 can transmit an audio signal to the wireless communication module 252 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块270与无线通信模块252可以通过PCM总线接口耦合。在一些实施例中,音频模块270也可以通过PCM接口向无线通信模块252传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 270 and the wireless communication module 252 can be coupled via a PCM bus interface. In some embodiments, the audio module 270 can also transmit audio signals to the wireless communication module 252 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器210与无线通信模块252。例如:处理器210通过UART接口与无线通信模块252中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块270可以通过UART接口向无线通信模块252传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 210 and the wireless communication module 252. For example, the processor 210 communicates with the Bluetooth module in the wireless communication module 252 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 270 can transmit an audio signal to the wireless communication module 252 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器210与显示屏294,摄像头293等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器210和摄像头293通过CSI接口通信,实现电子设备200的拍摄功能。处理器210和显示屏294通过DSI接口通信,实现电子设备200的显示功能。The MIPI interface can be used to connect the processor 210 with peripheral devices such as the display screen 294 and the camera 293. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 210 and the camera 293 communicate via the CSI interface to realize the shooting function of the electronic device 200. The processor 210 and the display screen 294 communicate via the DSI interface to realize the display function of the electronic device 200.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器210与摄像头293,显示屏294,无线通信模块252,音频模块270,传感器模块280等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 with the camera 293, the display 294, the wireless communication module 252, the audio module 270, the sensor module 280, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
USB接口230是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口230可以用于连接充电器为电子设备200充电,也可以用于电子设备200与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 230 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 230 can be used to connect a charger to charge the electronic device 200, and can also be used to transmit data between the electronic device 200 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备200的结构限定。在本申请的另一些实施例中,电子设备200也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块240用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块240可以通过USB接口230接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块240可以通过电子设备200的无线充电线圈接收无线充电输入。充电管理模块240为电池242充电的同时,还可以通过电源管理模块241为电子设备200供电。The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device 200. While the charging management module 240 is charging the battery 242, it may also power the electronic device 200 through the power management module 241.
电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,显示屏294,摄像头293,和无线通信模块252等供电。电源管理模块241还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块241也可以设置于处理器210中。在另一些实施例中,电源管理模块241和充电管理模块240也可以设置于同一个器件中。The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 252. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.
电子设备200的无线通信功能可以通过天线1,天线2,移动通信模块251,无线通信模块252, 调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 200 can be realized through the antenna 1, the antenna 2, the mobile communication module 251, the wireless communication module 252, It is implemented by modem processor and baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备200中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块251可以提供应用在电子设备200上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块251可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块251可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块251还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块251的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块251的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。The mobile communication module 251 can provide solutions for wireless communications including 2G/3G/4G/5G applied to the electronic device 200. The mobile communication module 251 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 251 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 251 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 251 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 251 can be set in the same device as at least some of the modules of the processor 210.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器270A,受话器270B等)输出声音信号,或通过显示屏294显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块251或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 251 or other functional modules.
无线通信模块252可以提供应用在电子设备200上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块252可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块252经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块252还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 252 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 200. The wireless communication module 252 can be one or more devices integrating at least one communication processing module. The wireless communication module 252 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 252 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
在一些实施例中,电子设备200的天线1和移动通信模块251耦合,天线2和无线通信模块252耦合,使得电子设备200可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),新无线接入技术(new radio access technology,NR),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 251, and the antenna 2 is coupled to the wireless communication module 252, so that the electronic device 200 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), new radio access technology (NR), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
可选的,GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。Optionally, GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
电子设备200通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 200 implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏294用于显示图像,视频等。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借 鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断自学习。通过NPU可以实现电子设备200的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor that draws on the structure of biological neural networks, such as By learning from the transmission mode between neurons in the human brain, the input information can be quickly processed and self-learned continuously. The NPU can realize applications such as intelligent cognition of the electronic device 200, such as image recognition, face recognition, voice recognition, text understanding, etc.
压力传感器280A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器280A可以设置于显示屏294。压力传感器280A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器280A,电极之间的电容改变。电子设备200根据电容的变化确定压力的强度。当有触摸操作作用于显示屏294,电子设备200根据压力传感器280A检测所述触摸操作强度。电子设备200也可以根据压力传感器280A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be set on the display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device 200 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 294, the electronic device 200 detects the intensity of the touch operation according to the pressure sensor 280A. The electronic device 200 can also calculate the position of the touch based on the detection signal of the pressure sensor 280A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.
陀螺仪传感器280B可以用于确定电子设备200的运动姿态。在一些实施例中,可以通过陀螺仪传感器280B确定电子设备200围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器280B可以用于拍摄防抖。陀螺仪传感器280B还可以用于导航,体感游戏场景。The gyro sensor 280B can be used to determine the motion posture of the electronic device 200. In some embodiments, the angular velocity of the electronic device 200 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 280B. The gyro sensor 280B can be used for shooting anti-shake. The gyro sensor 280B can also be used for navigation and somatosensory game scenes.
气压传感器280C用于测量气压。在一些实施例中,电子设备200通过气压传感器280C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 280C is used to measure air pressure. In some embodiments, the electronic device 200 calculates the altitude through the air pressure value measured by the air pressure sensor 280C to assist in positioning and navigation.
加速度传感器280D可检测电子设备200在各个方向上(一般为三轴)加速度的大小。当电子设备200静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 280D can detect the magnitude of the acceleration of the electronic device 200 in all directions (generally three axes). When the electronic device 200 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
接近光传感器280E可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备200通过发光二极管向外发射红外光。电子设备200使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备200附近有物体。当检测到不充分的反射光时,电子设备200可以确定电子设备200附近没有物体。电子设备200可以利用接近光传感器280E检测用户手持电子设备200贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器280E也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 280E may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 200 emits infrared light outward through the light emitting diode. The electronic device 200 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 200. When insufficient reflected light is detected, the electronic device 200 can determine that there is no object near the electronic device 200. The electronic device 200 can use the proximity light sensor 280E to detect that the user holds the electronic device 200 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 280E can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
环境光传感器280F用于感知环境光亮度。电子设备200可以根据感知的环境光亮度自适应调节显示屏294亮度。环境光传感器280F也可用于拍照时自动调节白平衡。环境光传感器280F还可以与接近光传感器280E配合,检测电子设备200是否在口袋里,以防误触。The ambient light sensor 280F is used to sense the ambient light brightness. The electronic device 200 can adaptively adjust the brightness of the display screen 294 according to the perceived ambient light brightness. The ambient light sensor 280F can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280F can also cooperate with the proximity light sensor 280E to detect whether the electronic device 200 is in a pocket to prevent accidental touch.
指纹传感器280G用于采集指纹。电子设备200可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。例如,可以在电子设备200的正面(显示屏294的下方)配置指纹传感器,或者,在电子设备200的背面(后置摄像头的下方)配置指纹传感器。另外,也可以通过在触控屏中配置指纹传感器来实现指纹识别功能,即指纹传感器可以与触控屏集成在一起来实现电子设备200的指纹识别功能。在这种情况下,该指纹传感器可以配置在触控屏中,可以是触控屏的一部分,也可以是以其他方式配置在触控屏中。The fingerprint sensor 280G is used to collect fingerprints. The electronic device 200 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc. For example, a fingerprint sensor can be configured on the front of the electronic device 200 (below the display screen 294), or a fingerprint sensor can be configured on the back of the electronic device 200 (below the rear camera). In addition, the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the electronic device 200. In this case, the fingerprint sensor can be configured in the touch screen, can be a part of the touch screen, or can be configured in the touch screen in other ways.
另外,该指纹传感器还可以被实现为全面板指纹传感器,因此,可以把触控屏看成是任何位置可都可以进行指纹采集的一个面板。在一些实施例中,该指纹传感器可以对采集到的指纹进行处理(例如指纹是否验证通过)发送给处理器210,由处理器210根据指纹处理结果做出相应的处理。在另一些实施例中,指纹传感器还可以将采集到的指纹发送给处理器210,以便处理器210对该指纹进行处理(例如指纹验证等)。本申请中的指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。In addition, the fingerprint sensor can also be implemented as a full-panel fingerprint sensor, so the touch screen can be regarded as a panel where fingerprints can be collected at any position. In some embodiments, the fingerprint sensor can process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 210, and the processor 210 makes corresponding processing according to the fingerprint processing result. In other embodiments, the fingerprint sensor can also send the collected fingerprint to the processor 210 so that the processor 210 processes the fingerprint (for example, fingerprint verification, etc.). The fingerprint sensor in this application can adopt any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technology.
温度传感器280H用于检测温度。在一些实施例中,电子设备200利用温度传感器280H检测的温度,执行温度处理策略。例如,当温度传感器280H上报的温度超过阈值,电子设备200执行降低位于温度传感器280H附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备200对电池242加热,以避免低温导致电子设备200异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备200对电池242的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 280H is used to detect temperature. In some embodiments, the electronic device 200 uses the temperature detected by the temperature sensor 280H to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 280H exceeds a threshold, the electronic device 200 reduces the performance of a processor located near the temperature sensor 280H to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 heats the battery 242 to avoid abnormal shutdown of the electronic device 200 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 200 performs a boost on the output voltage of the battery 242 to avoid abnormal shutdown caused by low temperature.
触摸传感器280I,也称“触控面板”。触摸传感器280I可以设置于显示屏294,由触摸传感器280I与显示屏294组成触控屏,也称“触摸屏”。触摸传感器280I用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。 可以通过显示屏294提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器280I也可以设置于电子设备200的表面,与显示屏294所处的位置不同。The touch sensor 280I is also called a "touch panel". The touch sensor 280I can be set on the display screen 294. The touch sensor 280I and the display screen 294 form a touch screen, also called a "touch screen". The touch sensor 280I is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation may be provided through the display screen 294. In other embodiments, the touch sensor 280I may also be disposed on the surface of the electronic device 200, which is different from the location of the display screen 294.
接下来,基于图1和图2中的内容,对本申请实施例提供的一种显示内容的方法进行描述。Next, based on the contents in FIG. 1 and FIG. 2 , a method for displaying content provided in an embodiment of the present application is described.
示例性地,图3示出了一种显示内容的示意图。如图1的(A)所示,在电子设备的触控屏(图中未示出)上显示有一个封闭图形11,该封闭图形由4个呈矩形的图形组成,每个矩形都可以称之为封闭图形11中的一个单元格。用户可以在单元格111、112、113、114分别中通过手写输入“图”“形”“文”“字”。接着,电子设备可以根据用户的手写输入的轨迹进行光学符号识别(optical character recognition,OCR)并在识别后在相应的单元格中显示文字,即显示如图3的(B)所示的内容。如图3的(B)所示,虽然电子设备对用户手写输入的内容进行了显示,但是并没有改变用户手写输入文字的位置和大小。此时,需要用户对OCR识别的印刷体进行手动调整。在一些实施例中,OCR是指电子设备用字符识别的方法将形状翻译成计算机文字的过程,即电子设备对文本资料进行扫描,对图像文件进行分析处理,获取文字及板面信息的过程。在文字书写处对识别后的印刷体进行显示,但是不改变文字的大小和位置。Exemplarily, FIG3 shows a schematic diagram of display content. As shown in FIG1 (A), a closed figure 11 is displayed on the touch screen of the electronic device (not shown in the figure), and the closed figure is composed of 4 rectangular figures, and each rectangle can be called a cell in the closed figure 11. The user can input "picture", "shape", "text" and "character" by handwriting in cells 111, 112, 113, and 114 respectively. Then, the electronic device can perform optical character recognition (OCR) according to the trajectory of the user's handwriting input and display the text in the corresponding cell after recognition, that is, display the content shown in FIG3 (B). As shown in FIG3 (B), although the electronic device displays the content of the user's handwriting input, it does not change the position and size of the user's handwriting input text. At this time, the user needs to manually adjust the printed text recognized by OCR. In some embodiments, OCR refers to the process of an electronic device translating a shape into computer text using a character recognition method, that is, the process of an electronic device scanning text data, analyzing and processing image files, and obtaining text and board information. The recognized printed text is displayed where the text is written, but the size and position of the text are not changed.
由以上记载的内容可知,用户手写输入的内容在经过OCR识别后,电子设备仅仅是将用户手写输入的内容识别为了印刷体,但是,电子设备并没有对文字的大小和位置进行调整,用户在图形内手写输入的内容并没有对齐,看起来不美观,影响用户的体验。It can be seen from the above records that after the user's handwritten input content is recognized by OCR, the electronic device only recognizes the user's handwritten input content as printed text, but the electronic device does not adjust the size and position of the text. The user's handwritten input content is not aligned in the graphic, which looks unsightly and affects the user experience.
有鉴于此,本申请实施例提供一种显示内容的方法,该方法中,电子设备通过将用户手写输入的内容进行识别,调整用户在电子设备的触控屏提供的封闭图形中手写输入的内容的格式,使得用户在电子设备上手写输入的内容的格式保持相对统一,提升了用户的体验。下面结合附图详细描述本申请实施例提供的方法。In view of this, an embodiment of the present application provides a method for displaying content, in which the electronic device recognizes the content of the user's handwriting input and adjusts the format of the content of the user's handwriting input in the closed figure provided by the touch screen of the electronic device, so that the format of the content of the user's handwriting input on the electronic device remains relatively uniform, thereby improving the user experience. The method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings.
示例性地,图4示出了一种显示内容的方法。如图4所示,该方法可以包括:Exemplarily, Fig. 4 shows a method for displaying content. As shown in Fig. 4, the method may include:
S41:获取用户在电子设备的触控屏上所显示的第一封闭图形中输入的第一手写轨迹,在触控屏上显示第一手写轨迹。S41: Acquire a first handwriting trajectory input by a user in a first closed figure displayed on a touch screen of an electronic device, and display the first handwriting trajectory on the touch screen.
在本实施例中,电子设备的触控屏上显示有第一封闭图形,第一封闭图形是指一个二维平面中可以用轮廓划分出若干的空间形状,是局限的可识别的形状,例如矩形、菱形、圆形、梯形等。第一封闭图形可以是现有的图形,也可以是用户手绘的图形。用户在第一封闭图形中进行手写输入,手写输入的内容可以是任意的文字(汉字,字母,数字等)、图案等,用户输入的内容大小可以不固定。第一封闭图形可以是空白的图形,也可以是已经有内容的图形。在用户手写输入内容的同时,电子设备可以获取用户在第一封闭图形中的输入内容的轨迹,在触控屏上将这些轨迹显示出来。In this embodiment, a first closed figure is displayed on the touch screen of the electronic device. The first closed figure refers to a two-dimensional plane that can be divided into several spatial shapes by outlines, which are limited recognizable shapes, such as rectangles, rhombuses, circles, trapezoids, etc. The first closed figure can be an existing figure or a figure hand-drawn by the user. The user performs handwriting input in the first closed figure, and the content of the handwriting input can be any text (Chinese characters, letters, numbers, etc.), patterns, etc., and the size of the content input by the user may not be fixed. The first closed figure can be a blank figure or a figure that already has content. While the user is handwriting inputting content, the electronic device can obtain the trajectory of the user's input content in the first closed figure and display these trajectories on the touch screen.
应理解,第一手写轨迹可以是一个文字或一个图案对应的轨迹,也可以是多个文字或多个图案对应的轨迹,本申请对此不做限定。It should be understood that the first handwritten trajectory may be a trajectory corresponding to one character or one pattern, or may be a trajectory corresponding to multiple characters or multiple patterns, and this application does not limit this.
示例性地,如图5中的(A),电子设备的触控屏上显示有一个封闭图形,该封闭图形为一个矩形,用户在该矩形内手写输入了4个文字,电子设备获取到用户手写的轨迹后,可以将该轨迹显示在矩形内。Exemplarily, as shown in (A) of FIG5 , a closed figure is displayed on the touch screen of the electronic device, and the closed figure is a rectangle. The user has handwritten four characters in the rectangle. After the electronic device obtains the trajectory of the user's handwriting, the trajectory can be displayed in the rectangle.
S42:根据第一手写轨迹得到第一内容。其中,第一内容可以是对第一手写轨迹进行OCR识别得到的,第一内容中的每个个体都可以作为第一内容的子内容。S42: Obtaining first content according to the first handwriting trajectory. The first content may be obtained by performing OCR recognition on the first handwriting trajectory, and each individual in the first content may be a sub-content of the first content.
在本实施例中,电子设备获取到用户在第一封闭图形中手写输入内容的轨迹,对该轨迹进行OCR识别,得到用户输入的第一内容。In this embodiment, the electronic device obtains the trajectory of the handwritten input content of the user in the first closed figure, performs OCR recognition on the trajectory, and obtains the first content input by the user.
例如,继续参阅图5,电子设备得到用户在第一封闭图形(矩形)内手写输入第一内容的轨迹,对用户手写的轨迹进行OCR识别,可以得到用户输入的“图形文字”这4个字,则“图形文字”这4个字为用户输入的第一内容,其中,每个单体文字(如“图”字)都是第一内容的子内容。For example, referring to FIG5 , the electronic device obtains the trajectory of the user's handwriting input of the first content within the first closed figure (rectangle), and performs OCR recognition on the user's handwriting trajectory to obtain the four words "graphic text" input by the user. The four words "graphic text" are the first content input by the user, wherein each individual word (such as the word "picture") is a sub-content of the first content.
S43:确定第一内容的第一显示格式,第一显示格式可以包括第一内容在第一封闭图形中的第一显示位置。其中,第一显示位置与第一手写轨迹在触控屏上的显示位置可以不同。S43: Determine a first display format of the first content, where the first display format may include a first display position of the first content in the first closed graph, wherein the first display position may be different from a display position of the first handwriting track on the touch screen.
在本实施例中,电子设备得到用户手写输入的第一内容后,还可以获取第一内容的第一显示格式。该第一显示格式可以包括第一内容在第一图形中的第一显示位置,触控屏可以根据第一显示位置提供的位置信息对第一内容进行显示。In this embodiment, after the electronic device obtains the first content input by the user's handwriting, it can also obtain the first display format of the first content. The first display format may include the first display position of the first content in the first graphic, and the touch screen can display the first content according to the position information provided by the first display position.
在一些实施例中,确定第一内容的第一显示格式,可以包括:根据第一封闭图形的内容对齐格式或预定义的内容对齐格式确定第一显示位置,内容对齐格式包括左对齐,居中对齐,右对齐,两端对齐 以及分散对齐中的任意一种。In some embodiments, determining the first display format of the first content may include: determining the first display position according to the content alignment format of the first closed figure or a predefined content alignment format, wherein the content alignment format includes left alignment, center alignment, right alignment, and both ends alignment. and any of the distributed alignments.
在本实施例中,第一显示位置可以是根据第一封闭图形的内容对齐格式确定,例如,在第一封闭图形中已有居中对齐的内容,则电子设备确定用户输入的第一内容同样可以是居中对齐,即在第一封闭图形的中部显示第一内容。第一显示位置还可以是根据预定义的内容对齐格式确定。例如,用户用户输入内容的第一封闭图形预先定义了对齐格式为左对齐,则电子设备可以确定用户输入的第一内容的第一显示位置在第一封闭图形的左侧。In this embodiment, the first display position may be determined according to the content alignment format of the first closed figure. For example, if there is already center-aligned content in the first closed figure, the electronic device determines that the first content input by the user may also be center-aligned, that is, the first content is displayed in the middle of the first closed figure. The first display position may also be determined according to a predefined content alignment format. For example, if the first closed figure in which the user inputs content predefines the alignment format as left alignment, the electronic device may determine that the first display position of the first content input by the user is on the left side of the first closed figure.
作为一种可能的实现方式,电子设备获取到第一内容后,可以检测识别第一内容中所包含的关键特征,根据该关键特征确定对齐格式。其中,关键特征指第一内容中存在某种特定规律的部分子内容,例如“1”“2”“3”等有序数字,或者“·XX”“·XX”“·XX”等都以“·”作为内容的起始等。As a possible implementation, after the electronic device obtains the first content, it can detect and identify the key features contained in the first content, and determine the alignment format according to the key features. The key features refer to some sub-contents in the first content that have a certain pattern, such as "1", "2", "3" and other ordered numbers, or "·XX", "·XX", "·XX", etc. all use "·" as the beginning of the content.
例如,电子设备获取到用户在第一封闭图形中输入的第一内容为3行文字,每行文字的前一个字符分别为“1”、“2”、“3”,或者是“①”、“②”、“③”,又或者是“A”、“B”、“C”等编号,可以将编号作为第一内容的关键特征,根据这个关键特征(编号)确定对齐类型可以为左对齐。又例如,电子设备检测识别到第一封闭图形内的第一内容的关键特征为,第一内容中包括图形与文字,图形在左侧,文字在右侧,则可以将对齐格式确定为右对齐。For example, the electronic device obtains that the first content input by the user in the first closed figure is 3 lines of text, and the first character of each line of text is "1", "2", "3", or "①", "②", "③", or "A", "B", "C" and other numbers. The number can be used as the key feature of the first content, and the alignment type can be determined to be left-aligned based on this key feature (number). For another example, the electronic device detects and recognizes that the key feature of the first content in the first closed figure is that the first content includes graphics and text, with the graphics on the left and the text on the right, then the alignment format can be determined to be right-aligned.
在一些实施例中,第一显示格式还可以包括第一内容的第一显示大小。In some embodiments, the first display format may further include a first display size of the first content.
在本实施例中,第一显示大小指第一内容所对应的文字、图案或数字等的大小。如果用户输入的第一内容为文字,则第一显示大小可以以字号作为单位,字号越大文字越小,最大的字号为“初号”,最小的字号为“八号”,例如小四、五号等。当然,也可以用点(也可以称为磅,point,pt)作为单位,当以点作为单位时,点的值越大则文字越大,最大的点值可以为72,最小的点值可以为5。第一显示大小可以根据第一内容的外包框确定,外包框指能够将第一内容完整包围在内的一个框。其中,外包框可以是规则图形,例如圆形(如图6所示包围“测”字的外包框)、矩形(如图6所示包围“文”字的外包框)、菱形(如图6所示包围“字”字的外包框)等,也可以是不规则图形。其中,第一显示大小与第一手写轨迹在触控屏上的显示大小可以相同,也可以不同。电子设备的触控屏对第一内容进行显示时,还可以根据第一显示大小指示的大小信息对第一内容进行显示。例如,第一显示大小为18点(point,pt),表示电子设备的触控屏在显示第一内容时,第一内容的大小为18点,则电子设备的触控屏在显示第一内容时可以以18点的大小显示第一内容。In this embodiment, the first display size refers to the size of the text, pattern or number corresponding to the first content. If the first content input by the user is text, the first display size can be in the font size as a unit. The larger the font size, the smaller the text. The largest font size is "primary" and the smallest font size is "eight", such as small four, five, etc. Of course, points (also known as pounds, point, pt) can also be used as units. When points are used as units, the larger the point value, the larger the text. The maximum point value can be 72 and the minimum point value can be 5. The first display size can be determined according to the outer frame of the first content. The outer frame refers to a frame that can completely surround the first content. Among them, the outer frame can be a regular shape, such as a circle (an outer frame surrounding the word "测" as shown in Figure 6), a rectangle (an outer frame surrounding the word "文" as shown in Figure 6), a diamond (an outer frame surrounding the word "字" as shown in Figure 6), etc., or it can be an irregular shape. Among them, the first display size and the display size of the first handwriting track on the touch screen can be the same or different. When the touch screen of the electronic device displays the first content, it can also display the first content according to the size information indicated by the first display size. For example, the first display size is 18 points (pt), which means that when the touch screen of the electronic device displays the first content, the size of the first content is 18 points. Therefore, when the touch screen of the electronic device displays the first content, the first content can be displayed in a size of 18 points.
在一些实施例中,确定第一内容的第一显示格式,还可以包括:根据第一封闭图形的预定义的内容大小规格确定第一显示大小;或者,根据第一手写轨迹在触控屏上的显示大小确定第一显示大小。In some embodiments, determining the first display format of the first content may also include: determining the first display size according to a predefined content size specification of the first closed figure; or determining the first display size according to the display size of the first handwriting track on the touch screen.
在本实施例中,电子设备得到用户手写的第一内容后,还可以获取第一内容的第一显示大小。该第一显示大小可以是第一封闭图形预先设定好的,例如,电子设备预先设定第一封闭图形内的内容保持在16点(point,pt),则电子设备在显示第一内容时,可以以16点大小的方式对第一内容进行显示。第一显示大小还可以是根据第一手写轨迹在触控屏上的显示大小确定的。例如,用户在手写时的第一手写轨迹的显示大小是18点,则可以确定第二显示大小同样为18点,进而电子设备在显示第一内容时,可以以18点大小的方式对第一内容进行显示。其中,第一显示大小可以跟第一手写轨迹在所述触控屏上的显示大小一致,或者二者有相互关系(例如,第一显示大小可以为第一手写轨迹的显示大小的一半,即,第一手写轨迹的显示大小为18点,则第一显示大小可以为9点)等。In this embodiment, after the electronic device obtains the first content handwritten by the user, it can also obtain the first display size of the first content. The first display size can be pre-set by the first closed figure. For example, the electronic device pre-sets the content in the first closed figure to be kept at 16 points (point, pt), then the electronic device can display the first content in a 16-point size when displaying the first content. The first display size can also be determined according to the display size of the first handwriting track on the touch screen. For example, if the display size of the first handwriting track when the user is handwriting is 18 points, it can be determined that the second display size is also 18 points, and then the electronic device can display the first content in an 18-point size when displaying the first content. Among them, the first display size can be consistent with the display size of the first handwriting track on the touch screen, or the two are related to each other (for example, the first display size can be half of the display size of the first handwriting track, that is, the display size of the first handwriting track is 18 points, then the first display size can be 9 points), etc.
在一些实施例中,第一显示格式还可以包括第一内容的显示颜色。In some embodiments, the first display format may further include a display color of the first content.
在本实施例中,第一显示格式还可以包括第一内容的显示颜色,根据该颜色对第一内容进行显示。例如,第一显示格式中的显示颜色为黑色,则触控屏可以在显示第一内容时,将第一内容的颜色显示为黑色。In this embodiment, the first display format may further include a display color of the first content, and the first content is displayed according to the color. For example, if the display color in the first display format is black, the touch screen may display the color of the first content as black when displaying the first content.
在一些实施例中,第一内容为文字或是数字,第一显示格式还可以包括第一内容的字体。In some embodiments, the first content is text or numbers, and the first display format may further include a font of the first content.
在本实施例中,用户输入的内容为文字或是数字,第一显示格式还可以包括第一内容的字体,根据该字体对第一内容进行显示。例如,第一显示格式中的字体为楷体,则触控屏可以在显示第一内容时,将第一内容的字体显示为楷体。In this embodiment, the content input by the user is text or numbers, and the first display format may also include a font of the first content, and the first content is displayed according to the font. For example, if the font in the first display format is Kaiti, the touch screen may display the font of the first content as Kaiti when displaying the first content.
在一些实施例中,第一内容包括具有顺序关系的多个标识,确定第一内容的第一显示格式可以包括:根据多个标识对第一内容进行换行处理,根据第一封闭图形的内容对齐格式或预定义的内容对齐格式确定换行处理后的第一内容的第一显示位置。 In some embodiments, the first content includes multiple identifiers in a sequential relationship, and determining the first display format of the first content may include: performing line break processing on the first content according to the multiple identifiers, and determining the first display position of the first content after the line break processing according to the content alignment format of the first closed figure or the predefined content alignment format.
在本实施例中,用户输入的第一内容中包括多个标识,且这些标识具有顺序关系,则电子设备可以根据这些标识对第一内容进行换行,分别以每一个标识作为每一行的首部。例如,用户输入的第一内容为“1.开发2.测试3.验证”,电子设备确定用户输入的第一内容中包括有“1”、“2”、“3”这样的标识,并且这些标识是具有顺序关系的标识,则电子设备可以将该第一内容拆份为3行,每行的内容都以“1”、“2”、“3”这样的标识开头,3行内容分别为“1.开发”、“2.测试”、“3.验证”。In this embodiment, the first content input by the user includes multiple identifiers, and these identifiers have a sequential relationship, then the electronic device can wrap the first content according to these identifiers, and use each identifier as the header of each line. For example, the first content input by the user is "1. Development 2. Test 3. Verification", and the electronic device determines that the first content input by the user includes identifiers such as "1", "2", and "3", and these identifiers are identifiers with a sequential relationship, then the electronic device can split the first content into 3 lines, and the content of each line starts with the identifiers such as "1", "2", and "3", and the content of the 3 lines is "1. Development", "2. Test", and "3. Verification" respectively.
S44:以第一显示格式在触控屏上显示第一内容。S44: Displaying the first content on the touch screen in a first display format.
在本实施例中,电子设备在确定了第一显示格式和第一内容后,在触控屏上以第一显示格式对第一内容进行显示。在显示第一手写轨迹之后,在显示第一内容之前,在电子设备的触控屏上可以停止显示第一手写轨迹。In this embodiment, after determining the first display format and the first content, the electronic device displays the first content in the first display format on the touch screen. After displaying the first handwriting track and before displaying the first content, the touch screen of the electronic device may stop displaying the first handwriting track.
示例性地,请继续参阅图5中的(B),电子设备确定第一内容为“图形文字”,第一显示格式为“楷体、18pt、黑色、居中显示”,则在该封闭图形(矩形)内以楷体、18pt、黑色、居中显示的方式显示“图形文字”这4个字。For example, please continue to refer to (B) in Figure 5. The electronic device determines that the first content is "graphic text" and the first display format is "regular script, 18pt, black, and centered display". Then the four words "graphic text" are displayed in regular script, 18pt, black, and centered display within the closed graphic (rectangle).
在本实施例中,当用户在电子设备的触控屏上进行手写输入时,在触控屏上可以显示用户手写输入的笔迹,并根据该笔迹得到用户输入的第一内容。进一步地,可以确定包含有第一内容的显示位置的显示格式,并根据该显示位置对第一内容进行显示,这样可以使电子设备所显示的用户输入的内容在合适的位置,方便用户查看,提高用户使用时的便捷性。In this embodiment, when the user performs handwriting input on the touch screen of the electronic device, the handwriting of the user can be displayed on the touch screen, and the first content input by the user can be obtained according to the handwriting. Further, the display format of the display position containing the first content can be determined, and the first content can be displayed according to the display position, so that the content input by the user displayed by the electronic device can be in a suitable position, which is convenient for the user to view and improves the convenience of the user when using.
在一些实施例中,电子设备在对用户在第一封闭图形中输入的第一内容进行显示之后,用户还可以在第一封闭图形中继续输入第二内容,电子设备可以通过触控屏对第一内容和第二内容整体进行显示。其中,用户在手写输入第二内容时,电子设备可以获取用户手写输入的第二手写轨迹,并对该手写轨迹进行识别,以得到第二内容。在一些实施例中,用户也可以通过其他方式输入第二内容,比如:通过键盘等外部设备输入,或者是用户从第一封闭图形外拖入该封闭图形中的内容等。In some embodiments, after the electronic device displays the first content input by the user in the first closed figure, the user can continue to input the second content in the first closed figure, and the electronic device can display the first content and the second content as a whole through the touch screen. When the user inputs the second content by handwriting, the electronic device can obtain the second handwriting trajectory of the user's handwriting input and recognize the handwriting trajectory to obtain the second content. In some embodiments, the user can also input the second content in other ways, such as: input through an external device such as a keyboard, or the user drags the content from outside the first closed figure into the closed figure, etc.
示例性地,图7示出了电子设备显示第二内容的过程。其中,图7中的S71和S72可以参考前述步骤S41-S42中的描述,此处不再赘述。如图7所示,电子设备显示第二内容的过程可以包括如下步骤:For example, FIG7 shows a process in which the electronic device displays the second content. S71 and S72 in FIG7 may refer to the description of the aforementioned steps S41-S42, which will not be described in detail here. As shown in FIG7 , the process in which the electronic device displays the second content may include the following steps:
S71:获取用户在第一封闭图形中输入的第二手写轨迹。S71: Acquire a second handwriting trajectory input by the user in the first closed figure.
S72:根据第二手写轨迹得到第二内容。S72: Obtain second content according to the second handwriting trajectory.
S73:根据第一显示格式确定第二显示格式,第二显示格式包括第一内容和第二内容在第一封闭图形中的第二显示位置。S73: Determine a second display format according to the first display format, where the second display format includes the first content and a second display position of the second content in the first closed figure.
在本实施例中,触控屏上显示有第一封闭图形,在第一封闭图形内显示有第一内容,此时电子设备已经获取用户输入的第二内容。电子设备可以根据第一封闭图形内的第一显示格式,确定第二显示格式。示例性的,第二显示格式可以但不限于与第一显示格式相同。第二显示格式用于指示在触控屏的第一封闭图形内根据第二显示格式对第一内容和第二内容进行显示。In this embodiment, a first closed graphic is displayed on the touch screen, and a first content is displayed in the first closed graphic. At this time, the electronic device has obtained the second content input by the user. The electronic device can determine the second display format according to the first display format in the first closed graphic. Exemplarily, the second display format can be but is not limited to the same as the first display format. The second display format is used to indicate that the first content and the second content are displayed according to the second display format in the first closed graphic of the touch screen.
例如,如图8的(A)所示,触控屏上显示有一个矩形,矩形中显示有第一内容,为一个“图”字;当用户又在该矩形中输入了一个“片”后,电子设备根据用户手写的“片”字的轨迹进行OCR识别,得到用户输入的第二内容为一个“片”字。根据已经确定的第一显示格式将“图”字和“片”字,在第一封闭图形中进行显示,如图8的(B)所示,电子设备可以在触控屏上以与“图”的显示格式相同的格式显示“片”。再例如,如图9中的(A)所示,第一封闭图形中的已有内容为“图”字,在图形外有一个“片”字,用户可以将“片”字拖入“图”字所在的第一封闭图形。此时,电子设备可以先获取用户拖入的“片”字的轨迹,再对获取的该轨迹进行OCR识别,得到用户拖入的第二内容为“片”字。然后,如图9的(B)所示,电子设备可以根据第一内容“图”字的第一显示格式来确定“图”字和“片”字的第二显示格式,并在其触控屏上以第二显示格式显示“图”字和“片”字。For example, as shown in (A) of FIG8 , a rectangle is displayed on the touch screen, and the first content is displayed in the rectangle, which is a word "图"; when the user enters a word "片" in the rectangle, the electronic device performs OCR recognition according to the trajectory of the word "片" written by the user, and obtains that the second content entered by the user is a word "片". According to the first display format that has been determined, the word "图" and the word "片" are displayed in the first closed figure. As shown in (B) of FIG8 , the electronic device can display "片" on the touch screen in the same format as the display format of "图". For another example, as shown in (A) of FIG9 , the existing content in the first closed figure is the word "图", and there is a word "片" outside the figure. The user can drag the word "片" into the first closed figure where the word "图" is located. At this time, the electronic device can first obtain the trajectory of the word "片" dragged in by the user, and then perform OCR recognition on the acquired trajectory to obtain that the second content dragged in by the user is the word "片". Then, as shown in (B) of Figure 9, the electronic device can determine the second display format of the word "图" and the word "片" according to the first display format of the first content "图" and display the word "图" and the word "片" in the second display format on its touch screen.
在一些实施例中,第二显示位置可以由第一内容的对齐格式确定。根据第一显示格式确定第二显示格式,可以包括:根据第一内容对齐格式确定第二显示位置。比如,第一内容的显示位置在表格中央,对齐格式为居中对齐,电子设备可以确定第二显示位置同样为表格中央。In some embodiments, the second display position may be determined by the alignment format of the first content. Determining the second display format according to the first display format may include: determining the second display position according to the alignment format of the first content. For example, if the display position of the first content is in the center of the table and the alignment format is center alignment, the electronic device may determine that the second display position is also in the center of the table.
在一些实施例中,第二内容中的标识与第一内容中的标识具有顺序关系,根据多个标识的顺序关系对第一内容和第二内容组成的整体做换行处理,同时根据第一内容与第二内容中的关键特征确定对齐格式。In some embodiments, the identifiers in the second content have a sequential relationship with the identifiers in the first content, and the first content and the second content as a whole are wrapped according to the sequential relationship of the multiple identifiers, and the alignment format is determined according to the key features in the first content and the second content.
在本实施例中,电子设备获取有第一内容和第二内容,则电子设备可以将第一内容和第二内容作 为一个整体。第一内容中包括有第一标识,第二内容中包括有第二标识,第一标识与第二标识具有顺序关系,可以用第一标识和第二标识作为这个整体内容的关键特征。根据第一标识和第二标识的顺序关系对整体内容进行换行,同时根据该关键特征确定对齐格式。In this embodiment, the electronic device acquires the first content and the second content, and the electronic device can use the first content and the second content as The first content includes a first identifier, and the second content includes a second identifier. The first identifier and the second identifier have a sequential relationship, and the first identifier and the second identifier can be used as key features of the overall content. The overall content is wrapped according to the sequential relationship between the first identifier and the second identifier, and the alignment format is determined according to the key feature.
例如,请参考图10,如图10的(A)所示,在第一封闭图形内存在的第一内容为“1.开发”,第一内容为居中显示,用户在“1.开发”的下方位置手写输入第二内容为“2.测”,电子设备检测识别到用户输入的第二内容,与第一内容中分别有“1”、“2”,将编号作为关键特征,确定第二显示格式包括左对齐,如图10中的(B)。又例如,如图10的(C)所示,在第一封闭图形内存在的第一内容为“1.开发2.测”,为居中显示,用户在“2.测”的后方位置手写输入第二内容为“3.验证”,电子设备检测识别到用户输入的第二内容,与第一内容中分别有“1”、“2”、“3”,将编号作为关键特征,确定第二显示格式为左对齐,同时对“3.验证”做换行处理,如图10的(D)。再例如,如图10的(E)所示,在第一封闭图形内存在的第一内容为“1.开发”,用户在“1.开发”的下方位置手写输入第二内容为“2.测3.验证”,电子设备检测识别到用户输入的第二内容,与原有第一内容中分别有“1”、“2”、“3”,将编号作为关键特征,确定第二显示格式为左对齐,同时对“2.测3.验证”做换行处理,如图10的(F)。For example, please refer to FIG. 10. As shown in FIG. 10 (A), the first content in the first closed graphic is "1. Development", and the first content is displayed in the center. The user hand-writes the second content "2. Test" below "1. Development". The electronic device detects and recognizes the second content input by the user, which is respectively "1" and "2" in the first content. The number is used as a key feature to determine that the second display format includes left alignment, as shown in FIG. 10 (B). For another example, as shown in FIG. 10 (C), the first content in the first closed graphic is "1. Development 2. Test", which is displayed in the center. The user hand-writes the second content "3. Verification" behind "2. Test". The electronic device detects and recognizes the second content input by the user, which is respectively "1", "2" and "3" in the first content. The number is used as a key feature to determine that the second display format is left-aligned, and "3. Verification" is wrapped, as shown in FIG. 10 (D). For another example, as shown in (E) of Figure 10, the first content existing in the first closed graphic is "1. Development", and the user handwrites the second content "2. Test 3. Verify" below "1. Development". The electronic device detects and recognizes the second content input by the user, which has "1", "2", and "3" respectively in the original first content, and uses the number as the key feature, determines that the second display format is left-aligned, and at the same time performs line wrap processing on "2. Test 3. Verify", as shown in (F) of Figure 10.
在一些实施例中,第二显示格式包括第一内容和第二内容的第二显示大小,第二显示大小与第一显示大小相同。In some embodiments, the second display format includes the first content and a second display size of the second content, the second display size being the same as the first display size.
S74:以第二显示格式在触控屏上显示第一内容和第二内容。S74: Displaying the first content and the second content on the touch screen in a second display format.
在本实施例中,电子设备在确定了第二显示格式后,可以在触控屏上以第二显示格式的方式对第一内容和第二内容进行显示。具体显示方式可以参考前述步骤S44,此处不再赘述。In this embodiment, after determining the second display format, the electronic device can display the first content and the second content in the second display format on the touch screen. The specific display method can refer to the aforementioned step S44, which will not be described in detail here.
在本实施例中,用户在已经有第一内容的第一封闭图形中输入了第二内容,电子设备可以根据已有的第一内容的显示格式,确定第二显示格式,以第二显示格式对第一内容和第二内容进行显示,可以使在第一封闭图形中新输入的内容与原有的内容保持相同的格式,更符合用户的习惯。In this embodiment, the user inputs the second content in the first closed figure that already has the first content. The electronic device can determine the second display format based on the display format of the existing first content, and display the first content and the second content in the second display format. This can enable the newly input content in the first closed figure to maintain the same format as the original content, which is more in line with the user's habits.
在一些实施例中,触控屏上不仅有第一封闭图形,还可以有第二封闭图形,用户还可以在第二封闭图形内输入内容。In some embodiments, the touch screen may have not only a first closed figure but also a second closed figure, and the user may also input content in the second closed figure.
示例性地,图11示出了在第二封闭图形中显示内容的过程。其中,图11中的S111、S112、S113和S114可以参考前述步骤S41、S42、S43和S44中的描述,此处不再赘述。如图11所示,该显示内容的过程可以包括如下步骤:For example, FIG11 shows a process of displaying content in a second closed graph. S111, S112, S113 and S114 in FIG11 may refer to the description of the aforementioned steps S41, S42, S43 and S44, which will not be described in detail here. As shown in FIG11, the process of displaying content may include the following steps:
S111:获取用户在第二封闭图形中输入的第三手写轨迹。S111: Acquire a third handwriting trajectory input by the user in the second closed figure.
S112:根据第三手写轨迹得到第三内容。S112: Obtain third content according to the third handwriting trajectory.
S113:确定第三内容的第三显示格式,第三显示格式包括第三内容在第二封闭图形中的第三显示位置,第三显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到。S113: Determine a third display format of the third content, where the third display format includes a third display position of the third content in the second closed figure, where the third display position is obtained according to a content alignment format of the second closed figure or a predefined content alignment format.
S114:以第三显示格式在触控屏上显示第三内容。S114: Displaying third content on the touch screen in a third display format.
在本实施例中,除了第一封闭图形,还可以存在第二封闭图形。每个封闭图形为一个单独的个体,每个封闭图形内的内容显示都可以是一个单独的格式,两个封闭图形的显示格式可以相同,也可以不同。例如,第三显示格式还包括第三内容的第三显示大小,第三显示大小与第一显示大小可以一致,也可以不一致。当然,第二封闭图形的内容对齐格式与第一封闭图形的内容对齐格式可以一致,也可以不一致。本实施例可以为用户提供多元化的显示方案,提高用户的使用兴趣。当第三内容与第一内容的显示大小。对齐格式一致的时候,可以保证两个封闭图形中的内容保持一个较为一致的规格,可以在触控屏上的显示效果看起来更加整齐。In this embodiment, in addition to the first closed figure, there may also be a second closed figure. Each closed figure is a separate individual, and the content display in each closed figure can be a separate format. The display formats of the two closed figures may be the same or different. For example, the third display format also includes a third display size of the third content, and the third display size may be consistent with the first display size or inconsistent. Of course, the content alignment format of the second closed figure may be consistent with the content alignment format of the first closed figure or inconsistent. This embodiment can provide users with diversified display solutions and increase user interest. When the display size of the third content is consistent with the display size of the first content. When the alignment format is consistent, it can ensure that the contents in the two closed figures maintain a relatively consistent specification, and the display effect on the touch screen can look neater.
在一些实施例中,触控屏上显示有第一封闭图形和第二封闭图形,第二封闭图形内显示有第三内容,此时用户可以在第二封闭图形内输入第四内容。在一些情况下,用户输入的第四内容较多,或者用户输入第四内容时字写的较大,第二封闭图形无法容纳第三内容和第四内容,此时可以调大第二封闭图形。In some embodiments, a first closed figure and a second closed figure are displayed on the touch screen, and a third content is displayed in the second closed figure. At this time, the user can enter a fourth content in the second closed figure. In some cases, the fourth content entered by the user is relatively large, or the user writes a large word when entering the fourth content, and the second closed figure cannot accommodate the third content and the fourth content. In this case, the second closed figure can be enlarged.
示例性地,图12示出了一种显示内容的方法。如图12所示,该显示内容的方法可以包括如下步骤:Exemplarily, Fig. 12 shows a method for displaying content. As shown in Fig. 12, the method for displaying content may include the following steps:
S121:响应于用户在第二封闭图形中输入的第四手写轨迹,调大第二封闭图形。S121: In response to a fourth handwriting track input by the user in the second closed figure, enlarging the second closed figure.
在本实施例中,用户在第二封闭图形内输入第四内容(第二封闭图形内已经存在第三内容),电 子设备获取用户输入的第四手写轨迹,响应于该手写轨迹,电子设备调大第二封闭图形。例如,请参考图13,用户在第二封闭图形内手写输入“文学”两个文字,文字超出了第二封闭图形的边界,此时可以调大第二封闭图形,以使得“文学”两个字任然在第二封闭图形内。In this embodiment, the user enters the fourth content in the second closed figure (the third content already exists in the second closed figure), and the electronic The sub-device obtains the fourth handwriting track input by the user, and in response to the handwriting track, the electronic device enlarges the second closed figure. For example, referring to FIG13, the user handwrites the two characters "文学" in the second closed figure, and the characters exceed the boundary of the second closed figure. At this time, the second closed figure can be enlarged so that the two characters "文学" are still in the second closed figure.
具体的,电子设备可以获取第四手写轨迹,确定第四手写轨迹的最小外包框,判断该最小外包框的边界是否超过第二封闭图形边界线的阈值。其中边界线的阈值可以是等于第二封闭图形边界线的大小,也可以是小于第二封闭图形边界线的大小。当电子设备确定第四手写轨迹的最小外包框的边界不超过第二封闭图形边界线的阈值,此时确定第四手写轨迹已经是位于第二封闭图形内,可以不对第二封闭图形进行调整。当电子设备确定第四手写轨迹的最小外包框的边界超过第二封闭图形边界线的阈值,此时确定第四手写轨迹超出第二封闭图形的边界,需要调大第二封闭图形,以使得第四手写轨迹在第二封闭图形内。Specifically, the electronic device can obtain the fourth handwriting trajectory, determine the minimum outer bounding box of the fourth handwriting trajectory, and determine whether the boundary of the minimum outer bounding box exceeds the threshold of the boundary line of the second closed figure. The threshold of the boundary line can be equal to the size of the boundary line of the second closed figure, or it can be less than the size of the boundary line of the second closed figure. When the electronic device determines that the boundary of the minimum outer bounding box of the fourth handwriting trajectory does not exceed the threshold of the boundary line of the second closed figure, it is determined that the fourth handwriting trajectory is already located within the second closed figure, and the second closed figure may not be adjusted. When the electronic device determines that the boundary of the minimum outer bounding box of the fourth handwriting trajectory exceeds the threshold of the boundary line of the second closed figure, it is determined that the fourth handwriting trajectory exceeds the boundary of the second closed figure, and the second closed figure needs to be enlarged so that the fourth handwriting trajectory is within the second closed figure.
例如,请参考图14,如图14所示,用户在第二封闭图形内输入“开发测试”四个字,电子白板获取这四个字的手写输入轨迹,根据这四个字的手写输入轨迹确定其最小外包框。图14中的(A)示出了最小外包框的边界超过了第二封闭图形的边界线的情况,图14中的(C)示出了最小外包框的边界没有超过第二封闭图形的边界,但是超过了第二封闭图形的边界的阈值的情况。可以理解的是,当最小外包框的边界超过了第二封闭图形的边界线时,则最小外包框的边界一定超出了第二封闭图形的边界线的阈值。此时可以调整第二封闭图形的边界线的大小,使最小外包框的边界小于第二封闭图形的边界线的阈值,即图14中的(B)和(D)所示。For example, please refer to Figure 14. As shown in Figure 14, the user enters the four words "development and testing" in the second closed figure, and the electronic whiteboard obtains the handwriting input trajectory of the four words, and determines its minimum outer bounding box according to the handwriting input trajectory of the four words. (A) in Figure 14 shows the situation where the boundary of the minimum outer bounding box exceeds the boundary line of the second closed figure, and (C) in Figure 14 shows the situation where the boundary of the minimum outer bounding box does not exceed the boundary of the second closed figure, but exceeds the threshold of the boundary of the second closed figure. It can be understood that when the boundary of the minimum outer bounding box exceeds the boundary line of the second closed figure, the boundary of the minimum outer bounding box must exceed the threshold of the boundary line of the second closed figure. At this time, the size of the boundary line of the second closed figure can be adjusted so that the boundary of the minimum outer bounding box is smaller than the threshold of the boundary line of the second closed figure, that is, as shown in (B) and (D) in Figure 14.
作为一种可能的实现方式,调大第二封闭图形可以在用户完成输入(完成输入状态,例如用户手写输入的情况下,用户已抬笔)后根据用户输入的内容进行扩展,例如,如图13所示,用户在第二封闭图形内输入“文学”,在完成输入后,电子设备调大第二封闭图形。调大第二封闭图形也可以在用户输入时实时扩展。例如,如图15所示,电子设备确定用户手写输入时在触控屏上的当前触点,与第二封闭图形的边界距离小于阈值,则将第二封闭图形的边界随着当前触点的移动方向进行扩展。As a possible implementation method, the second closed figure can be enlarged and expanded according to the content of the user input after the user completes the input (the input is completed, such as the user has lifted the pen in the case of handwriting input). For example, as shown in FIG13, the user enters "literature" in the second closed figure, and after completing the input, the electronic device enlarges the second closed figure. The second closed figure can also be enlarged in real time as the user inputs. For example, as shown in FIG15, the electronic device determines that the current touch point on the touch screen during handwriting input by the user is less than a threshold value from the boundary of the second closed figure, and the boundary of the second closed figure is expanded along the moving direction of the current touch point.
S122:根据第四手写轨迹得到第四内容。S122: Obtain fourth content according to the fourth handwriting trajectory.
S123:根据调大后的第二封闭图形和第三显示格式确定第三内容和第四内容的第四显示格式,第四显示格式包括第三内容和第四内容在调大后的第二封闭图形中的第四显示位置,第四显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到。S123: Determine a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including fourth display positions of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to a content alignment format of the second closed figure or a predefined content alignment format.
S124:以第四显示格式在触控屏上显示第三内容和第四内容。S124: Displaying the third content and the fourth content on the touch screen in a fourth display format.
上述步骤S122至S124可以参考前述S42至S44,此处不再赘述。The above steps S122 to S124 may refer to the above steps S42 to S44, which will not be repeated here.
在本实施例中,用户在第二封闭图形中输入的内容较多或者字体较大时,第二封闭图形无法将内容完全显示在该封闭图形内,此时可以将第二封闭图形调大,以使得用户输入的内容保持在封闭图形内,从而提升用户的视觉体验。In this embodiment, when the user inputs a large amount of content or a large font in the second closed figure, the second closed figure cannot fully display the content within the closed figure. At this time, the second closed figure can be enlarged so that the content input by the user remains within the closed figure, thereby improving the user's visual experience.
在一些实施例中,第一封闭图形和第二封闭图形可以为矩形,且第一封闭图形和第二封闭图形对齐,则可以根据调大后的第二封闭图形调大第一封闭图形。其中,若第二封闭图形与第一封闭图形为横向并排显示的两个矩形,则对齐可以是两个矩形的高度对齐;若第二封闭图形与第一封闭图形为纵向并排显示的两个矩形,则对齐可以是两个矩形的宽度对齐。In some embodiments, the first closed figure and the second closed figure may be rectangles, and the first closed figure and the second closed figure are aligned, and the first closed figure may be enlarged according to the enlarged second closed figure. If the second closed figure and the first closed figure are two rectangles displayed side by side horizontally, the alignment may be the height alignment of the two rectangles; if the second closed figure and the first closed figure are two rectangles displayed side by side vertically, the alignment may be the width alignment of the two rectangles.
在本实施例中,可以根据调大后的第二封闭图形,调大第一封闭图形,以使得调大后的第一封闭图形与调大后的第二封闭图形对齐。In this embodiment, the first closed figure may be enlarged according to the enlarged second closed figure, so that the enlarged first closed figure is aligned with the enlarged second closed figure.
相应的,本申请实施例提供的显示内容的方法还可以确定第一内容在调大后的第一封闭图形中的第五显示格式,第五显示格式包括第一内容在调大后的第一封闭图形中的显示位置,以第五显示格式在触控屏上显示第一内容。Correspondingly, the method for displaying content provided in the embodiment of the present application can also determine the fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure, and display the first content on the touch screen in the fifth display format.
在一些实施例中,用户还可以删除第二封闭图形中的第四内容,电子设备可以响应于用户的删除操作,调小第二封闭图形。In some embodiments, the user may also delete the fourth content in the second closed graphic, and the electronic device may reduce the size of the second closed graphic in response to the user's deletion operation.
相应的,电子设备还可以根据调小后的第二封闭图形,调小第一封闭图形,使得调小后的封闭图形与调小后的第二封闭图形依然保持对齐的状态。Correspondingly, the electronic device can also reduce the first closed figure according to the reduced second closed figure, so that the reduced closed figure and the reduced second closed figure still maintain an aligned state.
在本实施例中,第一封闭图形和第二封闭图形都为矩形,且第一封闭图形和第二封闭图形对齐,此时的第一封闭图形和第二封闭图形可以看做是一个有两个单元格的表格,这样,在一个单元格进行调整后,根据调整的单元格同步调整另一个单元格,会使得两个单元格依然保持对齐,符合用户的使用习 惯。In this embodiment, the first closed figure and the second closed figure are both rectangles, and the first closed figure and the second closed figure are aligned. At this time, the first closed figure and the second closed figure can be regarded as a table with two cells. In this way, after one cell is adjusted, the other cell is adjusted synchronously according to the adjusted cell, so that the two cells still remain aligned, which conforms to the user's usage habits. used.
在一些实施例中,电子设备的触控屏上显示有第一封闭图形,第二封闭图形,还显示有第三封闭图形。第一封闭图形、第二封闭图形以及第三封闭图形可以都为矩形,且第一封闭图形、第二封闭图形以及第三封闭图形相互对齐。在第一封闭图形内显示有第一内容,第二封闭图形内显示有第三内容,第一内容和第三内容为具有顺序关系的标识,此时显示内容的方法还可以包括:在第三封闭图形中填充第五内容,以使得第一内容、第三内容和第五内容为具有顺序关系的标识。其中,具有顺序关系的标识可以为具有顺序递增关系或顺序递减关系的数字。或者,可以为具有顺序递增关系或顺序递减关系的字母。In some embodiments, a first closed figure, a second closed figure, and a third closed figure are displayed on the touch screen of the electronic device. The first closed figure, the second closed figure, and the third closed figure may all be rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned with each other. The first content is displayed in the first closed figure, and the third content is displayed in the second closed figure. The first content and the third content are identifiers with a sequential relationship. At this time, the method for displaying content may also include: filling the fifth content in the third closed figure so that the first content, the third content, and the fifth content are identifiers with a sequential relationship. Among them, the identifier with a sequential relationship may be a number with a sequential increasing relationship or a sequential decreasing relationship. Alternatively, it may be a letter with a sequential increasing relationship or a sequential decreasing relationship.
在本实施例中,电子设备在获取到用户输入的第一内容和第三内容后,对用户输入的第一内容和第三内容进行鉴别,确定第一内容和第三内容是具有顺序关系的标识。标识可以是数字或者是字母。In this embodiment, after acquiring the first content and the third content input by the user, the electronic device identifies the first content and the third content input by the user and determines that the first content and the third content are identifiers with a sequential relationship. The identifier can be a number or a letter.
示例性的,请参考图16,触控屏上显示有3个相互对齐的矩形,为第一封闭图形,第二封闭图形,以及第三封闭图形,在第一封闭图形内有第一内容,为“1”,在第二封闭图形内有第三内容,为“2”。电子设备获取到“1”和“2”之后,确定“1”和“2”是有顺序关系的标识,则,在第三封闭图形内自动填充“3”。For example, please refer to Figure 16, where three mutually aligned rectangles are displayed on the touch screen, which are the first closed figure, the second closed figure, and the third closed figure. The first closed figure contains the first content, which is "1", and the second closed figure contains the third content, which is "2". After the electronic device obtains "1" and "2", it determines that "1" and "2" are identifiers with a sequential relationship, and then automatically fills "3" in the third closed figure.
作为一种可能的实现方式,第一内容和第三内容为纯数字,且第一内容和第三内容是成预设序列的。其中,预设序列指数字呈现某种序列,例如数字为连续数字,数字成等差数列,等比数列等。此时电子设备可以在第三封闭图形中自动填充数字,填充的数字与第一内容和第二内容保持相同的预设序列。As a possible implementation, the first content and the third content are pure numbers, and the first content and the third content are in a preset sequence. The preset sequence refers to a certain sequence of numbers, such as continuous numbers, numbers in an arithmetic progression, a geometric progression, etc. At this time, the electronic device can automatically fill in numbers in the third closed figure, and the filled numbers maintain the same preset sequence as the first content and the second content.
作为一种可能的实现方式,电子设备可以弹出提示框,询问用户是否对第三封闭图形进行填充,在用户选择确定自动填充后,电子设备对第三封闭图形进行填充。As a possible implementation manner, the electronic device may pop up a prompt box to ask the user whether to fill the third closed figure. After the user chooses to confirm automatic filling, the electronic device fills the third closed figure.
在一些实施例中,电子设备的触控屏上显示有第一封闭图形,第二封闭图形,还显示有第三封闭图形。第一封闭图形、第二封闭图形以及第三封闭图形可以都为矩形,且第一封闭图形、第二封闭图形以及第三封闭图形相互对齐。在第一封闭图形内显示有第一内容,第二封闭图形内显示有第三内容,第一内容和第三内容为数字。此时显示内容的方法还可以包括:在第三封闭图形中填充第五内容,第五内容为数字,且第五内容是将第一内容和第三内容按照预定的公式计算得到。In some embodiments, a first closed figure, a second closed figure, and a third closed figure are displayed on the touch screen of the electronic device. The first closed figure, the second closed figure, and the third closed figure may all be rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned with each other. The first content is displayed in the first closed figure, and the third content is displayed in the second closed figure, and the first content and the third content are numbers. At this time, the method of displaying content may also include: filling the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
在本实施例中,第一内容和第三内容为纯数字,用户在第三封闭图形中输入数学函数,电子设备可以根据用户输入的数学函数,对第一内容和第三内容计算,将计算结果填充入第三封闭图形,替换用户输入的数学函数。例如,电子设备识别到用户输入的数学函数为“=sum”“=SUM”,表示用户期望对第一封闭图形和第二封闭图形中的内容求和,电子设备识别到用户输入的的内容为“=AVERAGE”,表示用户期望对第一封闭图形和第二封闭图形中的内容求平均值,电子设备识别到用户输入的的内容为“=DIVIDE”,表示用户期望对第一封闭图形和第二封闭图形中的内容做安全除法计算。当数学函数所在的行或列都没有数字时,可以向用户返回一个空值。In this embodiment, the first content and the third content are pure numbers, and the user enters a mathematical function in the third closed figure. The electronic device can calculate the first content and the third content according to the mathematical function entered by the user, fill the calculation result into the third closed figure, and replace the mathematical function entered by the user. For example, the electronic device recognizes that the mathematical function entered by the user is "=sum" or "=SUM", indicating that the user expects to sum the contents in the first closed figure and the second closed figure, the electronic device recognizes that the content entered by the user is "=AVERAGE", indicating that the user expects to average the contents in the first closed figure and the second closed figure, and the electronic device recognizes that the content entered by the user is "=DIVIDE", indicating that the user expects to perform a safe division calculation on the contents in the first closed figure and the second closed figure. When there are no numbers in the row or column where the mathematical function is located, a null value can be returned to the user.
示例性的,如图17中的(A)所示,第一内容为“1200”,第三内容为“1500”,用户在第三封闭图形中输入“sum”的数学函数,电子设备确认用户期望对第一内容和第三内容进行求和,则将第一内容和第三内容相加,得到计算结果“2700”,将这个计算结果“2700”填充入第三封闭图形,替换掉用户输入的“sum”,即图17中的(B)。For example, as shown in (A) in FIG. 17 , the first content is “1200”, the third content is “1500”, and the user enters the mathematical function “sum” in the third closed figure. The electronic device confirms that the user wishes to sum the first content and the third content, and then adds the first content and the third content to obtain a calculation result of “2700”. This calculation result “2700” is filled into the third closed figure, replacing the “sum” entered by the user, i.e., (B) in FIG. 17 .
在一些实施例中,电子设备还可以对用户选择的数字进行计算。In some embodiments, the electronic device can also perform calculations on numbers selected by the user.
在本实施例中,用户选择第一封闭图形和第二封闭图形,第一封闭图形中的第一内容和第二封闭图形中的第三内容都为数字。电子设备响应于用户的选择操作,显示提示信息,提示信息用于展示至少一个数学公式所表征的计算方法。用户选择计算方法,电子设备根据用户选择的计算方法,对用户选择的第一内容和第三内容进行计算,将计算结果填充入第三封闭图形。In this embodiment, the user selects a first closed figure and a second closed figure, and the first content in the first closed figure and the third content in the second closed figure are both numbers. In response to the user's selection operation, the electronic device displays prompt information, and the prompt information is used to display the calculation method represented by at least one mathematical formula. The user selects the calculation method, and the electronic device calculates the first content and the third content selected by the user according to the calculation method selected by the user, and fills the calculation result into the third closed figure.
示例性的,如图18中的(A)所示,用户选择选择第一封闭图形和第二封闭图形,第一封闭图形中有第一内容“1200”,第二封闭图形中有第三内容“1500”。电子设备弹出提示框,提示框为“求和”、“平均”、“乘积”、“求商”的选项,每个选项都对应一个计算公式。用户可以选择“求和”,即对第一内容和第三内容进行求和,得到计算结果“2700”。将计算结果填充入第三封闭图形中。Exemplarily, as shown in (A) in FIG18 , the user selects the first closed figure and the second closed figure, the first closed figure contains the first content "1200", and the second closed figure contains the third content "1500". The electronic device pops up a prompt box, which contains the options of "sum", "average", "product", and "quotient", each of which corresponds to a calculation formula. The user can select "sum", that is, sum the first content and the third content, and obtain the calculation result "2700". The calculation result is filled into the third closed figure.
作为一种可能的实现方式,电子设备支持语音输入,用户在选择了第一封闭图形和第二封闭图形后,可以通过语音的方式输入以进行计算操作。用户通过语音的方式输入的计算可以包括但不限于求和、求差、求平均值、求商、求乘积、求均方差等。As a possible implementation, the electronic device supports voice input, and after the user selects the first closed figure and the second closed figure, the user can input by voice to perform a calculation operation. The calculation input by the user by voice may include but is not limited to sum, difference, average, quotient, product, mean square error, etc.
示例性的,如图19中的(A)所示,用户选择选择第一封闭图形和第二封闭图形,第一封闭图形 中有第一内容“1200”,第二封闭图形中有第三内容“1500”。在用户选择了图形后,用户可以通过语音的方式输入“求和”,电子设备根据用户语音输入的计算方法,对第一图形和第二图形中的内容进行计算,得到计算结果“2700”。将计算结果“2700”填充入第三封闭图形。For example, as shown in (A) of FIG. 19 , the user selects a first closed figure and a second closed figure, and the first closed figure There is a first content "1200" in the closed figure, and a third content "1500" in the second closed figure. After the user selects the figure, the user can input "sum" by voice, and the electronic device calculates the contents in the first figure and the second figure according to the calculation method input by the user's voice, and obtains the calculation result "2700". The calculation result "2700" is filled into the third closed figure.
在本实施例中,用户在封闭图形中输入的内容为数字,用户可以选择计算方式,电子设备可以对用户输入的数字根据用户选择的计算方式进行自动计算,免去用户自己计算的过程,提高用户使用的便捷性。In this embodiment, the content input by the user in the closed figure is a number, and the user can select a calculation method. The electronic device can automatically calculate the number input by the user according to the calculation method selected by the user, eliminating the process of the user's own calculation and improving the convenience of user use.
上述各项实施例中提供的显示内容的方法,在触控屏上显示手写轨迹之后,都对手写轨迹进行OCR识别,得到一个识别后的内容。但是在一些情境下,用户并不希望自己写的字别转化为印刷体,而向保留自己的手写风格。因此,本申请实施例还提供另一种显示内容的方法,同样可以应用于具有触控屏的电子设备,在触控屏上显示有第一封闭图形。该显示内容的方法可以包括:In the methods for displaying content provided in the above embodiments, after displaying the handwriting track on the touch screen, OCR recognition is performed on the handwriting track to obtain a recognized content. However, in some situations, the user does not want the words he wrote to be converted into print, but wants to retain his handwriting style. Therefore, the embodiment of the present application also provides another method for displaying content, which can also be applied to an electronic device with a touch screen, and a first closed graphic is displayed on the touch screen. The method for displaying content may include:
获取用户在第一封闭图形中输入的第一手写轨迹。A first handwriting trajectory input by a user in a first closed graph is obtained.
在触控屏上显示第一手写轨迹。The first handwriting track is displayed on the touch screen.
根据第一封闭图形的内容对齐格式或预定义的内容对齐格式调整第一手写轨迹在第一封闭图形中的显示位置。The display position of the first handwriting track in the first closed figure is adjusted according to the content alignment format of the first closed figure or a predefined content alignment format.
以调整后的显示位置在触控屏上显示第一手写轨迹。The first handwriting track is displayed on the touch screen at the adjusted display position.
本实施例提供的显示内容的方法的实施例可以参考前述对手写笔迹进行OCR识别的实施例,在此不再赘述。The embodiment of the method for displaying content provided in this embodiment can refer to the aforementioned embodiment of performing OCR recognition on handwritten handwriting, which will not be described in detail here.
在一些实施例中,还可以根据预定义的显示大小调整第一手写轨迹的显示大小,从而更符合用户的观看习惯。此时的以调整后的显示位置在触控屏上显示第一手写轨迹可以包括:以调整后的显示位置,且以调整后的显示大小在触控屏上显示第一手写轨迹。In some embodiments, the display size of the first handwriting track can also be adjusted according to a predefined display size to better meet the viewing habits of the user. At this time, displaying the first handwriting track on the touch screen at the adjusted display position may include: displaying the first handwriting track on the touch screen at the adjusted display position and at the adjusted display size.
可以理解的是,上述各个实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。实施例中的第一封闭图形、第二封闭图形、第三封闭图形并不对图形的个数构成限制,封闭图形的个数可以根据需要进行增减,例如,多个对齐的矩形(封闭图形中的一种)可以组成表格,用户可以在表格内输入内容。此外,在一些可能的实现方式中,上述实施例中的各步骤可以根据实际情况选择性执行,可以部分执行,也可以全部执行,此处不做限定。本申请的任意实施例的任意特征的全部或部分在不矛盾的前提下,可以自由地、任何地组合。组合后的技术方案也在本申请的范围之内。It is understandable that the size of the sequence number of each step in the above-mentioned embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The first closed figure, the second closed figure, and the third closed figure in the embodiment do not limit the number of figures. The number of closed figures can be increased or decreased as needed. For example, a plurality of aligned rectangles (one of the closed figures) can form a table, and the user can enter content in the table. In addition, in some possible implementations, the steps in the above-mentioned embodiments can be selectively executed according to actual conditions, and can be partially executed or fully executed, which is not limited here. All or part of any feature of any embodiment of the present application can be freely and arbitrarily combined without contradiction. The combined technical scheme is also within the scope of the present application.
基于上述实施例中的方法,本申请实施例还提供一种显示内容的装置。Based on the method in the above embodiment, an embodiment of the present application also provides a device for displaying content.
示例性地,图20示出了一种显示内容的装置的结构。其中该显示内容的装置可以部署于带有触控屏的电子设备,触控屏上显示有第一封闭图形。如图20所示,该显示内容的装置2000可以包括:获取模块2001,用于获取用户在第一封闭图形中输入的第一手写轨迹;显示模块2002,用于在触控屏上显示第一手写轨迹;处理模块2003,用于根据第一手写轨迹得到第一内容;处理模块2003,还用于确定第一内容的第一显示格式,第一显示格式包括第一内容在第一封闭图形中的第一显示位置,第一显示位置与第一手写轨迹在触控屏上的显示位置不同;显示模块2002,还用于以第一显示格式在触控屏上显示第一内容。Exemplarily, FIG20 shows the structure of a device for displaying content. The device for displaying content can be deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen. As shown in FIG20, the device 2000 for displaying content may include: an acquisition module 2001, used to acquire a first handwriting trajectory input by a user in a first closed figure; a display module 2002, used to display the first handwriting trajectory on the touch screen; a processing module 2003, used to obtain the first content according to the first handwriting trajectory; the processing module 2003 is also used to determine the first display format of the first content, the first display format includes the first display position of the first content in the first closed figure, and the first display position is different from the display position of the first handwriting trajectory on the touch screen; the display module 2002 is also used to display the first content on the touch screen in the first display format.
在一些可能的实现方式中,第一内容是对第一手写轨迹进行光学字符识别得到的。In some possible implementations, the first content is obtained by performing optical character recognition on the first handwriting trace.
在一些可能的实现方式中,第一内容为文字、数字或图案。In some possible implementations, the first content is text, numbers, or patterns.
在一些可能的实现方式中,在显示第一手写轨迹之后,且在显示第一内容之前,显示模块2002还用于在触控屏上停止显示第一手写轨迹。In some possible implementations, after displaying the first handwriting track and before displaying the first content, the display module 2002 is further configured to stop displaying the first handwriting track on the touch screen.
在一些可能的实现方式中,处理模块2003还用于:根据第一封闭图形的内容对齐格式或预定义的内容对齐格式,确定第一显示位置,内容对齐格式包括左对齐,右对齐,居中对齐,两端对齐以及分散对齐中的任意一种。In some possible implementations, the processing module 2003 is further used to determine the first display position according to the content alignment format of the first closed graphic or a predefined content alignment format, where the content alignment format includes any one of left alignment, right alignment, center alignment, two-end alignment and distributed alignment.
在一些可能的实现方式中,第一显示格式还包括第一内容的第一显示大小。In some possible implementations, the first display format also includes a first display size of the first content.
在一些可能的实现方式中,第一显示大小与第一手写轨迹在触控屏上的显示大小不同。In some possible implementations, the first display size is different from the display size of the first handwriting trace on the touch screen.
在一些可能的实现方式中,处理模块2003还用于:根据第一封闭图形的预定义的内容大小规格确定第一显示大小;或者,根据第一手写轨迹在触控屏上的显示大小,确定第一显示大小。 In some possible implementations, the processing module 2003 is further used to: determine the first display size according to a predefined content size specification of the first closed figure; or determine the first display size according to the display size of the first handwriting track on the touch screen.
在一些可能的实现方式中,第一显示格式还包括:第一内容的显示颜色。In some possible implementations, the first display format further includes: a display color of the first content.
在一些可能的实现方式中,第一内容为文字,第一显示格式还包括第一内容的字体。In some possible implementations, the first content is text, and the first display format also includes a font of the first content.
在一些可能的实现方式中,处理模块2003还用于:获取用户在第一封闭图形中输入的第二手写轨迹;根据第二手写轨迹得到第二内容;根据第一显示格式确定第二显示格式,第二显示格式包括第一内容和第二内容在第一封闭图形中的第二显示位置;显示模块2002还用于以第二显示格式在触控屏上显示第一内容和第二内容。In some possible implementations, the processing module 2003 is also used to: obtain a second handwriting trajectory input by the user in the first closed figure; obtain a second content based on the second handwriting trajectory; determine a second display format based on the first display format, the second display format including the first content and the second content in the first closed figure. The second display position; the display module 2002 is also used to display the first content and the second content on the touch screen in the second display format.
在一些可能的实现方式中,在以第二显示格式在触控屏上显示第一内容和第二内容之前,显示模块2002还用于:在触控屏上显示第二手写轨迹;在预设的时间段之后,在触控屏上停止显示第二手写轨迹。In some possible implementations, before displaying the first content and the second content on the touch screen in the second display format, the display module 2002 is further used to: display a second handwriting trajectory on the touch screen; and stop displaying the second handwriting trajectory on the touch screen after a preset time period.
在一些可能的实现方式中,第二显示位置由第一内容对齐格式确定;处理模块2003还用于根据第一内容对齐格式确定第二显示位置。In some possible implementations, the second display position is determined by the first content alignment format; the processing module 2003 is further configured to determine the second display position according to the first content alignment format.
在一些可能的实现方式中,第二显示格式包括第一内容和第二内容的第二显示大小,第二显示大小与第一显示大小相同。In some possible implementations, the second display format includes the first content and a second display size of the second content, where the second display size is the same as the first display size.
在一些可能的实现方式中,触控屏上还显示有第二封闭图形,获取模块2001还用于获取用户在第二封闭图形中输入的第三手写轨迹;处理模块2003还用于根据第三手写轨迹得到第三内容;确定第三内容的第三显示格式,第三显示格式包括第三内容在第二封闭图形中的第三显示位置,第三显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;显示模块2002还用于以第三显示格式在触控屏上显示第三内容。In some possible implementations, a second closed figure is also displayed on the touch screen, and the acquisition module 2001 is also used to obtain a third handwriting trajectory input by the user in the second closed figure; the processing module 2003 is also used to obtain a third content based on the third handwriting trajectory; determine a third display format of the third content, the third display format includes a third display position of the third content in the second closed figure, and the third display position is obtained according to the content alignment format of the second closed figure or a predefined content alignment format; the display module 2002 is also used to display the third content on the touch screen in the third display format.
在一些可能的实现方式中,第一封闭图形的内容对齐格式与第二封闭图形的内容对齐格式一致。In some possible implementations, the content alignment format of the first closed figure is consistent with the content alignment format of the second closed figure.
在一些可能的实现方式中,第三显示格式还包括第三内容的第三显示大小,第三显示大小与第一显示大小一致。In some possible implementations, the third display format further includes a third display size of the third content, and the third display size is consistent with the first display size.
在一些可能的实现方式中,在以第三显示格式在触控屏上显示第三内容之前,显示模块2002还用于在触控屏上显示第三手写轨迹;在预设的时间段之后,在触控屏上停止显示第三手写轨迹。In some possible implementations, before displaying the third content on the touch screen in the third display format, the display module 2002 is further used to display a third handwriting track on the touch screen; after a preset time period, the third handwriting track is stopped from being displayed on the touch screen.
在一些可能的实现方式中,处理模块2003还用于:响应于用户在第二封闭图形中输入的第四手写轨迹,调大第二封闭图形;根据第四手写轨迹,得到第四内容;根据调大后的第二封闭图形和第三显示格式确定第三内容和第四内容的第四显示格式,第四显示格式包括第三内容和第四内容在调大后的第二封闭图形中的第四显示位置,第四显示位置根据第二封闭图形的内容对齐格式或预定义的内容对齐格式得到;显示模块2002还用于以第四显示格式在触控屏上显示第三内容和第四内容。In some possible implementations, the processing module 2003 is also used to: enlarge the second closed figure in response to a fourth handwriting trajectory input by the user in the second closed figure; obtain a fourth content according to the fourth handwriting trajectory; determine a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to the content alignment format of the second closed figure or a predefined content alignment format; the display module 2002 is also used to display the third content and the fourth content on the touch screen in the fourth display format.
在一些可能的实现方式中,在以第四显示格式在触控屏上显示第三内容和第四内容之前,显示模块2002还用于:在触控屏上显示调大后的第二封闭图形;在触控屏上显示第四手写轨迹;在预设的时间段之后,在触控屏上停止显示第四手写轨迹。In some possible implementations, before displaying the third content and the fourth content on the touch screen in a fourth display format, the display module 2002 is also used to: display an enlarged second closed figure on the touch screen; display a fourth handwriting trajectory on the touch screen; and stop displaying the fourth handwriting trajectory on the touch screen after a preset time period.
在一些可能的实现方式中,第一封闭图形和第二封闭图形为矩形,且第一封闭图形和第二封闭图形对齐,处理模块2003还用于:根据调大后的第二封闭图形,调大第一封闭图形,以使得调大后的第一封闭图形和调大后的第二封闭图形对齐;确定第一内容在调大后的第一封闭图形中的第五显示格式,第五显示格式包括第一内容在调大后的第一封闭图形中的显示位置;显示模块2002还用于以第五显示格式在触控屏上显示第一内容。In some possible implementations, the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned, and the processing module 2003 is also used to: enlarge the first closed figure according to the enlarged second closed figure, so that the enlarged first closed figure and the enlarged second closed figure are aligned; determine a fifth display format of the first content in the enlarged first closed figure, the fifth display format including the display position of the first content in the enlarged first closed figure; the display module 2002 is also used to display the first content on the touch screen in the fifth display format.
在一些可能的实现方式中,处理模块2003还用于:响应于用户在第二封闭图形中删除第四内容,调小第二封闭图形;显示模块2002还用于以第三显示格式在触控屏上显示第三内容。In some possible implementations, the processing module 2003 is further used to: in response to the user deleting the fourth content in the second closed figure, reduce the size of the second closed figure; and the display module 2002 is further used to display the third content on the touch screen in a third display format.
在一些可能的实现方式中,处理模块2003还用于:根据调小后的第二封闭图形,调小第一封闭图形,以使得调小后的第一封闭图形与调小后的第二封闭图形对齐;确定第一内容在调小后的第一封闭图形中的第六显示格式,第六显示格式包括第一内容在调小后的第一封闭图形中的显示位置;显示模块2002还用于以第六显示格式在触控屏上显示第一内容。In some possible implementations, the processing module 2003 is also used to: reduce the first closed figure according to the reduced second closed figure so that the reduced first closed figure is aligned with the reduced second closed figure; determine a sixth display format of the first content in the reduced first closed figure, the sixth display format including the display position of the first content in the reduced first closed figure; the display module 2002 is also used to display the first content on the touch screen in the sixth display format.
在一些可能的实现方式中,第一内容包括具有顺序关系的多个标识,处理模块2003还用于:根据多个标识对第一内容进行换行处理;根据第一封闭图形的内容对齐格式或预定义的内容对齐格式确定换行处理后的第一内容的第一显示位置。In some possible implementations, the first content includes multiple identifiers in a sequential relationship, and the processing module 2003 is further used to: perform line break processing on the first content according to the multiple identifiers; and determine the first display position of the first content after the line break processing according to the content alignment format of the first closed graphic or the predefined content alignment format.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容为具 有顺序关系的标识,处理模块2003还用于:在第三封闭图形中填充第五内容,以使得第一内容、第三内容和第五内容为具有顺序关系的标识。In some possible implementations, a third closed figure is further displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangular, and the first closed figure, the second closed figure, and the third closed figure are aligned, and the first content and the third content are rectangular. The processing module 2003 is further used to fill the fifth content in the third closed figure so that the first content, the third content and the fifth content are the identifications with a sequential relationship.
在一些可能的实现方式中,具有顺序关系的标识为具有顺序递增关系或顺序递减关系的数字;或者,为具有顺序递增关系或顺序递减关系的字母。In some possible implementations, the identifiers with a sequential relationship are numbers with a sequential increasing relationship or a sequential decreasing relationship; or, they are letters with a sequential increasing relationship or a sequential decreasing relationship.
在一些可能的实现方式中,触控屏上还显示有第三封闭图形,第一封闭图形、第二封闭图形和第三封闭图形为矩形,且第一封闭图形、第二封闭图形和第三封闭图形对齐,第一内容和第三内容为数字,处理模块2003还用于:在第三封闭图形中填充第五内容,第五内容为数字,且第五内容是将第一内容和第三内容按照预定的公式计算得到。In some possible implementations, a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure, and the third closed figure are rectangles, and the first closed figure, the second closed figure, and the third closed figure are aligned, the first content and the third content are numbers, and the processing module 2003 is also used to: fill the third closed figure with fifth content, the fifth content is a number, and the fifth content is calculated by the first content and the third content according to a predetermined formula.
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
基于上述实施例中的方法,本申请实施例又提供一种显示内容的装置。Based on the method in the above embodiment, an embodiment of the present application further provides a device for displaying content.
示例性的,图21示出了又一种显示内容的装置的结构。其中,该显示内容的装置可以部署于具有触控屏的电子设备,触控屏上显示有第一封闭图形。如图21所示,该显示内容的装置2100可以包括:获取模块2101,用于获取用户在第一封闭图形中输入的第一手写轨迹;显示模块2102,用于在触控屏上显示第一手写轨迹;处理模块2103,用于根据第一封闭图形中的内容对齐格式或预定义的内容对齐格式调整第一手写轨迹在第一封闭图形中的显示位置;显示模块2102,还用于以调整后的显示位置在触控屏上显示第一手写轨迹。Exemplarily, FIG21 shows the structure of another device for displaying content. The device for displaying content can be deployed in an electronic device having a touch screen, on which a first closed figure is displayed. As shown in FIG21 , the device 2100 for displaying content may include: an acquisition module 2101 for acquiring a first handwriting trajectory input by a user in a first closed figure; a display module 2102 for displaying the first handwriting trajectory on the touch screen; a processing module 2103 for adjusting the display position of the first handwriting trajectory in the first closed figure according to a content alignment format in the first closed figure or a predefined content alignment format; and the display module 2102 is further used to display the first handwriting trajectory on the touch screen at the adjusted display position.
在一些可能的实现方式中,处理模块2103还用于:根据预定义的显示大小,调整第一手写轨迹的显示大小;显示模块2102还用于:以调整后的显示位置,且以调整后的显示大小,在触控屏上显示第一手写轨迹。In some possible implementations, the processing module 2103 is further used to: adjust the display size of the first handwriting trajectory according to a predefined display size; the display module 2102 is further used to: display the first handwriting trajectory on the touch screen with the adjusted display position and the adjusted display size.
应当理解的是,上述装置用于执行上述实施例中的方法,装置中相应的程序模块,其实现原理和技术效果与上述方法中的描述类似,该装置的工作过程可参考上述方法中的对应过程,此处不再赘述。It should be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
可以理解的是,本申请的实施例中的处理器可以是中央处理单元(central processing unit,CPU),还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件,硬件部件或者其任意组合。通用处理器可以是微处理器,也可以是任何常规的处理器。It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
本申请的实施例中的方法步骤可以通过硬件的方式来实现,也可以由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read-only memory,ROM)、可编程只读存储器(programmable rom,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用 来限制本申请的实施例的范围。 It is to be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not to be used as a reference. To limit the scope of the embodiments of the present application.

Claims (23)

  1. 一种显示内容的方法,其特征在于,应用于具有触控屏的电子设备,所述触控屏上显示有第一封闭图形,所述方法包括:A method for displaying content, characterized in that it is applied to an electronic device having a touch screen, wherein a first closed graphic is displayed on the touch screen, and the method comprises:
    获取用户在所述第一封闭图形中输入的第一手写轨迹;Acquire a first handwriting trajectory input by a user in the first closed figure;
    在所述触控屏上显示所述第一手写轨迹;Displaying the first handwriting trajectory on the touch screen;
    根据所述第一手写轨迹得到第一内容;Obtaining first content according to the first handwriting trajectory;
    确定所述第一内容的第一显示格式,所述第一显示格式包括所述第一内容在所述第一封闭图形中的第一显示位置,所述第一显示位置与所述第一手写轨迹在所述触控屏上的显示位置不同;Determining a first display format of the first content, the first display format comprising a first display position of the first content in the first closed figure, the first display position being different from a display position of the first handwriting track on the touch screen;
    以所述第一显示格式在所述触控屏上显示所述第一内容。The first content is displayed on the touch screen in the first display format.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述第一内容的第一显示格式,包括:The method according to claim 1, characterized in that determining the first display format of the first content comprises:
    根据所述第一封闭图形的内容对齐格式或预定义的内容对齐格式确定所述第一显示位置,所述内容对齐格式包括左对齐,居中对齐,右对齐,两端对齐以及分散对齐中的任意一种。The first display position is determined according to a content alignment format of the first closed graphic or a predefined content alignment format, wherein the content alignment format includes any one of left alignment, center alignment, right alignment, both ends alignment and distributed alignment.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一显示格式还包括所述第一内容的第一显示大小。The method according to claim 1 or 2 is characterized in that the first display format also includes a first display size of the first content.
  4. 根据权利要求3所述的方法,其特征在于,所述第一显示大小与所述第一手写轨迹在所述触控屏上的显示大小不同。The method according to claim 3 is characterized in that the first display size is different from the display size of the first handwriting trace on the touch screen.
  5. 根据权利要求3或4所述的方法,其特征在于,所述确定所述第一内容的第一显示格式,包括:The method according to claim 3 or 4, characterized in that determining the first display format of the first content comprises:
    根据所述第一封闭图形的预定义的内容大小规格确定所述第一显示大小;或者,根据所述第一手写轨迹在所述触控屏上的显示大小确定所述第一显示大小。The first display size is determined according to a predefined content size specification of the first closed figure; or, the first display size is determined according to a display size of the first handwriting track on the touch screen.
  6. 根据权利要求1-5任意一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 5, further comprising:
    获取用户在所述第一封闭图形中输入的第二手写轨迹;Acquire a second handwriting trajectory input by the user in the first closed figure;
    根据所述第二手写轨迹得到第二内容;Obtaining second content according to the second handwriting trajectory;
    根据所述第一显示格式确定第二显示格式,所述第二显示格式包括所述第一内容和所述第二内容在所述第一封闭图形中的第二显示位置;determining a second display format according to the first display format, wherein the second display format includes a second display position of the first content and the second content in the first closed figure;
    以所述第二显示格式在所述触控屏上显示所述第一内容和所述第二内容。The first content and the second content are displayed on the touch screen in the second display format.
  7. 根据权利要求6所述的方法,其特征在于,所述第二显示位置由第一内容对齐格式确定;The method according to claim 6, characterized in that the second display position is determined by the first content alignment format;
    所述根据所述第一显示格式确定第二显示格式,包括:The determining the second display format according to the first display format comprises:
    根据所述第一内容对齐格式确定所述第二显示位置。The second display position is determined according to the first content alignment format.
  8. 根据权利要求6或7所述的方法,其特征在于,所述第二显示格式包括所述第一内容和所述第二内容的第二显示大小,所述第二显示大小与所述第一显示大小相同。The method according to claim 6 or 7 is characterized in that the second display format includes a second display size of the first content and the second content, and the second display size is the same as the first display size.
  9. 根据权利要求2-8任意一项所述的方法,其特征在于,所述触控屏上还显示有第二封闭图形,所述方法还包括:The method according to any one of claims 2 to 8, characterized in that a second closed figure is also displayed on the touch screen, and the method further comprises:
    获取用户在所述第二封闭图形中输入的第三手写轨迹;Acquire a third handwriting trajectory input by the user in the second closed figure;
    根据所述第三手写轨迹得到第三内容;Obtaining third content according to the third handwriting trajectory;
    确定所述第三内容的第三显示格式,所述第三显示格式包括所述第三内容在所述第二封闭图形中的第三显示位置,所述第三显示位置根据所述第二封闭图形的内容对齐格式或所述预定义的内容对齐格式得到;determining a third display format of the third content, the third display format comprising a third display position of the third content in the second closed figure, the third display position being obtained according to a content alignment format of the second closed figure or the predefined content alignment format;
    以所述第三显示格式在所述触控屏上显示所述第三内容。 The third content is displayed on the touch screen in the third display format.
  10. 根据权利要求9所述的方法,其特征在于,所述第一封闭区域的内容对齐格式与所述第二封闭图形的内容对齐格式一致。The method according to claim 9 is characterized in that the content alignment format of the first closed area is consistent with the content alignment format of the second closed figure.
  11. 根据权利要求9或10所述的方法,其特征在于,所述第三显示格式还包括所述第三内容的第三显示大小,所述第三显示大小与所述第一显示大小一致。The method according to claim 9 or 10 is characterized in that the third display format also includes a third display size of the third content, and the third display size is consistent with the first display size.
  12. 根据权利要求9-11任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 9 to 11, characterized in that the method further comprises:
    响应于用户在所述第二封闭图形中输入的第四手写轨迹,调大所述第二封闭图形;In response to a fourth handwriting track input by a user in the second closed figure, enlarging the second closed figure;
    根据所述第四手写轨迹得到第四内容;Obtaining fourth content according to the fourth handwriting trajectory;
    根据调大后的第二封闭图形和所述第三显示格式确定所述第三内容和所述第四内容的第四显示格式,所述第四显示格式包括所述第三内容和所述第四内容在所述调大后的第二封闭图形中的第四显示位置,所述第四显示位置根据所述第二封闭图形的内容对齐格式或所述预定义的内容对齐格式得到;determining a fourth display format of the third content and the fourth content according to the enlarged second closed figure and the third display format, the fourth display format including a fourth display position of the third content and the fourth content in the enlarged second closed figure, the fourth display position being obtained according to the content alignment format of the second closed figure or the predefined content alignment format;
    以所述第四显示格式在所述触控屏上显示所述第三内容和所述第四内容。The third content and the fourth content are displayed on the touch screen in the fourth display format.
  13. 根据权利要求12所述的方法,其特征在于:所述第一封闭图形和所述第二封闭图形为矩形,且所述第一封闭图形和所述第二封闭图形对齐,所述方法还包括:The method according to claim 12, characterized in that: the first closed figure and the second closed figure are rectangles, and the first closed figure and the second closed figure are aligned, and the method further comprises:
    根据调大后的第二封闭图形,调大所述第一封闭图形,以使得所述调大后的所述第一封闭图形与所述调大后的第二封闭图形对齐;According to the enlarged second closed figure, enlarge the first closed figure so that the enlarged first closed figure is aligned with the enlarged second closed figure;
    确定所述第一内容在调大后的所述第一封闭图形中的第五显示格式,所述第五显示格式包括所述第一内容在调大后的所述第一封闭图形中的显示位置;determining a fifth display format of the first content in the enlarged first closed figure, the fifth display format including a display position of the first content in the enlarged first closed figure;
    以所述第五显示格式在所述触控屏上显示所述第一内容。The first content is displayed on the touch screen in the fifth display format.
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述第一内容包括具有顺序关系的多个标识,所述确定所述第一内容的第一显示格式,包括:The method according to any one of claims 1 to 13, wherein the first content includes a plurality of identifiers in a sequential relationship, and determining the first display format of the first content includes:
    根据所述多个标识对所述第一内容进行换行处理;Performing line break processing on the first content according to the multiple identifiers;
    根据所述第一封闭图形的内容对齐格式或预定义的内容对齐格式确定所述换行处理后的第一内容的第一显示位置。The first display position of the first content after the line break processing is determined according to the content alignment format of the first closed graphic or a predefined content alignment format.
  15. 根据权利要求9-13任一项所述的方法,其特征在于,所述触控屏上还显示有第三封闭图形,所述第一封闭图形、所述第二封闭图形和所述第三封闭图形为矩形,且所述第一封闭图形、所述第二封闭图形和所述第三封闭图形对齐,所述第一内容和所述第三内容包括具有顺序关系的标识,所述方法还包括:The method according to any one of claims 9 to 13, characterized in that a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure and the third closed figure are rectangles, and the first closed figure, the second closed figure and the third closed figure are aligned, the first content and the third content include identifiers having a sequential relationship, and the method further comprises:
    在所述第三封闭图形中填充第五内容,以使得所述第一内容、所述第三内容和所述第五内容包括具有顺序关系的标识。The fifth content is filled in the third closed figure, so that the first content, the third content and the fifth content include identifiers having a sequential relationship.
  16. 根据权利要求14或15所述的方法,其特征在于,所述具有顺序关系的标识为具有顺序递增关系或顺序递减关系的数字;或者,为具有顺序递增关系或顺序递减关系的字母。The method according to claim 14 or 15 is characterized in that the identifications with sequential relationships are numbers with sequential increasing relationships or sequential decreasing relationships; or, are letters with sequential increasing relationships or sequential decreasing relationships.
  17. 根据权利要求9-13任一项所述的方法,其特征在于,所述触控屏上还显示有第三封闭图形,所述第一封闭图形、所述第二封闭图形和所述第三封闭图形为矩形,且所述第一封闭图形、所述第二封闭图形和所述第三封闭图形对齐,所述第一内容和所述第三内容为数字,所述方法还包括:The method according to any one of claims 9 to 13, characterized in that a third closed figure is also displayed on the touch screen, the first closed figure, the second closed figure and the third closed figure are rectangles, and the first closed figure, the second closed figure and the third closed figure are aligned, the first content and the third content are numbers, and the method further comprises:
    在所述第三封闭图形中填充第五内容,所述第五内容为数字,且所述第五内容是将所述第一内容和所述第三内容按照预定的公式计算得到。The third closed figure is filled with fifth content, wherein the fifth content is a number, and the fifth content is obtained by calculating the first content and the third content according to a predetermined formula.
  18. 一种显示内容的方法,其特征在于,应用于具有触控屏的电子设备,所述触控屏上显示有第一封闭图形,所述方法包括:A method for displaying content, characterized in that it is applied to an electronic device having a touch screen, wherein a first closed graphic is displayed on the touch screen, and the method comprises:
    获取用户在所述第一封闭图形中输入的第一手写轨迹; Acquire a first handwriting trajectory input by a user in the first closed figure;
    在所述触控屏上显示所述第一手写轨迹;Displaying the first handwriting track on the touch screen;
    根据所述第一封闭图形的内容对齐格式或预定义的内容对齐格式调整所述第一手写轨迹在所述第一封闭图形中的显示位置;adjusting a display position of the first handwritten track in the first closed figure according to a content alignment format of the first closed figure or a predefined content alignment format;
    以所述调整后的显示位置在所述触控屏上显示所述第一手写轨迹。The first handwriting track is displayed on the touch screen at the adjusted display position.
  19. 根据权利要求18所述的方法,其特征在于,所述方法还包括:The method according to claim 18, characterized in that the method further comprises:
    根据预定义的显示大小调整所述第一手写轨迹的显示大小;adjusting the display size of the first handwriting track according to a predefined display size;
    所述以所述调整的显示位置在所述触控屏上显示所述第一手写轨迹,包括:The step of displaying the first handwriting track on the touch screen at the adjusted display position includes:
    以所述调整后的显示位置,且以所述调整后的显示大小在所述触控屏上显示所述第一手写轨迹。The first handwriting track is displayed on the touch screen at the adjusted display position and at the adjusted display size.
  20. 一种显示内容的装置,其特征在于,部署于具有触控屏的电子设备,所述触控屏上显示有第一封闭图形,所述装置包括:A device for displaying content, characterized in that it is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen, and the device comprises:
    获取模块,用于获取用户在所述第一封闭图形中输入的第一手写轨迹;An acquisition module, used for acquiring a first handwriting track input by a user in the first closed figure;
    显示模块,用于在所述触控屏上显示所述第一手写轨迹;A display module, used for displaying the first handwriting track on the touch screen;
    处理模块,用于根据所述第一手写轨迹得到第一内容;A processing module, configured to obtain first content according to the first handwriting trajectory;
    所述处理模块,还用于确定所述第一内容的第一显示格式,所述第一显示格式包括所述第一内容在所述第一封闭图形中的第一显示位置,所述第一显示位置与所述第一手写轨迹在所述触控屏上的显示位置不同;The processing module is further used to determine a first display format of the first content, the first display format including a first display position of the first content in the first closed figure, the first display position being different from a display position of the first handwriting track on the touch screen;
    所述显示模块,还用于以所述第一显示格式在所述触控屏上显示所述第一内容。The display module is further configured to display the first content on the touch screen in the first display format.
  21. 一种显示内容的装置,其特征在于,部署于具有触控屏的电子设备,所述触控屏上显示有第一封闭图形,所述装置包括:A device for displaying content, characterized in that it is deployed in an electronic device with a touch screen, and a first closed figure is displayed on the touch screen, and the device comprises:
    获取模块,用于获取用户在所述第一封闭图形中输入的第一手写轨迹;An acquisition module, used for acquiring a first handwriting track input by a user in the first closed figure;
    显示模块,用于在触控屏上显示所述第一手写轨迹;A display module, used for displaying the first handwriting track on a touch screen;
    处理模块,用于根据所述第一封闭图形中的内容对齐格式或预定义的内容对齐格式调整所述第一手写轨迹在所述第一封闭图形中的显示位置;A processing module, configured to adjust a display position of the first handwritten track in the first closed figure according to a content alignment format or a predefined content alignment format in the first closed figure;
    显示模块,还用于以调整后的显示位置在所述触控屏上显示所述第一手写轨迹。The display module is further used to display the first handwriting track on the touch screen at the adjusted display position.
  22. 一种计算设备,包括处理器和存储器,其中,所述存储器中存储有计算机程序指令,所述计算机程序指令被所述处理器运行时,执行如权利要求1-19中任一项所述的方法。A computing device comprises a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 19 is executed.
  23. 一种计算机可读存储介质,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行如权利要求1-19任一项所述的方法。 A computer-readable storage medium comprises computer-readable instructions. When a computer reads and executes the computer-readable instructions, the computer executes the method according to any one of claims 1 to 19.
PCT/CN2023/101417 2022-09-30 2023-06-20 Content display method and apparatus, and storage medium WO2024066505A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211206210.7 2022-09-30
CN202211206210.7A CN117850654A (en) 2022-09-30 2022-09-30 Method, device and storage medium for displaying content

Publications (1)

Publication Number Publication Date
WO2024066505A1 true WO2024066505A1 (en) 2024-04-04

Family

ID=90475916

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/101417 WO2024066505A1 (en) 2022-09-30 2023-06-20 Content display method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN117850654A (en)
WO (1) WO2024066505A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095744A1 (en) * 2020-11-09 2022-05-12 华为技术有限公司 Vr display control method, electronic device, and computer readable storage medium
CN114740986A (en) * 2021-01-07 2022-07-12 华为技术有限公司 Handwriting input display method and related equipment
CN115048027A (en) * 2022-05-06 2022-09-13 合肥讯飞读写科技有限公司 Handwriting input method, device, system, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095744A1 (en) * 2020-11-09 2022-05-12 华为技术有限公司 Vr display control method, electronic device, and computer readable storage medium
CN114740986A (en) * 2021-01-07 2022-07-12 华为技术有限公司 Handwriting input display method and related equipment
CN115048027A (en) * 2022-05-06 2022-09-13 合肥讯飞读写科技有限公司 Handwriting input method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117850654A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
WO2020187157A1 (en) Control method and electronic device
WO2021213120A1 (en) Screen projection method and apparatus, and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
WO2021063237A1 (en) Control method for electronic device, and electronic device
JP2021524957A (en) Image processing methods and their devices, terminals and computer programs
KR102594951B1 (en) Electronic apparatus and operating method thereof
WO2021013132A1 (en) Input method and electronic device
WO2021180089A1 (en) Interface switching method and apparatus and electronic device
WO2021057699A1 (en) Method for controlling electronic device with flexible screen, and electronic device
WO2023142915A1 (en) Image processing method, apparatus and device, and storage medium
CN114579016A (en) Method for sharing input equipment, electronic equipment and system
WO2023197648A1 (en) Screenshot processing method and apparatus, electronic device, and computer readable medium
WO2018098959A2 (en) Picture display method and electronic device
WO2022022406A1 (en) Always-on display method and electronic device
CN115145436B (en) Icon processing method and electronic equipment
KR20180111242A (en) Electronic device and method for providing colorable content
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
WO2021218365A1 (en) Annotation method and electronic device
EP4394560A1 (en) Display method and electronic device
WO2024066505A1 (en) Content display method and apparatus, and storage medium
KR102266869B1 (en) Electronic apparatus and dispalying method thereof
US20240012451A1 (en) Display method and related apparatus
WO2022111690A1 (en) Method for sharing input device, electronic devices, and system
WO2022042285A1 (en) Method for displaying interface of application program and electronic device
WO2021254510A1 (en) Method for determining screenshot area, and related apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23869753

Country of ref document: EP

Kind code of ref document: A1