CN105335340B - A kind of font interpretation method and device - Google Patents

A kind of font interpretation method and device Download PDF

Info

Publication number
CN105335340B
CN105335340B CN201510780030.3A CN201510780030A CN105335340B CN 105335340 B CN105335340 B CN 105335340B CN 201510780030 A CN201510780030 A CN 201510780030A CN 105335340 B CN105335340 B CN 105335340B
Authority
CN
China
Prior art keywords
font
word
data
server
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.)
Expired - Fee Related
Application number
CN201510780030.3A
Other languages
Chinese (zh)
Other versions
CN105335340A (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 kind of font interpretation method and device, method to include:When receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font;By the data translation in caching into the font specified;In the data transmitted received from server, by the data translation of the server of reception into the font specified.Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, the font into specified by the data translation that transmits with server is cached, solve user's font when changing operating system font and change halfway problem, realize the purpose for the modification effect for improving modification operating system font.

Description

A kind of font interpretation method and device
Technical field
The present invention relates to Font processing technical field, more particularly to a kind of font interpretation method and device.
Background technology
Simplified form of Chinese Character (Simplified Chinese), it is a kind of standardization literary style of modern Chinese, with Chinese-traditional (again Claim roman Chinese) it is relative.Simplified form of Chinese Character mainly by traditional Hanzi and nineteen fifty for the later Government of the People's Republic of China The simplified Chinese character that CONTINENTAL AREA OF CHINA is carried out is formed.At present, simplified form of Chinese Character is mainly in China's Mainland, Malaysia, Singapore, with And used in some Chinese communities in Southeast Asia.
Chinese-traditional is the Chinese write system used in Chinese culture traditionally, is had more than 2,000 years at present History, it is always Chinese writing standard general in the Chinese of various regions until 20th century.In generation nineteen fifty, starts continent official in traditional font The simplification done on the basis of Chinese forms new Chinese writing standard, i.e. simplified form of Chinese Character.And the tradition Chinese character before simplification The referred to as complex form of Chinese characters, therefore form the address to traditional Chinese titled with Chinese-traditional.
Conversion between simplified and traditional Chinese may be considered the conversion from simplified form of Chinese Character to Chinese-traditional, also known as the conversion of simplified and traditional body, simplified and traditional turn over Translate.And the conversion of opposite direction is then complicated and simple conversion, either traditional and simplified characters conversion, complicated and simple translation.
User is when using operating system, if the simplified Chinese character of operating system is changed into the complex form of Chinese characters, the data in caching Or simplified Chinese character, the data received from server are also simplified Chinese character.Therefore, during data in display caching and server, show What is shown is still simplified Chinese character.
The content of the invention
The present invention provides a kind of font interpretation method and device, to solve user's font when changing operating system font Halfway problem is changed, realizes the purpose for the modification effect for improving modification operating system font.
The present invention provides a kind of method of font translation, including:
When receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font.
By the data translation in caching into the font specified.
In the data transmitted received from server, the data translation of the server of reception is specified into the instruction Font.
Some beneficial effects of the embodiment of the present invention can include:Receiving the instruction of user's modification operating system font When, the font that will cache and the data translation that transmits of server is into specified, solution user's font when changing operating system font Halfway problem is changed, realizes the purpose for the modification effect for improving modification operating system font.
In one embodiment, in the data translation by caching into the font specified and by reception In the step of font that the data translation of the server is specified into described, including:
Data to be translated in the caching and server are identified as showing word and non-display word, by the display Character translation is into the font specified.
In the embodiment, the implementation steps into specific font by data translation to be translated are added, reduces data and turns over Unnecessary task expense is translated, improves the operating efficiency of font translation.
In one embodiment, including:
When receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font.
Data to be translated will be cached to be identified as showing word and non-display word, character translation will be shown into the instruction The font specified.
In above-mentioned steps, it is identified as showing word and non-according to label subsidiary in data to be translated in caching Show word.
In the data transmitted received from server, data to be translated in server are identified as showing word and non-aobvious Show word, character translation will be shown into the font specified.
In above-mentioned steps, according to label subsidiary in data to be translated in server be identified as show word and Non-display word.
In above-mentioned steps, the subsidiary label of the non-display word includes url, jpg, png, m3u8, mp4.
In the embodiment, when receiving the instruction of user's modification operating system font, the number transmitted with server will be cached The font specified according to translating into, solve user's font when changing operating system font and change halfway problem, realize and improve Change the purpose of the modification effect of operating system font.In addition, add the reality by data translation to be translated into specific font Step is applied, reduces the unnecessary task expense of data translation, improves the operating efficiency of font translation.
The present invention provides a kind of device of font translation, including:
Starting module is parsed, for when receiving the instruction of user's modification operating system font, starting the solution of corresponding font Analysis bag.
Data translation module, for by the data translation in caching into the font specified, received from service During the data that device transmits, by the data translation of the server of reception into the font specified.
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.
In one embodiment, data translation module includes:
Text region submodule, for being identified as showing word and non-by data to be translated in the caching and server Show word.
Character translation submodule, for showing character translation into the font specified by described.
Wherein, Text region submodule, specifically for being identified according to label subsidiary in the data to be translated Into display word and non-display word.
Wherein, show that the subsidiary label of word is consulted to determine according to front end with backstage, the subsidiary mark of the non-display word Label include url, jpg, png, m3u8, mp4.
Wherein, non-display word includes the word in link, the word in word and file name in path.
In the above-described embodiments, data translation module is divided into Text region submodule and character translation submodule, reduced Data translation unnecessary task expense, improve the operating efficiency of font translation.
In one embodiment, the device of another font translation is also provided, including:
Starting module is parsed, specifically for when receiving the instruction of user's modification operating system font, starting corresponding font Parsing bag.
Data translation module, it is identified as showing word and non-display word specifically for data to be translated will be cached, will Show that character translation into the font specified, is identified as according to label subsidiary in data to be translated in caching Show word and non-display word.
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.Know in addition, data translation module is divided into word Small pin for the case module and character translation submodule, reduce the unnecessary task expense of data translation, improve the work of font translation Efficiency.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme is described in further detail.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention Apply example to be used to explain the present invention together, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of font interpretation method in the embodiment of the present invention;
The flow chart that Fig. 2 is step S102-S103 in a kind of font interpretation method in the embodiment of the present invention;
Fig. 3 is the flow chart of another font interpretation method in the embodiment of the present invention;
Fig. 4 is a kind of block diagram of font translating equipment in the embodiment of the present invention;
Fig. 5 is a kind of block diagram of data translation module in font translating equipment in the embodiment of the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that described herein preferred real Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of flow chart of font interpretation method in the embodiment of the present invention.As shown in figure 1, comprise the following steps S101-S103:
Step S101, when receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font.
Step S102, by the data translation in caching into the font specified.
Step S103, in the data transmitted received from server, by the data translation of the server of reception into institute State the font specified.
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.
In one embodiment, as shown in Fig. 2 step S102-S103 can be embodied as following steps S201-S202:
Step S201, data to be translated in the caching and server are identified as showing word and non-display word.
In step s 201, it is identified as showing according to label subsidiary in data to be translated in caching and server Word and non-display word.
The subsidiary label of the non-display word includes url, jpg, png, m3u8, mp4.
The non-display word includes the word in link, the word in word and file name in path.
Step S202, in the data transmitted received from server, the display character translation is specified into the instruction Font.
In one embodiment, simplified Chinese character to be translated is translated into the complex form of Chinese characters specified.
In Fig. 2 embodiments, the implementation steps into specific font by data translation to be translated are added, reduce data Unnecessary task expense is translated, improves the operating efficiency of font translation.
Fig. 3 is the flow chart of another font interpretation method in the embodiment of the present invention.As shown in figure 3, comprise the following steps S301-S303:
Step S301, when receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font.
Step S302, data to be translated will be cached and be identified as showing word and non-display word, character translation will be shown Into the font specified.
In step s 302, it is identified as showing word and non-according to label subsidiary in data to be translated in caching Show word.
Step S303, in the data transmitted received from server, data to be translated in server are identified as showing Word and non-display word, character translation will be shown into the font specified.
In step S303, according to label subsidiary in data to be translated in server be identified as show word and Non-display word.
In above-mentioned steps S302 and step S303, the subsidiary label of the non-display word include url, jpg, png, m3u8、mp4。
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.In addition, add data translation to be translated Into the implementation steps of specific font, reduce the unnecessary task expense of data translation, improve the operating efficiency of font translation.
The method translated corresponding to a kind of font that above-described embodiment provides, the embodiment of the present invention also provide a kind of font and turned over The device translated, as shown in figure 4, including:
Starting module 41 is parsed, for when receiving the instruction of user's modification operating system font, starting corresponding font Parsing bag.
Data translation module 42, for by the data translation in caching into the font specified, received from clothes During the data that business device transmits, by the data translation of the server of reception into the font specified.
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.
In one embodiment, as shown in figure 5, data translation module 42 includes:
Text region submodule 421, for being identified as showing word by data to be translated in the caching and server With non-display word.
Character translation submodule 422, for showing character translation into the font specified by described.
Wherein, Text region submodule 421, specifically for being known according to label subsidiary in the data to be translated Not into display word and non-display word.
Wherein, show that the subsidiary label of word is consulted to determine according to front end with backstage, the subsidiary mark of the non-display word Label include url, jpg, png, m3u8, mp4.
Wherein, non-display word includes the word in link, the word in word and file name in path.
In Fig. 5 embodiments, data translation module 42 is divided into Text region submodule 421 and character translation submodule 422, reduce the unnecessary task expense of data translation, improve the operating efficiency of font translation.
As shown in figure 4, the embodiment of the present invention also provides the device of another font translation, including:
Starting module 41 is parsed, specifically for when receiving the instruction of user's modification operating system font, starting corresponding word The parsing bag of body.
Data translation module 42, it is identified as showing word and non-display word specifically for data to be translated will be cached, By display character translation into the font specified, identified according to label subsidiary in data to be translated in caching Into display word and non-display word.
Technical scheme provided in an embodiment of the present invention, when receiving the instruction of user's modification operating system font, it will cache The into specified font of the data translation that transmits with server, solve user's font when change operating system font change it is not thorough The problem of, realize the purpose for improving the modification effect for changing operating system font.Know in addition, data translation module is divided into word Small pin for the case module and character translation submodule, reduce the unnecessary task expense of data translation, improve the work of font translation Efficiency.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (8)

  1. A kind of 1. font interpretation method, it is characterised in that including:
    When receiving the instruction of user's modification operating system font, start the parsing bag of corresponding font;
    By the data translation in caching into the font specified;
    In the data transmitted received from server, by the data translation of the server of reception into the word specified Body;
    Turned in the data translation by caching into the font specified and by the data of the server of reception Be translated into it is described specify font the step of in, including:
    Data to be translated in the caching and server are identified as showing word and non-display word, by the display word Translate into the font specified.
  2. 2. according to the method for claim 1, it is characterised in that described will cache identifies with data to be translated in server Into display word and non-display word, specifically include:
    It is identified as showing word and non-display word according to label subsidiary in the data to be translated.
  3. 3. according to the method for claim 2, it is characterised in that the subsidiary label of the display word is according to front end and backstage Consult to determine;
    The subsidiary label of the non-display word includes url, jpg, png, m3u8, mp4.
  4. 4. according to the method for claim 1, it is characterised in that the non-display word includes the word in link, path In word and file name in word.
  5. A kind of 5. font translating equipment, it is characterised in that including:
    Starting module is parsed, for when receiving the instruction of user's modification operating system font, starting the parsing bag of corresponding font;
    Data translation module, for the data translation in caching into the font specified, to be passed received from server During the data come, by the data translation of the server of reception into the font specified;
    The data translation module includes:
    Text region submodule, for being identified as showing word and non-display by data to be translated in the caching and server Word;
    Character translation submodule, for showing character translation into the font specified by described.
  6. 6. device according to claim 5, it is characterised in that the Text region submodule, specifically for according to Subsidiary label is identified as showing word and non-display word in data to be translated.
  7. 7. device according to claim 6, it is characterised in that the subsidiary label of the display word is according to front end and backstage Consult to determine;
    The subsidiary label of the non-display word includes url, jpg, png, m3u8, mp4.
  8. 8. device according to claim 5, it is characterised in that the non-display word includes the word in link, path In word and file name in word.
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 CN105335340A (en) 2016-02-17
CN105335340B true 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)

Families Citing this family (1)

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

Citations (5)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8769050B2 (en) * 2009-10-16 2014-07-01 Celartern, Inc. Serving font files in varying formats based on user agent type

Patent Citations (5)

* 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
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

Also Published As

Publication number Publication date
CN105335340A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US8542235B2 (en) System and method for displaying complex scripts with a cloud computing architecture
CN104461484B (en) The implementation method and device of front-end template
US8910036B1 (en) Web based copy protection
US20140006934A1 (en) Method for rearranging web page
JP6206866B2 (en) Apparatus and method for holding obfuscated data in server
US20140145962A1 (en) Recipient-aware keyboard language
US20200050589A1 (en) Performing a code conversion in a smaller target encoding space
US11687704B2 (en) Method, apparatus and electronic device for annotating information of structured document
WO2016044110A1 (en) Remote font management
US10134367B2 (en) Rendering texts on electronic devices
US10169304B1 (en) Providing different font hints based on device, text and font context
CN105335340B (en) A kind of font interpretation method and device
US11295492B2 (en) Electronic device and server related to rendering of web content and controlling method thereof
CN107248947B (en) Expression processing method and processing device, computer equipment and storage medium
CN103914293A (en) Page generation method and server
CN103491416B (en) The free hand drawing layer display methods and device of caption data
US10108587B2 (en) Geo-cultural information based dynamic character variant rendering
US20170337388A1 (en) Data security using alternative encoding
US20170083481A1 (en) Method and apparatus for rendering a screen-representation of an electronic document
CN108701120A (en) Conditional determination of lookups in glyph processing
CN105786778B (en) The long-range method for reading pdf document
CN102760159B (en) Magazine-type article full text mixed composition method for mobile terminal screen
US20090265612A1 (en) Methods, apparatuses, and computer program products for specifying content of electronic mail messages using a mail markup language
US20110296292A1 (en) Efficient application-neutral vector documents
CN210895450U (en) POS machine capable of generating Persian language word stock

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