CN112685126A - Document content display method and device - Google Patents
Document content display method and device Download PDFInfo
- Publication number
- CN112685126A CN112685126A CN202110034567.0A CN202110034567A CN112685126A CN 112685126 A CN112685126 A CN 112685126A CN 202110034567 A CN202110034567 A CN 202110034567A CN 112685126 A CN112685126 A CN 112685126A
- Authority
- CN
- China
- Prior art keywords
- target
- document
- screen
- document content
- display
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a document content display method and device, and belongs to the technical field of communication. The document content display method comprises the following steps: displaying document contents of a target document in a target screen of an electronic device; acquiring a target bending degree of a target area of the electronic equipment; determining a target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target area and the document display granularity; and adjusting the document content of the target document according to the display granularity of the target document, and reserving a second target statement. The technical scheme provided by the embodiment of the application can solve the problems of long time consumption and complex operation existing when a user searches and arranges the key contents in the document contents in the prior art.
Description
Technical Field
The application belongs to the technical field of communication, and particularly relates to a document content display method and device.
Background
With the development of the intelligent terminal technology, the functions of the intelligent terminal are more and more, the life, work, study and the like of a user are influenced, and the dependence of the user on the intelligent terminal is also more and more. Generally, the intelligent terminal has an electronic document content display function, and a user can check document contents at any time and any place through the intelligent terminal, so that the trouble of checking paper documents is avoided.
In the prior art, a user often has a requirement for viewing and sorting key content when viewing electronic document content, but at the moment, the user can only search the key content from the document content word by word and sentence by sentence, which is time-consuming and tedious in operation.
Disclosure of Invention
The embodiment of the application aims to provide a document content display method and a document content display device, and can solve the problems that in the prior art, time consumption is long and operation is complex when a user searches and sorts key content in document content.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a document content display method, where the document content display method includes:
displaying document contents of a target document in a target screen of an electronic device;
acquiring a target bending degree of a target area of the electronic equipment;
determining a target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target area and the document display granularity; wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located;
according to the display granularity of the target document, adjusting the document content of the target document, and reserving a second target statement; wherein the second target sentence comprises: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
In a second aspect, an embodiment of the present application provides a document content display apparatus, including:
the first display module is used for displaying the document content of the target document in a target screen of the electronic equipment;
the acquisition module is used for acquiring the target bending degree of the target area of the electronic equipment;
the first determining module is used for determining the target document display granularity corresponding to the target bending degree according to the preset corresponding relation between the bending degree of the target area and the document display granularity; wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located;
the first adjusting module is used for adjusting the document content of the target document according to the display granularity of the target document and reserving a second target statement; wherein the second target sentence comprises: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps in the document content display method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the document content display method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the document content display method according to the first aspect.
In the embodiment of the application, the display granularity of the document content is adjusted based on the bending degree of the target area of the electronic equipment so as to keep the key content and eliminate the interference of useless information, the operation is simple, meanwhile, the user can conveniently and quickly focus on the key content, the user can conveniently search and sort the key content, and the trouble of searching the key content word by word and sentence by the user is eliminated.
Drawings
FIG. 1 is a flowchart illustrating a document content display method according to an embodiment of the present disclosure;
FIG. 2 is one of the schematic diagrams of an example provided by an embodiment of the present application;
FIG. 3 is a second schematic diagram of an example provided by an embodiment of the present application;
FIG. 4 is a third schematic diagram of an example provided by an embodiment of the present application;
FIG. 5 is a fourth illustration of an example provided by an embodiment of the present application;
FIG. 6 is a schematic block diagram of a document content display apparatus provided by an embodiment of the present application;
FIG. 7 is a block diagram of an electronic device provided by an embodiment of the application;
fig. 8 is a second schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in other sequences than those illustrated or otherwise described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense to distinguish one object from another, and not necessarily to limit the number of objects, e.g., the first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The document content display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart illustrating a document content display method provided in an embodiment of the present application, where the document content display method is applied to an electronic device.
As shown in fig. 1, the document content display method may include:
step 101: the electronic device controls to display document contents of the target document in the target screen.
In the embodiment of the application, the document content of the target document is firstly displayed in the target screen of the electronic equipment.
When only one screen is arranged on the electronic equipment, the target screen is the only screen of the electronic equipment. When at least two screens are arranged on the electronic equipment, the target screen can be one of the at least two screens, and particularly which screen can be selected according to actual requirements.
Step 102: the electronic equipment acquires the target bending degree of the target area of the electronic equipment.
The target area described herein is an area on the electronic device that can be bent, for example, in the case of a flexible screen, the target area can be an area on the target screen that can be bent. It is to be understood that, in the case where the electronic device has a non-screen bendable region, the target region may also be the non-screen bendable region.
The target bending degree described herein may include, but is not limited to: at least one of a degree of curvature of the angle and a degree of curvature of the arc. For example, for a folded screen that is foldable along a fixed position, the degree of bending may be the bending angle of the fixed position; for a flexible screen that can be folded in any position, the degree of bending may be the arc or angle of bending of a certain position of the flexible screen.
In the embodiment of the application, after displaying the document content of the target document, the electronic device acquires the target bending degree of the target area of the electronic device (namely, the bending degree of the target area at the current moment).
Step 103: and the electronic equipment determines the target document display granularity corresponding to the target bending degree according to the preset corresponding relation between the bending degree of the target area and the document display granularity.
Wherein the document display granularity is the number of contextual statements of the first target statement. For example, the document contents of the target document displayed in the target screen include: the sentences A, B, C, D, E, F and G are sequentially arranged, and each sentence is disconnected by punctuation marks such as commas, periods, question marks, exclamation marks, ellipses and the like. Assuming that the first target sentence is a D sentence, the document display granularity may be zero sentences ahead (i.e., above) and zero sentences behind (i.e., below) the D sentence, one sentence ahead and one sentence behind the D sentence, two sentences ahead and two sentences behind, or three sentences ahead or three sentences behind of the D sentence.
The first target sentence is a sentence where a preset keyword is located. The preset keywords may be preset by a user, and the number of the preset keywords may be at least one.
In the embodiment of the application, after obtaining the bending degree of the target area at the current moment, the electronic device determines the target document display granularity corresponding to the bending degree at the current moment according to the preset corresponding relationship between the bending degree of the target area and the document display granularity.
Alternatively, the preset correspondence between the degree of curvature of the target region and the document display granularity may be preset by the user or may be set by default by the system. In addition, the electronic device may determine the target document display granularity corresponding to the bending degree at the current time according to the preset corresponding relationship between the bending degree of the target region and the document display granularity under the condition that the bending degree of the target region is not changed within the preset time length, so as to reduce the data processing amount. The preset duration can be set according to actual requirements, such as 1 second, 2 seconds, 3 seconds and the like, and is not suitable to be too long, so that the waiting time of a user is not too long, and the use experience of the user is not influenced.
Step 104: and the electronic equipment adjusts the document content of the target document according to the display granularity of the target document and reserves the second target statement.
Wherein the second target sentence described herein includes: a first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
In the embodiment of the application, after the target document display granularity corresponding to the bending degree of the target area at the current moment is obtained, the document content of the target document displayed in the target screen is adjusted according to the target document display granularity, and only sentences including preset keywords (namely first target sentences) and context sentences of the first target sentences corresponding to the target document display granularity are displayed. For example, continuing with the foregoing example as an example, assuming that the target document display granularity is two statements in the context of a D statement, the adjusted document content (i.e., the retained second target statement) is: b statement, C statement, D statement, E statement and F statement. Therefore, the display granularity of the document content is adjusted based on the bending degree of the target area of the electronic equipment, so that the key content is reserved and the interference of useless information is eliminated, the operation is simple, the user can conveniently and quickly focus on the key content, the user can conveniently search and sort the key content, and the trouble of searching the key content word by word and sentence by the user is avoided.
Optionally, for the adjusted document content, the preset keyword may be highlighted, for example, the display color of the preset keyword is set to be different from that of other document contents, or the preset keyword is bold, underlined and/or obliquely displayed, or the preset keyword is highlighted, so that the user can view the preset keyword.
Optionally, in this embodiment of the present application, the target screen may be a folding screen, where the folding screen includes: at least one fixed bendable region, the target region being one of the at least one fixed bendable region. At this time, the degree of bending of the target region may be a bending angle of the target region.
Wherein different degrees of curvature of the target region correspond to different document display granularities. For example, in the case where the bending angle of the target region is between 170 degrees and 160 degrees, the corresponding document displays a contextual two sentence with a granularity of the first target sentence; in the case that the bending angle of the target area is between 160 degrees and 150 degrees, the corresponding document displays a sentence with a granularity of context of the first target sentence; under the condition that the bending angle of the target area is between 150 degrees and 140 degrees, the corresponding document displays the contextual zero sentence sentences with the granularity of the first target sentence, namely, only the sentence where the preset keyword is located is displayed. Of course, the examples described herein are for illustration only.
Optionally, in this embodiment of the application, the target screen may also be a flexible screen that is bendable at any position. The display area of the flexible screen is provided with at least one document display granularity adjustment area, and the target area is one of the at least one document display granularity adjustment area. At this time, the degree of bending of the target region may be a bending arc or a bending angle of the target region.
Wherein, different document display granularity adjusting areas correspond to different document display granularities. For example, three document display granularity adjusting areas, namely a document display granularity adjusting area A, a document display granularity adjusting area B and a document display granularity adjusting area C, wherein after the bending radian of the document display granularity adjusting area A reaches a preset value, the corresponding document display granularity is a context two sentence of a first target sentence; after the bending radian of the granularity adjusting area reaches a preset value, displaying a context sentence with granularity being a first target sentence by a corresponding document; and after the bending radian of the third display granularity adjusting area reaches a preset value, displaying a context zero sentence with granularity being the first target sentence by the corresponding document, namely only displaying the sentence where the preset keyword is located.
It will be appreciated that for flexible screens, provision may also be made for a similar folding screen, namely: only one document display granularity adjusting area is arranged in the display area of the flexible screen, and different bending degrees of the document display granularity adjusting area correspond to different document display granularities.
Optionally, in this embodiment of the present application, the target document may be obtained by converting from a target audio file, so that while the document content of the target document is displayed in the target screen, the document content display method may further include:
a target sound recording file corresponding to the target document is displayed in the target screen.
The target sound recording file is split into sound recording segments by taking a sentence as a unit for displaying, namely, the target sound recording file is split into a plurality of sound recording segments by taking the sentence as a unit. For example, if the document content is "autumn arrived", it is a full season. "in autumn," a recording segment is corresponding to "in a season of harvest," namely will reveal two recording segments. Because the recording segments of each sentence are independent, the user can listen to the recording conveniently so as to check the document content sentence by sentence.
The sentence division can be performed through the pause of the tone and the sentence content in the audio. For example, the recording content is: when the recording is divided into sentences, the sentences can be divided into two sentences, namely 'autumn arrived' and 'leaves have yellow, green, red and the like', although the voices of 'yellow', 'green' and 'red' have speech pauses, the 'leaves have yellow, green, red and the like', but obviously the sentence is divided into two sentences based on the speech pauses and the sentence contents.
Each recording segment can be displayed to be different in length according to the audio time length, the longer the general audio time length is, the longer the display length is, and the more the word number of the corresponding document content is, so that a user can conveniently determine the corresponding recording segment according to the word number of the document content.
Alternatively, as shown in fig. 2, in the case where the target screen is the aforementioned folding screen, the document contents of the target document may be displayed in the first sub-screen 201 of the folding screen, and the target sound recording file may be displayed in the second sub-screen 202 of the folding screen. The first sub-screen and the second sub-screen are connected by a target area 203, that is, the second sub-screen 201 and the second sub-screen 202 can be folded along the target area 203.
Alternatively, as shown in fig. 5, in the case where the target screen is the aforementioned flexible screen, the document contents of the target document may be displayed side by side with the target sound recording file.
Optionally, while adjusting the document content of the target document, the document content display method may further include:
and adjusting the displayed target sound recording file, and reserving a sound recording fragment corresponding to the second target statement in the target sound recording file.
In the embodiment of the application, while the display granularity of the document content is adjusted, the display granularity of the target sound recording file can be adjusted, so that the displayed sound recording segment corresponds to the displayed document content, and a user can compare and analyze the displayed sound recording segment and the displayed document content, for example, the user can conveniently confirm whether the converted document content is correct or not by controlling the playing of the sound recording segment.
The foregoing scheme is exemplified below by taking the target screen as the foregoing folding screen as an example.
As shown in FIG. 2, the document contents of the target document are displayed in a first sub-screen 201 of the folding screen, and the target sound recording file is displayed in a second sub-screen 202 of the folding screen. At this time, the included angle between the first sub-screen 201 and the second sub-screen 202 is 180 degrees, that is, the bending angle of the target area 203 is 180 degrees, and at this time, the document display granularity is the largest, so as to display the entire document content. Meanwhile, preset keywords in the document content can be identified and highlighted through a text word segmentation technology.
After that, the user can adjust the display granularity of the document contents by controlling the angle between the first sub-screen 201 and the second sub-screen 202 (i.e., the bending angle of the target area). For example, when the included angle is adjusted to 170 degrees, the display granularity of the document content is a sentence before and after the sentence where the preset keyword is located, at this time, only the sentence where the preset keyword is located and the sentence before and after the sentence where the preset keyword is located are displayed, the other sentences are hidden, and meanwhile, the display granularity of the target recording file is also adjusted correspondingly, that is: only the audio clip corresponding to the sentence where the preset keyword is located and the audio clips corresponding to the sentences before and after the sentence where the preset keyword is located are displayed, as shown in fig. 3. For another example, when the included angle is adjusted to 160 degrees, the display granularity of the document content is zero sentence sentences before and after the sentence where the preset keyword is located, at this time, only the sentence where the preset keyword is located is displayed, the hiding processing is performed on other sentences, and meanwhile, the display granularity of the target sound recording file is also adjusted correspondingly, that is: only the audio clip corresponding to the sentence where the preset keyword is located is displayed, as shown in fig. 4. Here, "SSSS" in the document contents shown in fig. 2 to 4 represents a preset keyword.
When the display granularity cannot be further reduced, the electronic equipment can output prompt information to remind the user. At this time, the user can adjust the display granularity to be larger by controlling the angle between the first sub-screen 201 and the second sub-screen 202, thereby helping the user to have more overall understanding of the document contents.
In order to facilitate the user to know the size of the included angle between the first sub-screen 201 and the second sub-screen 202, the included angle value may be displayed in the target screen for the user to refer to.
As can be seen from the foregoing, the user can control different display granularities to quickly locate the important content in the document content, and the flexibility is high.
The foregoing scheme will be further illustrated below by taking the target screen as the foregoing flexible screen as an example.
In the case where the target screen is the aforementioned flexible screen, the document contents of the target document may be displayed side by side with the target sound recording file, as shown in fig. 5. Three document display granularity adjusting areas, namely an area A501, an area B502 and an area C503 which are indicated by dotted line boxes in FIG. 5, are arranged in the flexible screen, and each adjusting area corresponds to one document display granularity.
Two bending radians (or bending angles) may be provided for each adjustment region, hereinafter referred to as a first preset bending radian and a second preset bending radian, respectively, wherein the first preset bending radian is larger than the second preset bending radian. Under the condition that the bending radian of each adjusting area is larger than or equal to the second preset bending radian and smaller than the first preset bending radian, a preset keyword is identified in the document content of the target document, namely the preset keyword is highlighted, wherein the "SSSS" in the document content shown in fig. 5 represents the preset keyword. And under the condition that the bending radian is greater than or equal to a first preset bending radian, adjusting the document content of the target document according to the document display granularity corresponding to the adjusting area, reserving the sentence where the preset keyword is located and the context sentence of the sentence where the preset keyword is located corresponding to the document display granularity at the current moment, and simultaneously adjusting the display granularity of the target sound recording file. For the specific display result, the display result described in the foregoing example of the folding screen may be referred to, and details are not repeated here.
The above-mentioned contents can be summarized as follows: under the condition that the bending degree of the target area is greater than or equal to a second preset bending degree and smaller than a first preset bending degree, identifying preset keywords in the document content of the target document; and under the condition that the target bending degree is greater than or equal to the first preset bending degree, adjusting the document content of the target document according to the document display granularity corresponding to the target area, and keeping the second target statement.
Optionally, after displaying the document content of the target document, the document content display method may further include:
receiving a first input of a user to the displayed first document content; in response to the first input, modifying the first document content into second document content; determining target sound recording content corresponding to the first document content in the target sound recording file; and converting the target sound recording content into second document content, and updating the document content of the target document.
The first document content may be a word or a sentence. The second document content is the document content input by the user.
Due to the complexity of the language, when the audio file is converted into the document content, problems such as conversion errors and sentence break errors are inevitable, and therefore, in the embodiment of the application, when a user finds that the document content is wrong, the wrong document content (i.e., the first document content) can be modified to be the correct document content (i.e., the second document content). After detecting the modification operation of the document content by the user, the electronic device can also retrieve the recording content (namely the target recording content) corresponding to the modified document content in the target recording file through a voice matching technology, then convert the recording content into the correct document content again, and update the document content (including the displayed document content and the undisplayed document content) of the target document, thereby quickly completing the correction of the document content and improving the correction efficiency.
In some cases, different recording contents can be converted into the same document content, so that when the target recording content corresponding to the first document content is determined, the corresponding recording segment can be found according to the sentence where the first document content is manually modified by the user, the corresponding recording content is determined, and then the same recording content is searched in the target recording file.
Finally, it will be appreciated that the user may also modify punctuation in the displayed document content.
Optionally, after displaying the document content of the target document, the document content display method may further include:
and receiving second input of the target vocabulary from the user, and acquiring and displaying paraphrases of the target vocabulary in response to the second input.
When a user does not understand a certain vocabulary in the document content, the paraphrasing of the vocabulary can be called up through certain operation. If the target vocabulary is selected, the electronic equipment searches paraphrases of the target vocabulary through the search engine after long-press operation (namely second input) is carried out on the position where the target vocabulary is displayed, and displays the searched paraphrases, so that the user is helped to understand the meanings of the vocabularies more quickly and better. If the user finds that the meaning of the target vocabulary does not accord with the context of the target vocabulary, the target vocabulary can be modified to ensure the correctness of the document content.
In summary, in the embodiment of the present application, the display granularity of the document content is adjusted based on the bending degree of the target area of the electronic device, so as to retain the key content and eliminate the interference of the useless information. The method is simple to operate, and meanwhile, the method is convenient for the user to quickly focus on the key content, the user can conveniently search and sort the key content, and the trouble that the user searches word by word and sentence by sentence is eliminated.
It should be noted that, in the document content display method provided in the embodiment of the present application, the execution main body may be a document content display apparatus, or a control module in the document content display apparatus for executing the document content display method. In the embodiment of the present application, a document content display apparatus executing a document content display method is taken as an example, and the document content display apparatus provided in the embodiment of the present application is described.
Fig. 6 is a schematic block diagram of a document content display device provided in an embodiment of the present application.
As shown in fig. 6, the document content display apparatus includes:
the first display module 601 is configured to display document contents of a target document in a target screen of an electronic device.
An obtaining module 602, configured to obtain a target bending degree of a target area of the electronic device.
A first determining module 603, configured to determine, according to a preset correspondence between the bending degree of the target region and the document display granularity, a target document display granularity corresponding to the target bending degree.
Wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located.
The first adjusting module 604 is configured to adjust the document content of the target document displayed in the target screen according to the target document display granularity, and retain a second target statement.
Wherein the second target sentence comprises: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
Optionally, the target screen is a folding screen, and the folding screen includes: at least one fixed bendable region, the target region being one of the at least one fixed bendable region; or the target screen is a flexible screen which can be bent at any position, a display area of the flexible screen is provided with at least one document display granularity adjusting area, and the target area is one of the at least one document display granularity adjusting area; and different document display granularity corresponding to the different document display granularity adjusting areas.
Optionally, the target document is obtained by converting according to a target audio file.
The document content display device further includes:
and the second display module is used for displaying the target sound recording file corresponding to the target document in the target screen.
And splitting the target sound recording file into sound recording fragments by taking a sentence as a unit for displaying.
Optionally, in a case that the target screen is the folding screen, the document content of the target document is displayed in a first sub-screen of the folding screen, and the target sound recording file is displayed in a second sub-screen of the folding screen; the first sub-screen and the second sub-screen are connected through the target area.
Optionally, the document content display device further includes:
and the second adjusting module is used for adjusting the displayed target sound recording file and reserving a sound recording fragment corresponding to the second target statement in the target sound recording file.
Optionally, the document content display device further includes:
the receiving module is used for receiving a first input of a user to the content of the first document.
And the third adjusting module is used for responding to the first input and modifying the first document content into a second document content.
And the second document content is the document content input by the user.
And the second determining module is used for determining the target sound recording content corresponding to the first document content in the target sound recording file.
And the fourth adjusting module is used for converting the target sound recording content into the second document content and updating the document content of the target document.
Optionally, in a case that the target screen is the flexible screen, the first adjusting module 604 includes:
and the adjusting unit is used for adjusting the document content of the target document according to the document display granularity corresponding to the target area and reserving a second target statement under the condition that the target bending degree is greater than or equal to the first preset bending degree.
Under the condition that the bending degree of the target area is greater than or equal to a second preset bending degree and smaller than a first preset bending degree, identifying preset keywords in the document content of the target document; the first preset bending degree is greater than the second preset bending degree.
In the embodiment of the application, the display granularity of the document content is adjusted based on the bending degree of the target area of the electronic equipment so as to reserve key content and eliminate interference of useless information. The method is simple to operate, and meanwhile, the method is convenient for the user to quickly focus on the key content, the user can conveniently search and sort the key content, and the trouble that the user searches word by word and sentence by sentence is eliminated.
The document content display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may 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, and the embodiments of the present application are not particularly limited.
The document content display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The document content display apparatus provided in the embodiment of the present application can implement each process implemented by the document content display method embodiment shown in fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing document content display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein the processor 810 is configured to: a control display unit 806 (a target screen in the present embodiment) displays the document content of the target document; acquiring a target bending degree of a target area of the electronic equipment; determining a target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target area and the document display granularity; and adjusting the document content of the target document according to the display granularity of the target document, and reserving a second target statement. Wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located; the second target sentence includes: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
Optionally, the processor 810 is further configured to: the control display unit 806 displays the target sound recording file corresponding to the target document. The target document is obtained by converting according to a target sound recording file, and the target sound recording file is split into sound recording fragments by taking a sentence as a unit to be displayed.
Optionally, the processor 810 is further configured to: and adjusting the displayed target sound recording file, and reserving a sound recording fragment corresponding to the second target statement in the target sound recording file.
Optionally, the user input unit 807 is configured to: receiving a first input of a user to the content of a first document; processor 810 is further configured to: modifying the first document content to a second document content in response to the first input; determining target sound recording content corresponding to the first document content in the target sound recording file; and converting the target sound recording content into the second document content, and updating the document content of the target document. And the second document content is the document content input by the user.
Optionally, the processor 810 is further configured to: and under the condition that the target bending degree is greater than or equal to the first preset bending degree, adjusting the document content of the target document according to the document display granularity corresponding to the target area, and reserving a second target statement.
The target screen is a flexible screen which can be bent at any position, a display area of the flexible screen is provided with at least one document display granularity adjusting area, and the target area is one of the at least one document display granularity adjusting area; and different document display granularity corresponding to the different document display granularity adjusting areas.
Under the condition that the bending degree of the target area is greater than or equal to a second preset bending degree and smaller than a first preset bending degree, identifying preset keywords in the document content of the target document; the first preset bending degree is greater than the second preset bending degree.
In the embodiment of the application, the display granularity of the document content is adjusted based on the bending degree of the target area of the electronic equipment so as to reserve key content and eliminate interference of useless information. The method is simple to operate, and meanwhile, the method is convenient for the user to quickly focus on the key content, the user can conveniently search and sort the key content, and the trouble that the user searches word by word and sentence by sentence is eliminated.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned document content display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above document content display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. A document content display method, comprising:
displaying document contents of a target document in a target screen of an electronic device;
acquiring a target bending degree of a target area of the electronic equipment;
determining a target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target area and the document display granularity; wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located;
according to the display granularity of the target document, adjusting the document content of the target document, and reserving a second target statement; wherein the second target sentence comprises: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
2. The document content display method according to claim 1, wherein the target screen is a folding screen, the folding screen including: at least one fixed bendable region, the target region being one of the at least one fixed bendable region;
or the target screen is a flexible screen which can be bent at any position, a display area of the flexible screen is provided with at least one document display granularity adjusting area, and the target area is one of the at least one document display granularity adjusting area; and different document display granularity corresponding to the different document display granularity adjusting areas.
3. The document content display method according to claim 2, wherein the target document is converted from a target audio file;
while displaying the document content of the target document in the target screen, the document content display method further includes:
displaying the target sound recording file corresponding to the target document in the target screen; and splitting the target sound recording file into sound recording fragments by taking a sentence as a unit for displaying.
4. The document content display method according to claim 3, wherein in a case where the target screen is the folding screen, the document content of the target document is displayed in a first sub-screen of the folding screen, the target sound recording file is displayed in a second sub-screen of the folding screen, and the first sub-screen and the second sub-screen are connected through the target area.
5. The document content display method according to claim 3, wherein while adjusting the document content of the target document, the document content display method further comprises:
and adjusting the displayed target sound recording file, and reserving a sound recording fragment corresponding to the second target statement in the target sound recording file.
6. The document content display method according to claim 3, wherein after displaying the document content of the target document, the document content display method further comprises:
receiving a first input of a user to the content of a first document;
modifying the first document content to a second document content in response to the first input; the second document content is document content input by a user;
determining target sound recording content corresponding to the first document content in a target sound recording file;
and converting the target sound recording content into the second document content, and updating the document content of the target document.
7. A document content display apparatus, comprising:
the first display module is used for displaying the document content of the target document in a target screen of the electronic equipment;
the acquisition module is used for acquiring the target bending degree of the target area of the electronic equipment;
the first determining module is used for determining the target document display granularity corresponding to the target bending degree according to the preset corresponding relation between the bending degree of the target area and the document display granularity; wherein the document display granularity is the number of contextual statements of the first target statement; the first target sentence is a sentence where a preset keyword is located;
the first adjusting module is used for adjusting the document content of the target document according to the display granularity of the target document and reserving a second target statement; wherein the second target sentence comprises: the first target statement and a contextual statement of the first target statement corresponding to the target document display granularity.
8. The document content display apparatus according to claim 7, wherein the target screen is a folding screen, the folding screen including: at least one fixed bendable region, the target region being one of the at least one fixed bendable region;
or the target screen is a flexible screen which can be bent at any position, a display area of the flexible screen is provided with at least one document display granularity adjusting area, and the target area is one of the at least one document display granularity adjusting area; and different document display granularity corresponding to the different document display granularity adjusting areas.
9. The document content display apparatus according to claim 8, wherein the target document is converted from a target audio file;
the document content display device further includes:
a second display module for displaying the target sound recording file corresponding to the target document in the target screen; and splitting the target sound recording file into sound recording fragments by taking a sentence as a unit for displaying.
10. The document content display apparatus according to claim 9, wherein in a case where the target screen is the folding screen, the document content of the target document is displayed in a first sub-screen of the folding screen, and the target sound recording file is displayed in a second sub-screen of the folding screen; the first sub-screen and the second sub-screen are connected through the target area.
11. The document content display apparatus according to claim 9, wherein said document content display apparatus further comprises:
and the second adjusting module is used for adjusting the displayed target sound recording file and reserving a sound recording fragment corresponding to the second target statement in the target sound recording file.
12. The document content display apparatus according to claim 9, further comprising:
the receiving module is used for receiving a first input of a user to the content of the first document;
a third adjustment module for modifying the first document content into a second document content in response to the first input; the second document content is document content input by a user;
the second determining module is used for determining target sound recording content corresponding to the first document content in the target sound recording file;
and the fourth adjusting module is used for converting the target sound recording content into the second document content and updating the document content of the target document.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110034567.0A CN112685126B (en) | 2021-01-11 | 2021-01-11 | Document content display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110034567.0A CN112685126B (en) | 2021-01-11 | 2021-01-11 | Document content display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112685126A true CN112685126A (en) | 2021-04-20 |
CN112685126B CN112685126B (en) | 2023-05-02 |
Family
ID=75457453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110034567.0A Active CN112685126B (en) | 2021-01-11 | 2021-01-11 | Document content display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112685126B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120188153A1 (en) * | 2011-01-21 | 2012-07-26 | Research In Motion Corporation | Multi-bend display activation adaptation |
CN103970821A (en) * | 2013-01-30 | 2014-08-06 | 索尼公司 | Display Control Apparatus, Display Control Method, And Program |
US20170358252A1 (en) * | 2016-06-09 | 2017-12-14 | International Business Machines Corporation | Dynamic display adjustment on a transparent flexible display |
CN108089798A (en) * | 2017-11-30 | 2018-05-29 | 努比亚技术有限公司 | terminal display control method, flexible screen terminal and computer readable storage medium |
CN111046142A (en) * | 2019-12-13 | 2020-04-21 | 深圳前海环融联易信息科技服务有限公司 | Text examination method and device, electronic equipment and computer storage medium |
-
2021
- 2021-01-11 CN CN202110034567.0A patent/CN112685126B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120188153A1 (en) * | 2011-01-21 | 2012-07-26 | Research In Motion Corporation | Multi-bend display activation adaptation |
CN103970821A (en) * | 2013-01-30 | 2014-08-06 | 索尼公司 | Display Control Apparatus, Display Control Method, And Program |
US20170358252A1 (en) * | 2016-06-09 | 2017-12-14 | International Business Machines Corporation | Dynamic display adjustment on a transparent flexible display |
CN108089798A (en) * | 2017-11-30 | 2018-05-29 | 努比亚技术有限公司 | terminal display control method, flexible screen terminal and computer readable storage medium |
CN111046142A (en) * | 2019-12-13 | 2020-04-21 | 深圳前海环融联易信息科技服务有限公司 | Text examination method and device, electronic equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112685126B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20110201387A1 (en) | Real-time typing assistance | |
CN111898388B (en) | Video subtitle translation editing method and device, electronic equipment and storage medium | |
EP3896596A1 (en) | Information processing device, information processing method and program | |
WO2022135474A1 (en) | Information recommendation method and apparatus, and electronic device | |
CN108829686B (en) | Translation information display method, device, equipment and storage medium | |
CN109215660A (en) | Text error correction method and mobile terminal after speech recognition | |
CN111880668A (en) | Input display method and device and electronic equipment | |
US10025772B2 (en) | Information processing apparatus, information processing method, and program | |
CN113055529B (en) | Recording control method and recording control device | |
US20230343325A1 (en) | Audio processing method and apparatus, and electronic device | |
US12135864B2 (en) | Screen capture method and apparatus, and electronic device | |
CN107643923B (en) | Processing method of copy information and mobile terminal | |
WO2022105754A1 (en) | Character input method and apparatus, and electronic device | |
CN112764734B (en) | Auxiliary method and device for code editing and electronic equipment | |
CN110286776A (en) | Input method, device, electronic equipment and the storage medium of character combination information | |
WO2024149183A1 (en) | Document display method and apparatus, and electronic device | |
WO2024255733A1 (en) | Search method and apparatus, and device and medium | |
CN112685126B (en) | Document content display method and device | |
CN112148135A (en) | Input method processing method and device and electronic equipment | |
WO2022143523A1 (en) | Vocabulary display method and apparatus, and electronic device | |
CN116302234A (en) | Display method, display device, electronic equipment and medium | |
CN115080170A (en) | Information processing method, information processing apparatus, and electronic device | |
CN113778595A (en) | Document generation method and device and electronic equipment | |
CN113905125A (en) | Video display method and device and electronic equipment | |
CN113157966A (en) | Display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |