CN115934228A - Content adjusting method, intelligent terminal and storage medium - Google Patents

Content adjusting method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN115934228A
CN115934228A CN202211567530.5A CN202211567530A CN115934228A CN 115934228 A CN115934228 A CN 115934228A CN 202211567530 A CN202211567530 A CN 202211567530A CN 115934228 A CN115934228 A CN 115934228A
Authority
CN
China
Prior art keywords
content
frame
information
preset
target frame
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.)
Pending
Application number
CN202211567530.5A
Other languages
Chinese (zh)
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.)
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Transsion Holdings 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 Shenzhen Transsion Holdings Co Ltd filed Critical Shenzhen Transsion Holdings Co Ltd
Priority to CN202211567530.5A priority Critical patent/CN115934228A/en
Publication of CN115934228A publication Critical patent/CN115934228A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a content adjusting method, an intelligent terminal and a storage medium, wherein the content adjusting method can be applied to the intelligent terminal and comprises the following steps: responding to a first trigger operation on the content, and outputting at least one target frame; and adjusting the content according to the target frame information. According to the method and the device, the typesetting format of the content in the interface is adjusted, the attractiveness of interface content display is improved, the typesetting format of the content meets the reading habit of a user, and the reading experience of the user is improved.

Description

Content adjusting method, intelligent terminal and storage medium
Technical Field
The application relates to the technical field of intelligent terminals, in particular to a content adjusting method, an intelligent terminal and a storage medium.
Background
With the development of mobile network technology, most intelligent terminal devices such as mobile phones and PDAs (personal digital assistants) display contents through an interface of client software. However, due to the fact that the sizes of the screens of the devices are different, the display effect of the layout of the display content is fixed, the display content does not have a logical structure, and the like, inconvenience is brought to a user for viewing the display content.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed:
the interface display often does not accord with the reading habit of the user, and the reading experience of the user is poor.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a content adjusting method, an intelligent terminal and a storage medium, which can improve the reading experience of a user and are simple and convenient to operate.
The application provides a content adjusting method, which can be applied to an intelligent terminal and comprises the following steps:
s10: responding to a first trigger operation on the content, and outputting at least one target frame;
s20: and adjusting the content according to the target frame information.
Optionally, the content is a text, a web page, a multimedia file (such as a picture), or the like.
Optionally, after the step S20, the method further includes the step of:
s30: and outputting the adjusted content.
Optionally, the step S20 includes:
s21: determining or generating a total frame and/or sub frames in the total frame according to the target frame information;
s22: and when the total frame meets a preset first condition and/or the height difference between the sub frames meets a preset second condition, adjusting the content.
Optionally, the step S22 includes:
when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, outputting a content layout adjustment interface; responding to a second trigger operation of the content layout adjustment interface, and adjusting the content; and/or the presence of a gas in the gas,
when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, determining or generating the number and/or the position information of the sub-frames according to target frame information; adjusting the content according to the number and/or the location information.
Optionally, the step S20 includes:
determining content information corresponding to the target frame;
and adjusting the content according to the target frame information and the content information.
Optionally, the step S10 includes:
s11: in response to a third triggering operation on the content, determining an initial frame of at least one content;
s12: determining or generating a target frame corresponding to the content according to the frame information of the initial frame;
s13: and outputting the target frame of the content.
Optionally, the step S12 includes:
s121: acquiring or identifying height information and/or width information of the initial frame;
s122: and determining or generating a target frame in the initial frame according to the height information and/or the width information.
Optionally, the step S122 includes:
determining or generating a frame to be determined according to the height information and/or the width information;
acquiring or identifying the content color and/or content font of the content in the frame to be determined;
and determining or generating the target frame in the frame to be determined according to the content color and/or the content font.
Optionally, the step S13 includes:
determining or generating a total frame and/or a sub frame in the target frame according to the target frame information;
and outputting the total frame and/or the sub-frames according to the preset color and/or pattern.
The application also provides an intelligent terminal, including: the content adjusting method comprises a memory and a processor, wherein the memory stores a content adjusting program, and the content adjusting program realizes the steps of any one of the content adjusting methods when being executed by the processor.
The present application also provides a storage medium storing a computer program which, when executed by a processor, implements the steps of the content adaptation method as set forth in any one of the above.
As described above, the content adjustment method of the present application, which can be applied to an intelligent terminal, includes the steps of: responding to a first trigger operation on the content, and outputting at least one target frame of the content; and adjusting the content according to the target frame information. Through the technical scheme, the typesetting format of the content in the interface can be adjusted, the attractiveness of interface content display is improved, the typesetting format of the content meets the reading habit of a user, the reading experience function of the user is improved, the problem of poor reading experience of the user is solved, and the user experience is further improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive step.
Fig. 1 is a schematic diagram of a hardware structure of an intelligent terminal implementing various embodiments of the present application;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
FIG. 3 is a flow diagram illustrating a method of content adaptation according to one embodiment;
fig. 4 is a flowchart illustrating a content adaptation method according to another embodiment;
fig. 5 is a flowchart illustrating a content adjusting method according to still another embodiment.
The implementation, functional features and advantages of the object of the present application will be further explained with reference to the embodiments, and with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
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, the recitation of a claim "comprising a" 8230a "\8230means" does not exclude the presence of additional identical elements in the process, method, article or apparatus in which the element is incorporated, and further, similarly named components, features, elements in different embodiments of the application may have the same meaning or may have different meanings, the specific meaning of which should be determined by its interpretation in the specific embodiment or by further combination with the context of the specific embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, items, species, and/or groups thereof. As used herein, the terms "or," "and/or," "including at least one of the following," and the like, are to be construed as inclusive or meaning any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," a, B or C "or" a, B and/or C "means" any one of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that, step numbers such as S10 and S20 are used herein for the purpose of more clearly and briefly describing corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S20 first and then S10 in the specific implementation, but these should be within the protection scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The intelligent terminal may be implemented in various forms. For example, the smart terminal described in the present application may include smart terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a digital TV, a desktop computer, and the like.
While the following description will be given by way of example of a smart terminal, those skilled in the art will appreciate that the configuration according to the embodiments of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an intelligent terminal for implementing various embodiments of the present application, the intelligent terminal 100 may include: RF (radio Frequency) unit 101, wiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the intelligent terminal architecture shown in fig. 1 does not constitute a limitation of the intelligent terminal, and that the intelligent terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each component of the intelligent terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (global System for mobile communications), GPRS (general Packet radio Service), CDMA2000 (Code Divi ion Mu lt ip l Access 2000, CDMA 2000), WCDMA (Wideband Code Divi ion Mu l Access, wideband Code division multiple Access), TD-SCDMA (Time Divi ion-Synchronous Code Divi ion Mu lt ip l Access, time division Synchronous Code division multiple Access), FDD-LTE (Frequency Divi on Dup l ex Long Term evolution, frequency division duplex Long Term evolution), TDD-LTE (Time Divi ion Dup ex-Long Term evolution, long Term evolution G5, and so on.
WiFi belongs to short-distance wireless transmission technology, and the intelligent terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the smart terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the smart terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice acquisition or recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the smart terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input unit 104 may include a Graphics Processor (GPU) 1041 and a microphone 1042, the graphics processor 1041 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 processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice acquisition or recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor, the ambient light sensor may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the smart terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration acquisition or related functions (such as pedometer, tapping) and the like for acquiring or recognizing the attitude of the mobile phone; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the intelligent terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch direction of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited thereto.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the smart terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the smart terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an acquisition or identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the smart terminal 100 or may be used to transmit data between the smart terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the intelligent terminal, connects various parts of the entire intelligent terminal using various interfaces and lines, and performs various functions of the intelligent terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the intelligent terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally the application processor primarily handles operating systems, user interfaces, application programs, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The intelligent terminal 100 may further include a power supply 111 (such as a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the smart terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the intelligent terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present application, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User equipment) 201, an e-UTRAN (evolved UMTS terrestrial radio Access Network) 202, an epc (evolved Packet Core) 203, and an ip service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 via backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPCs 203 may include an MME (Mobi l identity Management entity) 2031, an HSS (Home subscriber Server) 2032, other MMEs 2033, an SGW (serving gateway) 2034, a PGW (PDN gateway Way) 2035, and a PCRF (Po i cy and Chargi ng Ru ls Funct, policy and charging function entity) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide ip address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and ip bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The ip services 204 may include the internet, intranets, ims (ip Mu lt im ia Subsystem), or other ip services, etc.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G, and future new network systems (e.g. 6G), and the like.
Based on the intelligent terminal hardware structure and the communication network system, the embodiments of the application are provided.
First embodiment
Referring to fig. 3, fig. 3 is a first embodiment of a content adjustment method of the present application, where the content adjustment method includes the following steps:
and step S10, responding to a first trigger operation on the content, and outputting at least one target frame.
Optionally, the content is a text, a web page, a multimedia file (such as a picture), or the like.
Optionally, the execution subject is an intelligent terminal, such as a mobile phone terminal. When the current typesetting presentation mode is not satisfied, the presentation mode of the content (such as characters) in the optimized layout can be adjusted.
Optionally, the first trigger operation on the content is used to obtain a target frame of the content in the interface. Optionally, the first trigger operation on the content may be a user clicking a button on the interface, or a long press, a light press/heavy press, a slide, or other touch operation, and may also be determined or generated according to voice information, gesture information, or line of sight information of the user.
Optionally, the target frame is a frame of the content in the interface, and the target frame divides the content in the interface for adjusting the content. Optionally, the interface includes at least one content, and each content corresponds to one target frame.
Optionally, when the interface is an interface of a chat application, the interface includes personal information and function buttons of chat objects, one chat object corresponds to at least one content, and each content corresponds to one target border. For example, the age and sex in the personal information are content a1, the interest in the personal information is content a2, the function button adds a friend for invitation to be content a3, and optionally, the content a1, the content a2 and the content a3 respectively correspond to a target frame. Optionally, when the interface is an interface of a chat application, the interface includes at least one piece of chat information with the chat object, each piece of chat information is a piece of content, and each piece of content corresponds to a target border.
Optionally, when the interface is a shopping interface, the interface includes introduction information of items and function buttons, each item corresponds to at least one content, and each content corresponds to a target frame. For example, the item information in the introduction information is content b1, the price information in the introduction information is content b2, the function button is purchase item is content b3, and optionally, the content b1, the content b2, and the content b3 correspond to a target frame respectively.
Optionally, when the interface is a reading interface, the interface includes content of the article and other information, and optionally, the other information includes an author of the article release, a time of the release, and the like. Optionally, the first paragraph of the article in the interface is content c1, the second paragraph is content c2, and optionally, the content c1 and the content c2 correspond to a target border respectively.
Optionally, a target frame of the at least one content is output, optionally, a color of the target frame is different from a color of the content.
And S20, adjusting the content according to the target frame information.
Optionally, the target bounding box information includes a length and a height of the target bounding box. Optionally, the target frame information includes coordinate information of each vertex of the target frame.
Optionally, the content information includes at least one of content, content type, content color, and the like.
Optionally, the adjusting of the content is to adjust a layout presentation mode of the content, so as to improve the reading beauty of the layout presentation mode of the current interface content.
Optionally, when the target frame information satisfies a preset condition, the content is adjusted, and/or when the frame information does not satisfy the preset condition, the content is not adjusted.
Optionally, when the height of the target frame is greater than a preset height threshold, it is determined that the target frame information meets a preset condition.
Optionally, when the height of the target frame is less than or equal to the preset height threshold, it is determined that the target frame information does not satisfy the preset condition.
Optionally, when the height of the target frame is greater than the preset height threshold, the height of the content is adjusted, for example, the line spacing is adjusted.
Optionally, when the width of the target frame is greater than a preset width threshold, it is determined that the target frame information satisfies a preset condition.
Optionally, when the width of the target frame is less than or equal to the preset width threshold, it is determined that the target frame information does not satisfy the preset condition.
Optionally, when the width of the target frame is greater than the preset width threshold, the width of the content is adjusted, for example, the number of words in each line of the content is adjusted.
Optionally, when the height of the target frame is greater than a preset height threshold, or the width of the target frame is greater than a preset width threshold, it is determined that the target frame information meets a preset condition.
Optionally, when the height of the target frame is less than or equal to the preset height threshold and the width of the target frame is less than or equal to the preset width threshold, it is determined that the target frame information does not satisfy the preset condition.
Optionally, content information corresponding to the target frame is determined, and the content is adjusted according to the target frame information and the content information. Optionally, when the content information is a content type, determining the content type of the content in each target frame, and adjusting the target frames of the same content type according to a preset layout style, optionally according to a preset height and a preset width. Optionally, when the content information is a content font or a content color, determining the content font or the content color of the content in each target frame, and adjusting the target frames with the same content font or content color according to a preset layout style.
Optionally, after step S20, the method further includes:
and step S30, outputting the adjusted content.
Optionally, the adjusted content is displayed on the interface, the adjusted content is the same as the content before the adjustment, and the content layout of the adjusted content is different from the content layout of the content before the adjustment.
In the technical scheme of the embodiment, a target frame of at least one content is output in response to a first trigger operation on the content; and adjusting the content according to the target frame information. By determining the target frame and adjusting the typesetting format of the content in the interface according to the target frame information, the attractiveness of interface content display is improved, the typesetting format of the content is made to accord with the reading habit of the user, and the reading experience of the user is improved.
Second embodiment
Referring to fig. 4, fig. 4 is a second embodiment of the adjusting method of the present application, and based on the first embodiment, the step S20 includes:
step S21, determining or generating a total frame and/or sub frames in the total frame according to the target frame information;
and S22, when the total frame meets a preset first condition and/or the height difference between the sub frames meets a preset second condition, adjusting the content.
Optionally, the total frame and/or the sub-frames in the total frame are determined or generated according to the target frame information, one target frame includes one total frame, and the total frame includes at least one sub-frame. Alternatively, the total box and the sub-boxes may be represented by different colors or lines, for example, the total box may be represented by red and the sub-boxes may be represented by blue. Optionally, when the total frame meets a preset first condition, the content is adjusted.
Optionally, when the height of the total frame is greater than a preset height threshold, it is determined that the total frame satisfies a preset first condition.
Optionally, when the height of the total frame is less than or equal to the preset height threshold, it is determined that the total frame does not satisfy the preset first condition.
Optionally, when the height of the total frame is greater than the preset height threshold, the height of the content of the total frame is adjusted, for example, the line spacing is adjusted.
Optionally, when the width of the total frame is greater than a preset width threshold, it is determined that the total frame satisfies a preset first condition.
Optionally, when the width of the total frame is less than or equal to the preset width threshold, it is determined that the total frame does not satisfy the preset first condition.
Optionally, when the width of the total frame is greater than the preset width threshold, the width of the content is adjusted, for example, the number of words of each line of the content is adjusted.
Optionally, when the height of the total frame is greater than a preset height threshold, or the width of the total frame is greater than a preset width threshold, it is determined that the total frame meets a preset first condition.
Optionally, when the height of the total frame is less than or equal to the preset height threshold and the width of the total frame is less than or equal to the preset width threshold, it is determined that the total frame does not satisfy the preset first condition.
Optionally, when the height of the total frame is greater than the preset height threshold and the width of the total frame is greater than the preset width threshold, the height and the width of the content are adjusted, for example, the line spacing of the content and the number of words in each line are adjusted.
Optionally, when the height difference between the sub-frames meets a preset second condition, the content is adjusted.
Optionally, the height difference between the sub-frames is a difference between the heights of the adjacent sub-frames, for example, the total frame includes a sub-frame a and a sub-frame b, the height of the sub-frame a is c1, the height of the sub-frame b is c2, and the height difference between the sub-frame a and the sub-frame b is c1-c2.
Optionally, the height difference between the sub-frames is the sum of the height differences of all the adjacent sub-frames above and below in the total frame, for example, the total frame includes a sub-frame a, a sub-frame b and a sub-frame c, the height of the sub-frame a is c1, the height of the sub-frame b is c2, the height of the sub-frame c is c3, the height difference between the sub-frame a and the sub-frame b is c1-c2, the height difference between the sub-frame b and the sub-frame c is c2-c3, and the sum of the height differences is c1-c3.
Optionally, when the height difference between the sub-frames is greater than a preset height difference threshold, it is determined that the height difference between the sub-frames satisfies a preset second condition.
Optionally, when the height difference between the split frames is less than or equal to a preset height difference threshold, it is determined that the height difference threshold between the split frames does not satisfy a preset second condition.
Optionally, when the total frame meets a preset first condition and the height difference between the sub-frames meets a preset second condition, the content is adjusted.
Optionally, when the height interval between the sub-frames satisfies a preset third condition, the content is adjusted. For example, the sub-frame a is positioned below the sub-frame b, and the distance between the upper frame of the sub-frame a and the lower frame of the sub-frame b is the height interval.
Optionally, when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, outputting a content layout adjustment interface; optionally, the second triggering operation of the content layout adjustment interface may be a user clicking a button on the interface, or a long press, a light press/heavy press, a slide and other touch operations, or may be determined or generated according to voice information, gesture information, or sight line information of the user.
Optionally, the content layout adjustment interface includes a content adjustment selection button, a content display layout selection button, and the like.
Optionally, the content layout adjustment interface includes selection buttons "yes" and "no", the version adjustment requires a certain time, if the requirement on the aesthetic degree of the layout is high, the adjustment "yes" may be selected, and/or, if the requirement on the aesthetic degree of the layout is low, the non-adjustment "no" may be selected.
Optionally, when the content layout presentation manner is adjusted, the prompt information is output at the same time, for example, the prompt information is "in layout adjustment".
Optionally, when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, determining or generating the number and/or the position information of the sub-frames according to target frame information; adjusting the content according to the number and/or the location information.
Optionally, the content is adjusted according to the number of the sub-frames, optionally, the font, the width, or the height of the content is adjusted according to the number of the sub-frames, optionally, the larger the number of the sub-frames is, the smaller the font of the adjusted content is, or the smaller the height of the adjusted content is, or the wider the width of the adjusted content is.
Optionally, the content is adjusted according to the position information of the frame, optionally, the font, the width or the height of the content is adjusted according to the position information of the frame, optionally, it is determined according to the position information of the frame that the closer the distance between the frames is, the smaller the font of the content after adjustment is, or the smaller the height of the content after adjustment is, or the wider the width of the content after adjustment is.
Optionally, the content is adjusted according to the number and the position information of the sub-frames, optionally, the font, the width or the height of the content is adjusted according to the number and the position information of the sub-frames, and optionally, the closer the distance between the sub-frames is determined according to the position information of the sub-frames, the smaller the font of the adjusted content is, or the smaller the height of the adjusted content is, or the wider the width of the adjusted content is.
In the technical scheme of the embodiment, the target frame is determined, and the typesetting format of the content in the interface is adjusted according to the target frame information, so that the attractiveness of interface content display is improved, the typesetting format of the content conforms to the reading habit of a user, and the reading experience of the user is improved.
Third embodiment
Referring to fig. 5, fig. 5 is a third embodiment of the adjusting method of the present application, and based on the first or second embodiment, the step S10 includes:
step S11, responding to a third triggering operation on the content, and determining at least one initial frame of the content;
step S12, determining or generating a target frame corresponding to the content according to the frame information of the initial frame;
and S13, outputting the target frame of the content.
Optionally, the third trigger operation on the content is used to obtain a target frame of the content in the interface. Optionally, the third trigger operation on the content may be a user clicking a button on the interface, or a long press, a light press/heavy press, a sliding touch operation, or determined or generated according to voice information, gesture information, or sight line information of the user.
Optionally, the interface is acquired or identified by using a content detection model, coordinate information of each content line is acquired or identified, and an initial frame is determined or generated.
Optionally, the initial bounding box includes an overall box and sub-boxes within the overall box. An initial frame comprises a total frame, and the total frame comprises at least one sub frame. Alternatively, the total box and the sub-boxes may be represented by different colors or lines, for example, the total box may be represented by red and the sub-boxes may be represented by blue.
Optionally, a target frame corresponding to the content is determined or generated according to the frame information of the initial frame.
Optionally, when the frame information of the initial frame includes the length and the height of the initial frame, if the length of the initial frame is greater than the preset length, or the height of the initial frame is greater than the preset height, it indicates that the division of the initial frame is unreasonable, and the initial frame needs to be further optimized.
Optionally, if the length is less than or equal to the preset length and the height is less than or equal to the preset height, it indicates that the initial frame is divided reasonably, and further optimization of the initial frame is not needed.
Optionally, a target frame corresponding to the content is determined or generated according to the frame information of the initial frame and the content information corresponding to the initial frame.
Optionally, when the content information corresponding to the initial frame is content, if the content includes context content, determining or generating a target frame in the initial frame according to the context content, for example, if the initial frame includes context content, that is, a paragraph a and a paragraph b, further dividing the paragraph a and the paragraph b in the initial frame to obtain target frames corresponding to the paragraph a and the paragraph b, respectively. And/or if the content does not include contextual content, then taking the initial border as the target border.
Optionally, when the content information corresponding to the initial frame is a content type, if the content type is a preset type, the initial frame is further divided according to the preset type to obtain the target frame. And/or if the content type is not the preset type, further dividing the initial frame, and taking the initial frame as a target frame.
Optionally, when the content information corresponding to the initial frame is a content type, if the content information in the initial frame includes content types greater than a preset number, the initial frame is further divided according to the content types to obtain a target frame. And/or if the content information in the initial frame comprises the content types less than or equal to the preset number, the initial frame is not further divided, and the initial frame is taken as a target frame.
Optionally, determining or generating a target frame corresponding to the content according to the frame information of the initial frame, which may be to acquire or identify height information and/or width information of the initial frame; and determining or generating a target frame in the initial frame according to the height information and/or the width information.
Optionally, when the height information of the initial frame is greater than the preset height, the initial frame is further divided to obtain a target frame.
Optionally, when the width information in the initial frame is greater than the preset width, the initial frame is further divided to obtain a target frame.
Optionally, when the height information of the initial frame is greater than the preset height and the width information in the initial frame is greater than the preset width, the initial frame is further divided.
Optionally, the initial border is further divided based on the content information in the initial border.
Optionally, the content information includes at least one of a content type, a content font, a content color, and the like. For example, when the initial frame includes at least one content type, the initial frame is divided according to the content type to obtain the target frame.
Optionally, determining or generating a frame to be determined according to the height information and/or the width information; acquiring or identifying the content color and/or content font of the content in the frame to be determined; and determining or generating the target frame in the frame to be determined according to the content color and/or the content font.
Optionally, the target frame of the content may be output by determining or generating a total frame and/or a sub-frame in the target frame according to the target frame information, and outputting the total frame and/or the sub-frame according to the preset color and/or pattern.
In the technical scheme of this embodiment, the target frame is determined based on the frame information of the initial frame of the content, and the target frame is output, so that the user can conveniently confirm the adjustment mode of the layout format of the content in the interface, adjust the interface content according to the target frame, improve the attractiveness of the display of the interface content, make the layout format of the content conform to the reading habit of the user, and improve the reading experience of the user.
The embodiment of the present application further provides an intelligent terminal, which includes a memory and a processor, where the memory stores a content adjustment program, and the content adjustment program, when executed by the processor, implements the steps of the content adjustment method in any of the above embodiments.
The embodiment of the present application further provides a storage medium, where a content adjustment program is stored on the storage medium, and the content adjustment program, when executed by a processor, implements the steps of the content adjustment method in any of the above embodiments.
In the embodiments of the intelligent terminal and the storage medium provided in the present application, all technical features of any one of the embodiments of the content adjustment method may be included, and the content of the expansion and explanation of the specification is basically the same as that of each embodiment of the method, and will not be described herein again.
Embodiments of the present application further provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method as in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It is to be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar descriptions of terms, technical solutions and/or application scenarios will generally be described in detail only when they occur for the first time, and when they occur repeatedly later, they will not be repeated again for brevity, and in understanding the technical solutions and the like of the present application, reference may be made to the related detailed descriptions and the like before the same or similar descriptions of terms, technical solutions and/or application scenarios and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk) as above, and includes several instructions to enable a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The available media may be magnetic media (e.g., floppy disk, storage disk, magnetic tape), optical media (e.g., DVD), or semiconductor media (e.g., solid State storage disk So l i d State Di sk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all the equivalent structures or equivalent processes that can be directly or indirectly applied to other related technical fields by using the contents of the specification and the drawings of the present application are also included in the scope of the present application.

Claims (10)

1. A method for adjusting content, comprising the steps of:
s10: outputting at least one target frame in response to a first trigger operation on the content;
s20: and adjusting the content according to the target frame information.
2. The method as claimed in claim 1, wherein the step S20 includes the steps of:
s21: determining or generating a total frame and/or sub frames in the total frame according to the target frame information;
s22: and when the total frame meets a preset first condition and/or the height difference between the sub-frames meets a preset second condition, adjusting the content.
3. The method of claim 2, wherein the step S22 comprises:
when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, outputting a content layout adjustment interface; responding to a second trigger operation of the content layout adjustment interface, and adjusting the content; and/or the presence of a gas in the gas,
when the total frame meets a preset first condition and/or the height difference of the sub-frames meets a preset second condition, determining or generating the number and/or the position information of the sub-frames according to target frame information; adjusting the content according to the number and/or the location information.
4. The method according to any of claims 1 to 3, wherein said step S20 comprises:
determining content information corresponding to the target frame;
and adjusting the content according to the target frame information and the content information.
5. A method according to any one of claims 1 to 3, wherein said step S10 comprises the steps of:
s11: in response to a third triggering operation on the content, determining an initial frame of at least one content;
s12: determining or generating a target frame corresponding to the content according to the frame information of the initial frame;
s13: and outputting the target frame of the content.
6. The method as claimed in claim 5, wherein the step S12 includes the steps of:
s121: acquiring or identifying height information and/or width information of the initial frame;
s122: and determining or generating a target frame in the initial frame according to the height information and/or the width information.
7. The method of claim 6, wherein the step S122 comprises:
determining or generating a frame to be determined according to the height information and/or the width information;
acquiring or identifying the content color and/or content font of the content in the frame to be determined;
and determining or generating the target frame in the frame to be determined according to the content color and/or the content font.
8. The method of claim 5, wherein the step S13 comprises:
determining or generating a total frame and/or a sub frame in the target frame according to the target frame information;
and outputting the total frame and/or the sub-frames according to the preset color and/or pattern.
9. An intelligent terminal, comprising: memory, processor, wherein the memory has stored thereon a content adaptation program, which when executed by the processor implements the steps of the content adaptation method according to any of claims 1 to 8.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the content adaptation method according to any one of claims 1 to 8.
CN202211567530.5A 2022-12-07 2022-12-07 Content adjusting method, intelligent terminal and storage medium Pending CN115934228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211567530.5A CN115934228A (en) 2022-12-07 2022-12-07 Content adjusting method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211567530.5A CN115934228A (en) 2022-12-07 2022-12-07 Content adjusting method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115934228A true CN115934228A (en) 2023-04-07

Family

ID=86553347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211567530.5A Pending CN115934228A (en) 2022-12-07 2022-12-07 Content adjusting method, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115934228A (en)

Similar Documents

Publication Publication Date Title
CN108037893B (en) Display control method and device of flexible screen and computer readable storage medium
CN111813493A (en) Method of operating component, terminal, and storage medium
CN113900560A (en) Icon processing method, intelligent terminal and storage medium
CN115914719A (en) Screen projection display method, intelligent terminal and storage medium
CN114398113A (en) Interface display method, intelligent terminal and storage medium
CN114416254A (en) Business card display method, intelligent terminal and storage medium
CN113867586A (en) Icon display method, intelligent terminal and storage medium
CN114640739A (en) Application pushing method, intelligent terminal and storage medium
CN113885752A (en) Icon processing method, intelligent terminal and storage medium
CN113835586A (en) Icon processing method, intelligent terminal and storage medium
CN113326304A (en) Query method, mobile terminal and storage medium
CN113325981A (en) Processing method, mobile terminal and storage medium
CN113342246A (en) Operation method, mobile terminal and storage medium
CN112230825A (en) Sharing method, mobile terminal and storage medium
CN107609180B (en) Screening method, terminal and storage medium
CN115934228A (en) Content adjusting method, intelligent terminal and storage medium
CN114327184A (en) Data management method, intelligent terminal and storage medium
CN114125151A (en) Image processing method, mobile terminal and storage medium
CN113296678A (en) Processing method, mobile terminal and storage medium
CN115756239A (en) Display method, intelligent terminal and storage medium
CN113568532A (en) Display control method, mobile terminal and storage medium
CN114003159A (en) Processing method, intelligent terminal and storage medium
CN114119813A (en) Content demonstration method, mobile terminal and storage medium
CN114089897A (en) Wallpaper switching method, intelligent terminal and storage medium
CN115033144A (en) Processing method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication