CN113946650A - Text display processing method and device, computer and readable storage medium - Google Patents

Text display processing method and device, computer and readable storage medium Download PDF

Info

Publication number
CN113946650A
CN113946650A CN202010691183.1A CN202010691183A CN113946650A CN 113946650 A CN113946650 A CN 113946650A CN 202010691183 A CN202010691183 A CN 202010691183A CN 113946650 A CN113946650 A CN 113946650A
Authority
CN
China
Prior art keywords
font
character
target
default
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010691183.1A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010691183.1A priority Critical patent/CN113946650A/en
Publication of CN113946650A publication Critical patent/CN113946650A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3349Reuse of stored results of previous queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results

Abstract

The embodiment of the application discloses a text display processing method, a text display processing device, a computer and a readable storage medium, wherein the method comprises the following steps: acquiring long text data to be displayed, acquiring target text characters from the long text data, and acquiring a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters; traversing the font cache library according to the target text characters and the mapping relation; if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as the target display font of the target text character; and if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring the target default font corresponding to the target text character from the default font library, and taking the target default font as the target display font of the target text character. By the method and the device, time consumed for obtaining the fonts corresponding to the text characters can be reduced, and text display efficiency is improved.

Description

Text display processing method and device, computer and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a text display processing method and apparatus, a computer, and a readable storage medium.
Background
With the development of the internet, more and more users communicate on line, and more data can be referred to on line, including text data, voice data, video data, and the like. When the application system performs typesetting display on text data, the application system generally sets text character attributes such as color, background color and bolding of text characters, then sets font of each text character when displaying, and then sequentially renders each text character in the text data according to the set text character attributes and font of each text character in the sequence of lines and writing directions of the text characters. That is, the process of displaying the layout of the text data may be divided into three steps, namely, setting the attribute of the text character, setting the font of the text character, and rendering the text data. The first step and the second step are required to be executed when the application system renders the text data each time, and the third step may be triggered multiple times when any application program in the application system is in use. Because the time consumed for obtaining the font corresponding to one text character is more, and the time consumed for displaying the text data is increased along with the increase of the number of the fonts existing in the application system, if the text data required to be displayed includes more text characters, a blank page or a situation that the text data cannot be displayed in response may occur, and the text data display effect is poor.
Disclosure of Invention
The embodiment of the application provides a text display processing method, a text display processing device, a computer and a readable storage medium, which can reduce the time consumed for obtaining fonts corresponding to text characters, and further improve the efficiency of text display processing and the fluency of text data display.
An embodiment of the present application provides a text display processing method, which includes:
acquiring long text data to be displayed, acquiring target text characters from the long text data, and acquiring a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters, the mapping relation is established through the relation between the text characters in the historical long text data and the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed;
traversing the font cache library according to the target text characters and the mapping relation;
if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character;
if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring a target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character; the font supporting relation comprises a supporting display relation and a matching failure relation, the supporting display relation is used for representing that the default font supports the target text characters to display, and the matching failure relation is used for representing that the default font does not support the target text characters to display.
Wherein the default font library comprises a first default font library; the first default font library is a font library which has an initial incidence relation with the application system;
detecting a font support relationship between a default font in a default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, wherein the method comprises the following steps:
acquiring at least two first default fonts in a first default font library, and acquiring the font priority of each first default font;
and sequentially detecting font support relations between the target text characters and at least two first default fonts based on the font priorities, setting the font support relations between the target text characters and the at least two first default fonts as the first default fonts supporting the display relations, and determining the font support relations as the target default fonts corresponding to the target text characters.
Wherein, obtaining the font priority of each first default font comprises:
acquiring a character type to which a target text character belongs, and acquiring a priority set corresponding to the character type;
the font priority for each first default font is determined from the set of priorities.
Wherein, obtaining the font priority of each first default font comprises:
the method comprises the steps of obtaining the number of text characters supported by each first default font, sequencing at least two first default fonts based on the number of the text characters supported by each first default font, and determining the font priority of each first default font according to the sequencing result.
Based on the font priority, sequentially detecting font support relations between the target text characters and at least two first default fonts, including:
obtaining a font matching component, and forming an element pair A to be matched by the target text character and the ith first default font in at least two first default fonts based on font priorityi(ii) a i is a positive integer, i is less than or equal to the number of the at least two first default fonts;
the element pair A to be matchediInputting a font matching component, and acquiring a pair A of elements to be matched by the font matching componentiThe matching result of (1);
if the matching result is a successful matching result, determining the support display relationship as a font support relationship between the target text character and the ith first default font;
and if the matching result is the matching failure result, determining the matching failure relation as the font support relation between the target text character and the ith first default font.
The default font library comprises a second default font library and a third default font library; the second default font library comprises all fonts in the application system; the third default font library comprises a character mapping table; the character mapping table comprises a mapping relation between the character type and a third default font;
detecting a font support relationship between a default font in a default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, wherein the method comprises the following steps:
acquiring a character type to which a target text character belongs;
if the character type of the target text character belongs to the first character type, acquiring a second default font library, sequentially detecting font support relations between the target text character and second default fonts in the second default font library based on the font arrangement sequence in the second default font library, and determining the font support relations between the target text character and the second default fonts in the second default font library as the second default fonts supporting the display relation, so as to determine the second default fonts as the target default fonts corresponding to the target text character;
if the character type to which the target text character belongs to the second character type, acquiring a character mapping table in a third default font library, and if a mapping relation associated with the character type to which the target text character belongs exists in the character mapping table, taking a third default font having a mapping relation with the character type to which the target text character belongs as a target default font corresponding to the target text character; the second character type is a character type other than the first character type among all character types.
Wherein, the method also comprises:
if the mapping relation associated with the character type to which the target text character belongs does not exist in the character mapping table, acquiring a second default font library, sequentially detecting font support relations between the target text character and the second default font in the second default font library based on the font arrangement sequence in the second default font library, and determining the font support relations between the target text character and the second default font in the second default font library as the second default font supporting the display relation to be the target default font corresponding to the target text character.
Wherein, the method also comprises:
acquiring historical display frequency of the character type, and if the historical display frequency is greater than a display frequency threshold, determining the character type as a first character type;
and if the historical display frequency is less than or equal to the display frequency threshold value, determining the character type as a second character type.
Wherein, the method also comprises:
the method comprises the steps of obtaining at least two second default fonts included in a second default font library, obtaining historical use times of each second default font, sequencing the at least two second default fonts based on the historical use times, and determining the font arrangement sequence in the second default font library.
Wherein, the method also comprises:
and establishing a target mapping relation between the target default font and the target text character, and adding the target mapping relation to a font cache library.
Wherein, the method also comprises:
acquiring historical long text data, traversing the historical long text data, and acquiring text characters and display fonts for displaying the text characters included in the historical long text data;
and counting the use frequency of the display fonts, taking the display font with the maximum use frequency as a cache font of the text characters, establishing a mapping relation between the text characters and the cache font, and storing the mapping relation into a font cache library.
The method for acquiring the long text data to be displayed and acquiring the target text characters from the long text data comprises the following steps:
acquiring long text data to be displayed, and acquiring size information and a text display format of a display area; the size information comprises the display width and the display height of the display area, and the text display format comprises a display line spacing, a paragraph first character display format and a display margin;
determining the display line number in the display area according to the display height, the display margin and the display line spacing;
determining the line display character number of each line in the display area according to the display width, the display margin and the first character display format of the paragraph;
and acquiring a text to be displayed from the long text data based on the display line number and the line display character number of each line, and sequentially taking text characters in the text to be displayed as target text characters.
Wherein, the method also comprises:
acquiring a display position of the first character in the display area, and rendering a target text character in the display area according to the display position of the first character and a target display font; the first character display position is determined based on the size information, the display margin, and the first character display format of the paragraph.
Wherein rendering the target text character in the display area according to the first character display position and the target display font includes:
acquiring a text position of a target text character in a text to be displayed, and determining a target character display position of the target text character in a display area according to the first character display position and the text position;
at the target character display position, the target text character is rendered based on the target display font.
An embodiment of the present application provides a text display processing apparatus in one aspect, where the apparatus includes:
the element acquisition module is used for acquiring long text data to be displayed, acquiring target text characters from the long text data and acquiring a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters, the mapping relation is established through the relation between the text characters in the historical long text data and the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed;
the font traversal module is used for traversing the font cache library according to the target text characters and the mapping relation;
the font determining module is used for taking the target cache font as a target display font for rendering the target text character if the target cache font corresponding to the target text character is traversed in the font cache library;
the font matching module is used for acquiring a default font library if a target cache font corresponding to the target text character is not traversed in the font cache library, detecting a font support relation between the default font in the default font library and the target text character, acquiring a target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character; the font supporting relation comprises a supporting display relation and a matching failure relation, the supporting display relation is used for representing that the default font supports the target text characters to display, and the matching failure relation is used for representing that the default font does not support the target text characters to display.
Wherein the default font library comprises a first default font library; the first default font library is a font library which has an initial incidence relation with the application system;
in detecting a font support relationship between a default font in a default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, the font matching module comprises:
the priority determining unit is used for acquiring at least two first default fonts in the first default font library and acquiring the font priority of each first default font;
and the matching detection unit is used for sequentially detecting font support relations between the target text characters and at least two first default fonts based on the font priorities, setting the font support relations between the target text characters and the first default fonts as the first default fonts supporting the display relation, and determining the font support relations as the target default fonts corresponding to the target text characters.
Wherein, in obtaining the font priority of each first default font, the priority determination unit includes:
the set acquisition subunit is used for acquiring the character type to which the target text character belongs and acquiring a priority set corresponding to the character type;
a priority determining subunit, configured to determine a font priority of each first default font according to the set of priorities.
Wherein, in obtaining the font priority of each first default font, the priority determination unit includes:
the font sorting subunit is configured to acquire the number of text characters supported by each first default font, sort at least two first default fonts based on the number of text characters supported by each first default font, and determine a font priority of each first default font according to a sorting result.
Wherein, in detecting font support relationships between the target text character and the at least two first default fonts in sequence based on the font priorities, the matching detection unit comprises:
the component acquiring subunit is used for acquiring the font matching component, and forming the element pair A to be matched by the target text character and the ith first default font in the at least two first default fonts based on the font priorityi(ii) a i is a positive integer, i is less than or equal to the number of the at least two first default fonts;
a component processing subunit for processing the element pair A to be matchediInputting a font matching component, and acquiring a pair A of elements to be matched by the font matching componentiThe matching result of (1);
the result obtaining subunit is configured to determine, if the matching result is a successful matching result, the support display relationship as a font support relationship between the target text character and the ith first default font;
the result obtaining subunit is further configured to determine, if the matching result is a matching failure result, the matching failure relationship as a font support relationship between the target text character and the ith first default font.
The default font library comprises a second default font library and a third default font library; the second default font library comprises all fonts in the application system; the third default font library comprises a character mapping table; the character mapping table comprises a mapping relation between the character type and a third default font;
in detecting a font support relationship between a default font in a default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, the font matching module comprises:
the type obtaining unit is used for obtaining the character type of the target text character;
the first detection unit is used for acquiring a second default font library if the character type to which the target text character belongs to the first character type, sequentially detecting font support relationships between the target text character and the second default font in the second default font library based on the font arrangement sequence in the second default font library, and determining the font support relationship between the target text character and the second default font in the second default font library as the second default font supporting the display relationship, so as to determine the second default font as the target default font corresponding to the target text character;
the second detection unit is used for acquiring a character mapping table in a third default font library if the character type to which the target text character belongs to the second character type, and taking a third default font which has a mapping relation with the character type to which the target text character belongs as a target default font corresponding to the target text character if the mapping relation with the character type to which the target text character belongs exists in the character mapping table; the second character type is a character type other than the first character type among all character types.
Wherein, this typeface matching module still includes:
and the third detection unit is used for acquiring a second default font library if the mapping relation associated with the character type to which the target text character belongs does not exist in the character mapping table, sequentially detecting the font support relation between the target text character and the second default font in the second default font library based on the font arrangement sequence in the second default font library, setting the font support relation between the target text character and the second default font in the second default font library as the second default font supporting the display relation, and determining the second default font as the target default font corresponding to the target text character.
Wherein, the device still includes:
the frequency comparison module is used for acquiring the historical display frequency of the character type, and if the historical display frequency is greater than a display frequency threshold, the character type is determined as a first character type;
the frequency comparison module is further configured to determine the character type as a second character type if the historical display frequency is less than or equal to the display frequency threshold.
Wherein, the device still includes:
the order determining module is configured to obtain at least two second default fonts included in the second default font library, obtain historical usage times of each second default font, sort the at least two second default fonts based on the historical usage times, and determine a font arrangement order in the second default font library.
Wherein, the device still includes:
and the mapping cache module is used for establishing a target mapping relation between the target default font and the target text character and adding the target mapping relation to the font cache library.
Wherein, the device still includes:
the historical data acquisition module is used for acquiring historical long text data, traversing the historical long text data and acquiring text characters and display fonts for displaying the text characters included in the historical long text data;
and the font cache generating module is used for counting the use frequency of the display fonts, taking the display font with the maximum use frequency as the cache font of the text character, establishing the mapping relation between the text character and the cache font, and storing the mapping relation to the font cache library.
In obtaining long text data to be displayed and obtaining target text characters from the long text data, the element obtaining module includes:
the format acquisition unit is used for acquiring long text data to be displayed and acquiring size information and a text display format of a display area; the size information comprises the display width and the display height of the display area, and the text display format comprises a display line spacing, a paragraph first character display format and a display margin;
the line number determining unit is used for determining the display line number in the display area according to the display height, the display margin and the display line spacing;
the character counting unit is used for determining the line display character number of each line in the display area according to the display width, the display margin and the first character display format of the paragraph;
and the character determining unit is used for acquiring a text to be displayed from the long text data based on the display line number and the line display character number of each line, and sequentially taking the text characters in the text to be displayed as target text characters.
Wherein, the device still includes:
the character rendering module is used for acquiring a display position of the first character in the display area and rendering a target text character in the display area according to the display position of the first character and a target display font; the first character display position is determined based on the size information, the display margin, and the first character display format of the paragraph.
Wherein, in rendering the target text character in the display area according to the first character display position and the target display font, the character rendering module includes:
the position determining unit is used for acquiring the text position of the target text character in the text to be displayed and determining the target character display position of the target text character in the display area according to the first character display position and the text position;
a character display unit for rendering the target text character based on the target display font at the target character display position.
One aspect of the embodiments of the present application provides a computer device, including a processor, a memory, and an input/output interface;
the processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for receiving data and outputting data, the memory is used for storing program codes, and the processor is used for calling the program codes to execute the text display processing method in one aspect of the embodiment of the application.
An aspect of the embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the method for processing text display in the aspect of the embodiments of the present application is performed.
An aspect of an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternatives in one aspect of the embodiments of the application.
The embodiment of the application has the following beneficial effects:
the method comprises the steps of obtaining long text data to be displayed, obtaining target text characters in the long text data, and obtaining a font cache library, wherein the font cache library comprises a mapping relation between cache fonts and text characters, and the mapping relation is determined according to the display conditions of the cache fonts and the text characters in historical long text data; traversing the font cache library according to the target text characters and the mapping relation; if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character; if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring the target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character. Through the process, the font corresponding to the target text character is acquired, wherein the time required for acquiring the font corresponding to the target text character through the font cache library is short, so that the time consumed for acquiring the font corresponding to the text character can be reduced when text data is displayed through the text display method and the text display processing efficiency is improved. Meanwhile, the time consumed by text display processing is reduced, so that the fluency of text data display is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of a network architecture for a text display process according to an embodiment of the present application;
fig. 2 is a schematic view of a scene of text display processing provided in an embodiment of the present application;
fig. 3 is a flowchart of a text display processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a font obtaining scene according to an embodiment of the present application;
fig. 5 is a scene schematic diagram of an example of font acquisition provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a character font matching process provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of a text display processing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the text data processed by the embodiment of the application is large (that is, the text data includes many text characters), technologies such as data transmission in the field of large data can be used for data interaction between the local terminal and the server, that is, the text data and the like are acquired from the server, and text display processing is performed on each text character included in the text data, so that the efficiency of text display processing is improved. The font cache library, the default font library and the like mentioned in the embodiment of the application can be stored based on a cloud storage technology in a cloud technology, so that the storage space of the local terminal is saved and the like.
The Cloud technology (Cloud technology) is a hosting technology for unifying series resources such as hardware, software, network and the like in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud technology (Cloud technology) is based on a general term of network technology, information technology, integration technology, management platform technology, application technology and the like applied in a Cloud computing business model, can form a resource pool, is used as required, and is flexible and convenient. Cloud computing technology will become an important support. Background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture-like websites and more web portals. With the high development and application of the internet industry, each article may have its own identification mark and needs to be transmitted to a background system for logic processing, data in different levels are processed separately, and various industrial data need strong system background support and can only be realized through cloud computing.
The distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system which integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network through application software or application interfaces to cooperatively work through functions such as cluster application, grid technology, distributed storage file system and the like, and provides data storage and service access functions to the outside.
At present, a storage method of a storage system is as follows: logical volumes are created, and when created, each logical volume is allocated physical storage space, which may be the disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data identification (ID, ID entry), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is divided in advance into stripes according to a group of capacity measures of objects stored in a logical volume (the measures often have a large margin with respect to the capacity of the actual objects to be stored) and Redundant Array of Independent Disks (RAID), and one logical volume can be understood as one stripe, thereby allocating physical storage space to the logical volume.
Further, Big data (Big data) refers to a data set which cannot be captured, managed and processed by a conventional software tool within a certain time range, and is a massive, high-growth rate and diversified information asset which needs a new processing mode to have stronger decision-making power, insight discovery capability and process optimization capability. With the advent of the cloud era, big data has attracted more and more attention, and the big data needs special technology to effectively process a large amount of data within a tolerance elapsed time. The method is suitable for the technology of big data, and comprises a large-scale parallel processing database, data mining, a distributed file system, a distributed database, a cloud computing platform, the Internet and an extensible storage system.
Optionally, please refer to fig. 1, where fig. 1 is a network architecture diagram of text display processing provided in an embodiment of the present application, and the embodiment of the present application may be implemented by a computer device, where the computer device may be composed of a server and a terminal device; the computer device may also be a server or a terminal device, which is not limited herein. The embodiment of the application is suitable for any application program capable of displaying text data. The computer device may retrieve the text data from a server.
When the local terminal 101 runs the application program, the local terminal may acquire text data from the server corresponding to the application program, sequentially use text characters in the text data as target text characters, determine a target display font of the target text characters, and display the text data based on the target display font of each text character. The local terminal 101 is a computer device. For example, the application programs in the local terminal 101 include an application program 1, an application program 2, and an application program 3, where the application program 1 corresponds to the server 102a, the application program 2 corresponds to the server 102b, and the application program 3 corresponds to the server 102c, and each server may store data generated by the corresponding application program.
For example, when the local terminal 101 runs the application 1 and text data needs to be displayed in the application 1, the local terminal 101 obtains the text data that needs to be displayed from the server 102a corresponding to the application 1, sequentially uses text characters in the text data as target text characters, searches for a target cache font corresponding to the target text characters from a font cache library, and if the target cache font corresponding to the target text characters is found, may use the target cache font as a target display font of the target text characters; and if the target cache font corresponding to the target text character does not exist in the font cache library, acquiring the font corresponding to the target text character from the default font library. Because the font corresponding to the target text character is searched in the font cache library, only less time is consumed, and therefore, when the font corresponding to the target text character cannot be searched in the font cache library, the font corresponding to the target text character can be searched in the default font library, the time consumed for obtaining the font corresponding to the text character can be reduced, and the efficiency of text display processing and the fluency of text data display are improved.
It is understood that the computer device mentioned in the embodiments of the present application includes, but is not limited to, a terminal device or a server. In other words, the computer device may be a server or a terminal device, or may be a system of a server and a terminal device. The above-mentioned terminal device may be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm-top computer, an Augmented Reality/Virtual Reality (AR/VR) device, a helmet-mounted display, a wearable device, a smart speaker, and other Mobile Internet Devices (MID) with network access capability.
Further, please refer to fig. 2, and fig. 2 is a schematic view of a scene of text display processing according to an embodiment of the present application. As shown in fig. 2, the local terminal obtains text data 201, determines a text to be displayed in the text data 201, sequentially uses text characters in the text to be displayed as target text characters, and obtains a font cache library 202. Detecting whether a font corresponding to the target text character exists in the font cache library 202, if the font corresponding to the target text character exists in the font cache library 202, marking the font as the target cache font corresponding to the target text character, and determining the target cache font as a target display font of the target text character, wherein the target display font is used for rendering the target text character; if the font corresponding to the target text character does not exist in the font cache library 202, the default font library 203 is obtained, the target default font corresponding to the target text character is obtained from the default font library 203, and the target default font is determined as the target display font of the target text character so as to render the target text character. And in the same way, the display fonts of all the text characters in the text to be displayed are obtained, and the corresponding text characters are displayed according to all the display fonts. Through the process, the text data is displayed, because the font corresponding to each text character is searched in the font cache library in the process of displaying the text data, when the font corresponding to the text character does not exist in the font cache library, the font corresponding to the text character is obtained from the default font library, so that the time consumed for obtaining the font corresponding to the text character is reduced, and the efficiency of text display processing is improved.
The font cache library and the default font library and the like mentioned in the embodiment of the present application may be stored in a storage space of the local terminal itself, or may also be stored in a server corresponding to an application program run by the local terminal, or the font cache library and the default font library may also be stored by using a cloud storage technology, which is not limited herein.
Further, please refer to fig. 3, where fig. 3 is a flowchart of a text display processing method according to an embodiment of the present application. As shown in fig. 3, the text display processing procedure includes the steps of:
step S301, obtaining long text data to be displayed, obtaining target text characters from the long text data, and obtaining a font cache library.
In this embodiment, the local terminal obtains a target text character and a font cache library, where the font cache library includes a mapping relationship between cached fonts and text characters. The local terminal obtains the target text character and obtains a font cache library used for searching a font corresponding to the target text character. Optionally, there may be at least two font cache libraries, where the at least two font cache libraries correspond to an application program respectively, for example, 5 application programs (including the application program 1 to the application program 5) are installed in the local terminal, and each application program corresponds to a font cache library respectively, that is, there are 5 font cache libraries, when the local terminal runs the application program 1, the local terminal needs to display text data in the application program 1, obtain the font cache library corresponding to the application program 1, and take each text character in the text data that the local terminal needs to display as a target text character in sequence, and different application programs correspond to different font cache libraries, so that the same text data can have different display effects for different application programs, so as to improve the diversity of character display effects, so that different application programs can have different display styles, thereby improving the individuation of different application programs; optionally, there may be a font cache library, when the local terminal needs to display the text data, each text character in the text data is sequentially used as a target text character to obtain the font cache library, when a plurality of application programs share one font cache library, a storage space used by the font cache library may be reduced, resources are saved, it is not necessary to search for a corresponding font cache library according to the application programs, and further, the efficiency of text display processing is improved, further, when the font cache library is stored in the local terminal, because the storage space used by the font cache library is reduced, thereby the operating efficiency of the local terminal may be improved.
The mapping relation between the cache fonts and the text characters in the font cache library is created through the relation between the text characters in the long history text data and the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed in the long history text data. Furthermore, historical long text data can be obtained, the historical long text data is traversed, and text characters and display fonts for displaying the text characters included in the historical long text data are obtained; and counting the use frequency of the display fonts, taking the display font with the maximum use frequency as a cache font of the text character, establishing a mapping relation between the text character and the cache font, and storing the mapping relation to a font cache library. When the display font comprises a font, the display font can be directly used as a cache font of the text character. Optionally, a mapping relationship preset manually may also be obtained, and the preset mapping relationship is added to the font cache library. The mapping relation contained in the font cache library represents that the cache font corresponding to the mapping relation supports the text character to be displayed, so that when the target cache font having the mapping relation with the target text character is found in the font cache library, the target cache font can be considered to support the target text character to be displayed, the font support relation between the target text character and the target cache font does not need to be detected, the time consumed for obtaining the font corresponding to the text character can be reduced, and the text display efficiency is improved.
The method comprises the steps of obtaining size information and a text display format of a display area, wherein the size information comprises the display width and the display height of the display area, and the text display format comprises a display line interval, a paragraph first character display format and a display margin. Determining the display line number in the display area according to the display height, the display margin and the display line spacing; determining the line display character number of each line in the display area according to the display width, the display margin and the first character display format of the paragraph; and acquiring a text to be displayed from the long text data to be displayed based on the number of display lines and the number of line display characters of each line, and sequentially taking text characters in the text to be displayed as target text characters.
Optionally, the text display format may also include a character size and the like. The display line spacing is the spacing between lines when the local terminal displays text data, and includes but is not limited to a single line spacing, a 1.15-time line spacing, a 1.5-time line spacing, a fixed value line spacing and the like; the paragraph initial character display format is used for indicating the format of the initial character of each paragraph when the local terminal displays the text data, such as the first line indentation fixed character, the suspension indentation fixed character or no indentation and the like; the display margin is used for indicating the distance between the text data and the region boundary of the display region when the local terminal displays the text data.
Optionally, the local terminal may determine a character display range of the text data display according to the acquired text display format, for example, acquire a character display height through the display height and the display margin, and determine a display line number in the display area based on the character display height and the display line spacing, where the display line number may be a ratio of the character display height to the display line spacing. Further, when the display line spacing is a multiple line spacing such as a single line spacing or a 1.15 line spacing, the local terminal may determine the line height according to the multiple line spacing and the character size, and determine the display line number in the display area based on the character display height and the line height. Similarly, the character display width may be determined according to the display width and the display margin, and the number of line display characters of each line in the display area may be determined according to the character display width, the first character display format of the paragraph, and the character size. The local terminal can determine the number of text characters to be displayed according to the acquired number of display lines and the number of line display characters, acquire a text to be displayed from text data based on the number of text characters, sequentially use the text characters in the text to be displayed as target text characters, and acquire a font cache library.
Optionally, when the text to be displayed is obtained from the text data based on the number of text characters, when the text data is in an undisplayed state, the text characters are sequentially obtained from a first text character of the text data, and the text to be displayed is determined, where the number of text characters included in the text to be displayed is equal to the number of text characters. When the text data is in a half-display state, sequentially acquiring text characters from a character initial rendering position of the text data, and determining a text to be displayed; the character starting rendering position is used for representing a position where rendering is stopped when the text data is rendered last time, for example, when rendering is stopped at a 10 th text character of the 2 nd paragraph when the text data is rendered last time, the 10 th text character of the 2 nd paragraph is determined as the character starting rendering position, and when the text data is rendered this time, the text characters are sequentially obtained from the 10 th text character of the 2 nd paragraph to determine the text to be displayed.
Optionally, please refer to fig. 4, where fig. 4 is a schematic diagram of a font obtaining scene provided in an embodiment of the present application. As shown in fig. 4, the local terminal 402 acquires text data sent by the server 401, displays the text data in the text data display page 403, acquires the display area 4031 in the text data display page 403, acquires the size information of the display area 4031, including the display height 3a and the display width 3b of the display area 4031, and acquires the text display format. The text display format includes a display line space 3e, a paragraph first character display format, and a display margin, and the display margin includes a display height margin 3c and a display width margin 3 d. The local terminal can acquire the character display height 3f according to the display height margin 3c and the display height 3a, and determine the display line number in the display area 4031 according to the character display height 3f and the display line spacing 3 e. Similarly, the local terminal may determine the character display width 3g according to the display width 3b and the display width margin 3 d. The number of line display characters of each line in the display area 4031 is determined according to the character display width 3g, the paragraph first character display format, and the character size, and the number of text characters to be displayed is determined according to the number of display lines and the number of line display characters. Acquiring a character initial rendering position, sequentially acquiring text characters from the text data 404 based on the character initial rendering position, determining a text 405 to be displayed, sequentially taking the text characters in the text 405 to be displayed as target text characters 406, and acquiring a font cache 407.
Step S302, traversing the font cache library according to the mapping relation between the target text characters and the font cache library.
Optionally, a mapping relationship in a font cache library is obtained, where the mapping relationship is a mapping relationship between cache fonts and text characters, the font cache library is traversed based on the mapping relationship, a target mapping relationship associated with a target text character is searched for, if the font cache library has the target mapping relationship associated with the target text character, it is determined that a target cache font corresponding to the target text character is traversed in the font cache library, and step S303 is executed, where the target cache font refers to a cache font indicated by the target mapping relationship; if the target mapping relationship associated with the target text character does not exist in the font cache library, it is determined that the target cache font corresponding to the target text character is not traversed in the font cache library, and step S304 is executed.
For example, referring to fig. 4, the local terminal traverses the font cache library 407, searches for a cache font having a mapping relationship with the target text character 406, and if a target cache font corresponding to the target text character is traversed in the font cache library 407, step S303 is executed to use the target cache font as a target display font for rendering the target text character; if the target cache font corresponding to the target text character is not traversed in the font cache library 407, step S304 is executed to obtain the default font library 408, obtain the target default font corresponding to the target text character from the default font library 408, and use the target default font as the target display font for rendering the target text character.
Further, referring to fig. 5, fig. 5 is a scene schematic diagram of an example of font acquisition provided in the embodiment of the present application. As shown in fig. 5, the font cache library 501 includes a mapping relation 502 between cache fonts and text characters, and it is assumed that the mapping relation 502 in the font cache library 501 includes a mapping relation 1 between a text character 1 and a cache font 1, a mapping relation 2 between a text character 2 and a cache font 2, a mapping relation 3 between a text character 3 and a cache font 3, a mapping relation n between a text character n and a cache font n, and the like, where n is a positive integer. The local terminal traverses the font cache library 501, and if the target mapping relationship associated with the target text character is obtained from the font cache library 501, step S303 is executed; if the target mapping relationship associated with the target text character is not obtained from the font cache library 501, step S304 is executed.
Optionally, assuming that the target text character is a text character 3, the local terminal traverses the font cache library 501, obtains a mapping relationship 1 between the text character 1 and the cache font 1, and determines that the mapping relationship 1 is not associated with the target text character; acquiring a mapping relation 2 between a text character 2 and a cache font 2, and determining that the mapping relation 2 is not associated with a target text character; acquiring a mapping relation 3 between the text character 3 and the cache font 3, determining that the mapping relation 3 is associated with the target text character, determining the mapping relation 3 as a target mapping relation 503, and executing step S303. Or, assuming that a mapping relation 1 between the text character 1 and the cache font 1 is obtained, determining that the mapping relation 1 is not associated with the target text character; acquiring a mapping relation 2 between a text character 2 and a cache font 2, and determining that the mapping relation 2 is not associated with a target text character; acquiring a mapping relation 3 between a text character 3 and a cache font 3, and determining that the mapping relation 3 is not associated with a target text character; …, respectively; acquiring a mapping relation n between a text character n and a cache font n, determining that the mapping relation n is not associated with a target text character, determining that a target cache font corresponding to the target text character is not traversed in a font cache library, executing step S304, acquiring a default font library 504, acquiring a target default font corresponding to the target text character from the default font library 504, and using the target default font as a target display font for rendering the target text character (see a process shown by a dotted line in fig. 5).
Step S303, if the target cache font corresponding to the target text character is traversed in the font cache library, using the target cache font as a target display font for rendering the target text character.
Optionally, if a target cache font corresponding to the target text character is traversed in the font cache library, the target cache font is used as a target display font of the target text character, and the target display font is used for rendering the target text character. For example, referring to fig. 5, taking the example that the font cache library 501 in fig. 5 includes the target mapping relation 503 associated with the target text character, the target mapping relation 503 is a mapping relation between the text character 3 and the cache font 3, and the local terminal determines the cache font 3 in the target mapping relation 503 as the target display font of the target text character.
Step S304, if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relationship between the default font in the default font library and the target text character, acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, and taking the target default font as a target display font for rendering the target text character.
Optionally, the font support relationship includes a support display relationship and a matching failure relationship, where the support display relationship is used to represent that a default font can be supported, and a font support relationship between the default font and the default font is displayed for a text character in the support display relationship, for example, if the font support relationship between the default font 1 and the text character 1 is the support display relationship, the default font 1 may support the text character 1 to be displayed; the matching failure relationship is used for representing the text character, and when the default font with the font support relationship with the text character being the matching failure relationship is displayed, the display will fail, that is, the matching failure relationship is used for representing that the default font does not support the target text character to be displayed, for example, when the font support relationship between the default font 2 and the text character 2 is the matching failure relationship, if the text character 2 is displayed in the default font 2, the text character 2 cannot be normally displayed.
Further, the default font library comprises a first default font library; the first default font library is a font library having an initial association relation with the application system, and the initial association relation is a font library carried by the application system when the application system is installed on the local terminal. Optionally, the local terminal detects a font support relationship between a default font in the default font library and the target text character, acquires at least two first default fonts in the first default font library when the target default font corresponding to the target text character is acquired in the default font library according to the font support relationship, and acquires the font priority of each first default font; and sequentially detecting font support relations between the target text characters and at least two first default fonts based on the font priorities, setting the font support relations between the target text characters and the at least two first default fonts as the first default fonts supporting the display relations, and determining the font support relations as the target default fonts corresponding to the target text characters. Optionally, the local terminal obtains a font priority of each first default font in the first default font library, sorts each first default font based on the font priority, sequentially detects font support relationships between the target text character and at least two first default fonts based on the sorted first default fonts until the font support relationship between the target text character and the obtained first default font is the first default font supporting the display relationship, and determines the first default font as the target default font corresponding to the target text character.
The local terminal can acquire the character type to which the target text character belongs, acquire a priority set corresponding to the character type, and determine the font priority of each first default font according to the priority set. The character type may be a language type, etc., such as a chinese type, an english type, a korean type, a japanese type, etc. Optionally, different character types correspond to different sets of priorities. Optionally, there may be a priority set, and the local terminal may obtain the priority set and determine the font priority of each first default font based on the priority set. Optionally, the historical usage times of each first default font may be counted, the local terminal sorts each first default font based on the counted historical usage times, and determines the font priority of each first default font according to the sorting result.
Optionally, when generating the default font, the text characters supported by the default font are determined. The local terminal may obtain the number of text characters supported by each first default font, sequence the at least two first default fonts based on the number of text characters supported by each first default font, and determine the font priority of each first default font according to the sequencing result.
Further, the local terminal may obtain a font matching component, and based on the font priority, combine the target text character and the ith first default font of the at least two first default fonts to form an element pair a to be matchedi(ii) a i is a positive integer, and i is less than or equal to the number of the at least two first default fonts. The element pair A to be matchediInputting a font matching component, and acquiring a pair A of elements to be matched by the font matching componentiThe matching result of (1). If the matching result is a successful matching result, determining the support display relationship as a font support relationship between the target text character and the ith first default font; and if the matching result is the matching failure result, determining the matching failure relation as the font support relation between the target text character and the ith first default font. Wherein the output result of the font matching component may be boolean data, for example, the output result of the font matching component is 0 or 1, where 0 represents a matching failure result and 1 represents a matching success result; the local terminal couples the elements to be matched with AiInputting a font matching component, and acquiring a pair A of elements to be matched by the font matching componentiIf the output result is 1, determining the element pair A to be matchediDetermining the support display relationship as the font support relationship between the target text character and the ith first default font; if the output result is 0, determining the element pair A to be matchediAnd if the matching result is the matching failure result, determining the matching failure relation as the font support relation between the target text character and the ith first default font.
Further, the default font library comprises a second default font library and a third default font library; the second default font library comprises all fonts in the application system; the third default font library comprises a character mapping table; the character mapping table comprises a mapping relation between the character type and a third default font; and the number of the second default fonts included in the second default font library is greater than the number of the first default fonts included in the first default font library. Optionally, the local terminal detects a font support relationship between a default font in the default font library and the target text character, when the target default font corresponding to the target text character is obtained in the default font library according to the font support relationship, the local terminal obtains a character type to which the target text character belongs, if the character type to which the target text character belongs is of the first character type, obtains a second default font library, sequentially detects a font support relationship between the target text character and the second default font in the second default font library based on a font arrangement sequence in the second default font library, and determines the font support relationship between the target text character and the second default font in the second default font library as the second default font supporting the display relationship, so as to determine the target default font corresponding to the target text character. If the character type to which the target text character belongs to the second character type, acquiring a character mapping table in a third default font library, and if a mapping relation associated with the character type to which the target text character belongs exists in the character mapping table, taking a third default font having a mapping relation with the character type to which the target text character belongs as a target default font corresponding to the target text character; the second character type is a character type other than the first character type among all character types.
If the mapping relation associated with the character type to which the target text character belongs does not exist in the character mapping table in the third default font library, acquiring a second default font library, sequentially detecting the font support relation between the target text character and the second default font in the second default font library based on the font arrangement sequence in the second default font library, setting the font support relation between the target text character and the second default font in the second default font library as the second default font supporting the display relation, and determining the second default font as the target default font corresponding to the target text character.
The local terminal can also acquire historical display frequency of the character type, and if the historical display frequency is greater than a display frequency threshold, the character type is determined as a first character type; and if the historical display frequency is less than or equal to the display frequency threshold value, determining the character type as a second character type. For example, when the acquired character type is the chinese type, if the historical display frequency of the acquired chinese type is greater than the display frequency threshold, the chinese type is determined to be the first character type.
The local terminal acquires at least two second default fonts included in the second default font library, acquires the historical use times of each second default font, sorts the at least two second default fonts based on the historical use times, and determines the font arrangement sequence in the second default font library.
Further, the local terminal may obtain a first default font library, sequentially detect font support relationships between the target text character and at least two first default fonts, and determine, if the obtained font support relationship with the target text character is the first default font supporting the display relationship, the first default font as the target default font corresponding to the target text character; and if the font support relations between the target text character and the at least two first default fonts are matching failure relations, acquiring the character type of the target text character. And if the character type of the target text character belongs to the first character type, acquiring a target default font corresponding to the target text character from a second default font library. If the character type of the target text character belongs to the second character type, searching a third default font corresponding to the target text character from a third default font library, and if the third default font corresponding to the target text character exists in the third default font library, taking the third default font as the target default font corresponding to the target text character; and if the third default font corresponding to the target text character does not exist in the third default font library, acquiring the target default font corresponding to the target text character from the second default font library.
Optionally, referring to fig. 6, fig. 6 is a schematic diagram of a character font matching process provided in the embodiment of the present application. As shown in fig. 6, the process includes the steps of:
step S602, detecting whether a target cache font corresponding to the target text character is traversed in the font cache library.
Optionally, the local terminal obtains the target text character, obtains the font cache library 601, traverses the font cache library 601, and detects whether a target cache font corresponding to the target text character is traversed in the font cache library 601, specifically referring to descriptions in step S301 to step S302 in fig. 3. If the target cache font corresponding to the target text character is traversed in the font cache library 601, determining the target cache font as the target display font of the target text character, specifically referring to the description in step S303 in fig. 3; if the target cache font corresponding to the target text character is not traversed in the font cache library 601, a first default font library 603 is obtained, and step S604 is executed.
Step S604, it is detected whether the font supporting relationship exists in the first default font library as the first default font supporting the display relationship.
Optionally, the local terminal detects at least two first default fonts in the first default font library, and sequentially detects font support relationships between the target text character and the at least two first default fonts. If the font support relationship in the first default font library is a first default font supporting the display relationship, determining the first default font as a target default font corresponding to the target text character, and taking the target default font as the target display font of the target text character; if the font support relationships between the at least two first default fonts and the target text characters in the first default font library are all matching failure relationships, step S605 is executed. For the step, reference may be made to the detailed description shown in step S304 in fig. 3, which is not described herein again.
Step S605, a character type to which the target text character belongs is acquired.
Optionally, the local terminal may obtain a character type to which the target text character belongs. If the character type belongs to the first character type, acquiring a second default font library 606, acquiring a second default font, of which the font support relationship with the target text character is the support display relationship, from the second default font library 606, as a target default font corresponding to the target text character, and taking the target default font as the target display font of the target text character; if the character type belongs to the second character type, a third default font library 607 is obtained, and step S608 is executed.
Step S608, detecting whether a mapping relationship associated with the character type to which the target text character belongs exists in the third default font library.
Optionally, if it is detected that a mapping relationship associated with the character type to which the target text character belongs exists in the third default font library 607, taking the third default font in the mapping relationship associated with the character type to which the target text character belongs as the target default font of the target text character, and determining the target default font as the target display font of the target text character; if it is detected that the mapping relationship associated with the character type to which the target text character belongs does not exist in the third default font library 607, the target default font corresponding to the target text character is acquired from the second default font library 606, and the target default font is determined as the target display font of the target text character. The second default font library includes all fonts in the application system, and therefore, fonts supporting the target text character can be found through the second default font library.
Further, a target mapping relationship between the target default font and the target text character may be established, and the target mapping relationship is added to the font cache library. Since the number of the types of the text characters included in the text data to be displayed by the local terminal is small, the font cache library stores the displayed text characters and the mapping relationship between the fonts used by the text characters, which occupies a small memory space.
Further, the local terminal may render the target text character based on the target display font. Optionally, acquiring a display position of the first character in the display area, and rendering the target text character in the display area according to the display position of the first character and the target display font; the first character display position is determined based on the size information, the display margin, and the first character display format of the paragraph. Optionally, when the target text character is rendered in the display area according to the first character display position and the target display font, the local terminal obtains a text position of the target text character in the text to be displayed, and determines a target character display position of the target text character in the display area according to the first character display position and the text position; at the target character display position, the target text character is rendered based on the target display font.
Optionally, when the local terminal is displaying text data and needs to update the currently displayed text data, the local terminal may obtain a rendered text and a text update area displayed in the display area, and determine the display position of the initial character according to the text update area and the rendered text, where the text update area is determined according to a text update request obtained by the local terminal. When the text updating request is used for indicating to view the rendered text, the local terminal directly obtains text data requested to be viewed by the user in the rendered text according to the text updating request, and displays the text data requested to be viewed by the user in the display area. When the text updating request is used for indicating to view unrendered text, the local terminal can determine a text updating area according to the text updating request, determine a display position of the first character based on the text updating area, and determine an initial rendering position of the character according to the rendered text; the method comprises the steps of starting at a character initial rendering position in text data, sequentially acquiring text characters as target text characters, executing the step of acquiring a target display font of the target text characters in the application, determining a target character display position of the target text characters according to the first character display position, and rendering the target text characters based on the target display font at the target character display position of a display area.
The method comprises the steps of obtaining long text data to be displayed, obtaining target text characters in the long text data, and obtaining a font cache library, wherein the font cache library comprises a mapping relation between cache fonts and the text characters; traversing the font cache library according to the target text characters and the mapping relation; if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character; if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring the target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character. Through the process, the font corresponding to the target text character is acquired, wherein the time required for acquiring the font corresponding to the target text character through the font cache library is short, so that the time consumed for acquiring the font corresponding to the text character can be reduced when text data is displayed through the text display method and the text display processing efficiency is improved. Meanwhile, the time consumed by text display processing is reduced, so that the fluency of text data display is improved. And moreover, fonts corresponding to the target text characters are searched from the default font libraries in sequence, the fonts contained in different default font libraries are not identical, and the efficiency of text display processing can be improved through the sequence matching sequence of the different default font libraries.
Further, please refer to fig. 7, and fig. 7 is a schematic diagram of a text display processing apparatus according to an embodiment of the present application. The text display processing means may be a computer program (including program code) running in a computer device, for example the text display processing means being an application software; the apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application. As shown in fig. 7, the text display processing apparatus 700 may be used in a computer device in the embodiment corresponding to fig. 3, and specifically, the apparatus may include: the device comprises an element acquisition module 11, a font traversal module 12, a font determination module 13 and a font matching module 14.
The element obtaining module 11 is configured to obtain long text data to be displayed, obtain a target text character from the long text data, and obtain a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters, the mapping relation is established through the relation between the text characters in the historical long text data and the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed;
the font traversing module 12 is used for traversing the font cache library according to the target text characters and the mapping relation;
a font determining module 13, configured to take the target cache font as a target display font for rendering the target text character if the target cache font corresponding to the target text character is traversed in the font cache library;
a font matching module 14, configured to, if a target cache font corresponding to the target text character is not traversed in the font cache library, obtain a default font library, detect a font support relationship between a default font in the default font library and the target text character, obtain, in the default font library, a target default font corresponding to the target text character according to the font support relationship, and use the target default font as a target display font for rendering the target text character; the font supporting relation comprises a supporting display relation and a matching failure relation, the supporting display relation is used for representing that the default font supports the target text characters to display, and the matching failure relation is used for representing that the default font does not support the target text characters to display.
Wherein the default font library comprises a first default font library; the first default font library is a font library which has an initial incidence relation with the application system;
in detecting a font support relationship between a default font in the default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, the font matching module 14 includes:
a priority determining unit 141, configured to obtain at least two first default fonts in a first default font library, and obtain a font priority of each first default font;
the matching detection unit 142 is configured to sequentially detect font support relationships between the target text character and at least two first default fonts based on the font priority, determine the font support relationship between the target text character and the at least two first default fonts as the first default font supporting the display relationship, and determine the first default font as the target default font corresponding to the target text character.
Wherein, in obtaining the font priority of each first default font, the priority determining unit 141 includes:
a set obtaining subunit 1411, configured to obtain a character type to which a target text character belongs, and obtain a priority set corresponding to the character type;
a priority determining subunit 1412 for determining the font priority of each first default font according to the set of priorities.
Wherein, in obtaining the font priority of each first default font, the priority determining unit 141 includes:
a font sorting subunit 1413, configured to obtain the number of text characters supported by each first default font, sort the at least two first default fonts based on the number of text characters supported by each first default font, and determine a font priority of each first default font according to a sorting result.
Wherein, in detecting font support relationships between the target text character and the at least two first default fonts in sequence based on the font priorities, the matching detection unit 142 includes:
an element obtaining subunit 1421, configured to obtain a font matching element, and based on the font priority, combine the target text character and an ith first default font of the at least two first default fonts to form an element pair a to be matchedi(ii) a i is a positive integer, i is less than or equal to the number of the at least two first default fonts;
a component processing subunit 1422, configured to pair a to-be-matched elementsiInputting a font matching component, and acquiring a pair A of elements to be matched by the font matching componentiThe matching result of (1);
a result obtaining subunit 1423, configured to determine, if the matching result is a successful matching result, the support display relationship as a font support relationship between the target text character and the ith first default font;
the result obtaining sub-unit 1423 is further configured to, if the matching result is a matching failure result, determine the matching failure relationship as a font support relationship between the target text character and the ith first default font.
The default font library comprises a second default font library and a third default font library; the second default font library comprises all fonts in the application system; the third default font library comprises a character mapping table; the character mapping table comprises a mapping relation between the character type and a third default font;
in detecting a font support relationship between a default font in the default font library and a target text character, and acquiring a target default font corresponding to the target text character in the default font library according to the font support relationship, the font matching module 14 includes:
a type obtaining unit 143 configured to obtain a character type to which the target text character belongs;
a first detecting unit 144, configured to obtain a second default font library if the character type to which the target text character belongs to the first character type, sequentially detect font support relationships between the target text character and a second default font in the second default font library based on a font arrangement order in the second default font library, determine a font support relationship between the target text character and the second default font in the second default font library as the second default font supporting the display relationship, and determine the second default font as a target default font corresponding to the target text character;
the second detecting unit 145 is configured to, if the character type to which the target text character belongs to the second character type, obtain a character mapping table in a third default font library, and if a mapping relationship associated with the character type to which the target text character belongs exists in the character mapping table, use a third default font having a mapping relationship with the character type to which the target text character belongs as a target default font corresponding to the target text character; the second character type is a character type other than the first character type among all character types.
Wherein, the font matching module 14 further comprises:
a third detecting unit 146, configured to, if a mapping relationship associated with the character type to which the target text character belongs does not exist in the character mapping table, obtain a second default font library, sequentially detect, based on a font arrangement order in the second default font library, a font supporting relationship between the target text character and a second default font in the second default font library, set a font supporting relationship between the target text character and the second default font in the second default font library as the second default font supporting the display relationship, and determine the second default font as the target default font corresponding to the target text character.
Wherein, the apparatus 700 further comprises:
the frequency comparison module 15 is configured to obtain a historical display frequency of the character type, and determine the character type as a first character type if the historical display frequency is greater than a display frequency threshold;
the frequency comparison module 15 is further configured to determine the character type as a second character type if the historical display frequency is less than or equal to the display frequency threshold.
Wherein, the apparatus 700 further comprises:
the order determining module 16 is configured to obtain at least two second default fonts included in the second default font library, obtain historical usage times of each second default font, sort the at least two second default fonts based on the historical usage times, and determine a font arrangement order in the second default font library.
Wherein, the apparatus 700 further comprises:
and the mapping cache module 17 is configured to establish a target mapping relationship between the target default font and the target text character, and add the target mapping relationship to the font cache library.
In obtaining long text data to be displayed and obtaining target text characters from the long text data, the element obtaining module 11 includes:
a format obtaining unit 111, configured to obtain long text data to be displayed, and obtain size information of a display area and a text display format; the size information comprises the display width and the display height of the display area, and the text display format comprises a display line spacing, a paragraph first character display format and a display margin;
a line number determining unit 112, configured to determine a display line number in the display area according to the display height, the display margin and the display line interval;
a character counting unit 113, configured to determine the number of line display characters of each line in the display area according to the display width, the display margin, and the first character display format of the paragraph;
and the character determining unit 114 is configured to obtain a text to be displayed from the long text data based on the number of display lines and the number of line display characters of each line, and sequentially use text characters in the text to be displayed as target text characters.
Wherein, the apparatus 700 further comprises:
a character rendering module 18, configured to obtain a display position of the first character in the display area, and render a target text character in the display area according to the display position of the first character and a target display font; the first character display position is determined based on the size information, the display margin, and the first character display format of the paragraph.
Wherein, in rendering the target text character in the display area according to the first character display position and the target display font, the character rendering module 18 includes:
the position determining unit 181 is configured to acquire a text position of a target text character in a text to be displayed, and determine a target character display position of the target text character in the display area according to the first character display position and the text position;
a character display unit 182 for rendering the target text character based on the target display font at the target character display position.
Wherein, the apparatus 700 further comprises:
the historical data acquisition module 19 is configured to acquire historical long text data, traverse the historical long text data, and acquire text characters and display fonts for displaying the text characters included in the historical long text data;
and the font cache generating module 20 is configured to count the use frequency of the display fonts, use the display font with the highest use frequency as the cache font of the text character, establish a mapping relationship between the text character and the cache font, and store the mapping relationship in the font cache library.
The embodiment of the application provides a text display processing device, which acquires target text characters from long text data by acquiring the long text data to be displayed, and acquires a font cache library, wherein the font cache library comprises a mapping relation between cache fonts and the text characters; traversing the font cache library according to the target text characters and the mapping relation; if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character; if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring the target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character. Through the process, the font corresponding to the target text character is acquired, wherein the time required for acquiring the font corresponding to the target text character through the font cache library is short, so that the time consumed for acquiring the font corresponding to the text character can be reduced when text data is displayed through the text display method and the text display processing efficiency is improved. Meanwhile, the time consumed for text display processing is reduced, so that the fluency of text data display is improved, the number of text characters included in the long text data is large, and the rendering speed of each text character is improved, so that the rendering efficiency of the long text data is improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer device in the embodiment of the present application may include: one or more processors 801, a memory 802, and an input-output interface 803. The processor 801, the memory 802, and the input/output interface 803 are connected by a bus 804. The memory 802 is used for storing a computer program, which includes program instructions, and the input/output interface 803 is used for receiving data and outputting data, implementing data interaction between a font library and a computer device, and the like; the processor 801 is configured to execute program instructions stored in the memory 802 to perform the following operations:
acquiring long text data to be displayed, acquiring target text characters from the long text data, and acquiring a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters, the mapping relation is established through the relation between the text characters in the historical long text data and the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed;
traversing the font cache library according to the target text characters and the mapping relation;
if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character;
if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring a target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character; the font supporting relation comprises a supporting display relation and a matching failure relation, the supporting display relation is used for representing that the default font supports the target text characters to display, and the matching failure relation is used for representing that the default font does not support the target text characters to display.
In some possible implementations, the processor 801 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 802 may include both read-only memory and random-access memory, and provides instructions and data to the processor 801 and the input/output interface 803. A portion of the memory 802 may also include non-volatile random access memory. For example, the memory 802 may also store device type information.
In a specific implementation, the computer device may execute the implementation manners provided in the steps in fig. 3 through each built-in functional module thereof, which may specifically refer to the implementation manners provided in the steps in fig. 3, and details are not described herein again.
The embodiment of the present application provides a computer device, including: the system comprises a processor, an input/output interface and a memory, wherein computer instructions in the memory are acquired by the processor, and the steps of the method shown in the figure 3 are executed to perform text display processing operation. The method and the device for obtaining the font cache library achieve the purpose that the target text characters and the font cache library are obtained, wherein the font cache library comprises the mapping relation between cache fonts and the text characters; traversing the font cache library according to the target text characters and the mapping relation; if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character; if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring the target default font corresponding to the target text character in the default font library according to the font support relation, and taking the target default font as a target display font for rendering the target text character. Through the process, the font corresponding to the target text character is acquired, wherein the time required for acquiring the font corresponding to the target text character through the font cache library is short, so that the time consumed for acquiring the font corresponding to the text character can be reduced when text data is displayed through the text display method and the text display processing efficiency is improved. Meanwhile, the time consumed by text display processing is reduced, so that the fluency of text data display is improved.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by the processor, the text display processing method provided in each step in fig. 3 can be implemented, which may specifically refer to an implementation manner provided in each step in fig. 3, and is not described herein again. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in embodiments of the computer-readable storage medium referred to in the present application, reference is made to the description of embodiments of the method of the present application. By way of example, program instructions may be deployed to be executed on one computer device or on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
The computer readable storage medium may be the text display processing apparatus provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, provided on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the computer device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the computer device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer readable storage medium, and executes the computer instruction, so that the computer device executes the method provided in the various optional manners in fig. 3, thereby determining the target display font corresponding to the target text character, and searching the font corresponding to the target text character through the font cache library, thereby reducing the time for obtaining the font and improving the efficiency of text display processing.
The term "comprises" and any variations thereof in the description and claims of the embodiments of the present application and in the drawings is intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product, or apparatus that comprises a list of steps or elements is not limited to the listed steps or modules, but may alternatively include other steps or modules not listed or inherent to such process, method, apparatus, product, or apparatus.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the specification for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The method and the related apparatus provided by the embodiments of the present application are described with reference to the flowchart and/or the structural diagram of the method provided by the embodiments of the present application, and each flow and/or block of the flowchart and/or the structural diagram of the method, and the combination of the flow and/or block in the flowchart and/or the block diagram can be specifically implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block or blocks of the block diagram. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block or blocks.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (15)

1. A text display processing method, the method comprising:
acquiring long text data to be displayed, acquiring target text characters from the long text data, and acquiring a font cache library; the font cache library comprises a mapping relation between cache fonts and text characters, the mapping relation is established through the text characters in the historical long text data and the relation between the cache fonts, and the cache fonts refer to display fonts used when the text characters are displayed;
traversing the font cache library according to the target text characters and the mapping relation;
if the target cache font corresponding to the target text character is traversed in the font cache library, taking the target cache font as a target display font for rendering the target text character;
if the target cache font corresponding to the target text character is not traversed in the font cache library, acquiring a default font library, detecting a font support relation between the default font in the default font library and the target text character, acquiring the target default font corresponding to the target text character in the default font library according to the font support relation, and using the target default font as a target display font for rendering the target text character; the font supporting relationship comprises a supporting display relationship and a matching failure relationship, the supporting display relationship is used for representing that the default font supports the target text character for display, and the matching failure relationship is used for representing that the default font does not support the target text character for display.
2. The method of claim 1, wherein the default font library comprises a first default font library; the first default font library is a font library which has an initial incidence relation with an application system;
the detecting a font support relationship between the default font in the default font library and the target text character, and acquiring the target default font corresponding to the target text character in the default font library according to the font support relationship includes:
acquiring at least two first default fonts in the first default font library, and acquiring the font priority of each first default font;
and sequentially detecting font support relations between the target text characters and the at least two first default fonts based on the font priorities, and determining the font support relations between the target text characters and the at least two first default fonts as the first default fonts supporting the display relations, and determining the font support relations as the target default fonts corresponding to the target text characters.
3. The method of claim 2, wherein said obtaining a font priority for each first default font comprises:
the method comprises the steps of obtaining the number of text characters supported by each first default font, sequencing the at least two first default fonts based on the number of the text characters supported by each first default font, and determining the font priority of each first default font according to a sequencing result.
4. The method of claim 2, wherein said sequentially detecting font-support relationships between the target text character and the at least two first default fonts based on the font priorities comprises:
obtaining a font matching component, and forming an element pair A to be matched by the target text character and the ith first default font in the at least two first default fonts based on the font priorityi(ii) a i is a positive integer, i is less than or equal to the number of the at least two first default fonts;
the element pair A to be matched is processediInputting the font matching component, and acquiring the font matching component aiming at the element pair A to be matchediThe matching result of (1);
if the matching result is a successful matching result, determining the support display relationship as a font support relationship between the target text character and the ith first default font;
and if the matching result is a matching failure result, determining the matching failure relation as a font support relation between the target text character and the ith first default font.
5. The method of claim 1, wherein the default font library comprises a second default font library and a third default font library; the second default font library comprises all fonts in the application system; the third default font library comprises a character mapping table; the character mapping table comprises a mapping relation between a character type and a third default font;
the detecting a font support relationship between the default font in the default font library and the target text character, and acquiring the target default font corresponding to the target text character in the default font library according to the font support relationship includes:
acquiring a character type to which the target text character belongs;
if the character type to which the target text character belongs to the first character type, acquiring a second default font library, sequentially detecting font support relations between the target text character and second default fonts in the second default font library based on the font arrangement sequence in the second default font library, and determining the font support relations between the target text character and the second default fonts in the second default font library as the second default fonts supporting the display relation, so as to determine the second default fonts as the target default fonts corresponding to the target text character;
if the character type to which the target text character belongs to the second character type, acquiring the character mapping table in the third default font library, and if the character mapping table has a mapping relation associated with the character type to which the target text character belongs, taking a third default font having a mapping relation with the character type to which the target text character belongs as a target default font corresponding to the target text character; the second character type is a character type except the first character type in all character types.
6. The method of claim 5, wherein the method further comprises:
if the character mapping table does not have a mapping relation associated with the character type to which the target text character belongs, acquiring a second default font library, sequentially detecting a font support relation between the target text character and a second default font in the second default font library based on a font arrangement sequence in the second default font library, and determining the font support relation between the target text character and the second default font in the second default font library as the second default font supporting a display relation, so as to determine the second default font as the target default font corresponding to the target text character.
7. The method of claim 5, wherein the method further comprises:
acquiring historical display frequency of the character type, and determining the character type as the first character type if the historical display frequency is greater than a display frequency threshold;
and if the historical display frequency is less than or equal to a display frequency threshold value, determining the character type as the second character type.
8. The method of claim 5, wherein the method further comprises:
acquiring at least two second default fonts included in the second default font library, acquiring historical use times of each second default font, sequencing the at least two second default fonts based on the historical use times, and determining the font arrangement sequence in the second default font library.
9. The method of claim 1, wherein the method further comprises:
and establishing a target mapping relation between the target default font and the target text character, and adding the target mapping relation to the font cache library.
10. The method of claim 1, wherein the method further comprises:
acquiring the historical long text data, traversing the historical long text data, and acquiring the text characters included in the historical long text data and display fonts for displaying the text characters;
and counting the use frequency of the display fonts, taking the display font with the maximum use frequency as the cache font of the text character, establishing a mapping relation between the text character and the cache font, and storing the mapping relation to the font cache library.
11. The method of claim 1, wherein the obtaining long text data to be displayed, obtaining target text characters from the long text data, comprises:
acquiring long text data to be displayed, and acquiring size information and a text display format of a display area; the size information comprises the display width and the display height of the display area, and the text display format comprises a display line spacing, a paragraph first character display format and a display margin;
determining the display line number in the display area according to the display height, the display margin and the display line spacing;
determining the line display character number of each line in the display area according to the display width, the display margin and the first character display format of the paragraph;
and acquiring a text to be displayed from the long text data based on the display line number and the line display character number of each line, and sequentially taking text characters in the text to be displayed as the target text characters.
12. The method of claim 11, wherein the method further comprises:
acquiring a first character display position in the display area, and rendering the target text character in the display area according to the first character display position and the target display font; the first character display position is determined based on the size information, the display margin, and the first character display format of the paragraph.
13. The method of claim 12, wherein the rendering the target text character in the display area according to the first character display position and the target display font comprises:
acquiring a text position of the target text character in the text to be displayed, and determining a target character display position of the target text character in the display area according to the first character display position and the text position;
rendering, at the target character display position, the target text character based on the target display font.
14. A computer device comprising a processor, a memory, an input output interface;
the processor is connected to the memory and the input/output interface, respectively, wherein the input/output interface is configured to receive data and output data, the memory is configured to store program codes, and the processor is configured to call the program codes to perform the method according to any one of claims 1 to 13.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method according to any one of claims 1-13.
CN202010691183.1A 2020-07-17 2020-07-17 Text display processing method and device, computer and readable storage medium Pending CN113946650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010691183.1A CN113946650A (en) 2020-07-17 2020-07-17 Text display processing method and device, computer and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010691183.1A CN113946650A (en) 2020-07-17 2020-07-17 Text display processing method and device, computer and readable storage medium

Publications (1)

Publication Number Publication Date
CN113946650A true CN113946650A (en) 2022-01-18

Family

ID=79327056

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010691183.1A Pending CN113946650A (en) 2020-07-17 2020-07-17 Text display processing method and device, computer and readable storage medium

Country Status (1)

Country Link
CN (1) CN113946650A (en)

Similar Documents

Publication Publication Date Title
US20190251143A1 (en) Web page rendering method and related device
EP3623942A1 (en) Message processing method and apparatus, storage medium, and computer device
CN112019820B (en) Interface generation method and device
CN109564566B (en) Discovery of calling applications for controlling file hydration behavior
KR20130126610A (en) Identifiers for style sheets
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CA3154763A1 (en) Data operation method, device and system
CN110807161A (en) Page framework rendering method, device, equipment and medium
US20230194302A1 (en) Method of updating map data, electronic device and storage medium
CN113204345A (en) Page generation method and device, electronic equipment and storage medium
CN109783589A (en) The method, apparatus and storage medium of electronic map parsing address
CN114880072A (en) Application window display method of virtual machine, computing equipment and storage medium
US10372299B2 (en) Preserve input focus in virtualized dataset
CN117270834A (en) Map rendering method, map rendering device, electronic equipment and storage medium
CN114885202A (en) Character string display processing method, device, terminal and storage medium
CN113946650A (en) Text display processing method and device, computer and readable storage medium
US20220050811A1 (en) Method and apparatus for synchronizing file
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
KR20170044116A (en) Full screen pop-out of objects in editable form
CN112487314A (en) Building search method and device based on knowledge graph and storage medium
CN106415626B (en) Group selection initiated from a single item
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
WO2023220973A1 (en) Data processing method and apparatus, and electronic device and computer-readable storage medium
US10088914B2 (en) Modifying input delivery to applications
CN112445790B (en) Report data storage method, device, equipment and medium

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