Document display method and apparatus

By generating background images based on weather and sentiment information associated with text in the document display interface, and displaying the text in a floating position, the problem of users lacking emotional connection with documents is solved, thus improving the reading experience.

CN115481598BActive Publication Date: 2026-02-27NANJING VIVO SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211169934.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-22
Publication Date
2026-02-27
Estimated Expiration
2042-09-22

AI Technical Summary

Technical Problem

When users look at previously saved documents, they find it difficult to establish an emotional connection with the documents they have saved, resulting in a poor viewing experience.

Method used

By receiving input from the target document, a display interface is generated and text is displayed floating on a background image. The background image is determined based on weather and sentiment information associated with the text, helping users recall the document content and emotions.

Benefits of technology

It enhances the emotional connection between users and documents, improving the reading experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481598B_ABST
    Figure CN115481598B_ABST
Patent Text Reader

Abstract

The application discloses a document display method and device, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input for starting a target document; in response to the first input, displaying a background image and text of the target document on a display interface of the target document, the text of the target document is displayed in suspension on the background image, and the background image is determined based on at least one of weather information and emotion type information associated with the text of the target document.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of communication, and particularly relates to a document display method and device. BACKGROUND

[0002] With the development of science and technology, using an electronic device to process a document has become an important function indispensable to the electronic device. The electronic device generally has multiple document application software, such as note software and note taking software, which integrates various functions, such as document scanning and voice-to-text, to provide convenience for users using the document application software.

[0003] However, when a user reviews previously saved document content, it is difficult for the user to associate the mood and state when recording the document with the content recorded at that time, and the user lacks emotional connection with the recorded document, resulting in poor experience of reviewing the previously saved document. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a document display method and device, which can solve the problem of lack of emotional connection between the user and the recorded document when the user reviews the previous document.

[0005] In a first aspect, the embodiments of the present application provide a document display method, which comprises:

[0006] receiving a first input for starting a target document;

[0007] in response to the first input, displaying a background image and text of the target document on a display interface of the target document, the text of the target document being displayed floating on the background image, and the background image being determined based on at least one of weather information and emotional type information associated with the text of the target document.

[0008] In a second aspect, the embodiments of the present application provide a document display device, which comprises:

[0009] a first receiving module configured to receive a first input for starting a target document;

[0010] a first display module configured to, in response to the first input, display a background image and text of the target document on a display interface of the target document, the text of the target document being displayed floating on the background image, and the background image being determined based on at least one of weather information and emotional type information associated with the text of the target document.

[0011] In a third aspect, an electronic device is provided. The electronic device includes a processor and a memory. The memory stores programs or instructions executable by the processor. The programs or instructions, when executed by the processor, implement the steps of the method of the first aspect.

[0012] In a fourth aspect, a readable storage medium is provided. The readable storage medium stores programs or instructions. The programs or instructions, when executed by a processor, implement the steps of the method of the first aspect.

[0013] In a fifth aspect, a chip is provided. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method of the first aspect.

[0014] In a sixth aspect, a computer program product is provided. The computer program product is stored in a storage medium. The computer program product is executed by at least one processor to implement the method of the first aspect.

[0015] In the embodiments of the present application, at least one of the weather information and the sentiment type information associated with the Chinese text of the target document is used to generate the background image in the display interface of the target document, so that the background image can reflect the weather information and the sentiment type information to a certain extent. In the display interface of the target document, the text is suspended in the background image. When a user reads the text, the user can help the user to recall the content in the target document and the mood and state when recording the document through the background image at the same time, so as to generate an emotional connection between the user and the document, and effectively improve the experience of the user reading the document. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 A document display method flowchart is provided for the embodiments of the present application.

[0017] Figure 2 A display interface of a target document is provided for the embodiments of the present application.

[0018] Figure 3 A display interface of a target document is provided for the embodiments of the present application.

[0019] Figure 4 A second input operation is provided for the embodiments of the present application.

[0020] Figure 5 A document display device structure diagram is provided for the embodiments of the present application.

[0021] Figure 6 An electronic device structure diagram is provided for the embodiments of the present application.

[0022] Figure 7 A hardware structure schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some, but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art belong to the scope of protection of the present application.

[0024] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally a category and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in a "or" relationship.

[0025] The document display method and device provided by the embodiments of the present application will be described in detail below with reference to the drawings and specific embodiments and their application scenarios.

[0026] Figure 1 The document display method flowchart provided by the embodiments of the present application is shown as in Figure 1 , which includes:

[0027] Step 110, receiving a first input for starting a target document;

[0028] Specifically, the target document described in the embodiments of the present application can be a document pre-edited and saved by a user, which can be a log document, a note document or other documents carrying text. The target document can include text.

[0029] In the embodiments of the present application, an electronic device can receive a first input for opening a target document. The electronic device can be a smart phone, a tablet computer or a notebook computer, or other electronic devices with document display function.

[0030] The first input described in the embodiments of the present application can be an input of a user touching and clicking a target document identifier.

[0031] In other embodiments, the first input can be a voice instruction input of a user opening a target document.

[0032] In some embodiments, the first input can also be an input of a user through an input device, for example, when the input device is a mouse, the first input can be an input of double-clicking the target document through the mouse.

[0033] In step 120, in response to the first input, a background image and the text of the target document are displayed on the display interface of the target document, the text of the target document is displayed floating on the background image, and the background image is determined based on at least one of the weather information and the sentiment type information associated with the text of the target document.

[0034] After the electronic device responds to the first input, the target document is opened, and the content of the target document is displayed on the display interface of the target document, for example, the text of the target document is displayed on the display interface of the target document.

[0035] The display interface of the target document described in the embodiments of the present application is an interface for displaying the content of the target document, and the display interface of the target document is specifically displayed on the screen of the electronic device.

[0036] The text of the target document described in the embodiments of the present application can specifically include words, expressions, hyperlinks, figures, etc., and the content of the text is written by the user in advance through a document editing interface. The text can be manually entered by the user or copied.

[0037] The background image described in the embodiments of the present application specifically refers to the background image of the display interface of the target document. The size of the background image can be the same as the size of the display interface of the target document, and in other embodiments, the size of the background image can also be smaller than the size of the display interface of the target document. That is, the background image is displayed in the display interface of the target document. When the user views the display interface of the target document, the background image can be seen. The background image can be a static image or a dynamic image.

[0038] In the embodiments of the present application, since the background image is determined based on at least one of the weather information and the sentiment type information associated with the text, the text of different target documents can be different, and therefore the background image displayed in the display interface of the target document can also be different when different target documents are opened.

[0039] In the embodiments of the present application, Figure 2 One of the display interface of the target document provided in the embodiments of the present application is shown in FIG. 21. Figure 2 As shown in FIG. 21, the text 22 is displayed floating on the background image 23 in the display interface 21 of the target document, which means that the background image is equivalent to the background of the text embedded in the lower layer of the words, and the background image does not block the text.

[0040] More specifically, in the embodiments of the present application, the text-associated weather information can be determined according to the text content or the text recording time, and the text-associated emotion type information can be determined according to the text content, which can reflect the user emotion type expressed in the text or the user emotion type when editing the text.

[0041] More specifically, the user emotion type information can include happy emotion type, calm emotion type, sad emotion type, etc.

[0042] The background image described in the embodiments of the present application is determined according to at least one of the text-associated weather information and the emotion type information, i.e., the determination manner of the background image includes the following manners:

[0043] Firstly, the background image is determined according to the text-associated weather information:

[0044] After determining the weather information, an image corresponding to the weather information is selected from a preset image gallery containing various weather information tags, for example, if the determined weather information is snow, an image with the weather information tag of snow can be selected from the image gallery containing various weather information tags as the background image.

[0045] Optionally, in the case that there are multiple images corresponding to the weather information tag, an image selection interface can be displayed for the user to select an image meeting the user's demand, or the image with the highest frequency of use can be automatically selected.

[0046] Secondly, the background image is determined according to the text-associated emotion type information:

[0047] After determining the emotion type information, an image corresponding to the emotion type information is selected from a preset image gallery containing various emotion type tags as the background image. Optionally, in the case that there are multiple images corresponding to the emotion type tag, an image selection interface can be displayed for the user to select an image meeting the user's demand, or the image with the highest frequency of use can be automatically selected.

[0048] Thirdly, the background image is determined according to the text-associated weather information and the emotion type information:

[0049] Firstly, after determining the weather information, an image corresponding to the weather information is selected from a preset image gallery containing both emotion type tags and weather tags, and in the case that there are multiple images corresponding to the weather information, an image corresponding to the emotion type information is further selected from the multiple images according to the emotion type tag, and finally selected as the background image.

[0050] In the embodiment of the present application, at least one of the weather information and the emotion type information associated with the text of the target document is used to generate a background image in the display interface of the target document, so that the background image can reflect the weather information and the emotion type information to some extent. In the display interface of the target document, the text is suspended in the background image. When the user reads the text, the user can help the user recall the content in the target document and the mood and state when recording the document through the background image at the same time, so as to generate an emotional connection between the user and the document and effectively improve the user's document reading experience. Optionally, before the first input for starting the target document is received, the method further includes:

[0051] In the case that the weather content information exists in the text content of the text, the weather content information is taken as the weather information associated with the text;

[0052] In the case that the weather content information does not exist in the text content of the text, the time content information in the text is obtained, and the weather information corresponding to the time content information is taken as the weather information associated with the text;

[0053] In the case that the weather content information and the time content information do not exist in the text content of the text, the text recording time of the text is obtained, and the weather information corresponding to the text recording time is taken as the weather information associated with the text.

[0054] Specifically, in the embodiment of the present application, before the target document is opened, the text content of the text of the target document can also be analyzed, so as to effectively obtain the weather information associated with the text, and effectively determine the background image corresponding to the target document according to the weather information. The text content can be text content or link content, etc.

[0055] The step of obtaining the weather information associated with the text can be performed in the process of saving the target document, or can be performed by the user in the editing process of the target document.

[0056] In the embodiment of the present application, the text content analysis of the text can be performed by a time text format rule and a weather text format rule.

[0057] In the embodiment of the present application, a weather text library can be provided, and common texts for describing weather, such as sunny, cloudy, light rain, heavy rain, heavy snow, fog, etc., can be pre-stored in the weather text library. The weather text library is used to analyze the text content of the target document, and the weather content information in the text is screened out.

[0058] In some embodiments, the text can also be analyzed by a weather text content analysis model to output the weather content information described in the text.

[0059] The time text format rule in the embodiments of the present application can be specifically a rule for screening text content containing information such as "week", "time", "date", "X o'clock", "X minute", "X second", "AA: AA", "BB: BB: BB", and the like. The text is analyzed by the time text format rule, and the time content information in the text is obtained by combining the semantic analysis technology.

[0060] In some embodiments, the text can also be analyzed by a time text content analysis model, and the time content information described in the input text is input.

[0061] In the embodiments of the present application, if the weather content information exists in the text content, it means that the weather-related content is directly recorded in the text. In order to better combine the text content of the text, the weather content information directly recorded is taken as the weather information associated with the text.

[0062] More specifically, if the weather content information does not exist in the text content, it means that the weather information is not directly recorded in the text content at this time, and the weather content information in the text content cannot be directly used. At this time, the time-related content described in the text content is further considered, and the time content information in the text content can be obtained.

[0063] After the time content information is obtained in the embodiments of the present application, the weather corresponding to the time content information can be obtained, for example, the time content information is August 15, and the weather information of August 15 is obtained as the weather information associated with the text.

[0064] In the embodiments of the present application, if the weather content information and the time content information do not exist in the text content, it means that the relevant effective information cannot be directly obtained from the text content at this time, and the time when the user records the text can be considered.

[0065] The text recording time described in the embodiments of the present application can be specifically the time when the user inputs the text, or the time when the user saves the text.

[0066] In the embodiments of the present application, the weather information corresponding to the text recording time can be taken as the weather information associated with the text.

[0067] In the embodiments of the present application, by analyzing the text content, the weather information associated with the text is effectively obtained according to the weather content information and the time content information in the text content, or the text recording time of the text, which can help generate a background image to help the user recall the target document.

[0068] Optionally, before the receiving the first input for starting the target document, the method further includes:

[0069] analyzing each sentence in the text to obtain sentiment type information of each sentence;

[0070] target sentiment type information in each of the sentiment type information is taken as the sentiment type information associated with the text, wherein the target sentiment type information is the sentiment type information with the most repetitions in each of the sentiment type information.

[0071] Specifically, in the embodiments of the present application, each sentence can be analyzed by a natural language processing model to output the sentiment type information of each sentence. The natural language processing model can be trained in advance according to a text training sample carrying a sentiment type information label, and the present application does not limit the natural language processing model.

[0072] In other embodiments, a specific sentiment word library can also be established in advance. For example, the sentiment word library can store sentiment words such as "happy", "depressed", "joyful", "disappointed", etc. Each sentence can be analyzed by the sentiment words appearing in each sentence to analyze the sentiment of each sentence. Correspondingly, the sentence without sentiment words can not involve emotional content, and the corresponding sentiment type information can be empty.

[0073] In other embodiments, each sentence can also be analyzed by a text semantic analysis model to further obtain the sentiment type information of each sentence.

[0074] The sentiment type information described in the embodiments of the present application can specifically include "happy sentiment type", "depressed sentiment type", "sad sentiment type", and the like.

[0075] After obtaining the sentiment type information of each sentence in the embodiments of the present application, there can be repeated sentiment type information in each sentiment type information, that is, the sentiment type information of some sentences can be the same, and the number of sentences corresponding to each sentiment type information can be further determined. The number of sentences corresponding to each sentiment type information is the repetition number described in the embodiments of the present application.

[0076] The sentiment type information with the most repetitions in the embodiments of the present application can be the sentiment tendency with the largest proportion in the entire text, and can better represent the overall sentiment type information of the text.

[0077] In the embodiments of the present application, each sentence in the text is analyzed by text sentiment analysis to further obtain the sentiment type information associated with the text, effectively generating a background image that can help the user to recall the related content of the target document. When the user reopens the target document, it helps the user to establish an emotional connection with the target document.

[0078] Optionally, the display interface of the target document further comprises N first sub-interfaces, the first sub-interfaces are displayed on the background image, and display content of the first sub-interfaces comprises preset information obtained based on text recording time of the text, and N is a positive integer.

[0079] Specifically, the first sub-interface described in the embodiments of the present application can be a sub-interface in the form of a bubble box or a sub-interface in the form of a rectangular box, and the embodiments of the present application do not limit this.

[0080] More specifically, Figure 3 As shown in the second display interface schematic diagram of the target document provided by the embodiments of the present application, Figure 3 The N first sub-interfaces 31 described in the embodiments of the present application can be displayed in a blank position in the text display interface 21, and the blank position can be a position in the display interface 21 of the target document where the text 22 is not displayed. The N first sub-interfaces can be displayed in a tiled manner without blocking each other.

[0081] In some embodiments, the N first sub-interfaces can be displayed in the form of a barrage in the display interface of the target document.

[0082] The preset information described in the embodiments of the present application can specifically refer to local information and network information obtained at the text recording time.

[0083] The local information described in the embodiments of the present application refers to information generated by the electronic device itself at the text recording time, for example, call recording information, chat recording information, motion trajectory information, music playing history information, schedule information and other information that can be read from the data of the electronic device.

[0084] The network information described in the embodiments of the present application can specifically include “current affairs news information, file download record information” and other information that needs to be obtained through the network.

[0085] In other embodiments, the user can also click the first sub-interface, and the electronic device can display detailed content in the first sub-interface in response to the input of the user clicking the first sub-interface.

[0086] For example, in the case where the first sub-interface includes current affairs news information, the specific news content page of the current affairs news information is displayed.

[0087] In the embodiments of the present application, through the first sub-interface displayed in the display interface of the target document, information data corresponding to the text recording time can be effectively used to help the user recall the mood and idea when editing the document at that time, help the user to establish an emotional connection with the document, and effectively improve the document reading experience of the user.

[0088] Optionally, before the receiving the first input for starting the target document, the method further comprises:

[0089] displaying M first sub-interfaces in a document editing interface of the target document;

[0090] receiving a second input for moving a first target sub-interface from the M first sub-interfaces to a target text in the target document;

[0091] in response to the second input, adjusting a display parameter of the target text based on the sentiment type information corresponding to the target text, and canceling display of the first target sub-interface.

[0092] Specifically, the text editing interface described in the embodiments of the present application is specifically an interface when editing the text corresponding to the target document, and the user can enter text in the text editing interface.

[0093] The M first sub-interfaces can also be displayed in the text editing interface at the same time, which facilitates the user to understand more information that he or she may be interested in when editing the document. The M first sub-interfaces are displayed at a position that does not block the text editing area.

[0094] In the embodiments of the present application, the user can adjust the position of the first sub-interface in the text editing interface through a specific input, and can also add or delete the first sub-interface through a specific input.

[0095] More specifically, the first target sub-interface in the embodiments of the present application refers to the first sub-interface selected by the user from the M first sub-interfaces, and the target text also refers to the text selected by the user from the target document. The target text can specifically refer to a selected entire sentence, or a selected word, for example, in the case that the text in the target document includes "Today the weather is really nice! Let's go out and play.", the target text selected by the user can be "Today the weather is really nice!", and the target text selected by the user can also be "today".

[0096] The second input in the embodiments of the present application is used to establish an association between the first target sub-interface and the target text. Specifically, it can be an input of moving the first target sub-interface to the target text in the target document.

[0097] In some optional embodiments, the second input can also be an input of dragging the target text into the first target sub-interface.

[0098] Figure 4 The second input operation schematic diagram provided in the embodiments of the present application is shown as follows: Figure 4 receiving user input of the first target sub-interface 41 and the target text 42 in the target document.

[0099] The electronic device, in response to the second input, establishes an association between the first target sub-interface and the target text. After the association is established, the first target sub-interface can be hidden by being attached to the target text. At this time, the first target sub-interface is no longer displayed in the document editing interface, that is, the first target sub-interface is no longer displayed in the document editing interface.

[0100] More specifically, in order to facilitate the user to distinguish the target text associated with the first target sub-interface when the user subsequently views the target document, the display parameters of the target text can be further adjusted.

[0101] The display parameters of the target text can be adjusted in the following ways:

[0102] First, the target text is displayed in bold or the font of the target text is changed.

[0103] Second, the color of the text of the target text can be changed according to the emotional type information of the target text. For example, when the emotional type information is "happy" or "excited", a warm color tone is used, and when the emotional type information is "disappointed" or "depressed", a cold color tone is used.

[0104] The display effect of the target text after the display parameters are adjusted can refer to the display effect of a hyperlink in a text editor.

[0105] In the embodiments of the present application, the user can establish a connection between some first sub-interfaces containing specific information and the target text during the editing process of the document according to the user's needs, so as to facilitate the review of the information when the target text is subsequently reviewed.

[0106] Optionally, after the background image and the text of the target document are displayed on the display interface of the target document in response to the first input, the method further includes:

[0107] receiving a third input on the target text;

[0108] displaying the first target sub-interface in the display interface of the target document in response to the third input.

[0109] The third input described in the embodiments of the present application is an input for triggering the display of the first target sub-interface associated with the target text. The third input can be a single click on the target document, or a double click or a long press on the target document.

[0110] In the embodiments of the present application, the electronic device, in response to the third input, can display the first target sub-interface above the target text. The first target sub-interface can be displayed in detail according to different information corresponding to the first target sub-interface.

[0111] In the case that the first target sub-interface includes playable audio information, the audio information can be automatically played while the first target sub-interface is displayed, thereby helping the user to create an immersive environment.

[0112] In the embodiments of the present application, the third input can help the user to further recall the information that the user wants to associate when compiling the target text, help the user to recall the scene when the document is compiled, and improve the user experience.

[0113] The document display method provided in the embodiments of the present application can be executed by a document display device. The document display method executed by the document display device is taken as an example to illustrate the document display device provided in the embodiments of the present application.

[0114] Figure 5 The document display device provided in the embodiments of the present application has a structure as shown in FIG. 5. Figure 5 The document display device provided in the embodiments of the present application has a structure as shown in FIG. 5.

[0115] Optionally, the device further includes:

[0116] The first association module is configured to, in the case that the text content of the text includes weather content information, take the weather content information as the weather information associated with the text.

[0117] In the case that the text content of the text does not include weather content information, obtain time content information in the text, and take weather information corresponding to the time content information as the weather information associated with the text.

[0118] In the case that the text content of the text does not include the weather content information and the time content information, obtain a text recording time of the text, and take weather information corresponding to the text recording time as the weather information associated with the text.

[0119] Optionally, the device further includes:

[0120] The first analysis module is configured to analyze each sentence in the text to obtain sentiment type information of the each sentence.

[0121] A second association module is configured to associate target sentiment type information in each of the sentiment type information with the text as sentiment type information associated with the text, wherein the target sentiment type information is the sentiment type information with the most repetitions in each of the sentiment type information.

[0122] Optionally, the display interface of the target document further includes N first sub-interfaces, the first sub-interfaces are displayed on the background image, and display content of the first sub-interfaces includes preset information obtained based on a text recording time of the text, and N is a positive integer.

[0123] Optionally, the apparatus further includes:

[0124] A second display module is configured to display M first sub-interfaces in a document editing interface of a target document.

[0125] A second receiving module is configured to receive a second input for moving a first target sub-interface in the M first sub-interfaces to target text in the target document, M is a positive integer; and an adjusting module is configured to, in response to the second input, adjust a display parameter of the target text based on sentiment type information corresponding to the target text, and cancel display of the first target sub-interface.

[0126] In the embodiment of the present application, the background image in the display interface of the target document is generated by at least one of the weather information and the sentiment type information associated with the text of the target document, so that the background image can reflect the weather information and the sentiment type information to a certain extent. In the display interface of the target document, the text is suspended in the background image. When the user reads the text, the user can help the user recall the content in the target document and the mood and state when recording the document through the background image at the same time, so that the user and the document have an emotional connection, and the user's document reading experience is effectively improved. The document display device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the like. The electronic device can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like. The embodiment of the present application is not limited in this regard.

[0127] The document display device in the embodiment of the present application can be a device with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems. The embodiment of the present application is not limited in this regard.

[0128] The document display device provided by the embodiment of the present application can implement Figures 1 to 4 The method embodiment implements various processes, which will not be repeated here to avoid repetition.

[0129] Optionally, Figure 6 The electronic device structure schematic diagram provided by the embodiment of the present application is as follows: Figure 6As shown, the electronic device 600 in the embodiments of the present application further includes a processor 601 and a memory 602, and the memory 602 stores programs or instructions executable on the processor 601, which, when executed by the processor 601, implement the steps of the above-mentioned document display method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0130] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0131] Figure 7 A hardware structure schematic diagram of an electronic device for implementing the embodiments of the present application.

[0132] The electronic device 700 includes, but is not limited to, a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710, etc.

[0133] Those skilled in the art can understand that the electronic device 700 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 710 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described herein.

[0134] The user input unit 707 is configured to receive a first input for starting a target document.

[0135] The display unit 706 is configured to display a background image and text of the target document on a display interface of the target document in response to the first input, the text of the target document being displayed floating on the background image, and the background image being determined based on at least one of weather information and emotional type information associated with the text of the target document.

[0136] The processor 710 is configured to, in a case where there is weather content information in the text content of the text, take the weather content information as the weather information associated with the text.

[0137] In a case where there is no weather content information in the text content of the text, obtain time content information in the text, and take weather information corresponding to the time content information as the weather information associated with the text.

[0138] If the weather information and the time information are not present in the text content, the text recording time is obtained, and the weather information corresponding to the text recording time is used as the weather information associated with the text.

[0139] The processor 710 is used to analyze each sentence in the text to obtain the sentiment type information of each sentence;

[0140] The target sentiment type information in each of the sentiment type information is taken as the sentiment type information associated with the text, wherein the target sentiment type information is the sentiment type information that is repeated the most times among the sentiment type information.

[0141] Display unit 706 is used to display M first sub-interfaces in the document editing interface of the target document;

[0142] User input unit 707 is used to receive a second input for moving a first target sub-interface among the M first sub-interfaces to target text in the target document;

[0143] The display unit 706 is used to respond to the second input, adjust the display parameters of the target text based on the sentiment type information corresponding to the target text, and cancel the display of the first target sub-interface.

[0144] In this embodiment, a background image for the display interface of the target document is generated by using at least one of the weather information and sentiment type information associated with the text in the target document. This allows the background image to reflect the weather information and sentiment type information to a certain extent. In the display interface of the target document, the text floats above the background image. When the user reads the text, the background image can simultaneously help the user recall the content of the target document and record their emotions and state while reading the document, thus creating an emotional connection between the user and the document and effectively improving the user's document reading experience.

[0145] It should be understood that in the embodiments of the present application, the input unit 704 can include a graphics processor (GPU) 7041 and a microphone 7042. The graphics processor 7041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 can include a display panel 7061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 can include two parts of a touch detection device and a touch controller. The other input devices 7072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, and the like), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0146] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, and the like), and the like. In addition, the memory 709 can include a volatile memory or a non-volatile memory, or the memory 709 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 709 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.

[0147] The processor 710 can include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 710.

[0148] The embodiment of the present application further provides a readable storage medium, and the readable storage medium stores a program or instructions, the program or instructions are executed by a processor to realize each process of the above-mentioned document display method embodiment, and the same technical effects can be achieved, and details are not repeated here.

[0149] The processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.

[0150] The embodiment of the present application further provides a chip, and the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used to run a program or instructions to realize each process of the above-mentioned document display method embodiment, and the same technical effects can be achieved, and details are not repeated here.

[0151] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system, or a system on chip, etc.

[0152] The embodiment of the present application provides a computer program product, and the program product is stored in a storage medium, and the program product is executed by at least one processor to realize each process of the above-mentioned document display method embodiment, and the same technical effects can be achieved, and details are not repeated here.

[0153] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intervening action that are carried out at the same time, either in a simultaneous fashion or in a fashion that is interleaved in time. For example, the described methods can be performed in a different order from that described, and / or various steps can be combined or omitted, and / or additional steps can be added, without departing from the scope of the present application. Also, features described with respect to certain examples can be combined in other examples.

[0154] From the above description of the embodiments, it is apparent that the above-described method of the embodiments can be realized by means of software and general-purpose hardware platforms, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such an understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present application.

[0155] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, rather than limiting, and those of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims, which all belong to the protection of the present application.

Claims

1. A document display method characterized by, The method comprises: receiving a first input for starting a target document; in response to the first input, displaying a background image and text of the target document on a display interface of the target document, the text of the target document being displayed floating on the background image, the background image being determined based on at least one of weather information and sentiment type information associated with the text of the target document; wherein the display interface of the target document further comprises N first sub-interfaces, the first sub-interfaces being displayed floating on the background image, and display content of the first sub-interfaces comprising preset information obtained based on a text recording time of the text, N being a positive integer; wherein the preset information comprises local information information and network information information obtained at the text recording time; the local information information refers to information generated by the electronic device itself at the text recording time; and the network information information refers to information obtained by means of a network.

2. The document display method according to claim 1, characterized by, Before the receiving of the first input for starting the target document, the method further comprises: in a case where weather content information exists in text content of the text, taking the weather content information as the weather information associated with the text; in a case where the weather content information does not exist in the text content of the text, obtaining time content information in the text, and taking weather information corresponding to the time content information as the weather information associated with the text; in a case where the weather content information and the time content information do not exist in the text content of the text, obtaining a text recording time of the text, and taking weather information corresponding to the text recording time as the weather information associated with the text.

3. The document display method of claim 1, wherein Before the receiving of the first input for starting the target document, the method further comprises: analyzing each sentence in the text to obtain sentiment type information of each sentence; taking target sentiment type information in each of the sentiment type information as the sentiment type information associated with the text, wherein the target sentiment type information is the sentiment type information with the most repetitions in each of the sentiment type information.

4. The document display method of claim 1, wherein Before the receiving of the first input for starting the target document, the method further comprises: displaying M first sub-interfaces on a document editing interface of the target document; receiving a second input for moving a first target sub-interface in the M first sub-interfaces to target text in the target document; in response to the second input, adjusting a display parameter of the target text based on sentiment type information corresponding to the target text, and canceling display of the first target sub-interface.

5. A document display device characterized by comprising: The method comprises: a first receiving module configured to receive a first input for starting a target document; a first display module configured to, in response to the first input, display a background image and text of the target document on a display interface of the target document, the text of the target document being displayed floating on the background image, the background image being determined based on at least one of weather information and sentiment type information associated with the text of the target document; The display interface of the target document further includes N first sub-interfaces, the first sub-interfaces are displayed on the background image, display content of the first sub-interfaces includes preset information obtained based on a text recording time of the text, and N is a positive integer. The preset information includes local information and network information obtained at the text recording time, the local information refers to information generated by the electronic device itself at the text recording time, and the network information refers to information obtained by using a network.

6. The document display apparatus according to claim 5, wherein The device further includes: The first association module is configured to, in a case where weather content information exists in the text content of the text, take the weather content information as weather information associated with the text. In a case where the weather content information does not exist in the text content of the text, obtain time content information in the text, and take weather information corresponding to the time content information as weather information associated with the text. In a case where the weather content information and the time content information do not exist in the text content of the text, obtain a text recording time of the text, and take weather information corresponding to the text recording time as weather information associated with the text.

7. The document display apparatus according to claim 5, wherein The device further includes: The first analysis module is configured to analyze each sentence in the text to obtain sentiment type information of each sentence. The second association module is configured to take target sentiment type information in the sentiment type information as sentiment type information associated with the text, the target sentiment type information is sentiment type information with the most repetitions in the sentiment type information.

8. The document display apparatus according to claim 5, wherein The device further includes: The second display module is configured to display M first sub-interfaces in a document editing interface of a target document. The second receiving module is configured to receive a second input for moving a first target sub-interface in the M first sub-interfaces to a target text in the target document. The adjusting module is configured to, in response to the second input, adjust a display parameter of the target text based on sentiment type information corresponding to the target text, and cancel display of the first target sub-interface.

Citation Information

Patent Citations

  • System for text editor support applicable affective contents

    KR1020180105005A

  • Method for generating emotional note background

    US20140208242A1