CN114816514A - Terminal device display content adjusting method and device, storage medium and product - Google Patents

Terminal device display content adjusting method and device, storage medium and product Download PDF

Info

Publication number
CN114816514A
CN114816514A CN202210306592.4A CN202210306592A CN114816514A CN 114816514 A CN114816514 A CN 114816514A CN 202210306592 A CN202210306592 A CN 202210306592A CN 114816514 A CN114816514 A CN 114816514A
Authority
CN
China
Prior art keywords
processed
code
class
application scene
target
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
CN202210306592.4A
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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology 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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202210306592.4A priority Critical patent/CN114816514A/en
Publication of CN114816514A publication Critical patent/CN114816514A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Landscapes

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

Abstract

The embodiment of the disclosure provides a method, a device, a storage medium and a product for adjusting display content of a terminal device, wherein the method comprises the following steps: acquiring a code to be processed; determining an application scene corresponding to the code to be processed; if the application scene is matched with at least one preset target scene, converting a class to be processed corresponding to the application scene in the codes to be processed to obtain an adjusted target code; and executing the object code to perform adjustment of display content in the object scene. Therefore, technicians do not need to add judgment logic in the codes to be processed according to actual requirements and personal experience in the encoding process, and the codes to be processed are effectively simplified. In addition, the conversion operation is automatically carried out on the class to be processed corresponding to the application scene, and the processing efficiency of the code to be processed is effectively improved.

Description

Terminal device display content adjusting method and device, storage medium and product
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a method and a device for adjusting display content of a terminal device, a storage medium and a product.
Background
Along with the improvement of the hardware performance of the terminal equipment and the continuous progress of the artificial intelligence technology, the display mode of the terminal equipment is more and more fit with the personalized requirements of users. For example, the user can adjust the display language and the display mode of the terminal device according to actual requirements. However, when the display language and the display mode are adjusted, there is a possibility that the reading direction and the bright-dark display state are adjusted.
In order to adjust the reading direction and the bright-dark display state in different display scenes, in the prior art, a judgment logic is generally added to a corresponding position of a code according to actual requirements in the encoding process of developers.
However, when the method is used for adjustment operation, human resources are consumed frequently, and the coding efficiency is low.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, a storage medium and a product for adjusting display content of a terminal device, so as to solve the technical problems that the existing method for adjusting display content consumes manpower resources and results in long codes.
In a first aspect, an embodiment of the present disclosure provides a method for adjusting display content of a terminal device, including:
acquiring a code to be processed;
determining an application scene corresponding to the code to be processed;
if the application scene is matched with at least one preset target scene, converting a class to be processed corresponding to the application scene in the codes to be processed to obtain an adjusted target code;
and executing the object code to perform adjustment of display content in the object scene.
In a second aspect, an embodiment of the present disclosure provides a device for adjusting display content of a terminal device, including:
the acquisition module is used for acquiring a code to be processed;
the determining module is used for determining an application scene corresponding to the code to be processed;
the adjusting module is used for converting a class to be processed corresponding to the application scene in the codes to be processed if the application scene is matched with at least one preset target scene to obtain an adjusted target code;
and the running module is used for running the target code so as to adjust the display content in the target scene.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored by the memory, so that the at least one processor executes the method for adjusting display content of a terminal device according to the first aspect and various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, where a computer executing instruction is stored, and when a processor executes the computer executing instruction, the method for adjusting display content of a terminal device according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for adjusting display content of a terminal device according to the first aspect and various possible designs of the first aspect is implemented.
The method, the device, the storage medium and the product for adjusting the display content of the terminal device provided by the embodiment are characterized in that the method firstly determines an application scene of a code to be processed, and automatically converts a class to be processed corresponding to the application scene in the code to be processed when the application scene is detected to be matched with at least one preset target scene, namely when the display content needs to be adjusted, so as to obtain the adjusted target code. The adjusted object code is capable of performing an adjustment of display content in the object scene at runtime. Therefore, technicians do not need to add judgment logic in the codes to be processed according to actual requirements and personal experience in the encoding process, and the codes to be processed are effectively simplified. In addition, the conversion operation is automatically carried out on the class to be processed corresponding to the application scene, and the processing efficiency of the code to be processed is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for adjusting display content of a terminal device according to a first embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for adjusting display content of a terminal device according to a second embodiment of the present disclosure;
fig. 3 is a schematic diagram of an application scenario provided by the embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a device for adjusting display content of a terminal device according to a third embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In view of the above-mentioned technical problems that the conventional display content adjusting method consumes human resources and results in long codes, the present disclosure provides a method, an apparatus, a storage medium, and a product for adjusting display content of a terminal device.
It should be noted that the present disclosure provides a method, an apparatus, a storage medium, and a product for adjusting display content of a terminal device, which can be applied in various scenes for adjusting display content.
In practical applications, different language environments may have different text reading directions, for example, the reading direction of Chinese is from left to right, and the reading direction of Arabic is from right to left. Alternatively, different system display modes may correspond to different bright and dark display backgrounds, etc. When a user switches the display language and the display mode of the terminal equipment system according to actual requirements, corresponding display contents also need to be adjusted. In the existing adjusting method, a technician generally adds a judgment logic at a corresponding position in a code in a programming process. However, when the above method is used to process codes, on one hand, human resources are consumed and efficiency is low, and on the other hand, a large amount of judgment logic is added to the codes, which results in long codes and poor readability.
In the process of solving the technical problem, the inventor finds, through research, that in order to improve the efficiency of code processing and avoid code redundancy, when it is detected that an application scene corresponding to a code to be processed matches at least one target scene, a class to be processed corresponding to the application scene in the code to be processed is determined, and a conversion operation is performed on the class to be processed, so that the adjusted target code can adjust the display content in the target scene during running.
Fig. 1 is a schematic flowchart of a method for adjusting display content of a terminal device according to a first embodiment of the present disclosure, as shown in fig. 1, the method includes:
step 101, acquiring a code to be processed.
The execution subject of this embodiment is a terminal device display content adjustment apparatus, the terminal device display content adjustment apparatus may be coupled to a server, and the server may be in communication connection with the terminal device, so that the adjustment of the display content on the terminal device may be realized by adjusting the to-be-processed code. Optionally, the terminal device display content adjusting apparatus may be further coupled to the terminal device, so that the to-be-processed code can be adjusted according to a display mode, a display language, and the like of the terminal device, so as to adjust the display content.
In this embodiment, in order to adjust the display content on the application software installed on the terminal device, the code to be processed needs to be acquired first. The code to be processed includes classes for describing display direction, display mode, and the like. During operation, the display direction, display mode, etc. of the characters can be controlled according to the above categories.
And 102, determining an application scene corresponding to the code to be processed.
In the present embodiment, the display contents are different in different application scenarios. For example, the reading direction of Chinese is from left to right, and the reading direction of Arabic is from right to left. Or, if the system display mode of the terminal device is an eye protection mode, a night mode, or the like, the application software also needs to be switched to the corresponding display mode.
Therefore, in order to accurately display the display content corresponding to the application software, after the code to be processed is acquired, the application scene corresponding to the code to be processed needs to be determined first.
Step 103, if the application scene is matched with at least one preset target scene, performing conversion operation on a to-be-processed class corresponding to the application scene in the to-be-processed code to obtain an adjusted target code.
In this embodiment, in some special scenarios, the display content needs to be adjusted, and therefore, the special scenarios may be determined as at least one preset target scenario, where the target scenario includes, but is not limited to, at least one of a language application scenario and a display mode application scenario.
When the application scene corresponding to the code to be processed is detected to be matched with the at least one target scene, the representation needs to adjust the display content when the code to be processed runs. Therefore, the class to be processed, which corresponds to the application scene and needs to be adjusted, in the code to be processed can be identified. And carrying out conversion operation on the class to be processed, converting the class to a class which can be matched with a target scene, and obtaining an adjusted target code.
And step 104, operating the object code to adjust the display content in the object scene.
In this embodiment, after the class to be processed is converted and the object code is obtained, when the object code is run, the display content in the object scene can be adjusted, so that the display content matches the object scene.
Further, on the basis of the first embodiment, the step 102 includes:
and carrying out identification operation on a target field for describing an application scene in the code to be processed.
And determining an application scene corresponding to the code to be processed according to the target field.
Wherein the application scene comprises at least one of a language application scene and a display mode application scene.
In the embodiment, the target field for describing the application scene is included in the code to be processed. The application scene comprises at least one of a language application scene and a display mode application scene. For example, if the system language of the terminal device is Chinese, the to-be-processed code may include a target field such as "Chinese" or "Chinese". Therefore, in order to determine the application scenario corresponding to the to-be-processed code, a target field for describing the application scenario in the to-be-processed code may be identified. And determining an application scene corresponding to the code to be processed according to the target field. For example, if a target field for describing an application scene in the code to be processed is "chinese", the application scene corresponding to the code to be processed is represented as a chinese application scene, and the application scene is not a target application scene, that is, the display order of the characters does not need to be adjusted. Still taking actual application as an example, if a target field used for describing an application scene in the code to be processed is "arabic", the application scene corresponding to the code to be processed is characterized as an arabic application scene, and the application scene is matched with a preset target scene, and at this time, a class used for describing a text display sequence in the code to be processed needs to be adjusted.
The method for adjusting display content of a terminal device according to this embodiment first determines an application scenario of a code to be processed, and when it is detected that the application scenario matches with at least one preset target scenario, that is, when the display content needs to be adjusted, automatically performs a conversion operation on a class to be processed corresponding to the application scenario in the code to be processed, so as to obtain an adjusted target code. The adjusted object code is capable of performing an adjustment of display content in the object scene at runtime. Therefore, technicians do not need to add judgment logic in the codes to be processed according to actual requirements and personal experience in the encoding process, and the codes to be processed are effectively simplified. In addition, the conversion operation is automatically carried out on the class to be processed corresponding to the application scene, and the processing efficiency of the code to be processed is effectively improved.
Fig. 2 is a schematic flowchart of a method for adjusting display content of a terminal device according to a second embodiment of the present disclosure, where on the basis of the first embodiment, as shown in fig. 2, step 103 includes:
step 201, identifying a class to be processed corresponding to the application scenario in the code to be processed, and obtaining at least one class to be processed.
Step 202, converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
In this embodiment, the to-be-processed code includes a to-be-processed class corresponding to the application scenario. For example, the application scenario is used as a language application scenario, and since the reading direction of the text is different in different language application scenarios, the to-be-processed code may include a to-be-processed class for describing the reading direction of the text. When it is detected that the application scene of the code to be processed is matched with the target scene, in order to implement an adjustment operation on the code to be processed, firstly, an identification operation may be performed on a class to be processed corresponding to the application scene in the code to be processed, so as to obtain at least one class to be processed. And converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
Still for practical applications, for example, the reading direction of the general chinese language is from left to right, so the general classes to be processed in the code to be processed are all reading directions from left to right. When detecting that the application scene of the code to be processed is an arabic application scene, the reading direction needs to be adjusted to a right-to-left reading direction. Therefore, the class to be processed in the code to be processed can be adjusted to the class to be processed in the reading direction from right to left.
According to the method for adjusting the display content of the terminal device, the to-be-processed class corresponding to the application scene in the to-be-processed code is adjusted to the target class corresponding to the target scene, so that the display content can be matched with the target scene when the target code runs, and the display effect of the application software is optimized under the condition that the code is long.
Further, on the basis of any of the above embodiments, step 202 includes:
and aiming at each class to be processed, adding a preset class conversion function in a preset area around the class to be processed.
And converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
In this embodiment, in order to implement the conversion operation on the classes to be processed, a preset class conversion function may be added in a preset area around each class to be processed in the code to be processed. Alternatively, the class conversion function may be added before the class to be processed. After the conversion function is added, when the conversion function runs, the class to be processed can be converted into a target class matched with the target scene, and the adjusted target code is obtained.
Further, on the basis of any of the above embodiments, the adding a preset class conversion function in a preset area around the class to be processed includes:
and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
In this embodiment, a code modification plug-in may be preset, and during the running process, the code modification plug-in may add a preset class conversion function in a preset area around the class to be processed.
According to the method for adjusting the display content of the terminal device, the preset class conversion function is added in the preset area around the class to be processed, so that the conversion operation of the class to be processed can be effectively realized, the code processing efficiency is improved, and the display effect of the application software can be improved.
Further, on the basis of any of the above embodiments, the step 103 includes:
if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain an adjusted target code;
and matching the character reading direction of the adjusted target code with the preset language application scene during running.
In this embodiment, the preset target scene may be a preset language application scene, and in the language reference scene, the display content such as the reading direction of the text needs to be converted. Therefore, when the application scene is detected to be matched with the preset language application scene, the conversion operation can be performed on the to-be-processed class used for describing the character reading direction in the to-be-processed code, and the adjusted target code is obtained. When the target code runs, the character reading direction can be matched with the preset language application scene.
Fig. 3 is a schematic view of an application scenario provided by the embodiment of the present disclosure, and as shown in fig. 3, when the system language of the terminal device is chinese, the reading direction of the characters displayed on the display interface 31 is from left to right 32. After the code to be processed is processed, the reading direction of the text displayed on the display interface 33 is from right to left 34 when the target code is running.
Further, on the basis of any of the above embodiments, the step 103 includes:
if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code;
wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
In this embodiment, the target scene may specifically be a preset night display mode application scene. In the preset night display mode application scene, the display background of the application software needs to be adjusted. Specifically, when it is detected that the application scene matches a preset night display mode application scene, a conversion operation is performed on a to-be-processed class used for describing a display background in the to-be-processed code, so as to obtain an adjusted target code. When the object code is in operation, the adjusted object code display background is matched with the night display mode application scene in operation.
According to the method for adjusting the display content of the terminal device, the class to be processed corresponding to the application scene is converted according to different application scenes, so that the display content can be matched with the target scene when the target code runs, and the display effect of the application software is optimized under the condition of avoiding the redundancy of the code.
Fig. 4 is a schematic structural diagram of a device for adjusting display content of a terminal device according to a third embodiment of the present disclosure, and as shown in fig. 4, the device includes: an acquisition module 41, a determination module 42, an adjustment module 43, and an execution module 44. Specifically, the obtaining module 41 is configured to obtain a code to be processed. And the determining module 42 is configured to determine an application scenario corresponding to the to-be-processed code. An adjusting module 43, configured to, if the application scene matches at least one preset target scene, perform a conversion operation on a to-be-processed class corresponding to the application scene in the to-be-processed code, to obtain an adjusted target code. And the running module 44 is configured to run the object code to perform adjustment of display content in the object scene.
Further, on the basis of the third embodiment, the determining module is configured to: and carrying out identification operation on a target field for describing an application scene in the code to be processed. And determining an application scene corresponding to the code to be processed according to the target field. Wherein the application scene comprises at least one of a language application scene and a display mode application scene.
Further, on the basis of the third embodiment, the adjusting module is configured to: and identifying the classes to be processed corresponding to the application scenes in the codes to be processed to obtain at least one class to be processed. And converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
Further, on the basis of any of the above embodiments, the adjusting module is configured to: and aiming at each class to be processed, adding a preset class conversion function in a preset area around the class to be processed. And converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
Further, on the basis of any of the above embodiments, the adjusting module is configured to: and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
Further, on the basis of any of the above embodiments, the adjusting module is configured to: and if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain the adjusted target codes. And matching the character reading direction of the adjusted target code with the preset language application scene during running.
Further, on the basis of any of the above embodiments, the adjusting module is configured to: and if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code. Wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
In order to implement the above embodiments, an embodiment of the present disclosure further provides an electronic device, including: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for adjusting the display content of the terminal device according to any one of the embodiments.
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present disclosure, and as shown in fig. 5, the electronic device 500 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Still another embodiment of the present disclosure further provides a computer-readable storage medium, where a computer executing instruction is stored, and when a processor executes the computer executing instruction, the method for adjusting display content of a terminal device according to any one of the above embodiments is implemented.
Still another embodiment of the present disclosure provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for adjusting display content of a terminal device according to any of the above embodiments is implemented.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In a first aspect, according to one or more embodiments of the present disclosure, a terminal device display content adjusting method is provided, including:
acquiring a code to be processed;
determining an application scene corresponding to the code to be processed;
if the application scene is matched with at least one preset target scene, converting a class to be processed corresponding to the application scene in the codes to be processed to obtain an adjusted target code;
and executing the object code to perform adjustment of display content in the object scene.
According to one or more embodiments of the present disclosure, the determining an application scenario corresponding to the to-be-processed code includes:
carrying out identification operation on a target field for describing an application scene in the code to be processed;
determining an application scene corresponding to the code to be processed according to the target field;
wherein the application scene comprises at least one of a language application scene and a display mode application scene.
According to one or more embodiments of the present disclosure, the converting the to-be-processed class corresponding to the application scenario in the to-be-processed code to obtain an adjusted target code includes:
identifying a class to be processed corresponding to the application scene in the code to be processed to obtain at least one class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
According to one or more embodiments of the present disclosure, the converting the at least one class to be processed into a target class matching the target scene to obtain an adjusted target code includes:
adding a preset class conversion function in a preset area around each class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
According to one or more embodiments of the present disclosure, adding a preset class conversion function in a preset area around the class to be processed includes:
and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
According to one or more embodiments of the present disclosure, if the application scene matches at least one preset target scene, performing a conversion operation on a to-be-processed class corresponding to the application scene in the to-be-processed code to obtain an adjusted target code, including:
if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain an adjusted target code;
and matching the character reading direction of the adjusted target code with the preset language application scene during running.
According to one or more embodiments of the present disclosure, if the application scene matches at least one preset target scene, performing a conversion operation on a to-be-processed class corresponding to the application scene in the to-be-processed code to obtain an adjusted target code, including:
if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code;
wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
In a second aspect, according to one or more embodiments of the present disclosure, there is provided a terminal device display content adjusting apparatus including:
the acquisition module is used for acquiring a code to be processed;
the determining module is used for determining an application scene corresponding to the code to be processed;
the adjusting module is used for converting a class to be processed corresponding to the application scene in the codes to be processed if the application scene is matched with at least one preset target scene to obtain an adjusted target code;
and the running module is used for running the target code so as to adjust the display content in the target scene.
According to one or more embodiments of the present disclosure, the determining module is configured to:
carrying out identification operation on a target field for describing an application scene in the code to be processed;
determining an application scene corresponding to the code to be processed according to the target field;
wherein the application scene comprises at least one of a language application scene and a display mode application scene.
According to one or more embodiments of the present disclosure, the adjustment module is configured to:
identifying a class to be processed corresponding to the application scene in the code to be processed to obtain at least one class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
According to one or more embodiments of the present disclosure, the adjustment module is configured to:
adding a preset class conversion function in a preset area around each class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
According to one or more embodiments of the present disclosure, the adjustment module is configured to:
and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
According to one or more embodiments of the present disclosure, the adjustment module is configured to:
if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain an adjusted target code;
and matching the character reading direction of the adjusted target code with the preset language application scene during running.
According to one or more embodiments of the present disclosure, the adjustment module is configured to:
if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code;
wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the method for adjusting display content of a terminal device as set forth in the first aspect and various possible designs of the first aspect.
In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for adjusting display content of a terminal device according to the first aspect and various possible designs of the first aspect is implemented.
In a fifth aspect, according to one or more embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method for adjusting display content of a terminal device according to the first aspect and various possible designs of the first aspect
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (17)

1. A method for adjusting display content of a terminal device is characterized by comprising the following steps:
acquiring a code to be processed;
determining an application scene corresponding to the code to be processed;
if the application scene is matched with at least one preset target scene, converting a class to be processed corresponding to the application scene in the codes to be processed to obtain an adjusted target code;
and executing the object code to perform adjustment of display content in the object scene.
2. The method according to claim 1, wherein the determining the application scenario corresponding to the to-be-processed code comprises:
carrying out identification operation on a target field for describing an application scene in the code to be processed;
determining an application scene corresponding to the code to be processed according to the target field;
wherein the application scene comprises at least one of a language application scene and a display mode application scene.
3. The method according to claim 1, wherein the converting the to-be-processed class corresponding to the application scenario in the to-be-processed code to obtain an adjusted target code comprises:
identifying a class to be processed corresponding to the application scene in the code to be processed to obtain at least one class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
4. The method of claim 3, wherein converting the at least one class to be processed into a target class matching the target scene to obtain an adjusted target code comprises:
adding a preset class conversion function in a preset area around each class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
5. The method according to claim 4, wherein the adding of the preset class conversion function in the preset area around the class to be processed comprises:
and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
6. The method according to any one of claims 1 to 5, wherein if the application scene matches with at least one preset target scene, performing a conversion operation on a class to be processed corresponding to the application scene in the code to be processed to obtain an adjusted target code, includes:
if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain an adjusted target code;
and matching the character reading direction of the adjusted target code with the preset language application scene during running.
7. The method according to any one of claims 1 to 5, wherein if the application scene matches with at least one preset target scene, performing a conversion operation on a class to be processed corresponding to the application scene in the code to be processed to obtain an adjusted target code, includes:
if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code;
wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
8. A terminal device display content adjusting device is characterized by comprising:
the acquisition module is used for acquiring a code to be processed;
the determining module is used for determining an application scene corresponding to the code to be processed;
the adjusting module is used for converting a class to be processed corresponding to the application scene in the codes to be processed if the application scene is matched with at least one preset target scene to obtain an adjusted target code;
and the running module is used for running the target code so as to adjust the display content in the target scene.
9. The apparatus of claim 8, wherein the determining module is configured to:
carrying out identification operation on a target field for describing an application scene in the code to be processed;
determining an application scene corresponding to the code to be processed according to the target field;
wherein the application scene comprises at least one of a language application scene and a display mode application scene.
10. The apparatus of claim 8, wherein the adjustment module is configured to:
identifying a class to be processed corresponding to the application scene in the code to be processed to obtain at least one class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene to obtain an adjusted target code.
11. The apparatus of claim 10, wherein the adjustment module is configured to:
adding a preset class conversion function in a preset area around each class to be processed;
and converting the at least one class to be processed into a target class matched with the target scene through the class conversion function to obtain an adjusted target code.
12. The apparatus of claim 11, wherein the adjustment module is configured to:
and adding a preset class conversion function in a preset area around the class to be processed through a preset code modification plug-in.
13. The apparatus of any one of claims 8-12, wherein the adjustment module is configured to:
if the application scene is matched with a preset language application scene, converting the class to be processed for describing the character reading direction in the codes to be processed to obtain an adjusted target code;
and matching the character reading direction of the adjusted target code with the preset language application scene during running.
14. The apparatus of any one of claims 8-12, wherein the adjustment module is configured to:
if the application scene is matched with a preset night display mode application scene, converting the class to be processed for describing the display background in the code to be processed to obtain an adjusted target code;
wherein the adjusted object code displays a background matching a night display mode application scenario at runtime.
15. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the terminal device display content adjustment method according to any one of claims 1 to 7.
16. A computer-readable storage medium, wherein a computer-executable instruction is stored in the computer-readable storage medium, and when a processor executes the computer-executable instruction, the method for adjusting display content of a terminal device according to any one of claims 1 to 7 is implemented.
17. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements a method for display content adjustment for a terminal device according to any one of claims 1 to 7.
CN202210306592.4A 2022-03-25 2022-03-25 Terminal device display content adjusting method and device, storage medium and product Pending CN114816514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210306592.4A CN114816514A (en) 2022-03-25 2022-03-25 Terminal device display content adjusting method and device, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210306592.4A CN114816514A (en) 2022-03-25 2022-03-25 Terminal device display content adjusting method and device, storage medium and product

Publications (1)

Publication Number Publication Date
CN114816514A true CN114816514A (en) 2022-07-29

Family

ID=82531579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210306592.4A Pending CN114816514A (en) 2022-03-25 2022-03-25 Terminal device display content adjusting method and device, storage medium and product

Country Status (1)

Country Link
CN (1) CN114816514A (en)

Similar Documents

Publication Publication Date Title
CN110413812B (en) Neural network model training method and device, electronic equipment and storage medium
CN113377366B (en) Control editing method, device, equipment, readable storage medium and product
CN110287810B (en) Vehicle door motion detection method, device and computer readable storage medium
CN110211030B (en) Image generation method and device
CN110765354A (en) Information pushing method and device, electronic equipment and storage medium
CN110766780A (en) Method and device for rendering room image, electronic equipment and computer readable medium
CN111309617A (en) Application program control method and device, storage medium and electronic equipment
CN111310815A (en) Image recognition method and device, electronic equipment and storage medium
CN111325704A (en) Image restoration method and device, electronic equipment and computer-readable storage medium
CN112330788A (en) Image processing method, image processing device, readable medium and electronic equipment
CN112257582A (en) Foot posture determination method, device, equipment and computer readable medium
CN115767181A (en) Live video stream rendering method, device, equipment, storage medium and product
CN113535105B (en) Media file processing method, device, equipment, readable storage medium and product
CN114170342A (en) Image processing method, device, equipment and storage medium
CN111783632B (en) Face detection method and device for video stream, electronic equipment and storage medium
CN110414625B (en) Method and device for determining similar data, electronic equipment and storage medium
CN110705536A (en) Chinese character recognition error correction method and device, computer readable medium and electronic equipment
CN110765304A (en) Image processing method, image processing device, electronic equipment and computer readable medium
CN114816514A (en) Terminal device display content adjusting method and device, storage medium and product
CN111340813B (en) Image instance segmentation method and device, electronic equipment and storage medium
CN117437516A (en) Semantic segmentation model training method and device, electronic equipment and storage medium
CN114077372A (en) Information display method, device and storage medium
CN116501832A (en) Comment processing method and comment processing equipment
CN112418233A (en) Image processing method, image processing device, readable medium and electronic equipment
CN113222050A (en) Image classification method and device, readable medium 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