CN104462029A - Method and system for rich text display in intelligent terminal - Google Patents
Method and system for rich text display in intelligent terminal Download PDFInfo
- Publication number
- CN104462029A CN104462029A CN201310430602.6A CN201310430602A CN104462029A CN 104462029 A CN104462029 A CN 104462029A CN 201310430602 A CN201310430602 A CN 201310430602A CN 104462029 A CN104462029 A CN 104462029A
- Authority
- CN
- China
- Prior art keywords
- character
- character string
- cache region
- pointer
- character strings
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000009877 rendering Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 16
- 230000009191 jumping Effects 0.000 claims description 11
- 238000013507 mapping Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 239000003086 colorant Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a method and system for rich text display in an intelligent terminal. The method includes the steps that an input source character string is loaded into a cache region; the source character string in the cache region is traversed, and corresponding drawing structural bodies are generated for all traversed characters and sequentially saved in an array, wherein the drawing structural body for each character comprises the character and the drawing attribute information of the character; the drawing structural bodies in the array are sequentially read, and the corresponding characters are drawn according to the drawing attribute information in the drawing structural bodies. According to the technical scheme, the problem that a certain character can not be processed in an attribute mode through an existing rich text display method in the IOS system can be solved.
Description
Technical Field
The invention relates to the technical field of computer intelligent terminals, in particular to a method and a system for displaying rich texts in an intelligent terminal.
Background
With continuous development and continuous innovation of intelligent terminals, related information browsed on smart phones and smart tablets, such as news, microblogs, pictures, books, magazines, conversation messages and the like, needs to be displayed by a carrier. Because the Rich Text Format (Rich Text Format) Format can perfectly support news and other information containing pictures and texts, the display of characters in the control in various different formats can be realized, and the readability is higher than that of the common Text Format. Therefore, the content of the corresponding graphic and text information is usually displayed on the intelligent terminal by using a rich text control.
In the existing IOS operating system, an IOS SDK CoreText framework is adopted, NSAttributestruring is adopted to store character strings, and the analysis is carried out according to NSAttributing attributes. However, for different versions of the IOS operating system, in the IOS5 system, the font rendering using the coreext framework is inconsistent with the font in the UI library of the system, i.e. there is a problem of imperfect compatibility.
Secondly, when a rich text control drawn by a Coretext frame in the existing IOS system is used for carrying out mixed arrangement on pictures and texts in a message and displaying a microblog page, the rich text control can be arranged only in a whole section or page mode. In addition, in the Coretext framework, a CFFrame structure is constructed for each string, and the structure is time-consuming when a system draw function is called for drawing. Therefore, the conversion of the color, font and font size of a certain character in the existing coreext framework is not flexible enough and is inefficient. Only a whole segment of character string can be processed with attributes, and the characters, word size, color, etc. can be set. Attribute processing cannot be performed on a certain character and a corresponding click event cannot be responded to.
In summary, the rich text display method in the prior IOS system has a problem that the attribute processing cannot be performed for a certain character.
Disclosure of Invention
The invention provides a method and a system for displaying rich text in an intelligent terminal, which can solve the problem that the existing rich text display method in an IOS system cannot process the attribute of a certain character.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention discloses a method for displaying rich text in an intelligent terminal, which comprises the following steps:
loading an input source character string into a cache region;
traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies into an array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character;
and sequentially reading the drawing structure bodies in the array, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies.
In the above method, after loading the input source string into the cache region, the method further comprises: acquiring a specific character string in the source character string in the cache region and the initial position and the end position of the specific character string according to a preset regular expression; storing the starting position and the ending position of the specific character string and the corresponding type in a symbol table;
traversing the source character strings in the cache region, and generating a corresponding drawing structure for each traversed character includes: sequentially traversing the source character strings in the cache region; searching the symbol table once every traversing one character; when the traversed characters are characters in specific character strings in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same;
wherein the specific character string comprises one or more of: mobile phone number, URL address and email address.
In the above method, the method further comprises: presetting a picture table, and storing a one-to-one mapping relation between picture paths and escape characters in the picture table;
traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies in the array further comprises:
when the traversed character is an escape character, acquiring the starting position and the ending position of the escape character;
acquiring a picture path corresponding to the escape character according to the picture table;
generating a corresponding drawing structure body according to the escape character and the corresponding picture path, and storing the drawing structure body in an array;
wherein the drawing structure of the character of the specific character string further includes: a pointer for pointing to the specific character string;
when an instruction of clicking any one character in the drawn specific character string is received, acquiring the corresponding specific character string according to a pointer in a drawing structural body of the character;
and executing the operation corresponding to the acquired specific character string.
In the above method, the buffer area includes: a first buffer area and a second buffer area;
the loading the input source character string into the cache region, and traversing the source character string in the cache region includes:
sequentially reading character strings with specified length from the source character strings and filling the character strings into a first buffer area and a second buffer area,
after traversing the character strings in the first cache region, traversing the character strings in the second cache region, deleting the character strings in the first cache region, reading the character strings with the specified length from the rest character strings of the source character strings and filling the character strings in the first cache region;
after traversing the character strings in the second cache region, traversing the character strings in the first cache region, deleting the character strings in the second cache region, reading the character strings with the specified length from the residual character strings of the source character strings and filling the character strings in the second cache region;
and sequentially circulating until the source character string is traversed.
In the above method, traversing the source character string in the cache region, and generating a corresponding drawing structure for each traversed character includes:
setting a starting pointer and a cursor pointer, wherein the starting position of the cursor pointer is the same as the starting position of the starting pointer; wherein, the starting position of the starting pointer is the starting position of the source character string;
the cursor pointer is detected forwards, and a symbol table and a picture table are searched in the forward detection process of the cursor pointer;
when the type of a certain character is detected to be different from that of the previous character, stopping detection, and returning the cursor pointer to the position of the previous character of the character;
acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string;
jumping the position of the starting pointer to the position before the cursor pointer, and jumping the cursor pointer to the position after the starting pointer jumps;
the cursor pointer is detected again until the source character string traversal is completed;
wherein generating a corresponding rendering structure for each traversed character comprises:
setting drawing attribute information for each traversed character according to an instruction input by a user;
wherein the drawing attribute information includes one or more of: type, font, color, and font size.
In the above method, the sequentially reading the rendering structure bodies in the array, and rendering the corresponding characters according to the rendering attribute information in the rendering structure bodies includes:
reading the drawing structure bodies in the array in sequence, and drawing corresponding characters according to the word size information in the drawing structure body read each time;
or,
reading a plurality of specific drawing structure bodies of the same type in the array in sequence, respectively obtaining the word size information in the plurality of read drawing structure bodies, and calculating the total length of the plurality of characters; and according to the calculated total length, drawing a plurality of corresponding characters at one time.
The invention also discloses a system for displaying rich text in the intelligent terminal, which comprises: the device comprises a cache module, a traversal module and a drawing module;
the cache module is used for loading the input source character string;
the traversal module is used for traversing the source character strings in the cache module, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies into an array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character;
and the drawing module is used for reading the drawing structural bodies in the array in sequence and drawing corresponding characters according to the drawing attribute information in the drawing structural bodies.
In the above system, the system further comprises: the system comprises an identification module and a preset picture table; wherein, the picture table stores the one-to-one mapping relation between the picture paths and the escape characters; the drawing structure of the character of the specific character string further includes: a pointer for pointing to the specific character string;
the identification module is used for acquiring a specific character string in the source character string in the cache region and the initial position and the end position of the specific character string according to a preset regular expression; storing the starting position and the ending position of the specific character string and the corresponding type in a symbol table;
the traversal module is used for sequentially traversing the source character strings in the cache region, and searching the symbol table once every time a character is traversed; when the traversed characters are characters in specific character strings in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same; and/or; the method comprises the steps of obtaining a starting position and an ending position of an escape character when a traversed character is the escape character; acquiring a picture path corresponding to the escape character according to the picture table; and generating a corresponding drawing structure body according to the escape character and the corresponding picture path, and storing the drawing structure body in an array.
In the above system, the system further comprises: clicking a module;
the system comprises a clicking module, a display module and a display module, wherein the clicking module is used for acquiring a corresponding specific character string according to an indicator in a drawing structural body of the character when receiving an instruction of clicking any one character in the drawn specific character string; executing the operation corresponding to the acquired specific character string;
the drawing module is used for reading the drawing structure bodies in the array in sequence and drawing corresponding characters according to the character size information in the drawing structure body read each time; or reading a plurality of specific drawing structure bodies of the same type in the array in sequence, respectively obtaining the word size information in the plurality of read drawing structure bodies, and calculating the total length of the plurality of characters; and according to the calculated total length, drawing a plurality of corresponding characters at one time.
In the above system, the cache module includes: a first buffer area and a second buffer area;
the traversal module is used for sequentially reading character strings with specified lengths from the source character strings and filling the character strings into the first cache region and the second cache region, traversing the character strings in the second cache region after traversing the character strings in the first cache region, deleting the character strings in the first cache region, reading the character strings with the specified lengths from the rest character strings of the source character strings and filling the character strings in the first cache region; after traversing the character strings in the second cache region, traversing the character strings in the first cache region, deleting the character strings in the second cache region, reading the character strings with the specified length from the residual character strings of the source character strings and filling the character strings in the second cache region; sequentially circulating until the source character string is traversed;
the traversal module is internally provided with a starting pointer and a cursor pointer, and the starting position of the cursor pointer is the same as the starting position of the starting pointer; wherein, the starting position of the starting pointer is the starting position of the source character string;
the traversal module is used for searching the symbol table and the picture table in the forward detection process of the cursor pointer; when the type of a certain character is detected to be different from that of the previous character, stopping detection, and returning the cursor pointer to the position of the previous character of the character; acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string; jumping the position of the starting pointer to the position before the cursor pointer, and jumping the cursor pointer to the position after the starting pointer jumps; and detecting the cursor pointer again until the traversal of the source character string is completed.
In summary, the present invention provides a method for displaying rich text in an intelligent terminal, and the technical solution disclosed in the present invention loads an input source character string into a cache region; introducing a compiler lexical analysis principle, analyzing the source character strings, generating corresponding symbol tables, traversing the source character strings in the cache region, generating corresponding drawing structure bodies for each traversed character, and sequentially storing the drawing structure bodies in the array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character; and sequentially reading the drawing structure bodies in the array, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies. The problem that attribute processing cannot be performed on a certain character in the existing rich text display method in the IOS system is solved.
Furthermore, a symbol table is used for drawing during drawing, so that the problems that a lexical unit is formed in a mode of semi-structured storage and label analysis adopted in the prior art and fonts cannot be compatible due to a CoreText frame for drawing are solved.
Drawings
FIG. 1 is a flow chart of a method for rich text display in an intelligent terminal according to the present invention;
FIG. 2 is a detailed flowchart of a rich text display method in an intelligent terminal according to the present invention;
FIG. 3 is a flow diagram of traversing a source string in one embodiment of the invention;
FIG. 4 is a flow diagram of rich text display in one embodiment of the invention;
fig. 5 is a schematic structural diagram of a rich text display system in an intelligent terminal according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method for rich text display in an intelligent terminal according to the present invention; as shown in fig. 1, the method comprises the steps of:
step 101, loading the input source character string into a cache region.
Step 102, traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies in an array; wherein, the drawing structure of a character includes: a character and drawing attribute information of the character.
And 103, reading the drawing structure bodies in the array in sequence, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies.
Fig. 2 is a detailed flowchart of a rich text display method in an intelligent terminal according to the present invention. Referring to fig. 2, the method comprises the following steps:
step 201, loading the input source character string into a cache region.
In step 201, if the input source character string is too long, if the input source character string is loaded into the cache region for analysis at one time, the working time of the CPU and a large amount of memory are excessively occupied. Therefore, the problem that the CPU and the memory resources are occupied due to the fact that the source character string is too long is solved. In one embodiment of the invention, a double cache strategy is employed. Setting a double cache, namely a cache region comprises: a first buffer area and a second buffer area; sentinel characters eof are added at the end of the first buffer and sentinel characters eof are added at the end of the second buffer.
Loading the input source character string into the cache region, and traversing the source character string in the cache region specifically comprises the following steps:
and sequentially reading character strings with specified length from the source character strings and filling the character strings into the first cache region and the second cache region.
And traversing the character strings in the first cache region, and jumping to the second cache region according to the sentinel character eof arranged at the tail end of the first cache region after traversing the character strings in the first cache region.
Traversing the character strings in the second cache region, deleting the traversed character strings in the first cache region, reading the character strings with the specified length from the rest character strings of the source character strings, and filling the character strings in the first cache region. After traversing the character string in the second buffer, the jump is made to the first buffer based on the sentinel character eof located at the end of the second buffer.
Traversing the character strings in the first cache region, deleting the traversed character strings in the second cache region, reading the character strings with the specified length from the rest character strings of the source character strings, and filling the character strings in the second cache region.
And sequentially circulating until the source character string is traversed.
In the preferred embodiment of the present invention, the size of the first buffer area is set to 4096 bytes; the size of the second buffer area is set to 4096 bytes.
In other embodiments of the present invention, the size of the buffer area may be set according to specific situations. For example, the sizes of the first buffer and the second buffer may be set according to the number of bytes of the input source character string. It is also possible to set only one buffer area in the case that the number of bytes of the input source string is within a certain range.
Step 202, obtaining a specific character string in the source character string in the buffer area, and a start position and an end position of the specific character string according to a preset regular expression.
In one embodiment of the invention, the specific character string comprises one or more of the following: mobile phone number, URL address and email address.
In step 202, specifically, a specific character string in a source character string in the cache region is obtained according to a preset regular expression, that is, a mobile phone number, a URL address and an email address in the source character string, a start position and an end position of the mobile phone number, a start position and an end position of the URL address, and a start position and an end position of the email address are obtained in a manner of matching through the regular expression.
And storing the mobile phone number, the starting position and the ending position of the mobile phone number and the corresponding type in a symbol table. And storing the URL address, the starting position and the ending position of the URL address and the corresponding type in a symbol table. And storing the email address, the starting position and the ending position of the email address and the corresponding type in a symbol table.
That is, in the generated symbol table, for each mobile phone number or URL address, there is an array storing the start positions and end positions of all character strings in the type, and the structure of the array is < type, array >. Examples are < TEL, array >, < URL, array >, < Email, array >.
In the present invention, in the displayed text-rich character string, there are pictures in addition to the characters, where each picture corresponds to an escape character. For example, a smiling face in an expression may correspond to an escape character of "< smile >. Therefore, the present embodiment further includes a picture table, in which a one-to-one mapping relationship between the picture path and the escape character is stored, that is, the paths of "< smile >" and the picture smiling face are stored.
And step 203, traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies in the array.
In the specific operation process of the invention, the drawing attribute information can be set for each traversed character according to the instruction input by the user; for example, an option box is set, and multiple options of fonts, colors, and font sizes are set in different option boxes, so that a user can set the rendering attribute information of each character through different options in the option boxes. Or may be set according to preset rendering attribute information. Wherein the drawing attribute information includes one or more of: type, font, color, and font size.
Specifically, each traversed character generates a corresponding drawing structure, and the drawing structure includes the character and corresponding drawing attributes, such as the font of the character, the color of the character, the font size of the character, and the type of the character. Where the type of character means that the character belongs to a telephone number, a URL address or plain text.
In one embodiment of the invention, corresponding processing is performed on the escape characters in the picture table. The method specifically comprises the following steps: in step 203, in the process of traversing the source character string in the cache region, when the traversed character is an escape character, acquiring a starting position and an ending position of the escape character; acquiring a picture path corresponding to the escape character according to a preset picture table; and packaging the escape character and the corresponding picture path into a drawing structure, and storing the drawing structure corresponding to the escape character in an array.
In one embodiment of the invention, in the traversal process, sequentially traversing the source character strings in the cache region, and searching the symbol table once every time a character is traversed; and when the traversed characters are characters in a specific character string in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same.
Preferably, in the traversing process, the symbol table and the picture table are searched for once every time a character is traversed;
when the detected characters are characters in the telephone numbers in the symbol table, setting the drawing attribute information of each character belonging to the same telephone number to be the same;
when the detected characters are characters in URL addresses in the symbol table, setting the drawing attribute information of each character belonging to the same URL address to be the same;
and when the detected characters are the characters in the email address in the symbol table, setting the drawing attribute information of each character belonging to the same email address to be the same.
Further, when the detected character is an escape character in the picture table, a picture address corresponding to the escape character is set as corresponding drawing attribute information.
In an embodiment of the present invention, a source character string in a cache region is traversed by setting a double pointer, and a corresponding drawing structure is generated for each traversed character. FIG. 3 is a flow diagram of traversing a source string in one embodiment of the invention. As shown in fig. 3.
Step 301 sets a start pointer and a cursor pointer.
In step 301, the start position of the cursor pointer is the same as the start position of the start pointer, which is the start of the source string. The start pointer, when started, points to the first character of the source string, i.e., the first character in the first buffer.
Step 302, the cursor pointer is detected forward, and the symbol table and the picture table are searched in the process of detecting the cursor pointer forward.
In this step, the cursor pointer is in a detection state during detection, detection is stopped when a character appearing in the symbol table or the picture table is detected, and the character is analyzed with reference to the symbol table or the picture table.
And step 303, stopping detecting when the type of a certain character is detected to be different from the type of the previous character, and returning the cursor pointer to the position of the previous character of the character.
In this step, for the character string to be detected, by looking up the symbol table, since the start position and the end position of the telephone number, and the start position and the end position of the URL address are stored in the symbol table, if the position of the detected character in the source character string is within the range of the other type of character string, it can be determined that the type of the character is different from the type of the previous character.
And step 304, acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string.
In this step, the rendering attribute information of the characters of the same type is set to be the same. For example, the drawing attributes of 11 characters belonging to the same mobile phone number are the same. The drawing attributes of a plurality of characters belonging to the same URL address are the same.
Step 305, jump the position of the start pointer to the position before the cursor pointer, and jump the cursor pointer to the position after the start pointer jump.
I.e. the position of the start pointer is jumped to the position of the character detected in step 301 and the jumped position of the cursor pointer is the same as the position after the start pointer was jumped.
And step 306, judging whether the traversal of the source character string is completed, if so, performing step 307, and if not, continuing to perform step 302.
Step 307, the traversal of the source string is completed.
In step 203, the source character string is traversed by using the way that the start pointer and the cursor pointer are matched with each other, so that the traversal of the source character string can be completed quickly, and the omission situation can not occur.
And step 204, reading the drawing structure bodies in the array in sequence, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies.
In one embodiment of the invention, by reading the drawing structure bodies in the array in sequence, corresponding characters are drawn according to the word size information in the drawing structure body read each time; that is, each time a drawing structure is read from the array, the characters in the drawing structure and the corresponding drawing attribute information are taken out, and then the drawing function of the system is called to draw. I.e. drawing N characters, N system drawing functions need to be called.
In another embodiment of the present invention, a plurality of specific drawing structure bodies of the same type in an array are sequentially read, font size information in the plurality of read drawing structure bodies is respectively obtained, and the total length of a plurality of characters is calculated; and according to the calculated total length, drawing a plurality of corresponding characters at one time. That is, drawing N continuous characters with the same type, only 1 system drawing function needs to be called.
The specific drawing mode can be selected according to the hardware configuration of the intelligent terminal. For example: when the CPU performance is stronger, a mode of drawing one at a time is adopted; when the CPU performance is weak, a mode of drawing a plurality of data at one time is adopted.
Step 205, when receiving an instruction of clicking a character string belonging to the symbol table in the drawn character string, obtaining a corresponding mobile phone number or URL address, and performing a corresponding operation.
In an embodiment of the present invention, the drawing structure of the character of the specific character string further includes: a pointer to the particular string. The method specifically comprises the following steps: in the traversing process, if the characters obtained by traversing are the mobile phone numbers in the symbol table, the drawing structure body of the characters with the type of the mobile phone numbers also comprises a pointer for pointing to the mobile phone numbers; that is, the drawing attribute information of the character includes a pointer pointing to the corresponding mobile phone number. And if the traversed character is a URL address in the symbol table, the drawing structural body of the character with the type being the UEL address also comprises a pointer for pointing to the URL address. And if the traversed character is the email address in the symbol table, the drawing structural body of the character with the type being the email address also comprises a pointer for pointing to the email address.
In step 205, when an instruction of clicking any one character in the drawn specific character string is received, acquiring a corresponding mobile phone number, a URL address or an email address according to a pointer in a drawing structure of the character; and executing corresponding operation according to the acquired mobile phone number, URL address or email address.
The method specifically comprises the following steps: when a user clicks any one character in a certain mobile phone number, the corresponding mobile phone number is obtained according to the pointer in the drawing structure body of the clicked character, and corresponding operation is executed according to the mobile phone number. Such as dialing, sending short messages, etc.
When a user clicks any one character in a certain URL address, the corresponding URL address is obtained according to the pointer in the drawing structure body of the clicked character, and corresponding operation is executed according to the URL address. For example, access to a corresponding web page is performed.
When a user clicks any one character in a certain email address, the corresponding email address is obtained according to the pointer in the drawing structure body of the clicked character, and corresponding operation is executed according to the email address. For example, sending a mail or the like.
The following is a detailed description of specific embodiments. FIG. 4 is a flow diagram of rich text display in one embodiment of the invention, where the source string is "hello 18888888888texthttp://www.baidu.com". The source string is 39 in length.
Step 401, load the input source character string into the cache region. Because the source character string is small, double caches are not needed, and all the source character strings can be directly loaded.
Step 402, acquiring a mobile phone number and a URL address according to a preset regular expression.
That is, the acquired mobile phone number is 18888888888, and the structure stored in the symbol table is<Tel,array(Range(5,15))>(ii) a The obtained URL address ishttp://www.baidu.comStored in the symbol table as<Url,array(Range(20,39))>。
And step 403, traversing the source character string, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies in the array.
In the process of traversing, traversing is carried out by setting a starting pointer and a cursor pointer. The starting pointer points to the 0 position, namely the character of 'you', and the starting position of the cursor pointer is the same as the position of the starting pointer; when the cursor pointer detects forwards, the data in the symbol table is searched back, when the cursor pointer searches for '1', the current index is 5, and exactly 5-16 in the symbol table are Tel. At the moment, the state is changed, the cursor pointer stops detecting, the cursor pointer returns to one position, returns to a 'good' position, then is intercepted from 0 to 4, and two characters 'you' and 'good' in the acquired character string 'you' respectively generate corresponding drawing structures. The start position pointer points to the "1" position of cursor pointer +1, cursor pointer + +, i.e., the "1" position.
In the traversing process, the cursor pointer moves forward by one bit, detection needs to be carried out firstly, if the end of eof is reached, a target character string is returned, if the end is not reached, state analysis needs to be carried out, whether the target character string is returned or continues to be detected, if the detection is continued, the cursor pointer moves forward continuously, if the detection is not needed, the cursor pointer returns by one bit, the character string between the starting point pointer and the cursor pointer is intercepted to be the target character string, the starting point pointer and the cursor pointer point to the next position of the cursor pointer at the same time, and the process is continuously repeated. In the traversing process, attributes such as types, fonts, colors, word sizes and the like of characters can be assigned according to instructions input by a user, and each character and corresponding drawing attribute information are stored through a drawing structure. In a specific embodiment, the rendering structure may be a RichUtil structure.
And step 404, reading the drawing structure bodies in the array in sequence, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies.
In this step, the structure is drawn by drawing the inside of the array. And the drawing structure body in each symbol table contains a pointer pointing to the mobile phone number or the URL address in the symbol table where the drawing structure body is located. That is, in the drawing structure of the character "1", a pointer is included to the telephone number "18888888888". And the drawing attribute information of the characters "1", "8", and "8" are the same.
In the process of drawing, reading "1, 8" in sequence, taking out the font size in the drawing attribute information of each character, then adding, namely obtaining the length, width and height of each character respectively, adding, and calling the draw function of the system to draw on the corresponding interface according to the calculation result.
And reading the '1', acquiring the corresponding word size in the drawing attribute information of the '1', and calling a draw function of the system to draw on a corresponding interface. Then "8" is read again. Reading the drawing structure body one time, and calling a system draw function once. And reading in sequence and drawing in sequence.
Step 405, after receiving the click event, acquiring a corresponding mobile phone number or URL address to perform a corresponding operation.
In this step, when an instruction to click the character "8" is received, the pointer in the drawing structure of the character "8" points to the corresponding telephone number "188888888888", and a corresponding operation is performed based on the obtained telephone number.
Fig. 5 is a schematic structural diagram of a rich text display system in an intelligent terminal according to the present invention. Referring to fig. 5, the system includes: a caching module 501, a traversal module 502, and a rendering module 503.
A cache module 501, configured to load an input source character string;
the traversal module 502 is configured to traverse the source character string in the cache module 501, generate a corresponding drawing structure for each traversed character, and sequentially store the drawing structures in an array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character;
and the drawing module 503 is configured to read the drawing structure bodies in the array in sequence, and draw corresponding characters according to the drawing attribute information in the drawing structure bodies.
In one embodiment of the invention, the system further comprises: an identification module 504;
the identification module 504 is configured to obtain a specific character string in the source character string in the cache region, and a start position and an end position of the specific character string according to a preset regular expression; storing the starting position and the ending position of the specific character string and the corresponding type in a symbol table;
a traversal module 502, configured to sequentially traverse source character strings in the cache region, and search the symbol table once every time a character is traversed; and when the traversed characters are characters in a specific character string in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same.
In one embodiment of the invention, the system further comprises a click module 505;
a click module 505, configured to, when receiving an instruction to click any one of the drawn specific character strings, obtain a corresponding specific character string according to a pointer in a drawing structure of the character; executing the operation corresponding to the acquired specific character string;
wherein the drawing structure of the character of the specific character string further includes: a pointer to the particular string.
In one embodiment of the invention, the system further comprises: the method comprises the steps of storing a preset picture table, wherein the picture table stores a one-to-one mapping relation between picture paths and escape characters;
a traversal module 502, configured to obtain a starting position and an ending position of an escape character when the traversed character is the escape character; acquiring a picture path corresponding to the escape character according to the picture table; and generating a corresponding drawing structure body according to the escape character and the corresponding picture path, and storing the drawing structure body in an array.
In an embodiment of the present invention, the cache module 501 includes: a first buffer area and a second buffer area;
a traversal module 502, configured to sequentially read a character string with a specified length from the source character string and fill the character string into the first buffer area and the second buffer area, traverse the character string in the second buffer area after traversing the character string in the first buffer area, delete the character string in the first buffer area, and read a character string with a specified length from the remaining character strings of the source character string and fill the character string in the first buffer area; after traversing the character strings in the second cache region, traversing the character strings in the first cache region, deleting the character strings in the second cache region, reading the character strings with the specified length from the residual character strings of the source character strings and filling the character strings in the second cache region; and sequentially circulating until the source character string is traversed.
In an embodiment of the present invention, the traversal module 502 has a start pointer and a cursor pointer, where the start position of the cursor pointer is the same as the start position of the start pointer; wherein, the starting position of the starting pointer is the starting position of the source character string;
a traversal module 502, configured to search a symbol table and a picture table in the process of forward detection of the cursor pointer; when the type of a certain character is detected to be different from that of the previous character, stopping detection, and returning the cursor pointer to the position of the previous character of the character; acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string; jumping the position of the starting pointer to the position before the cursor pointer, and jumping the cursor pointer to the position after the starting pointer jumps; and detecting the cursor pointer again until the traversal of the source character string is completed.
In an embodiment of the present invention, the drawing module 503 is configured to sequentially read the drawing structure bodies in the array, and draw corresponding characters according to the size information in the drawing structure body read each time; or reading a plurality of specific drawing structure bodies of the same type in the array in sequence, respectively obtaining the word size information in the plurality of read drawing structure bodies, and calculating the total length of the plurality of characters; and according to the calculated total length, drawing a plurality of corresponding characters at one time.
In summary, the present invention provides a method for displaying rich text in an intelligent terminal, and the technical solution disclosed in the present invention loads an input source character string into a cache region; introducing a compiler lexical analysis principle, analyzing the source character strings, generating corresponding symbol tables, traversing the source character strings in the cache region, generating corresponding drawing structure bodies for each traversed character, and sequentially storing the drawing structure bodies in the array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character; and sequentially reading the drawing structure bodies in the array, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies. The problem that attribute processing cannot be performed on a certain character in the existing rich text display method in the IOS system is solved. And moreover, during drawing, a symbol table is used for drawing, so that the problems that a lexical unit is formed in a mode of semi-structured storage and label analysis adopted in the prior art and fonts cannot be compatible due to a CoreText frame for drawing are solved.
Compared with the existing scheme, the technical scheme provided by the invention is more beneficial to the operation and the change of each character, and is more flexible. The existing technical scheme is very troublesome for changing the attribute of one character, and even wastes a large amount of memory space and CPU time. Secondly, the problem that the font displayed on the IOS5 system is a black body and the IOS6 system is normal can occur in the conventional technical scheme for drawing by using the coreText frame, and the problem of IOS font compatibility can be solved by using the technical scheme provided by the invention. In addition, in the invention, the traversal is performed by adopting a double-cache mode, so that the memory resource is saved, and the analysis speed is high. Secondly, storing the character string, the type information of the character string and the start and end pointers of the character string by setting a symbol table; and a corresponding drawing structure body can be generated for each character more quickly in the traversing process. By setting the pointer, a separate manipulation of certain types of data in the text can be achieved.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A method for displaying rich text in an intelligent terminal is characterized by comprising the following steps:
loading an input source character string into a cache region;
traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies into an array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character;
and sequentially reading the drawing structure bodies in the array, and drawing corresponding characters according to the drawing attribute information in the drawing structure bodies.
2. The method of claim 1,
after loading the input source string into the cache, the method further comprises: acquiring a specific character string in the source character string in the cache region and the initial position and the end position of the specific character string according to a preset regular expression; storing the starting position and the ending position of the specific character string and the corresponding type in a symbol table;
traversing the source character strings in the cache region, and generating a corresponding drawing structure for each traversed character includes: sequentially traversing the source character strings in the cache region; searching the symbol table once every traversing one character; when the traversed characters are characters in specific character strings in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same;
wherein the specific character string comprises one or more of: mobile phone number, URL address and email address.
3. The method of claim 2,
the method further comprises the following steps: presetting a picture table, and storing a one-to-one mapping relation between picture paths and escape characters in the picture table;
traversing the source character strings in the cache region, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies in the array further comprises:
when the traversed character is an escape character, acquiring the starting position and the ending position of the escape character;
acquiring a picture path corresponding to the escape character according to the picture table;
generating a corresponding drawing structure body according to the escape character and the corresponding picture path, and storing the drawing structure body in an array;
wherein the drawing structure of the character of the specific character string further includes: a pointer for pointing to the specific character string;
when an instruction of clicking any one character in the drawn specific character string is received, acquiring the corresponding specific character string according to a pointer in a drawing structural body of the character;
and executing the operation corresponding to the acquired specific character string.
4. The method of claim 1, wherein the buffer comprises: a first buffer area and a second buffer area;
the loading the input source character string into the cache region, and traversing the source character string in the cache region includes:
sequentially reading character strings with specified length from the source character strings and filling the character strings into a first buffer area and a second buffer area,
after traversing the character strings in the first cache region, traversing the character strings in the second cache region, deleting the character strings in the first cache region, reading the character strings with the specified length from the rest character strings of the source character strings and filling the character strings in the first cache region;
after traversing the character strings in the second cache region, traversing the character strings in the first cache region, deleting the character strings in the second cache region, reading the character strings with the specified length from the residual character strings of the source character strings and filling the character strings in the second cache region;
and sequentially circulating until the source character string is traversed.
5. The method of claim 1, wherein traversing the source character string in the buffer, and generating a corresponding drawing structure for each traversed character comprises:
setting a starting pointer and a cursor pointer, wherein the starting position of the cursor pointer is the same as the starting position of the starting pointer; wherein, the starting position of the starting pointer is the starting position of the source character string;
the cursor pointer is detected forwards, and a symbol table and a picture table are searched in the forward detection process of the cursor pointer;
when the type of a certain character is detected to be different from that of the previous character, stopping detection, and returning the cursor pointer to the position of the previous character of the character;
acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string;
jumping the position of the starting pointer to the position before the cursor pointer, and jumping the cursor pointer to the position after the starting pointer jumps;
the cursor pointer is detected again until the source character string traversal is completed;
wherein generating a corresponding rendering structure for each traversed character comprises:
setting drawing attribute information for each traversed character according to an instruction input by a user;
wherein the drawing attribute information includes one or more of: type, font, color, and font size.
6. The method of claim 2,
the reading of the drawing structure bodies in the array in sequence and the drawing of the corresponding characters according to the drawing attribute information in the drawing structure bodies comprise:
reading the drawing structure bodies in the array in sequence, and drawing corresponding characters according to the word size information in the drawing structure body read each time;
or,
reading a plurality of specific drawing structure bodies of the same type in the array in sequence, respectively obtaining the word size information in the plurality of read drawing structure bodies, and calculating the total length of the plurality of characters; and according to the calculated total length, drawing a plurality of corresponding characters at one time.
7. A system for displaying rich text in an intelligent terminal is characterized by comprising: the device comprises a cache module, a traversal module and a drawing module;
the cache module is used for loading the input source character string;
the traversal module is used for traversing the source character strings in the cache module, generating a corresponding drawing structure body for each traversed character, and sequentially storing the drawing structure bodies into an array; wherein, the drawing structure of a character includes: a character and rendering attribute information of the character;
and the drawing module is used for reading the drawing structural bodies in the array in sequence and drawing corresponding characters according to the drawing attribute information in the drawing structural bodies.
8. The system of claim 7, further comprising: the system comprises an identification module and a preset picture table; wherein, the picture table stores the one-to-one mapping relation between the picture paths and the escape characters; the drawing structure of the character of the specific character string further includes: a pointer for pointing to the specific character string;
the identification module is used for acquiring a specific character string in the source character string in the cache region and the initial position and the end position of the specific character string according to a preset regular expression; storing the starting position and the ending position of the specific character string and the corresponding type in a symbol table;
the traversal module is used for sequentially traversing the source character strings in the cache region, and searching the symbol table once every time a character is traversed; when the traversed characters are characters in specific character strings in the symbol table, setting the drawing attribute information of each character in the same specific character string to be the same; and/or; the method comprises the steps of obtaining a starting position and an ending position of an escape character when a traversed character is the escape character; acquiring a picture path corresponding to the escape character according to the picture table; and generating a corresponding drawing structure body according to the escape character and the corresponding picture path, and storing the drawing structure body in an array.
9. The system of claim 7, further comprising: clicking a module;
the system comprises a clicking module, a display module and a display module, wherein the clicking module is used for acquiring a corresponding specific character string according to an indicator in a drawing structural body of the character when receiving an instruction of clicking any one character in the drawn specific character string; executing the operation corresponding to the acquired specific character string;
the drawing module is used for reading the drawing structure bodies in the array in sequence and drawing corresponding characters according to the character size information in the drawing structure body read each time; or reading a plurality of specific drawing structure bodies of the same type in the array in sequence, respectively obtaining the word size information in the plurality of read drawing structure bodies, and calculating the total length of the plurality of characters; and according to the calculated total length, drawing a plurality of corresponding characters at one time.
10. The system of claim 7, wherein the caching module comprises: a first buffer area and a second buffer area;
the traversal module is used for sequentially reading character strings with specified lengths from the source character strings and filling the character strings into the first cache region and the second cache region, traversing the character strings in the second cache region after traversing the character strings in the first cache region, deleting the character strings in the first cache region, reading the character strings with the specified lengths from the rest character strings of the source character strings and filling the character strings in the first cache region; after traversing the character strings in the second cache region, traversing the character strings in the first cache region, deleting the character strings in the second cache region, reading the character strings with the specified length from the residual character strings of the source character strings and filling the character strings in the second cache region; sequentially circulating until the source character string is traversed;
the traversal module is internally provided with a starting pointer and a cursor pointer, and the starting position of the cursor pointer is the same as the starting position of the starting pointer; wherein, the starting position of the starting pointer is the starting position of the source character string;
the traversal module is used for searching the symbol table and the picture table in the forward detection process of the cursor pointer; when the type of a certain character is detected to be different from that of the previous character, stopping detection, and returning the cursor pointer to the position of the previous character of the character; acquiring a character string between the starting pointer and the cursor pointer, and generating a corresponding drawing structure body for each character in the acquired character string; jumping the position of the starting pointer to the position before the cursor pointer, and jumping the cursor pointer to the position after the starting pointer jumps; and detecting the cursor pointer again until the traversal of the source character string is completed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310430602.6A CN104462029B (en) | 2013-09-18 | 2013-09-18 | The method and system that rich text is shown in a kind of intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310430602.6A CN104462029B (en) | 2013-09-18 | 2013-09-18 | The method and system that rich text is shown in a kind of intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104462029A true CN104462029A (en) | 2015-03-25 |
CN104462029B CN104462029B (en) | 2017-11-21 |
Family
ID=52908102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310430602.6A Active CN104462029B (en) | 2013-09-18 | 2013-09-18 | The method and system that rich text is shown in a kind of intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104462029B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209306A (en) * | 2016-06-24 | 2016-12-07 | 北京智慧云行科技有限责任公司 | A kind of road transport vehicle satellite positioning system terminal means of communication and device |
CN106202011A (en) * | 2016-07-13 | 2016-12-07 | 成都知道创宇信息技术有限公司 | A kind of method extracting phone number |
CN109472833A (en) * | 2018-10-16 | 2019-03-15 | 深圳壹账通智能科技有限公司 | A kind of method, storage medium and server extracting picture from journal file |
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN109949391A (en) * | 2019-03-18 | 2019-06-28 | 武汉斗鱼鱼乐网络科技有限公司 | Graphic rendering method, apparatus, electronic equipment and storage medium |
CN110032401A (en) * | 2018-01-10 | 2019-07-19 | 武汉斗鱼网络科技有限公司 | A kind of method for transformation, storage medium, equipment and the system of special pattern number |
CN110188326A (en) * | 2018-02-22 | 2019-08-30 | 深圳市萌蛋互动网络有限公司 | Rich text generation method, device, computer equipment and storage medium |
CN110489604A (en) * | 2019-07-31 | 2019-11-22 | 中国航发沈阳发动机研究所 | A kind of analytic method and system for gas turbin test measurement data |
CN111405342A (en) * | 2020-03-17 | 2020-07-10 | 北京字节跳动网络技术有限公司 | Rich text message display method, device, system, medium and electronic equipment |
CN112233206A (en) * | 2019-07-15 | 2021-01-15 | 浙江宇视科技有限公司 | Character image generation method, device, equipment and storage medium |
CN113031949A (en) * | 2021-04-20 | 2021-06-25 | 深圳市活力天汇科技股份有限公司 | iOS-based text rendering engine, method, apparatus, device, and medium |
CN115544327A (en) * | 2022-10-20 | 2022-12-30 | 北京圜晖科技有限公司 | PMI data display method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1177148A (en) * | 1996-09-17 | 1998-03-25 | 富士通株式会社 | Display control apparatus, display control method and computer program product |
CN1842013A (en) * | 2005-03-28 | 2006-10-04 | 腾讯科技(深圳)有限公司 | Method for realizing dynamic text information |
CN101361059A (en) * | 2006-04-12 | 2009-02-04 | 龙搜(北京)科技有限公司 | System and method supporting displaying content on portable apparatus |
CN102542054A (en) * | 2011-12-29 | 2012-07-04 | 厦门雅迅网络股份有限公司 | Method utilizing cache tables to improve insertion performance of data in database |
CN102567285A (en) * | 2010-12-13 | 2012-07-11 | 汉王科技股份有限公司 | Document loading method and device |
JP2013092892A (en) * | 2011-10-25 | 2013-05-16 | Sony Computer Entertainment Inc | Information display apparatus, information display method, and computer program |
-
2013
- 2013-09-18 CN CN201310430602.6A patent/CN104462029B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1177148A (en) * | 1996-09-17 | 1998-03-25 | 富士通株式会社 | Display control apparatus, display control method and computer program product |
CN1842013A (en) * | 2005-03-28 | 2006-10-04 | 腾讯科技(深圳)有限公司 | Method for realizing dynamic text information |
CN101361059A (en) * | 2006-04-12 | 2009-02-04 | 龙搜(北京)科技有限公司 | System and method supporting displaying content on portable apparatus |
CN102567285A (en) * | 2010-12-13 | 2012-07-11 | 汉王科技股份有限公司 | Document loading method and device |
JP2013092892A (en) * | 2011-10-25 | 2013-05-16 | Sony Computer Entertainment Inc | Information display apparatus, information display method, and computer program |
CN102542054A (en) * | 2011-12-29 | 2012-07-04 | 厦门雅迅网络股份有限公司 | Method utilizing cache tables to improve insertion performance of data in database |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106209306A (en) * | 2016-06-24 | 2016-12-07 | 北京智慧云行科技有限责任公司 | A kind of road transport vehicle satellite positioning system terminal means of communication and device |
CN106209306B (en) * | 2016-06-24 | 2019-05-31 | 北京智慧云行科技有限责任公司 | A kind of road transport vehicle satellite positioning system terminal means of communication and device |
CN106202011A (en) * | 2016-07-13 | 2016-12-07 | 成都知道创宇信息技术有限公司 | A kind of method extracting phone number |
CN110032401A (en) * | 2018-01-10 | 2019-07-19 | 武汉斗鱼网络科技有限公司 | A kind of method for transformation, storage medium, equipment and the system of special pattern number |
CN110032401B (en) * | 2018-01-10 | 2022-06-21 | 武汉斗鱼网络科技有限公司 | Special style number conversion method, storage medium, equipment and system |
CN110188326A (en) * | 2018-02-22 | 2019-08-30 | 深圳市萌蛋互动网络有限公司 | Rich text generation method, device, computer equipment and storage medium |
CN110188326B (en) * | 2018-02-22 | 2023-08-11 | 深圳市萌蛋互动网络有限公司 | Rich text generating method, rich text generating device, computer equipment and storage medium |
CN109472833A (en) * | 2018-10-16 | 2019-03-15 | 深圳壹账通智能科技有限公司 | A kind of method, storage medium and server extracting picture from journal file |
CN109949391B (en) * | 2019-03-18 | 2023-09-26 | 武汉斗鱼鱼乐网络科技有限公司 | Image-text drawing method, image-text drawing device, electronic equipment and storage medium |
CN109949391A (en) * | 2019-03-18 | 2019-06-28 | 武汉斗鱼鱼乐网络科技有限公司 | Graphic rendering method, apparatus, electronic equipment and storage medium |
CN109933751B (en) * | 2019-03-20 | 2021-07-20 | 腾讯科技(深圳)有限公司 | Image-text drawing method and device, computer-readable storage medium and computer equipment |
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN112233206A (en) * | 2019-07-15 | 2021-01-15 | 浙江宇视科技有限公司 | Character image generation method, device, equipment and storage medium |
CN112233206B (en) * | 2019-07-15 | 2024-03-22 | 浙江宇视科技有限公司 | Character image generation method, device, equipment and storage medium |
CN110489604A (en) * | 2019-07-31 | 2019-11-22 | 中国航发沈阳发动机研究所 | A kind of analytic method and system for gas turbin test measurement data |
CN110489604B (en) * | 2019-07-31 | 2023-09-05 | 中国航发沈阳发动机研究所 | Analysis method and system for test measurement data of gas turbine |
CN111405342A (en) * | 2020-03-17 | 2020-07-10 | 北京字节跳动网络技术有限公司 | Rich text message display method, device, system, medium and electronic equipment |
CN113031949A (en) * | 2021-04-20 | 2021-06-25 | 深圳市活力天汇科技股份有限公司 | iOS-based text rendering engine, method, apparatus, device, and medium |
CN115544327A (en) * | 2022-10-20 | 2022-12-30 | 北京圜晖科技有限公司 | PMI data display method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104462029B (en) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104462029B (en) | The method and system that rich text is shown in a kind of intelligent terminal | |
CN110362370B (en) | Webpage language switching method and device and terminal equipment | |
US9680782B2 (en) | Identifying relevant content in email | |
US10491550B2 (en) | Instant communication | |
CN105549936B (en) | Data table display method and device | |
CN106648569B (en) | Target serialization realization method and device | |
CN107436948B (en) | File searching method and device and terminal | |
WO2022002066A1 (en) | Method and apparatus for browsing table in document, and electronic device and storage medium | |
CN108459998B (en) | Document updating method, document updating device, document format converting method, document updating format converting device, document format converting device and readable storage medium | |
CN101561725B (en) | Method and system of fast handwriting input | |
CN114036431A (en) | Page cache skipping method and device, electronic equipment and storage medium | |
CN116610398A (en) | Recursive tree component exhibiting method, recursive tree component exhibiting device, computer equipment and computer readable storage medium | |
US20240193622A1 (en) | Interactive user interface (iui) and associated systems and methods for display of sustainability information corresponding to an item | |
CN113127776A (en) | Breadcrumb path generation method and device and terminal equipment | |
CN110609981A (en) | Text processing method and device, electronic equipment and computer readable storage medium | |
CN103164122B (en) | A kind of method and device calling address list content | |
CN103744883A (en) | Method and system for rapidly selecting information fragments | |
CN113656737A (en) | Webpage content display method and device, electronic equipment and storage medium | |
CN106951531B (en) | Data query method and device | |
CN110908996A (en) | Data processing method and device | |
CN109614592B (en) | Text processing method and device, storage medium and electronic equipment | |
CN114528510A (en) | Webpage data processing method and device, electronic equipment and medium | |
CN108021567B (en) | Method and device for self-adaptively customizing fonts of browser | |
CN114048048A (en) | Information sharing method and device, electronic equipment and storage medium | |
CN104077292A (en) | Webpage information storage method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080 Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building 6 storey block A room 602 Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd. |
|
CP02 | Change in the address of a patent holder |