CN112685126B - Document content display method and device - Google Patents

Document content display method and device Download PDF

Info

Publication number
CN112685126B
CN112685126B CN202110034567.0A CN202110034567A CN112685126B CN 112685126 B CN112685126 B CN 112685126B CN 202110034567 A CN202110034567 A CN 202110034567A CN 112685126 B CN112685126 B CN 112685126B
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.)
Active
Application number
CN202110034567.0A
Other languages
Chinese (zh)
Other versions
CN112685126A (en
Inventor
张进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110034567.0A priority Critical patent/CN112685126B/en
Publication of CN112685126A publication Critical patent/CN112685126A/en
Application granted granted Critical
Publication of CN112685126B publication Critical patent/CN112685126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 content of a target document in a target screen of the 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 region and the document display granularity; and according to the display granularity of the target document, adjusting the document content of the target document, and reserving a second target sentence. According to the technical scheme provided by the embodiment of the application, the problems that in the prior art, a user consumes a long time and is complicated in operation when searching and sorting key contents in document contents can be solved.

Description

Document content display method and device
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 intelligent terminal technology, the functions of the intelligent terminal are increased, the life, work, study and the like of a user are affected, and the dependence of the user on the intelligent terminal is increased. Generally, the intelligent terminal has an electronic document content display function, and a user can view document content at any time and any place through the intelligent terminal, so that the trouble of viewing paper documents is avoided.
In the prior art, when a user views the content of an electronic document, the user often has the requirement of viewing and sorting the key content, but at the moment, the user can only search the key content from the document content word by word and sentence by sentence, so that the time consumption is long and the operation is complex.
Disclosure of Invention
The embodiment of the application aims to provide a document content display method and device, which can solve the problems of long time consumption and complex operation in the prior art when a user searches and sorts key contents in document contents.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a document content display method, including:
displaying document content of a target document in a target screen of the 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 region and the document display granularity; wherein the document display granularity is the number of context sentences of the first target sentence; the first target sentence is a sentence where a preset keyword is located;
According to the target document display granularity, adjusting document content of the target document, and reserving a second target sentence; wherein the second target sentence includes: the first target sentence and the context sentence of the first target sentence corresponding to the target document display granularity.
In a second aspect, an embodiment of the present application provides a document content display apparatus, including:
a first display module for displaying document contents of a target document in a target screen of the electronic device;
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 target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target region and the document display granularity; wherein the document display granularity is the number of context sentences of the first target sentence; 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 sentence; wherein the second target sentence includes: the first target sentence and the context sentence of the first target sentence 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, which when executed by the processor, implement the steps in the document content display method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions 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 reserve the key content and eliminate the interference of useless information, so that the user can conveniently and rapidly focus on the key content while the operation is simple, the user can conveniently search and arrange the key content, and the trouble of word-by-word and sentence-by-sentence search of the user is eliminated.
Drawings
FIG. 1 is a schematic flow chart of a document content display method according to an embodiment of the present application;
FIG. 2 is one of the schematic diagrams of examples provided by embodiments of the present application;
FIG. 3 is a second schematic illustration of an example provided by an embodiment of the present application;
FIG. 4 is a third schematic illustration of an example provided by an embodiment of the present application;
FIG. 5 is a fourth schematic 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 one of the schematic block diagrams of the electronic device provided by the embodiments of the present application;
fig. 8 is a second schematic block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects 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 sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The document content display method provided by the embodiment of the application is described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a document content display method according to 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 displaying document content of the target document in the target screen.
In the embodiment of the application, first, the document content of a target document is displayed in a target screen of an electronic device.
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, in particular 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 is an area that can be bent on the electronic device, for example, in the case that the target screen is a flexible screen, the target area may be an area that can be bent by the target screen. It will be appreciated that in the case where a non-screen bendable region is present in the electronic device, the target region may also be the non-screen bendable region.
Wherein the target bending degree described herein may include, but is not limited to: at least one of the degree of curvature of the angle and the degree of curvature of the arc. For example, for a folding screen that is foldable along a fixed location, the degree of bending may be the bending angle of the fixed location; for flexible screens that are foldable in any position, the degree of bending may be the degree of curvature or angle of bending of a location of the flexible screen.
In the embodiment of the application, after displaying the document content of the target document, the electronic device obtains the target bending degree of the target area (that is, the bending degree of the target area at the current moment).
Step 103: the electronic device determines a target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target region and the document display granularity.
Wherein the document display granularity is the number of context statements of the first target statement. For example, document contents of a target document displayed in a target screen include: the A sentence, the B sentence, the C sentence, the D sentence, the E sentence, the F sentence and the G sentence are sequentially arranged, and each sentence is disconnected through 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 preceding (i.e., above) and zero sentences following (i.e., below) the D sentence, one sentence preceding and one sentence following the D sentence, two sentences preceding and two sentences following, or three sentences preceding or three sentences following 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 of the current moment according to the preset corresponding relation between the bending degree of the target area and the document display granularity.
Optionally, the preset correspondence between the bending degree of the target area and the document display granularity may be preset by a user or may be set by default by the system. In addition, the electronic device can determine the target document display granularity corresponding to the bending degree of the current moment according to the preset corresponding relation 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 that the data processing amount is reduced. The preset duration can be set according to actual requirements, such as 1 second, 2 seconds, 3 seconds, etc., and is not too long, so that the waiting time of the user is not too long, and the use experience of the user is not affected.
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 a second target sentence.
Wherein the second target sentence described herein comprises: the first target sentence and the context sentence of the first target sentence corresponding to the target document display granularity.
In the embodiment of the application, after obtaining the target document display granularity corresponding to the bending degree of the target area at the current moment, according to the target document display granularity, document content of the target document displayed in the target screen is adjusted, and only sentences including preset keywords (namely, first target sentences) and contextual sentences of the first target sentences corresponding to the target document display granularity are displayed. For example, continuing with the previous example, assuming that the target document display granularity is two sentences of the context of the D-sentence, the adjusted document content (i.e., the remaining second target sentence) is: b statement, C statement, D statement, E statement, 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 as to retain the key content and eliminate the interference of useless information, and the method is simple to operate, and meanwhile, the method is convenient for a user to quickly focus on the key content, thereby facilitating the search and arrangement of the user on the key content and saving the trouble of searching word by word and sentence by the user.
Optionally, for the adjusted document content, the preset keywords may be highlighted, for example, the display color of the preset keywords is set to be different from that of other document content, or the preset keywords are thickened, underlined, or obliquely displayed, or the like, or the preset keywords are highlighted for the user to view.
Optionally, in an 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 curvature of the target region may be the curvature 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 area is between 170 degrees and 160 degrees, the corresponding document displays two-sentence sentences having the context of the first target sentence at granularity; in the case that the bending angle of the target area is between 160 degrees and 150 degrees, displaying a corresponding document with a context sentence with granularity of a first target sentence; and under the condition that the bending angle of the target area is between 150 degrees and 140 degrees, displaying the corresponding document into the context zero sentence with the granularity of the first target sentence, namely displaying only the sentence where the preset keyword is located. Of course, the examples described herein are for illustration only.
Alternatively, in the embodiment of the present application, the target screen may 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 curvature of the target region may be a curvature or a curvature angle of the target region.
Wherein different document display granularity adjustment regions correspond to different document display granularities. For example, three document display granularity adjustment areas are shared, namely, an A document display granularity adjustment area, an B document display granularity adjustment area and a third document display granularity adjustment area are shared, and after the bending radian of the A document display granularity adjustment area reaches a preset value, the corresponding document display granularity is the context sentence of the first target sentence; after the bending radian of the second display granularity adjusting area reaches a preset value, displaying a context sentence of which the granularity is the first target sentence by the corresponding document; after the bending radian of the third display granularity adjusting area reaches a preset value, displaying the context zero sentence with the granularity of the first target sentence as the corresponding document, namely displaying only the sentence where the preset keyword is located.
It will be appreciated that for flexible screens, a similar folding screen arrangement is also possible, 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.
Alternatively, in the embodiment of the present application, the target document may be converted according to the target recording 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:
and displaying the target sound recording file corresponding to the target document in the target screen.
The target recording file is split into recording fragments for display by taking a sentence as a unit, namely the target recording file is split into a plurality of recording fragments by taking the sentence as a unit. For example, if the document content is "autumn coming out", it is a season of harvest. The "autumn arrives" corresponds to one recording segment, and the "again is one recording segment corresponding to a season of harvest", that is, two recording segments are displayed. Because the recording segment of each sentence is independent, the user can conveniently listen to the recording, so that the document content can be checked sentence by sentence.
Wherein, the sentence can be divided by pausing the language in the audio and the sentence content. For example, the recorded content is: "autumn arrives, the leaf has yellow, green, red and so on", while "yellow", "green", "red" have a voice pause between them, but obviously "the leaf has yellow, green, red and so on" is a sentence, so when sentence division is performed on the recording, it can be divided into two sentences of "autumn arrives" and "the leaf has yellow, green, red and so on" based on the voice pause and sentence content.
Each recording segment can be displayed in different lengths according to the audio time length, and the longer the general audio time length is, the longer the display length is, and the more the number of words of the corresponding document content is likely to be, so that a user can conveniently determine the corresponding recording segment according to the number of words of the document content.
Alternatively, as shown in fig. 2, in the case where the target screen is the aforementioned folding screen, the document content of the target document may be displayed in a first sub-screen 201 of the folding screen, and the target sound recording file may be displayed in a second sub-screen 202 of the folding screen. The first sub-screen and the second sub-screen are connected through the target area 203, that is, the second sub-screen 201 and the second sub-screen 202 may be folded in half 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 content of the target document may be displayed side by side with the target sound recording file.
Optionally, the document content display method may further include, while adjusting the document content of the target document:
and adjusting the displayed target recording file, and reserving a recording segment corresponding to the second target sentence in the target recording file.
In the embodiment of the application, the display granularity of the document content is adjusted, and the display granularity of the target recording file is adjusted, so that the displayed recording segment corresponds to the displayed document content, and a user can conveniently conduct comparison analysis between the displayed 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 recording segment.
The foregoing scheme will be illustrated by taking the target screen as an example of the foregoing folding screen.
As shown in fig. 2, the document content of the target document is 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 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 maximum, which is 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 content 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 one 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 one sentence before and after the sentence where the preset keyword is located are displayed, and other sentences are subjected to hiding processing, and meanwhile, the display granularity of the target recording file is correspondingly adjusted, namely: only the audio clips corresponding to the sentences in which the preset keywords are located and the audio clips corresponding to the sentences before and after the sentences in which the preset keywords are 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 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 other sentences are hidden, and meanwhile, the display granularity of the target recording file is correspondingly adjusted, namely: only the audio clip corresponding to the sentence where the preset keyword is located is displayed, as shown in fig. 4. Wherein "SSSS" in the document contents shown in fig. 2 to 4 represents a preset keyword.
When the display granularity can not be further reduced, the electronic equipment can output prompt information to remind the user. At this time, the user can increase the display granularity by controlling the angle between the first sub-screen 201 and the second sub-screen 202, thereby helping the user to have a more overall knowledge of the document content.
In order to facilitate the user to know the angle between the first sub-screen 201 and the second sub-screen 202, the value of the angle may be displayed in the target screen for reference by the user.
As can be seen from the foregoing, the user can control different display granularities to quickly locate key contents in the document contents, so that the method has high flexibility.
The foregoing scheme will be illustrated by taking the target screen as an example of the foregoing flexible screen.
As shown in fig. 5, in the case where the target screen is the aforementioned flexible screen, document contents of the target document may be displayed side by side with the target sound recording file. Three document display granularity adjustment areas, namely an area A501, an area B502 and an area C503 shown by dotted line boxes in fig. 5, are arranged in the flexible screen, and each adjustment area corresponds to one document display granularity.
Two bending radians (or bending angles) may be set 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 greater than the second preset bending radian. And 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, identifying preset keywords in the document content of the target document, namely highlighting the preset keywords, wherein 'SSSS' in the document content shown in fig. 5 represents the preset keywords. And under the condition that the bending radian is greater than or equal to a first preset bending radian, according to the document display granularity corresponding to the adjusting area, adjusting the document content of the target document, reserving the statement where the preset keyword is located and the context statement of the statement 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 recording file. The specific display results may refer to the display results described in the previous Wen Shedie screen example, and will not be described herein.
Wherein, the above content can be summarized as follows: identifying a preset keyword in the document content of the target document under the condition that the bending degree of the target area is larger than or equal to the second preset bending degree and smaller than the first preset bending degree; 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 region, and reserving a second target sentence.
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 displayed first document content; modifying the first document content to a second document content in response to the first input; determining target recording content corresponding to the first document content in the target recording file; and converting the target 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 document content input by the user.
Because of the complexity of language, when the recording file is converted into the document content, the problems of conversion errors, sentence breaking errors and the like are unavoidable, so in the embodiment of the application, when the 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 user on the document content, the electronic device can also search 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 reconvert the recording content into the correct document content, and update the document content (comprising the displayed document content and the undisplayed document content) of the target document, thereby rapidly 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 when determining the target recording content corresponding to the first document content, the corresponding recording fragment can be found according to the statement of the first document content 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 marks in the displayed document content.
Optionally, after displaying the document content of the target document, the document content display method may further include:
a second input of the user to the target vocabulary is received, and in response to the second input, a paraphrase of the target vocabulary is acquired and displayed.
When a user does not understand a certain word in the document content, the definition of the word can be called out through a certain operation. After the target vocabulary is selected, the electronic device searches the paraphrases of the target vocabulary through the search engine and displays the searched paraphrases after long-press operation (namely, second input) is performed on the position where the target vocabulary is displayed, so that a user is helped to understand the meaning of the vocabulary faster and better. If the user finds that the meaning of the target vocabulary is inconsistent 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 preserve the key content and eliminate the interference of the useless information. The method is simple in operation, and meanwhile, the user can conveniently and rapidly focus the key content, so that the user can conveniently search and arrange the key content, and the trouble of searching word by word and sentence by the user is eliminated.
It should be noted that, in the document content display method provided in the embodiment of the present application, the execution body may be a document content display device, or a control module in the document content display device for executing the document content display method. In the embodiment of the present application, a document content display device is described by taking a document content display method performed by the document content display device as an example.
Fig. 6 is a schematic block diagram of a document content display apparatus provided in an embodiment of the present application.
As shown in fig. 6, the document content display apparatus includes:
a first display module 601 for displaying document content of a target document in a target screen of the 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 a target document display granularity corresponding to the target bending degree according to a preset correspondence between the bending degree of the target region and the document display granularity.
Wherein the document display granularity is the number of context sentences of the first target sentence; the first target sentence is a sentence where a preset keyword is located.
And the first adjusting module 604 is configured to adjust document content of the target document displayed in the target screen according to the target document display granularity, and reserve a second target sentence.
Wherein the second target sentence includes: the first target sentence and the context sentence of the first target sentence 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, the 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; wherein different document display granularity adjustment regions correspond to different document display granularities.
Optionally, the target document is obtained by converting the target recording file.
The document content display apparatus further includes:
and the second display module is used for displaying the target recording file corresponding to the target document in the target screen.
And the target recording file is split into recording fragments for display by taking sentences as units.
Optionally, in the 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 recording file is displayed in a second sub-screen of the folding screen; the first sub-screen is connected with the second sub-screen through the target area.
Optionally, the document content display apparatus further includes:
and the second adjusting module is used for adjusting the displayed target recording file and reserving a recording segment corresponding to the second target sentence in the target recording file.
Optionally, the document content display apparatus further includes:
and the receiving module is used for receiving a first input of the user on the first document content.
And a third adjustment module for 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.
And the second determining module is used for determining target recording content corresponding to the first document content in the target recording file.
And the fourth adjustment module is used for converting the target recording content into the second document content and updating the document content of the target document.
Optionally, in the case where the target screen is the flexible screen, the first adjustment 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 sentence under the condition that the target bending degree is larger than or equal to the first preset bending degree.
Wherein, when the bending degree of the target area is larger than or equal to the second preset bending degree and smaller than the first preset bending degree, a preset keyword is identified in the document content of the target document; the first preset bending degree is larger 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 in operation, and meanwhile, the user can conveniently and rapidly focus the key content, so that the user can conveniently search and arrange the key content, and the trouble of searching word by word and sentence by the user 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 may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The document content display apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are 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 embodiment of the document content display method shown in fig. 1, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 7, the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction implements each process of the above embodiment of the document content display method when executed by the processor 701, and the process can achieve the same technical effect, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
Those skilled in the art will appreciate that the electronic device 800 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 810 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 810 is configured to: a control display unit 806 (a target screen in the embodiment of the present application) displays document contents of a target document; obtaining 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 region and the document display granularity; and according to the display granularity of the target document, adjusting the document content of the target document, and reserving a second target sentence. Wherein the document display granularity is the number of context sentences of the first target sentence; the first target sentence is a sentence where a preset keyword is located; the second target sentence includes: the first target sentence and the context sentence of the first target sentence 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 a target recording file, and the target recording file is split into recording fragments for display by taking sentences as units.
Optionally, the processor 810 is further configured to: and adjusting the displayed target recording file, and reserving a recording segment corresponding to the second target sentence in the target recording file.
Optionally, the user input unit 807 is configured to: receiving a first input of a user to first document content; the processor 810 is also configured to: modifying the first document content to a second document content in response to the first input; determining target recording content corresponding to the first document content in a target recording file; and converting the target recording content into the second document content and updating the document content of the target document. The second document content is document content input by a 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 region, and reserving a second target sentence.
The target screen is a flexible screen which can be bent at any position, at least one document display granularity adjusting area is arranged in a display area of the flexible screen, and the target area is one of the at least one document display granularity adjusting area; wherein different document display granularity adjustment regions correspond to different document display granularities.
Wherein, when the bending degree of the target area is larger than or equal to the second preset bending degree and smaller than the first preset bending degree, a preset keyword is identified in the document content of the target document; the first preset bending degree is larger 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 in operation, and meanwhile, the user can conveniently and rapidly focus the key content, so that the user can conveniently search and arrange the key content, and the trouble of searching word by word and sentence by the user is eliminated.
It should be appreciated that in embodiments of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, with the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing device (e.g., 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. Touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two parts, 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, a joystick, and so forth, 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 an operating system. The processor 810 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the processes of the embodiment of the document content display method are implemented, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so that each process of the embodiment of the document content display method can be implemented, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk) and including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (12)

1. A document content display method, comprising:
displaying document content of a target document in a target screen of the 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 region and the document display granularity; wherein the document display granularity is the number of context sentences of the first target sentence; the first target sentence is a sentence where a preset keyword is located;
according to the target document display granularity, adjusting document content of the target document, and displaying only a second target sentence; wherein the second target sentence includes: the first target sentence and the context sentence of the first target sentence 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 comprising: 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, the 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; wherein different document display granularity adjustment regions correspond to different document display granularities.
3. The document content display method according to claim 2, wherein the target document is converted from a target sound recording file;
the document content display method further includes, while displaying the document content of the target document in the target screen:
displaying the target sound recording file corresponding to the target document in the target screen; and the target recording file is split into recording fragments for display by taking sentences as units.
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 the document content display method further comprises, while adjusting the document content of the target document:
and adjusting the displayed target recording file, and reserving a recording segment corresponding to the second target sentence in the target 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 first document content;
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 recording content corresponding to the first document content in a target recording file;
and converting the target recording content into the second document content and updating the document content of the target document.
7. A document content display apparatus, comprising:
a first display module for displaying document contents of a target document in a target screen of the electronic device;
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 target document display granularity corresponding to the target bending degree according to a preset corresponding relation between the bending degree of the target region and the document display granularity; wherein the document display granularity is the number of context sentences of the first target sentence; 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 only displaying a second target sentence; wherein the second target sentence includes: the first target sentence and the context sentence of the first target sentence 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 comprising: 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, the 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; wherein different document display granularity adjustment regions correspond to different document display granularities.
9. The document content display apparatus according to claim 8, wherein the target document is converted from a target sound recording file;
the document content display apparatus further includes:
The second display module is used for displaying the target recording file corresponding to the target document in the target screen; and the target recording file is split into recording fragments for display by taking sentences as units.
10. The document content display apparatus according to claim 9, wherein in a case where the target screen is the folding screen, 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 is connected with the second sub-screen through the target area.
11. The document content display apparatus according to claim 9, wherein the document content display apparatus further comprises:
and the second adjusting module is used for adjusting the displayed target recording file and reserving a recording segment corresponding to the second target sentence in the target recording file.
12. The document content display apparatus according to claim 9, wherein the document content display apparatus further comprises:
the receiving module is used for receiving a first input of a user on the content of the first document;
A third adjustment module for 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;
the second determining module is used for determining target recording content corresponding to the first document content in the target recording file;
and the fourth adjustment module is used for converting the target recording content into the second document content and updating the document content of the target document.
CN202110034567.0A 2021-01-11 2021-01-11 Document content display method and device Active CN112685126B (en)

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 CN112685126A (en) 2021-04-20
CN112685126B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046142A (en) * 2019-12-13 2020-04-21 深圳前海环融联易信息科技服务有限公司 Text examination method and device, electronic equipment and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8587539B2 (en) * 2011-01-21 2013-11-19 Blackberry Limited Multi-bend display activation adaptation
JP2014146248A (en) * 2013-01-30 2014-08-14 Sony Corp Display control apparatus, display control method, and program
US9858848B1 (en) * 2016-06-09 2018-01-02 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

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112685126A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US20110201387A1 (en) Real-time typing assistance
WO2022017525A1 (en) Page display method and apparatus, and electronic device
WO2022083750A1 (en) Text display method and apparatus and electronic device
WO2022135474A1 (en) Information recommendation method and apparatus, and electronic device
CN112437353B (en) Video processing method, video processing device, electronic apparatus, and readable storage medium
CN108829686B (en) Translation information display method, device, equipment and storage medium
CN111061383A (en) Character detection method and electronic equipment
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
US20230244363A1 (en) Screen capture method and apparatus, and electronic device
CN111880668A (en) Input display method and device and electronic equipment
WO2022105754A1 (en) Character input method and apparatus, and electronic device
CN112764734B (en) Auxiliary method and device for code editing and electronic equipment
CN111144065B (en) Display control method and electronic equipment
CN112949261A (en) Text restoration method and device and electronic equipment
CN112685126B (en) Document content display method and device
WO2022143523A1 (en) Vocabulary display method and apparatus, and electronic device
CN109725736B (en) Candidate sorting method and device and electronic equipment
WO2022233275A1 (en) Input correction method and apparatus
CN114374663B (en) Message processing method and message processing device
CN113905125B (en) Video display method and device, electronic equipment and storage medium
WO2022135294A1 (en) Candidate word display method and apparatus, and electronic device
CN113157966B (en) Display method and device and electronic equipment
US20160292140A1 (en) Associative input method and terminal
CN112036135B (en) Text processing method and related device
CN113778595A (en) Document generation 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