CN110110073A - A kind of text methods of exhibiting and device - Google Patents

A kind of text methods of exhibiting and device Download PDF

Info

Publication number
CN110110073A
CN110110073A CN201810076667.8A CN201810076667A CN110110073A CN 110110073 A CN110110073 A CN 110110073A CN 201810076667 A CN201810076667 A CN 201810076667A CN 110110073 A CN110110073 A CN 110110073A
Authority
CN
China
Prior art keywords
text
pattern
presented
client
text information
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
Application number
CN201810076667.8A
Other languages
Chinese (zh)
Other versions
CN110110073B (en
Inventor
冀凤杰
何以然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing High Technology Co Ltd De Map
Original Assignee
Beijing High Technology Co Ltd De Map
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing High Technology Co Ltd De Map filed Critical Beijing High Technology Co Ltd De Map
Priority to CN201810076667.8A priority Critical patent/CN110110073B/en
Publication of CN110110073A publication Critical patent/CN110110073A/en
Application granted granted Critical
Publication of CN110110073B publication Critical patent/CN110110073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of text methods of exhibiting and devices.The main technical solution of the present invention are as follows: front end obtains text information to be presented and the corresponding pattern file of text information to be presented, and the text information to be presented and the pattern file are passed to pattern engine;Text style in pattern file is resolved to client text style, and passes to client after the text information to be presented client text style corresponding with its is associated with by the pattern engine;The associated client text style of text information to be presented is converted to system literal pattern, and calls the operating system of terminal according to system literal pattern by the client, shows its corresponding text information to be presented.Technical solution of the present invention is mainly used for the displaying of the text in application program.

Description

A kind of text methods of exhibiting and device
Technical field
The present invention relates to text display technique field more particularly to a kind of text methods of exhibiting and device.
Background technique
As shown in Figure 1, the text of application program shows that the demand for including the displaying of text branch, text can not show Shi Yitian The demand etc. for adding ellipsis to show.In the prior art, text shows that the statement layer usually easily perceived in user uses JavaScript is realized, inventors have found that this response speed that will lead to application program reduces.
Summary of the invention
In view of the above problems, the invention proposes a kind of text methods of exhibiting and device, main purpose is to promote application The response speed of program.
In order to achieve the above objectives, present invention generally provides following technical solutions:
On the one hand, the present invention provides a kind of text methods of exhibiting, specifically includes:
Front end obtains text information to be presented and the corresponding pattern file of text information to be presented, and will be described to be presented Text information and the pattern file pass to pattern engine;
Text style in pattern file is resolved to client text style by the pattern engine, and by described wait open up Show and passes to client after text information client text style corresponding with its is associated with;
The associated client text style of text information to be presented is converted to system literal pattern by the client, and It calls the operating system of terminal according to system literal pattern, shows its corresponding text information to be presented.
On the other hand, the present invention provides a kind of text displaying device, specifically includes:
Front end, for obtaining text information to be presented and the corresponding pattern file of text information to be presented, and will it is described to Show that text information and the pattern file pass to pattern engine;
The pattern engine, for the text style in pattern file to be resolved to client text style, and will be described Text information to be presented client text style corresponding with its passes to client after being associated with;
The client, for the associated client text style of text information to be presented to be converted to system literal sample Formula, and call the operating system of terminal according to system literal pattern, show its corresponding text information to be presented.
On the other hand, the present invention provides a kind of storage medium, which includes the program of storage, wherein the journey Equipment where controlling the storage medium when sort run executes text methods of exhibiting described in above-mentioned first aspect.
On the other hand, the present invention provides a kind of processor, and the processor is for running program, wherein described program fortune Text methods of exhibiting described in above-mentioned first aspect is executed when row.
By above-mentioned technical proposal, a kind of text methods of exhibiting and device provided by the invention are to show text in application When information, acquired text information to be presented pattern file corresponding with its is sent to by pattern engine by front end, by this Pattern engine parses the pattern file, obtains the client text style that client can identify, and by the client text sample Formula is associated with text information to be presented, is sent to client together, finally, is converted to client text style by client System literal pattern used in terminal operating system, and text information to be presented is shown by call operation system. It is shown compared with statement layer is realized with existing text, invention introduces pattern engines, pass through the text in parsing pattern file Printed words formula is simultaneously converted to the identifiable client text style of client, realizes and executes text by client call operating system Show operation, compared with the statement layer that user easily perceives, pattern engine general user can not directly be perceived, and can not for user The part directly perceived can usually be developed using C/C++ language, can be than using using the function of C/C++ language development The functional response speed of JavaScript exploitation is fast, further, using technical solution provided by the invention, performed by application program Operation essentially consist in the transmitting of text style, without to text itself execute it is specific show operation, thus be greatly reduced Demand to process resource, improves the speed of service of application program.
In addition, the present invention passes through the client text style that client receiving style engine is transmitted, it is reconverted into terminal The identifiable system literal pattern of operating system, and since the pattern that client has the text that will be shown in application program turns It is changed to the function of the pattern of operating system understanding, therefore, is not necessarily to be directed to different terminals using technical solution provided by the invention Operating system carries out different developments, so also reduces the development and maintenance cost of application program.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the effect picture that text is shown in existing application page;
Fig. 2 shows a kind of structural schematic diagrams of application program;
Fig. 3 shows a kind of flow chart of text methods of exhibiting of proposition of the embodiment of the present invention;
Fig. 4 shows the process interaction figure of another text methods of exhibiting of proposition of the embodiment of the present invention;
A kind of text that Fig. 5 shows proposition of the embodiment of the present invention shows the composition block diagram of device.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of text methods of exhibiting, are mainly used on intelligent terminal, for quickly opening up Show the text information in application program (APP).This method is held by the front end of application program, pattern engine and client three Row.The structure of typical application program is broadly divided into three layers at present, is respectively as follows: statement layer, Business Logic and database layer.Its In, statement layer is mainly used for providing the interface interacted with user, and Business Logic is mainly used for realizing various businesses logic, and counts It is mainly used for being responsible for the persistence business datum of storage and management application according to library layer, as shown in Fig. 2, front end is generally located with client In the statement layer of application program, front end includes the Front-end Design and exploitation to application program, and Front-end Design may be generally understood to The Vision Design of the page, and front end exploitation is then the code realization for the page;Client, which mainly passes through, to be called in terminal Operating system shows specifying information and function in application to user;Pattern engine is usually the business that application program is arranged in In logical layer, in the present embodiment, which is mainly used for the processing to pattern file.The specific steps of the present embodiment are as schemed Shown in 3, comprising:
101, text information to be presented and the corresponding pattern file of text information to be presented are obtained, and by the text to be presented Word information and the pattern file pass to pattern engine.
This step is executed by front end, wherein text information to be presented includes needing using journey in embodiments of the present invention The word content and related label shown in the interface of sequence, and pattern file at least describes text style, text style May include: font, the font size of text, the color of word, word space, line space and when text can not be shown completely for replacing The information such as the symbol of Valsartan word.
In practical applications, the text in the even same page, it is also possible to need a variety of text styles.Such as Fig. 1 institute Show, " why shorter the city of Beijing Art Museum exhibition duration of an exhibition is? " pattern and " Central Academy of Fine Arts " or " UC top news " pattern meeting Difference, for example, " the city of Beijing Art Museum exhibition duration of an exhibition it is why shorter? " font color is black, and " UC top news " font color For light gray.Therefore, for different text informations, different text styles can be set in advance, and text style is stored in In pattern file.Thus, front end can also obtain corresponding to the text information to be presented while obtaining text information to be presented Pattern file.Under normal conditions, text information to be presented is generally determined by page presentation demand, that is, application program is being shown When one page, front end, which receives, needs the text information to be presented shown in the page, meanwhile, front end needs to obtain to be presented Text information corresponding to pattern file, and give acquired data information transfer to pattern engine.In practical applications, preceding It holds the text information to be presented received to can be the server end return of the application program, is also possible to the application program at end What end equipment locally generated, the present invention does not do any restrictions.
102, the text style in pattern file is resolved into client text style, and by the text information to be presented Client text style corresponding with its passes to client after being associated with.
This step is executed by pattern engine, and by the parsing of pattern engine, realization will be in pattern file acquired in front end Text style be converted to the client text style that client can identify.It is answered using technical solution provided by the invention exploitation When with program, front end and pattern engine needs arrange to transmit the agreement of text information and pattern file to be presented, to ensure front end Tissue and text information to be presented and pattern file can be transmitted in such a way that pattern engine recognizes, and pattern engine is receiving After the data sent to front end, it is text information to be presented which, which can correctly be parsed, which is pattern file.
Then, since pattern engine will transfer data to client, so, it is also required between pattern engine and client Agreement transmits the agreement of text information and text style to be presented, by pattern engine by the text style in pattern file according to association View is converted to the client text style of client understanding, meanwhile, pattern engine is also needed text information to be presented and correspondence Client text style be associated, that is, client text style is articulated on its corresponding text information to be presented.
103, the associated client text style of text information to be presented is converted into system literal pattern, and calls terminal Operating system according to system literal pattern, show its corresponding text information to be presented.
This step is receiving text information to be presented and associated client text sample by client executing, client After formula, following two steps operation can be executed:
First, client text style is converted into system literal pattern.Wherein, system literal pattern refers to that installing this answers The text style used with the terminal of program operating system mounted.For example, the common operating system packet of current smart phone IOS system and android system are included, the system literal pattern that different operating system uses is different, in order to compatible each Kind operating system, existing application program need to develop the application program of different editions, but this for different operating system Client text style can be converted to system literal pattern by invention client, that is, client of the present invention can be based on terminal Client text style is converted into the system literal pattern that this operating system can identify by current operating system.Therefore, Using the application program for not needing to develop different editions for different operating system again after method provided by the invention.
Second, call operation system carries out text displaying.Wherein, call operation system is by calling the operating system sudden and violent Reveal and is realized to the api interface of application program (Application Programming Interface, application programming interface) 's.The text style as corresponding to text information to be presented has been converted into the identifiable system literal pattern of operating system, Therefore, application program api interface related with text displaying is exposed to by call operation system, so that it may real using system resource Now to the Rendering operations of text information to be presented, it is no longer necessary to handle text information using the operation resource of application program.
Specific implementation in through the foregoing embodiment can be seen that a kind of text exhibition that the embodiment of the present invention is proposed Show method, by the way that pattern engine is added in the application, realizes and turn the text style in pattern file acquired in front end It is changed to the client text style that client can identify, and client text style is again converted to terminal behaviour by client Make the system literal pattern that system can identify, final realize is shown in application by operating system according to system literal pattern Text information to be presented.As it can be seen that relative to the existing processing mode for carrying out text displaying in front end, the embodiment of the present invention is The operation that text is shown is converted by the format to text style data and transmitting, is transferred to client executing by front end, By calling terminal operating system, text information to be presented is carried out with system literal pattern the displaying operation such as to render, is avoided The complex operations step of execution needed for directly showing text in front end, to improve the execution and response speed of application program. Meanwhile the embodiment of the present invention is when being executed, since the displaying of its text is that text style is converted into system literal pattern again Call operation system is shown operation, thus, the present embodiment is just not necessarily to when text is shown for different terminal operation systems System carries out different developments, so also reduces the research and development and maintenance cost of application program.
Text methods of exhibiting is illustrated in order to further details of, the embodiment of the present invention will exist in conjunction with Fig. 4 for application program Show that specific steps performed when the text in interface are illustrated.As shown in figure 4, the present embodiment, which will focus on, illustrates front end 201, pattern engine 202 and client 203 be when executing text and showing operation, the treatment process that carried out to text style and Data exchange process between three:
First, application program obtains text information to be presented in the process of running, by front end 201, meanwhile, according to be presented Type label in text information obtains the corresponding pattern file of text information to be presented.
In the present invention, the type label may include: title, text etc..For text, the pattern one of text As it is relatively high with the type association degree of text, therefore, the present invention gets the text style in pattern file can be with the class of text Type label is relevant.Further, as shown in Figure 1, text in certain situations it is desirable to show, for this purpose, originally together with picture It invents in the pattern file provided and not only describes the pattern that text style further comprises picture, so, it is to be presented with regard to some Text information finally will not only consider the type mark of text information to be presented in practical applications for its selected pattern file Label, it is also necessary to which other comprehensive element demands to be shown carry out Integrated Selection.For example, just being needed when text and picture are shown simultaneously Comprehensively consider the display demand of picture.
Second, front end 201 is after completing the above-mentioned processing to text information to be presented and corresponding pattern file, front end 201, which can pass it to pattern engine 202, is handled.
Specifically, the present embodiment will be illustrated for the difference of text information quantity to be presented, acquisition one can be divided into Item text information to be presented obtains two or more two kinds of situations of text information to be presented:
1, when getting a text information to be presented, the pattern file got is generally also one.
2, when getting two or more text informations to be presented, front end typically results in more than one pattern text Part.
The text information to be presented of an either text information to be presented or two or more, the present invention provide real Example is applied, text information to be presented is saved as a file by front end, and pattern file is saved as a file and passes to pattern engine. It should be noted that, although text information to be presented and pattern file pass to pattern engine by different files, but wait open up Show text information and pattern file still remains corresponding relationship, the present invention does not limit the interrelational form of corresponding relationship, for example, can be with It is to record text information and pattern file to be presented in that same order in different files, thus text information to be presented Corresponding relationship is formed between pattern file, is also possible to the mark in text information to be presented and pattern file and identifies to determine Mutual corresponding relationship, the present invention do not do any restrictions.
As previously mentioned, text information and pattern file to be presented, but this are transmitted by two files to pattern engine in front end Invention does not limit the sequencing of two files transmitting.Certainly, in other embodiments, it is also possible to believe according to text to be presented The corresponding relationship of breath and pattern file, sequence is sent in groups, has no effect on realization of the invention.Specific transfer mode, can root Unified transmission policy is defined according to actual needs, and is executed by front end according to corresponding strategy.
Third receives text information to be presented and corresponding pattern file by pattern engine 202, utilizes preset pattern Library is encapsulated, the text style in the pattern file is resolved into client text style, and by the text information to be presented Client text style corresponding with its is associated with.
Wherein, pattern engine 202 obtains visitor using the text style in preset pattern encapsulation library parsing pattern file During the text style of family end, pattern encapsulation library be it is preset in the application, be mainly used for parse text style in Value corresponding to specific style field and each field.For example, can determine text sample by the parsing that pattern encapsulates library Which pattern parameter there is in formula, include value corresponding to the parameters such as font size, color, spacing and parameters.Together When, it, can at client by these pattern Parameter Switch according to preset corresponding relationship after parsing corresponding text style The content of identification, to generate a new client text style.
In addition, pattern engine 202 is after completing conversion operation, it can also be by obtained client text style and text to be presented Word information is associated.It is that there is corresponding close each other since pattern engine is when receiving text information and pattern file to be presented System.Also, client text style be it is generated based on the text style in pattern file, therefore, pattern engine 202 can Obtained client text style text information to be presented corresponding with pattern file to be associated, the association refers to Text information to be presented client text style corresponding with its is existed together.
4th, pattern engine 202, can be by text to be presented after completing above-mentioned data conversion and data correlation operation Information and client text style save as a file and are sent to client 203, that is, what front end was sent to pattern engine is two File, file record text information to be presented, a file record pattern file, but pattern engine is sent to client Be a file, this document had both had recorded text information to be presented or had had recorded its corresponding client text style.Wherein, The case where for two or more text informations to be presented is then the client text that every text information to be presented is corresponding Printed words formula is then forwarded to client after saving as a file.That is, what front end was sent to pattern engine is two files, record has more The file and record of the text information to be presented of item have the file of multiple pattern files, and pattern engine is sent to the text of client Number of packages amount is then identical as the quantity of text information to be presented, and record has text information to be presented and its correspondence in each file Client text style.
It can be seen that pattern engine is compared to front end in the phase for transmitting text information to be presented and corresponding text style When closing data, used sending method is different, and pattern engine is the file for a text information to be presented for sending front end And one record pattern file file in content all split, and according to incidence relation by every text information to be presented with Corresponding client text style, which reconfigures, passes to client for a file, in this way, when have two or more wait open up When showing text information, client will receive the multiple groups file of pattern engine transmission, all include in every a group of file one to Show text information and its corresponding client text style.
5th, the associated client text style of text information to be presented is converted into system literal sample by client 203 Formula, and call the operating system of terminal according to system literal pattern, show its corresponding text information to be presented.Due to the step It is identical as the step 103 in above-mentioned Fig. 3 embodiment, it is all to pass through client executing.Thus, it is no longer carried out herein for the content It illustrates.
When executing text displaying operation to front end 201 provided by the invention, pattern engine 202 and client 203 above Optimum embodiment be described, be illustrated below in conjunction with specific example:
When processing be a text information and one style file when, front end obtain after obtain { text }, color: Black, lineclamp:2 }, and both of these documents are transmitted to pattern engine;It is parsed by pattern engine for pattern file It obtains { xxxxxcolor:black, xxxxxxlineclamp:2 }, i.e. the client text style that can identify of client, together When, { text } is saved into a container, and extract the coordinate of the container, the coordinate and client text style are transmitted To client;Finally, client text style is converted into { * * * * * color:black%#, * * * * * by client Lineclamp:2%# }, i.e. system literal pattern, while utilizing by calling system api interface the operating system pair of terminal { text } in container is rendered, shows operation.
It is corresponding, when processing be a plurality of text information and multiple pattern files when, specifically for two, front end obtain To { text 1 }, corresponding pattern file is { color:black, lineclamp:2 } and { text 2 }, and corresponding pattern file is {color:blue,lineclamp:3};And front end can be by { text 1;Text 2 } and { color:black, lineclamp:2; Color:blue, lineclamp:3 } two files pass to pattern engine;And pattern engine by parsing after, by what is obtained The container coordinate of { xxxxxcolor:black, xxxxxxlineclamp:2 } and { text 1 }, and, xxxxxcolor: Blue, xxxxxxlineclamp:3 } and the container combinatorial coordinates of { text 2 } pass to client;It finally, will by client Above-mentioned client text style is converted to the system literal pattern that operating system can identify, and call operation system carries out text Show operation, operation at this time is identical as the processing process of one text information, repeats no more.
It can be seen that implementation of the present invention by the implementation of above-mentioned Fig. 4 embodiment described and optimum embodiment Example has stressed front end is that corresponding pattern file how is obtained according to text information to be presented;Pattern engine is how will Pattern document analysis is that client text style and front end and pattern engine are transmitting text information to be presented and corresponding phase Close the difference of text style data.And pass through the explanation of the embodiment, it realizes and pattern file is passed through into pattern engine and visitor The processing at family end is ultimately converted to the system literal pattern that operating system can identify, and is held by client call operating system The displaying of row text information operates.And text information is shown by call operation system, for application program, not only save It has gone largely to be directed to the development that text information is shown in front end, and when carrying out text displaying, front end is without holding The displaying operation of a large amount of text information of row, simplifies the execution step of front end, enables the response user that front end is more efficient Operation, improve application program the speed of service and user application experience.
Further, as the realization to method shown in above-mentioned Fig. 3 and Fig. 4, the embodiment of the invention provides a kind of texts Show that device, the device are applied to quickly show the text information in application program on intelligent terminal.To be easy to read, this dress It sets embodiment no longer to repeat the detail content in preceding method embodiment one by one, it should be understood that in the present embodiment Device can correspond to the full content realized in preceding method embodiment.The composition of the device is specific as shown in figure 5, specific packet It includes:
Front end 31, for obtaining text information to be presented and the corresponding pattern file of text information to be presented, and will be described Text information to be presented and the pattern file pass to pattern engine 32.
In practical applications, front end 31 specifically includes: obtaining module 311 and sending module 312, wherein obtains module 311 Specifically for obtaining text information to be presented and the corresponding pattern file of text information to be presented, and sending module 312 is specifically used In the text information to be presented and the pattern file are passed to pattern engine 32
Pattern engine 32, for the text style in pattern file to be resolved to client text style, and will it is described to It shows and passes to client 33 after text information client text style corresponding with its is associated with.
In practical applications, pattern engine 32 specifically includes: parsing module 321 and transmission module 322, wherein parsing mould Block 321 is used to resolve to the text style in pattern file client text style, and transmission module 322 is used for described wait open up Show and passes to client 33 after text information client text style corresponding with its is associated with.
The client 33, for the associated client text style of text information to be presented to be converted to system literal sample Formula, and call the operating system of terminal according to system literal pattern, show its corresponding text information to be presented.
In practical applications, client 33 specifically includes: conversion module 331 and calling module 332, wherein conversion module 331 for being converted to system literal pattern for the associated client text style of text information to be presented, and calling module 332 is used for It calls the operating system of terminal according to system literal pattern, shows its corresponding text information to be presented.
Further, it is preferred that the process tool for obtaining module 311 and obtaining the corresponding pattern file of text information to be presented Body includes:
In the pattern file packet prestored, there are associated samples with the type label in the text information to be presented for acquisition Formula file is as the corresponding pattern file of the text information to be presented.
Further, it is preferred that the text style in pattern file is resolved to client text sample by the parsing module 321 The process of formula specifically includes:
Library is encapsulated using preset pattern, the text style in the pattern file is resolved into client text style.
Further, it is preferred that the sending module 312 transmits the text information to be presented and the pattern file It is specifically included during to pattern engine:
Text information to be presented is saved as a file and pattern file is saved as a file and is delivered separately to pattern Engine.
Further, it is preferred that the transmission module 322 is literary by the text information to be presented client corresponding with its The process that client is passed to after the association of printed words formula specifically includes:
Text information to be presented client text style corresponding with its is saved as into a file and passes to client.
In conclusion text methods of exhibiting used by the embodiment of the present invention and device, to the text in application program It is to be sent out acquired text information to be presented pattern file corresponding with its by the front end in application when carrying out rendering displaying It send to pattern engine, which is parsed by the pattern engine, obtain the client text style that client can identify, and The client text style is associated with text information to be presented, further and it is sent to client, it finally, will be objective by client Family end text style is converted to system literal pattern used in terminal operating system, and by call operation system to be presented Text information is shown.Show that compared with statement layer is realized, the embodiment of the present invention is drawn by introducing pattern with existing text It holds up the text style in parsing pattern file and is converted to the identifiable client text style of client, realize by client Call operation system executes text and shows operation, and compared with the statement layer that user easily perceives, pattern engine general user can not be straight Perception is connect, and the part that can not directly perceive for user can usually be developed using C/C++ language, using C/C++ language Say that the function of exploitation can be faster than the functional response speed using JavaScript exploitation, further, using skill provided by the invention Art scheme, operation performed by application program essentially consist in the transmitting of text style, specific without executing to text itself It shows operation, thus significantly reduces the demand to process resource, improve the speed of service of application program.
In addition, using text methods of exhibiting and device used in the embodiment of the present invention, in addition to application program can be improved Outside the speed of service, the client text style transmitted by then passing through client receiving style engine is reconverted into terminal behaviour Make the identifiable system literal pattern of system to be shown text, and will be shown in application program since client has The pattern of text is converted to the function of the pattern of operating system understanding, therefore, is not necessarily to needle using technical solution provided by the invention Different developments is carried out to different terminal operating systems, so also reduces the development and maintenance cost of application program.
Further, the embodiment of the invention also provides a kind of storage medium, which includes the program of storage, In, equipment executes text methods of exhibiting provided by the invention described program controls the storage medium when running where.
In addition, the processor is for running program, wherein described the embodiment of the invention also provides a kind of processor Program executes above-mentioned text methods of exhibiting provided by the invention when running.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In addition, memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes extremely A few storage chip.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of text methods of exhibiting, which is characterized in that the described method includes:
Front end, obtains text information to be presented and the corresponding pattern file of text information to be presented, and by the text to be presented Information and the pattern file pass to pattern engine;
Text style in pattern file is resolved to client text style by the pattern engine, and by the text to be presented Word information client text style corresponding with its passes to client after being associated with;
The associated client text style of text information to be presented is converted to system literal pattern, and called by the client The operating system of terminal shows its corresponding text information to be presented according to system literal pattern.
2. the method according to claim 1, wherein described obtain the corresponding pattern file of text information to be presented It specifically includes:
In the pattern file packet prestored, there are associated pattern texts with the type label in the text information to be presented for acquisition Part is as the corresponding pattern file of the text information to be presented.
3. method according to claim 1 or 2, which is characterized in that the text style in pattern file is resolved to client End text style specifically includes:
Library is encapsulated using preset pattern, the text style in the pattern file is resolved into client text style.
4. method according to claim 1 or 2, which is characterized in that believe the pattern file and the text to be presented Breath passes to pattern engine and specifically includes:
Text information to be presented is saved as a file and pattern file is saved as a file and is delivered separately to pattern engine.
5. according to the method described in claim 4, it is characterized in that, by the text information to be presented client corresponding with its Client is passed to after text style association to specifically include:
Text information to be presented client text style corresponding with its is saved as into a file packet and passes to client.
6. a kind of text shows device, which is characterized in that described device includes:
Front end, for obtaining text information to be presented and the corresponding pattern file of text information to be presented, and will be described to be presented Text information and the pattern file pass to pattern engine;
The pattern engine, for the text style in pattern file to be resolved to client text style, and by described wait open up Show and passes to client after text information client text style corresponding with its is associated with;
The client, for the associated client text style of text information to be presented to be converted to system literal pattern, and It calls the operating system of terminal according to system literal pattern, shows its corresponding text information to be presented.
7. device according to claim 6, which is characterized in that the front end obtains the corresponding pattern of text information to be presented The process of file specifically includes:
In the pattern file packet prestored, there are associated pattern texts with the type label in the text information to be presented for acquisition Part is as the corresponding pattern file of the text information to be presented.
8. device according to claim 6 or 7, which is characterized in that the pattern engine is by the text sample in pattern file The process that formula resolves to client text style specifically includes:
Library is encapsulated using preset pattern, the text style in the pattern file is resolved into client text style.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein when described program is run Terminal perform claim where controlling the storage medium requires text methods of exhibiting described in any one of 1-5.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit requires text methods of exhibiting described in any one of 1-5.
CN201810076667.8A 2018-01-26 2018-01-26 Character display method and device Active CN110110073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810076667.8A CN110110073B (en) 2018-01-26 2018-01-26 Character display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810076667.8A CN110110073B (en) 2018-01-26 2018-01-26 Character display method and device

Publications (2)

Publication Number Publication Date
CN110110073A true CN110110073A (en) 2019-08-09
CN110110073B CN110110073B (en) 2021-07-23

Family

ID=67483138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810076667.8A Active CN110110073B (en) 2018-01-26 2018-01-26 Character display method and device

Country Status (1)

Country Link
CN (1) CN110110073B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176923A (en) * 2021-04-30 2021-07-27 北京白龙马云行科技有限公司 Application program running method, method and device for assisting application program running

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920754A (en) * 2006-09-05 2007-02-28 北京搜狗科技发展有限公司 Method and system for inputting artistic character/image into application program
CN101287220A (en) * 2008-05-28 2008-10-15 中兴通讯股份有限公司 Subject management system and method for mobile terminal
CN101533348A (en) * 2009-04-23 2009-09-16 光庭导航数据(武汉)有限公司 Man-machine interactive platform
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal
CN105354016A (en) * 2014-08-21 2016-02-24 西安慧泽知识产权运营管理有限公司 Application topic management system and method
CN105426204A (en) * 2015-11-05 2016-03-23 浪潮软件集团有限公司 Web high-speed loading rendering method based on domestic CPU, operating system and browser
CN105912543A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 Device, system, and method for multi-terminal content publishing
CN106776584A (en) * 2016-11-24 2017-05-31 网易(杭州)网络有限公司 Character displaying method, translation table generating method, document translation method and device
US20170310567A1 (en) * 2016-04-25 2017-10-26 Google Inc. Dynamically rendering interaction statistics data for content elements of an information resource using visual styles

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920754A (en) * 2006-09-05 2007-02-28 北京搜狗科技发展有限公司 Method and system for inputting artistic character/image into application program
CN101287220A (en) * 2008-05-28 2008-10-15 中兴通讯股份有限公司 Subject management system and method for mobile terminal
CN101533348A (en) * 2009-04-23 2009-09-16 光庭导航数据(武汉)有限公司 Man-machine interactive platform
CN102646038A (en) * 2012-02-28 2012-08-22 广州市动景计算机科技有限公司 Control content display method, control content display device and mobile terminal
CN105354016A (en) * 2014-08-21 2016-02-24 西安慧泽知识产权运营管理有限公司 Application topic management system and method
CN105426204A (en) * 2015-11-05 2016-03-23 浪潮软件集团有限公司 Web high-speed loading rendering method based on domestic CPU, operating system and browser
CN105912543A (en) * 2015-12-14 2016-08-31 乐视网信息技术(北京)股份有限公司 Device, system, and method for multi-terminal content publishing
US20170310567A1 (en) * 2016-04-25 2017-10-26 Google Inc. Dynamically rendering interaction statistics data for content elements of an information resource using visual styles
CN106776584A (en) * 2016-11-24 2017-05-31 网易(杭州)网络有限公司 Character displaying method, translation table generating method, document translation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176923A (en) * 2021-04-30 2021-07-27 北京白龙马云行科技有限公司 Application program running method, method and device for assisting application program running

Also Published As

Publication number Publication date
CN110110073B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN106250104B (en) A kind of remote operating system for server, method and device
CA3152833C (en) Webpage editing method and device
CN106843639A (en) The display methods of icon and the display device of icon
CN108762735B (en) Workflow engine management method and device, storage medium and terminal
CN107566090B (en) Fixed-length/variable-length text message processing method and device
CN109977822B (en) Data supply method, model training method, device, system, equipment and medium
CN108134812A (en) Data processing method and device
CN109413131A (en) A kind of method and device of log parsing
CN103607668B (en) Video play method and apparatus
CN108153731B (en) Uncommon word processing method calculates equipment and computer storage medium
CN110110073A (en) A kind of text methods of exhibiting and device
CN107451270B (en) Page display method, electronic equipment and computer storage media
CN109255082A (en) Bookmark display methods and device
CN110018812A (en) A kind of pattern drawing method and device
CN107391175A (en) Control data collocation method and computer-readable recording medium
CN109753323A (en) A kind of external service call method and device
CN107092494B (en) Method and device for accessing APK (android Package) resource
CN110020298A (en) Parameter display method and apparatus
CN107943923B (en) Telegram code database construction method, telegram code identification method and device
CN108153597B (en) LINUX equipment management device and method
US10031894B2 (en) Method and apparatus of building intermediate character library
CN107391158B (en) Method and equipment for realizing table drawing based on iDataTable packaging
CN114356516A (en) Resource scheduling method, related device, equipment and storage medium
CN110378457B (en) Code label generation method and device
CN113835748A (en) HTML 5-based application packaging method, system and readable 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
GR01 Patent grant
GR01 Patent grant