CN103176955A - System and method for displaying Chinese character webpage scripts - Google Patents

System and method for displaying Chinese character webpage scripts Download PDF

Info

Publication number
CN103176955A
CN103176955A CN2013101289194A CN201310128919A CN103176955A CN 103176955 A CN103176955 A CN 103176955A CN 2013101289194 A CN2013101289194 A CN 2013101289194A CN 201310128919 A CN201310128919 A CN 201310128919A CN 103176955 A CN103176955 A CN 103176955A
Authority
CN
China
Prior art keywords
font
chinese character
user
web page
page server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2013101289194A
Other languages
Chinese (zh)
Inventor
陈灿华
何佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2013101289194A priority Critical patent/CN103176955A/en
Publication of CN103176955A publication Critical patent/CN103176955A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a system and a method for completely displaying rich scripts of Chinese characters on a webpage. According to the system and the method, a script server capable of extracting a sub set from a script base and supplying the scripts and a sub set extraction method, a webpage server and a method for communicating with the script server and using the script server, and a method for efficiently using the script server on a browser are involved. The problem that non-own scripts are difficultly displayed on the webpage because the conventional script base consisting of a large number of Chinese characters is too large is solved; and a world wide web can reproduce a numerous and complicated state of the Chinese characters.

Description

The system and method for Display of Chinese characters webpage font
Technical field
The present invention relates to Chinese character network page font field, the character style server that enriches Chinese character style particularly is provided on the internet, and at the system and method for the abundant Chinese character style of web displaying.The present invention can make the internet present the font of enriching of Chinese character, makes Chinese character reappear on the internet its aesthetic feeling on printed medium.
Background technology
We see that on WWW Chinese character almost only has the Song typeface, black matrix, regular script so far, the Web page maker also seldom uses the font beyond these three kinds of fonts, this is because of this three kinds of fonts of only having that carry on general computer, if the deviser wants to use other fonts for practical or purpose attractive in appearance on webpage, possibly because do not reach expected effect without this font on part viewer computer.The countries in the world character script is all by similar problem in fact, also there is demand to change this present situation always, thereby the technology of so-called webpage font (Web Font) appears, its ultimate principle is a kind of new font of definition in webpage, and the font file of this new font is not on user computer, but on certain remote server, can write this font file in webpage exactly at the URLs (URL) of remote server, viewer's browser from then on URL is downloaded this new font, then will use the part of this font to play up out on webpage according to this.Along with the appearance of webpage font, and the services such as webpage font trustship released of Google company, begin to emerge in large numbers rapidly in the internet as the various fonts of the alphabetic writing of English.Yet also do not see the numerous and complicated scene of emerging in large numbers of Chinese character style, its reason be Chinese character have tens thousand of more than, thereby font file is all very huge, often reaches tens, so large file is to download from the Internet immediately when impossible allowing the user need.As if thereby the webpage font can not be used for the Chinese character situation.
Summary of the invention
The present invention notices nearly all only to have used hundreds of Chinese characters on Chinese character network page, the Chinese character that many persons are thousands of, thereby do not need to utilize with regard to throw the net a page speech font file that contains whole Chinese characters, only need wherein partly few; And under many circumstances, the Web page maker only maybe needs the part that highlights to adopt non-standard font to webpage such as all kinds of titles, thus the Chinese character number of required this font may only have several, perhaps dozens of.Slightly do to calculate and can find, the size of the small-sized attitude file of dozens of and even one or two thousand Chinese characters only has several kilobyte and even hundreds of kilobyte, and this scale of construction is to be easy to very much in transmission over networks.Therefore utilizing the invention solves above-mentionedly can't utilize webpage font technology to present the problem of enriching Chinese character style on webpage too greatly because of the Chinese character style file.
The present invention proposes a kind of system and method for Chinese character network page font service, and it comprises:
One web page server is used for accepting user's request so that the font service externally to be provided;
One font subsetting abstraction module generates small-sized font file thereby call to extract the Chinese character subset from the big font file for above-mentioned web page server.
Described web page server is configured to accept font name and Chinese character subset or the classification logotype in user's request.
After described web page server is received the font name and Chinese character subset that the user asks, call the font subsetting abstraction module, from the font file of this font name correspondence, extract the font of a Chinese character subset, then generate the new font file that only comprises this Chinese character subset, then will this new font file be placed in file system or in internal memory, and give a URLs for its deposit position, then this URLs is write in one section CSS (cascading style sheet) that defines this font, at last the content of this CSS (cascading style sheet) is passed to the user.
After described web page server is received the font name and Chinese character subset that the user asks, extract the font of the superset of this subset from font file, thereby offer the more Chinese character style of user to be asked than it.
After described web page server is received the font name and Chinese character subset that the user asks, if system has existed a size to be fit to Internet Transmission and has been the font file of the superset of this Chinese character subset, visible system is set and is not done the subset extraction operation, directly one section has been defined this font and has adopted the CSS (cascading style sheet) of this superset font file to pass to the user.
After described web page server is received the font name and Chinese character subset that the user asks, if this subset is contained in defined certain character set of system, offer the user with this superset but not the font of the subset of user's request.
Described superset is the common word of Chinese character, rare word, the rare word that third party researcher provides.
Described superset is the exclusive Chinese character of specific area institute, as the ancient writing of ancient writing research field, the chemical element of chemical field.
The derivative symbol of described superset criteria of right and wrong Chinese character or Chinese character, include but not limited to original character, variant Chinese character, self-made characters, new coinage, curse symbol, designated symbol, seven-stringed plucked instrument in some ways similar to the zither spectrum, traditional Chinese musical notation etc., if and the Chinese character that provides or symbol be not in Unicode (Unicode) scope, this system defines a code bit for it in the privately owned district of Unicode (Private Use Zone), and open to the user.
Described web page server may provide the font of all Chinese characters, and the font service of part Chinese character or part special symbol also may only be provided due to performance limitations or for the special service purpose, provides efficiently, flexibly the font service with this.
Described web page server can deposit in file system or internal memory spanned file to make the buffer memory purpose in for usefulness is provided, wait for that next user asks directly to provide in same information, also can after being passed to the user, delete at once by file, to save internal memory or disk space, for a rear situation, web page server file for this reason arranges extremely long user side cache-time, again asks same information to avoid this user.
Described web page server is accepted the POST method of HTML (Hypertext Markup Language) (HTTP), so that the Chinese character quantity that the user can ask can surpass the restriction of GET method.
Described web page server goes heavily, sorts, with efficient extraction font the Chinese character in user's request.
Described web page server is considered for improving usefulness, only provides the font service to third party's web page server, does not accept the request that general page viewers send from browser, and general viewer is the web page server request font of browsing to it.
If described web page server only provides the font service to third party's web page server, can give its account number, require login in advance before its request font, preventing general viewer's user request, and can do frequency or flow restriction to improve system performance to the font service.
If described web page server only provides the font service to third party's web page server, do not accept general page viewers and extract request from the subset that browser sends, but accept the request that general viewer formulates the font file of font file URLs, actual font trusteeship service is provided take this design as third party's web page server.
Described web page server is for providing the font service to third party's web page server, utilize a method, as hash function (Hash Function), set up one-to-one relationship between the URLs of font file and font name and Chinese Character Set, so as by this URLs can be in different time, different location the constant files that can obtain this kind font of this Chinese Character Set or classification all.
If described web page server only provides the font service to third party's web service, CSS (cascading style sheet) and font file can be passed to third party's web page server, offer its viewer by it, also can only stacked pattern be passed to third party's web page server, font file by its viewer directly to this font service system request.
Described web page server can be only provides the font service to another web service system, becomes in this way the internal subsystems of this web service system, makes its acquisition can present the function of abundant Chinese character style.
Described web page server can be exactly the server that webpage externally is provided, and consists of the self-sustaining web service system of an embedded font subsetting abstraction module in this framework mode, has the function that can present abundant Chinese character style.
Flesh and blood below in conjunction with the detailed description of accompanying drawing the present invention may be better understood technical scheme.
Description of drawings
Fig. 1 is main modular of the present invention and process flow diagram thereof.
Fig. 2 is the example that the user asks.
Fig. 3 is that web page server of the present invention is passed to the example of holding within user's CSS (cascading style sheet).
Fig. 4 is that the Chinese character subset extracts example.
That Fig. 5 is that Chinese character is divided into is common, rare, and the example of rare classification.
Fig. 6 is that Chinese character is according to the example of specific area classification.
The classification of Fig. 7 criteria of right and wrong Chinese character or symbol and be the code bit example of its definition in Unicode privately owned district.
Fig. 8 is that the system according to the present invention only provides the example of service for third party's web service system.
Fig. 9 is that system according to the present invention is as the example of the internal subsystems of a web service system.
Figure 10 is that system according to the present invention is simultaneously also as the example of web page server system.
Embodiment
The present invention proposes makes Chinese character can present the system and method that enriches font on webpage to realize by the following technical solutions.
Fig. 1 is main modular and process flow diagram thereof of the present invention.It comprises a web page server (11), and a subset subset abstraction module.
A web page server 11 wherein in order to accepting user 14 request, and is passed to the user by its requirement with CSS (cascading style sheet) code or font file.Wherein the form of user's request as shown in Figure 2, the familyname in figure is the font name of being asked, the text of form 21 is the Chinese characters of being asked, the subset in form 22 is the classification logotype of Chinese character subset.Fig. 2 represents two kinds of different request modes, and namely the user can issue server 11 with needed Chinese character, also needed Chinese character subset class sign can be issued server 11.Server 11 provides the second way so that the user uses more flexibly, all calculates needed Chinese character before needn't asking at every turn.This is convenient especially for the user that required Chinese character is fixed in a certain subset.Web page server 11 is receiving that Chinese character that the user can determine to pass to user's font according to default after asking is in full accord or its superset with user's request, whether the font file that reexamines afterwards required character set exists in system, if directly adopting these files 13, generate new subset file 13 otherwise call subset abstraction module 12.The file layout of wherein supporting due to different browsers is different, and subset font file 13 has some forms, and the different-format file is prepared by different browsers.Font file is given a URLs to web page server 11 for this reason afterwards, makes this font file can download from the internet later obtaining above-mentioned subset font file (no matter being that the existing latter is newborn gives birth to) afterwards.Web page server 11 generates one section CSS (cascading style sheet) (as shown in Figure 3) code afterwards, and the url (...) in this code 31 is the URLs of the different-format of above-mentioned font file.Web service 11 returns to the user with this CSS (cascading style sheet) 31 afterwards.The user according to circumstances may be again according in style sheet being these font files of font file request after obtaining CSS (cascading style sheet).The font file of the URLs correspondence during web page server 11 directly will be asked after the font file request of receiving the user is passed to the user.
Font subsetting abstraction module 12 is called by web page server 11 and extract a Chinese character subset 41 (as shown in Figure 4) in a zigzag from a Chinese character style file 45, generate some new font files, be stored in these font files in internal memory according to default afterwards or in file system, afterwards the acquisition approach of these files is informed web page server 11, if wherein these files are to be stored in internal memory, acquisition approach is the file object of these files, is its file system path if be stored in file system.The Chinese character number of words is many, the mathematical combination of different Chinese character is very huge, and (array mode of taking out 10 Chinese characters as 500 Chinese characters has 245,810,588,801,891,098,700), if the present invention's system is to provide the font service of any Chinese character subset of user, if all be kept at file system and be set as every subset file, the big basis in required space is exactly astronomical figure.So for this kind service embodiment, can be stored in internal memory by the font file that these are new, it is that automatic moving removes after passing to the user.
For reducing the subset extraction operation to save computational resource, one of the present invention implements Chinese character is divided into the classifications 51 (as shown in Figure 5) such as common, rare, rare, then generate in advance the common Chinese character subset font file of various fonts, if the Chinese character of user's request is included in common word, the common Chinese character subset file of corresponding font is passed to the user, if exceed the user passed in Chinese character subset and the Chinese character that exceeds.
For reducing the subset extraction operation to save computational resource, one of the present invention implements Chinese character is divided into common, rare, rare 51 (as shown in Figure 5), and give sign for each classification, and require the user can only ask above-mentioned three kinds signs, the font service only efficiently is provided in this way.
For reducing the subset extraction operation to save computational resource, one of the present invention example is sorted out specific area (such as chemical element title, upper ancient writing, Charltons symbol 61) (as shown in Figure 6) required Chinese character and is given sign, and require the user can only ask these class indications, the font service of specific area efficiently is provided in this way.
For making webpage can show not Chinese character derivative or the symbol in the Unicode scope, for example the seven-stringed plucked instrument in some ways similar to the zither in traditional music is composed, traditional Chinese musical notation, word symbol 71 grades (as shown in Figure 7) in ancient civilization and so on, one of the present invention example is that these characters define a code bit 72 in the privately owned district of Unicode, and open to the user, the user is its font of code bit request accordingly, thus the function that realization shows on webpage.
One of the present invention example (Fig. 8) is as open character style server 81, for third party's web page server 82 provides the font service.
One of the present invention example (Fig. 9) is as the proprietary character style server 91 of a web page server 92, so that this web page server has the display capabilities of the Chinese character style of enriching.
One of the present invention example (Figure 10) combines font service and web page server together 101, be that web page server in system of the present invention is simultaneously also that the server of web page contents externally formally is provided, externally show and have Chinese character and enrich the font display capabilities because containing the font subsetting abstraction module.
The present invention's system and method can have multiple different embodiment, should not be construed as and only limit to above-mentioned embodiment, on the contrary, provide above-mentioned embodiment just in order to make the present invention more thoroughly and complete open, and more fully show the present invention to those skilled in the art.

Claims (10)

1. the system of a Display of Chinese characters font on webpage, is characterized in that, described system comprises: a web page server is used for receiving user's font request, and on request CSS (cascading style sheet) code or font file is passed to the user; One font subsetting abstraction module calls for described web page server, forms a subset font file to extract the part Chinese character from a font.
2. according to claim 1 system, it is characterized in that: described web page server is according to the font name and the some Chinese characters that provide in user's request, one section CSS (cascading style sheet) code is passed to the user, described CSS (cascading style sheet) code contains the URLs of some font files, contains the information of the described font of described some Chinese characters in described font file; In addition, described web page server is passed to the user according to the URLs of certain font file in user's request with this font file.
3. according to claim 1 system, it is characterized in that: described web page server is the sign of issue to classification and each classification of Chinese character externally, and according to the font name and the Chinese character class indication that provide in user's request, one section CSS (cascading style sheet) code is passed to the user, wherein this code contains the URLs of some font files, and contains the information of the above-mentioned font of all Chinese characters that the classification of this Chinese character contains in this font file; Described web page server according to the URLs of certain font file in user's request, is passed to the user with this font file in addition.
4. according to claim 3 system, it is characterized in that: described Chinese character classification system in the Modern Chinese that third party researcher was provided the Chinese character frequency of usage as standard, described Chinese character is divided into several, then gives a sign for each classification, specify when asking for the user; Or the classification of described Chinese character is to ask historical record to be done on the basis of statistical study all users to described web page server, and Chinese character is divided into some overlapping each other or nonoverlapping classification, for a sign is given in each classification, specifies when asking for the user.
5. according to claim 3 system, it is characterized in that: described Chinese character classification is Chinese character to be divided into Chinese character and the Chinese characters in current use of various specific areas, and gives a sign, appointment when asking for the user for each classification.
6. according to claim 1 system, it is characterized in that: described web page server provides the font service of non-standard Chinese character or symbol, wherein this non-standard Chinese character comprises original character, variant Chinese character, self-made characters, new coinage, curses symbol, designated symbol, seven-stringed plucked instrument in some ways similar to the zither spectrum, traditional Chinese musical notation, if and the Chinese character that provides or symbol be not in the Unicode scope, this system defines a code bit for it in the privately owned district of Unicode, and open to the user.
7. according to claim 1 system, it is characterized in that: described font subsetting abstraction module is called by described web page server and the Chinese character that it is specified extracts from a font file, and generate the font file of some forms, then inform the reading manner of this font file of web page server.
8. according to claim 1 system, it is characterized in that: this system provides the font service for third party's web page server, third party's web page server can be downloaded CSS (cascading style sheet) and font file as for its place in advance in advance, then embed its webpage, supply the user of third party's web page server to browse.
9. web service system, it is characterized in that, its embedded font subsetting abstraction module, Chinese character generates a less font file thereby this font subsetting abstraction module of this web service system call extracts part from a font, and this font file information embeds in its webpage, so that its page viewers can browse the font of enriching on its webpage.
10. the method for a display font on webpage, comprise the font request that utilizes web page server to receive the user, and on request CSS (cascading style sheet) code or font file passed to the user; Wherein said web page server calls the font subsetting abstraction module, forms a subset font file to extract the part Chinese character from a font.
CN2013101289194A 2013-01-03 2013-04-15 System and method for displaying Chinese character webpage scripts Pending CN103176955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101289194A CN103176955A (en) 2013-01-03 2013-04-15 System and method for displaying Chinese character webpage scripts

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201310000274 2013-01-03
CN201310000274.6 2013-01-03
CN2013101289194A CN103176955A (en) 2013-01-03 2013-04-15 System and method for displaying Chinese character webpage scripts

Publications (1)

Publication Number Publication Date
CN103176955A true CN103176955A (en) 2013-06-26

Family

ID=48636841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101289194A Pending CN103176955A (en) 2013-01-03 2013-04-15 System and method for displaying Chinese character webpage scripts

Country Status (1)

Country Link
CN (1) CN103176955A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103761110A (en) * 2014-02-18 2014-04-30 优视科技有限公司 Browser font displaying and processing method and device
CN104765715A (en) * 2014-01-06 2015-07-08 中央研究院 Cloud font service system
CN106462555A (en) * 2014-05-14 2017-02-22 网页云股份有限公司 Methods and systems for web content generation
CN107704476A (en) * 2016-08-08 2018-02-16 亚太戏网股份有限公司 Method for accelerating display of Asian language family fonts on webpage, font server and browser end
CN108197084A (en) * 2017-04-27 2018-06-22 中南出版传媒集团股份有限公司湖南教育出版社分公司 A kind of web-based digital publication cuts the method and system of font
CN109189389A (en) * 2018-08-16 2019-01-11 阿里巴巴集团控股有限公司 Data processing method and device, server
CN112818145A (en) * 2021-01-19 2021-05-18 上海义启信息科技有限公司 Intelligent font style rendering system
CN113573125A (en) * 2020-04-29 2021-10-29 深圳Tcl新技术有限公司 Subtitle rendering method and system based on SVG (scalable vector graphics) font library

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070006076A1 (en) * 2005-06-30 2007-01-04 Dynacomware Taiwan Inc. System and method for providing Asian Web font documents
CN101055593A (en) * 2007-06-15 2007-10-17 中国科学院软件研究所 Tibetan web page and its code identification method
CN101256563A (en) * 2006-12-26 2008-09-03 威锋数位开发股份有限公司 System and method for on-line generation of asian documents with multiple font faces
CN101650605A (en) * 2009-09-25 2010-02-17 中国电信股份有限公司 Method and system for intelligently inputting Chinese characters
CN102043764A (en) * 2009-10-16 2011-05-04 埃克斯坦西斯股份有限公司 Reduced glyph font files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070006076A1 (en) * 2005-06-30 2007-01-04 Dynacomware Taiwan Inc. System and method for providing Asian Web font documents
CN101256563A (en) * 2006-12-26 2008-09-03 威锋数位开发股份有限公司 System and method for on-line generation of asian documents with multiple font faces
CN101055593A (en) * 2007-06-15 2007-10-17 中国科学院软件研究所 Tibetan web page and its code identification method
CN101650605A (en) * 2009-09-25 2010-02-17 中国电信股份有限公司 Method and system for intelligently inputting Chinese characters
CN102043764A (en) * 2009-10-16 2011-05-04 埃克斯坦西斯股份有限公司 Reduced glyph font files

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
梁先宇 等: "《计算机应用基础》", 30 June 2008 *
范鲁娜: "Web Font研究与应用", 《科技资讯》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765715A (en) * 2014-01-06 2015-07-08 中央研究院 Cloud font service system
CN104765715B (en) * 2014-01-06 2018-04-10 中央研究院 cloud font service system
CN103761110A (en) * 2014-02-18 2014-04-30 优视科技有限公司 Browser font displaying and processing method and device
CN106462555A (en) * 2014-05-14 2017-02-22 网页云股份有限公司 Methods and systems for web content generation
CN107704476A (en) * 2016-08-08 2018-02-16 亚太戏网股份有限公司 Method for accelerating display of Asian language family fonts on webpage, font server and browser end
CN107704476B (en) * 2016-08-08 2021-01-26 亚太戏网股份有限公司 Method for accelerating display of Asian language family fonts on webpage, font server and browser end
CN108197084A (en) * 2017-04-27 2018-06-22 中南出版传媒集团股份有限公司湖南教育出版社分公司 A kind of web-based digital publication cuts the method and system of font
CN109189389A (en) * 2018-08-16 2019-01-11 阿里巴巴集团控股有限公司 Data processing method and device, server
CN113573125A (en) * 2020-04-29 2021-10-29 深圳Tcl新技术有限公司 Subtitle rendering method and system based on SVG (scalable vector graphics) font library
CN112818145A (en) * 2021-01-19 2021-05-18 上海义启信息科技有限公司 Intelligent font style rendering system

Similar Documents

Publication Publication Date Title
CN103176955A (en) System and method for displaying Chinese character webpage scripts
CN104239305B (en) Generate and show the method and device of electronic document
CN100596174C (en) Method for setting interface of electronic card
Viegas et al. Manyeyes: a site for visualization at internet scale
US8595635B2 (en) System, method and apparatus for selecting content from web sources and posting content to web logs
CN101025738B (en) Template-free dynamic website generating method
US20040205609A1 (en) System and method for generating and formatting a publication
CN106687945B (en) Long-range script management
CN101364979B (en) Downloaded material parsing and processing system and method
CN104317949B (en) Document snippet method for extracting content, device and system
KR101522284B1 (en) Content feed user interface
US20190065444A1 (en) Techniques for efficient & high-throughput web content-creation
CN110717127A (en) Method and device for on-line analysis and browsing of OFD (office file)
JP2000076473A (en) Automatic document re-authoring method and system therefor
US20140013211A1 (en) Content providing apparatus compatible with various terminal devices
JP2004139466A (en) Electronic document printing program, and electronic document printing system
US20100017703A1 (en) Method and system for creating and hosting a website
JP2013506936A (en) System and method for combination of publications based on templates
CN102831229A (en) Web page browsing method suitable for blind persons
KR20210040611A (en) Method and apparatus for generating web page
CA2733456C (en) System and method for designing and generating online stationery
CN107562450A (en) A kind of cross-platform method for visualizing of local chronicle resource
JP2005056041A (en) Information processor and information processing method, program, and recording medium
US6684217B1 (en) System and method for generating a profile from which a publication may be created
TWI285323B (en) A system and method for browsing web page documents containing Asian characters with multiple font faces

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130626