CN105335340A - Font translation method and device - Google Patents

Font translation method and device Download PDF

Info

Publication number
CN105335340A
CN105335340A CN201510780030.3A CN201510780030A CN105335340A CN 105335340 A CN105335340 A CN 105335340A CN 201510780030 A CN201510780030 A CN 201510780030A CN 105335340 A CN105335340 A CN 105335340A
Authority
CN
China
Prior art keywords
font
data
word
instruction
translation
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
CN201510780030.3A
Other languages
Chinese (zh)
Other versions
CN105335340B (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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201510780030.3A priority Critical patent/CN105335340B/en
Publication of CN105335340A publication Critical patent/CN105335340A/en
Application granted granted Critical
Publication of CN105335340B publication Critical patent/CN105335340B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a font translation method and device. The font translation method comprises the following steps: when receiving an instruction of a user that the font of an operation system is changed, starting a corresponding font analysis packet; translating data in cache into the font appointed by the instruction; and when receiving data transmitted from a server, translating the data received from the server into the font appointed by the instruction. According to the technical scheme provided by the embodiment of the invention, when the instruction of the user that the font of the operation system is changed, the data in cache and data transmitted from the server are translated into the appointed font, the problem that the font is not thoroughly changed when the font of the operation system is changed is solved, and the purpose of improving the operation system font change effect is achieved.

Description

A kind of font interpretation method and device
Technical field
The present invention relates to Font processing technical field, particularly a kind of font interpretation method and device.
Background technology
Simplified form of Chinese Character (SimplifiedChinese) is a kind of standardization literary style of modern Chinese, relative with Chinese-traditional (also known as roman Chinese).The simplified Chinese character that simplified form of Chinese Character starts to carry out in CONTINENTAL AREA OF CHINA for the later Government of the People's Republic of China primarily of traditional Hanzi and nineteen fifty formed.At present, simplified form of Chinese Character is mainly in China's Mainland, and Malaysia, Singapore, and use in some Chinese communities in Southeast Asia.
The Chinese write system used in Chinese-traditional i.e. Chinese culture traditionally, the at present history of existing more than 2,000 years, until 20th century were Chinese general in the Chinese of various places write standard always.The simplification that generation nineteen fifty beginning continent official does on the basis of Chinese-traditional defines new Chinese and writes standard, i.e. simplified form of Chinese Character.And the tradition Chinese character before simplifying is called the complex form of Chinese characters, because which form the address of traditional Chinese titled with Chinese-traditional.
Conversion between simplified and traditional Chinese can think the conversion from simplified form of Chinese Character to Chinese-traditional, is also called the conversion of simplified and traditional body, simplified and traditional translation etc.Rightabout conversion is then complicated and simple conversion, either traditional and simplified characters conversion, complicated and simple translation.
User is when using operating system, if when changing the simplified Chinese character of operating system into the complex form of Chinese characters, the data in buffer memory or simplified Chinese character, the data received from server are also simplified Chinese characters.Therefore, during data in display buffer and server, display be still simplified Chinese character.
Summary of the invention
The invention provides a kind of font interpretation method and device, revise halfway problem in order to solve user's font when retouching operation system font, realize the object of the amendment effect improving retouching operation system font.
The invention provides the method for a kind of font translation, comprising:
When receiving the instruction of user's retouching operation system font, start the parsing bag of corresponding font.
The font becoming described instruction to specify the data translation in buffer memory.
When being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
Some beneficial effects of the embodiment of the present invention can comprise: when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.
In one embodiment, in the step of the described font becoming described instruction to specify the data translation in buffer memory with the font becoming described instruction to specify the data translation of the described server received, comprising:
Described buffer memory is become display word and non-display word, by the font that described display character translation becomes described instruction to specify with data identification to be translated in server.
In this embodiment, add implementation step data translation to be translated being become specific font, decrease the task expense that data translation is unnecessary, improve the work efficiency of font translation.
In one embodiment, comprising:
When receiving the instruction of user's retouching operation system font, start the parsing bag of corresponding font.
Data identification to be translated for buffer memory is become display word and non-display word, by the font that display character translation becomes described instruction to specify.
In above-mentioned steps, be identified as display word and non-display word according to label subsidiary in data to be translated in buffer memory.
When being received from the data that server transmits, data identification to be translated in server is become display word and non-display word, by the font that display character translation becomes instruction to specify.
In above-mentioned steps, be identified as display word and non-display word according to label subsidiary in data to be translated in server.
In above-mentioned steps, the subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
In this embodiment, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solves user's font when retouching operation system font and revises halfway problem, realize the object of the amendment effect improving retouching operation system font.In addition, add implementation step data translation to be translated being become specific font, decrease the task expense that data translation is unnecessary, improve the work efficiency of font translation.
The invention provides the device of a kind of font translation, comprising:
Resolving and start module, for when receiving the instruction of user's retouching operation system font, starting the parsing bag of corresponding font.
Data translation module, for the font becoming described instruction to specify the data translation in buffer memory, when being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.
In one embodiment, data translation module comprises:
Text region submodule, for becoming display word and non-display word by described buffer memory with data identification to be translated in server.
Character translation submodule, for the font becoming described instruction to specify described display character translation.
Wherein, Text region submodule, specifically for being identified as display word and non-display word according to subsidiary label in described data to be translated.
Wherein, the subsidiary label of display word is consulted to determine according to front end and backstage, and the subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
Wherein, non-display word comprises the word in the word in link, the word in path and file name.
In the above-described embodiments, data translation module is divided into Text region submodule and character translation submodule, decreases the task expense that data translation is unnecessary, improve the work efficiency of font translation.
In one embodiment, the device also providing another kind of font to translate, comprising:
Resolving and start module, specifically for when receiving the instruction of user's retouching operation system font, starting the parsing bag of corresponding font.
Data translation module, specifically for data identification to be translated for buffer memory is become display word and non-display word, by the font that display character translation becomes described instruction to specify, be identified as display word and non-display word according to label subsidiary in data to be translated in buffer memory.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.In addition, data translation module is divided into Text region submodule and character translation submodule, decreases the task expense that data translation is unnecessary, improve the work efficiency of font translation.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of a kind of font interpretation method in the embodiment of the present invention;
Fig. 2 is the process flow diagram of step S102-S103 in a kind of font interpretation method in the embodiment of the present invention;
Fig. 3 is the process flow diagram of another kind of font interpretation method in the embodiment of the present invention;
Fig. 4 is the block diagram of a kind of font translating equipment in the embodiment of the present invention;
Fig. 5 is the block diagram of data translation module in a kind of font translating equipment in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the process flow diagram of a kind of font interpretation method in the embodiment of the present invention.As shown in Figure 1, S101-S103 is comprised the following steps:
Step S101, when receiving the instruction of user's retouching operation system font, starts the parsing bag of corresponding font.
Step S102, the font becoming described instruction to specify the data translation in buffer memory.
Step S103, when being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.
In one embodiment, as shown in Figure 2, step S102-S103 can be embodied as following steps S201-S202:
Step S201, becomes display word and non-display word by described buffer memory with data identification to be translated in server.
In step s 201, display word and non-display word is identified as according to label subsidiary in data to be translated in buffer memory and server.
The subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
Described non-display word comprises the word in the word in link, the word in path and file name.
Step S202, when being received from the data that server transmits, by the font that described display character translation becomes described instruction to specify.
In one embodiment, simplified Chinese character to be translated is translated into the complex form of Chinese characters that instruction is specified.
In Fig. 2 embodiment, add implementation step data translation to be translated being become specific font, decrease the task expense that data translation is unnecessary, improve the work efficiency of font translation.
Fig. 3 is the process flow diagram of another kind of font interpretation method in the embodiment of the present invention.As shown in Figure 3, S301-S303 is comprised the following steps:
Step S301, when receiving the instruction of user's retouching operation system font, starts the parsing bag of corresponding font.
Step S302, becomes display word and non-display word by data identification to be translated for buffer memory, by the font that display character translation becomes described instruction to specify.
In step s 302, display word and non-display word is identified as according to label subsidiary in data to be translated in buffer memory.
Step S303, when being received from the data that server transmits, becomes display word and non-display word by data identification to be translated in server, by the font that display character translation becomes instruction to specify.
In step S303, be identified as display word and non-display word according to label subsidiary in data to be translated in server.
In above-mentioned steps S302 and step S303, the subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.In addition, add implementation step data translation to be translated being become specific font, decrease the task expense that data translation is unnecessary, improve the work efficiency of font translation.
Corresponding to the method for a kind of font translation that above-described embodiment provides, the device that the embodiment of the present invention also provides a kind of font to translate, as shown in Figure 4, comprising:
Resolving and start module 41, for when receiving the instruction of user's retouching operation system font, starting the parsing bag of corresponding font.
Data translation module 42, for the font becoming described instruction to specify the data translation in buffer memory, when being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.
In one embodiment, as shown in Figure 5, data translation module 42 comprises:
Text region submodule 421, for becoming display word and non-display word by described buffer memory with data identification to be translated in server.
Character translation submodule 422, for the font becoming described instruction to specify described display character translation.
Wherein, Text region submodule 421, specifically for being identified as display word and non-display word according to subsidiary label in described data to be translated.
Wherein, the subsidiary label of display word is consulted to determine according to front end and backstage, and the subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
Wherein, non-display word comprises the word in the word in link, the word in path and file name.
In Fig. 5 embodiment, data translation module 42 is divided into Text region submodule 421 and character translation submodule 422, decreases the task expense that data translation is unnecessary, improve the work efficiency of font translation.
As shown in Figure 4, the device that the embodiment of the present invention also provides another kind of font to translate, comprising:
Resolving and start module 41, specifically for when receiving the instruction of user's retouching operation system font, starting the parsing bag of corresponding font.
Data translation module 42, specifically for data identification to be translated for buffer memory is become display word and non-display word, by the font that display character translation becomes described instruction to specify, be identified as display word and non-display word according to label subsidiary in data to be translated in buffer memory.
The technical scheme that the embodiment of the present invention provides, when receiving the instruction of user's retouching operation system font, the font that data translation buffer memory and server transmitted becomes to specify, solve user's font when retouching operation system font and revise halfway problem, realize the object of the amendment effect improving retouching operation system font.In addition, data translation module is divided into Text region submodule and character translation submodule, decreases the task expense that data translation is unnecessary, improve the work efficiency of font translation.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a font interpretation method, is characterized in that, comprising:
When receiving the instruction of user's retouching operation system font, start the parsing bag of corresponding font;
The font becoming described instruction to specify the data translation in buffer memory;
When being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
2. method according to claim 1, is characterized in that, in the step of the described font becoming described instruction to specify the data translation in buffer memory with the font becoming described instruction to specify the data translation of the described server received, comprising:
Described buffer memory is become display word and non-display word, by the font that described display character translation becomes described instruction to specify with data identification to be translated in server.
3. method according to claim 2, is characterized in that, described data identification to be translated in buffer memory and server is become display word and non-display word, specifically comprises:
Display word and non-display word is identified as according to subsidiary label in described data to be translated.
4. method according to claim 3, is characterized in that, the subsidiary label of described display word is consulted to determine according to front end and backstage;
The subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
5. method according to claim 2, is characterized in that, described non-display word comprises the word in the word in link, the word in path and file name.
6. a font translating equipment, is characterized in that, comprising:
Resolving and start module, for when receiving the instruction of user's retouching operation system font, starting the parsing bag of corresponding font;
Data translation module, for the font becoming described instruction to specify the data translation in buffer memory, when being received from the data that server transmits, by the font that the data translation of the described server received becomes described instruction to specify.
7. device according to claim 6, is characterized in that, described data translation module comprises:
Text region submodule, for becoming display word and non-display word by described buffer memory with data identification to be translated in server;
Character translation submodule, for the font becoming described instruction to specify described display character translation.
8. device according to claim 7, is characterized in that, described Text region submodule, specifically for being identified as display word and non-display word according to subsidiary label in described data to be translated.
9. device according to claim 8, is characterized in that, the subsidiary label of described display word is consulted to determine according to front end and backstage;
The subsidiary label of described non-display word comprises url, jpg, png, m3u8, mp4.
10. device according to claim 7, is characterized in that, described non-display word comprises the word in the word in link, the word in path and file name.
CN201510780030.3A 2015-11-13 2015-11-13 A kind of font interpretation method and device Expired - Fee Related CN105335340B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510780030.3A CN105335340B (en) 2015-11-13 2015-11-13 A kind of font interpretation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510780030.3A CN105335340B (en) 2015-11-13 2015-11-13 A kind of font interpretation method and device

Publications (2)

Publication Number Publication Date
CN105335340A true CN105335340A (en) 2016-02-17
CN105335340B CN105335340B (en) 2018-04-10

Family

ID=55285885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510780030.3A Expired - Fee Related CN105335340B (en) 2015-11-13 2015-11-13 A kind of font interpretation method and device

Country Status (1)

Country Link
CN (1) CN105335340B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685053A (en) * 2018-12-18 2019-04-26 北京天融信网络安全技术有限公司 Method, apparatus, storage medium and the electronic equipment of training character identification system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1115439A (en) * 1994-07-16 1996-01-24 张青 Method for realizing multi-character Chinese character operation system or relating to Chinese character processing software
US20110093565A1 (en) * 2009-10-16 2011-04-21 Extensis Inc. Serving Font Files in Varying Formats Based on User Agent Type
CN102436455A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Method and system for browsing characters as well as client browser
CN102567295A (en) * 2010-12-21 2012-07-11 北大方正集团有限公司 Font processing method and device for embedded device
CN103885941A (en) * 2012-12-24 2014-06-25 鸿富锦精密工业(深圳)有限公司 Patent application document conversion system and method
CN104021134A (en) * 2013-02-28 2014-09-03 首尔系统有限公司 Method for modifying and converting font file, and system thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1115439A (en) * 1994-07-16 1996-01-24 张青 Method for realizing multi-character Chinese character operation system or relating to Chinese character processing software
US20110093565A1 (en) * 2009-10-16 2011-04-21 Extensis Inc. Serving Font Files in Varying Formats Based on User Agent Type
CN102436455A (en) * 2010-09-29 2012-05-02 腾讯科技(深圳)有限公司 Method and system for browsing characters as well as client browser
CN102567295A (en) * 2010-12-21 2012-07-11 北大方正集团有限公司 Font processing method and device for embedded device
CN103885941A (en) * 2012-12-24 2014-06-25 鸿富锦精密工业(深圳)有限公司 Patent application document conversion system and method
CN104021134A (en) * 2013-02-28 2014-09-03 首尔系统有限公司 Method for modifying and converting font file, and system thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109685053A (en) * 2018-12-18 2019-04-26 北京天融信网络安全技术有限公司 Method, apparatus, storage medium and the electronic equipment of training character identification system
CN109685053B (en) * 2018-12-18 2021-11-12 北京天融信网络安全技术有限公司 Method and device for training character recognition system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN105335340B (en) 2018-04-10

Similar Documents

Publication Publication Date Title
CN105159928B (en) A kind of JSON data conversion at model data method and system
US20160314394A1 (en) Method and device for constructing event knowledge base
US11675744B2 (en) Performing a code conversion in a smaller target encoding space
CN105005568B (en) Web page front end processing device and method based on template
US20120158742A1 (en) Managing documents using weighted prevalence data for statements
MX2014009068A (en) Electronic book file processing method, terminal, and electronic device.
CN104123114A (en) Method and device for playing voice
CN104615670A (en) Method for supporting multiple rendering engines in android browser and browser
CN102196306A (en) Method and device for writing sequence number and media access control (MAC) address into Internet protocol television
CN102638451A (en) Dynamic regrouping method for register list data of Modbus communication protocol
CN104331400B (en) A kind of Mongolian code conversion method and device
US11295492B2 (en) Electronic device and server related to rendering of web content and controlling method thereof
CN108363703A (en) The multilingual solution of front end applications, storage medium
CN108388372A (en) A kind of method, apparatus, equipment and the storage medium of adaptive touch data
CN105022667A (en) Embedded browser CSS (Cascading Style Sheets) based engine parallelization method
CN105335340A (en) Font translation method and device
CN103914293A (en) Page generation method and server
CN104077289A (en) Method for realizing Web multi-language switching
US10115374B2 (en) Variable glyph encoding
CN102131161B (en) Method, device and system for encoding short message
CN102768655A (en) JAVA-based display method of Mongolian
TW561360B (en) Method and system for case conversion
CN101246470B (en) Method and device for setting word attribute
CN103491414B (en) Method and device for processing character and set top box
CN101847050A (en) Simple Chinese input and display method in embedded product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A font translation method and device

Effective date of registration: 20210104

Granted publication date: 20180410

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001527

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180410

Termination date: 20211113

CF01 Termination of patent right due to non-payment of annual fee