TWI571751B - Acceleration method for showing asian language fonts in pages, font server, and browsing end - Google Patents
Acceleration method for showing asian language fonts in pages, font server, and browsing end Download PDFInfo
- Publication number
- TWI571751B TWI571751B TW105115119A TW105115119A TWI571751B TW I571751 B TWI571751 B TW I571751B TW 105115119 A TW105115119 A TW 105115119A TW 105115119 A TW105115119 A TW 105115119A TW I571751 B TWI571751 B TW I571751B
- Authority
- TW
- Taiwan
- Prior art keywords
- font
- information
- webpage
- server
- file
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Description
本發明是關一種加速網頁顯示字型顯示的方法,尤其是針對亞洲語系字型在網頁顯示上的加速呈現處理。 The invention is a method for accelerating the display of a font display on a webpage, in particular, an accelerated rendering process for an Asian language font on a webpage display.
隨著資訊科技的不斷進展,人的生活可以說是已經離不開網際網路。相較於全球資訊網(World Wide Web)發展的早期,目前網頁上所呈現的內容可以說是愈來愈豐富。舉例來說,在早期於網頁顯示字型的瀏覽裝置的網頁所呈現文字的字型絕大部分是由超文件標示語言(HyperText Markup Language,簡稱:HTML)來定義,然而隨著網頁內容愈來愈多元與豐富的趨勢下,已有業者開始提供根據網頁需求透過網際網路下載不同字型檔案的服務。這樣一來,即使於網頁顯示字型的瀏覽裝置未安裝該字型的樣式,也可讓使用者在瀏覽網頁時享受到多樣化的字型。然而,亞洲文字字型的檔案通常很大,需花費較多的時間下載,從而增加使用者的等待時間。 With the continuous advancement of information technology, people's lives can be said to be inseparable from the Internet. Compared to the early days of the development of the World Wide Web, the content presented on the current web page can be said to be more and more abundant. For example, most of the fonts displayed on the webpage of the browsing device that displays the font on the webpage in the early days are mostly defined by the HyperText Markup Language (HTML), but as the content of the webpage becomes more and more With the trend of diversity and richness, the existing operators have begun to provide services for downloading different font files through the Internet according to the needs of webpages. In this way, even if the font display device does not have the font style installed on the webpage, the user can enjoy a variety of fonts while browsing the webpage. However, Asian text fonts are usually large and take more time to download, increasing the user's waiting time.
台灣專利I427534藉由圖騰伺服器產生網頁圖騰之方法中揭露之方法,是以圖騰顯示程式與圖騰伺服器通訊後,以該網頁之字碼及字型資訊來取得子集合字型,以縮小字型檔案達到加快下載呈現速度之目的。該方法雖較整個字型檔案下載快速,但在與圖騰伺服器通訊仍有等待時間,依照網路品質與頻寬不同約需等待數秒,等待時間中間會有數秒顯示為系統預設字型,等待子集合字型檔案完全下載完成後,方能正確顯示出設定的字型樣式。因此,如何讓瀏覽者 省略中間的等待時間,能直接瀏覽到網頁設定的字型樣式,是值得本領域具有知識者去思考的。 Taiwan Patent I427534 discloses a method for generating a web totem by a totem server. After the totem display program communicates with the totem server, the sub-set font is obtained by using the font and font information of the web page to reduce the font size. The file achieves the purpose of speeding up the download and rendering. Although the method downloads faster than the entire font file, there is still waiting time for communication with the totem server. It takes about several seconds depending on the network quality and bandwidth, and there are several seconds in the middle of the waiting time to display the system default font. After the sub-set font file is completely downloaded, the set font style can be displayed correctly. So how to make viewers Omitting the waiting time in the middle, you can directly browse to the font style set by the web page, which is worthy of consideration by those who have knowledge in the field.
為了解決上述之問題,本發明的目的在於提供一種加速網頁顯示亞洲語系字型的方法,此種於網頁顯示字型的方法能讓使用者在無需太多等待時間的情況下享受多樣化的亞洲語系字型。 In order to solve the above problems, an object of the present invention is to provide a method for accelerating a web page displaying an Asian language font, and the method for displaying a font on a webpage allows a user to enjoy a variety of Asians without much waiting time. Language font.
基於上述目的與其他目的,本發明提供一種加速網頁顯示亞洲語系字型的方法。首先,從對應到一網頁網址的一網頁源下載至少一網頁資訊到一於網頁顯示字型的瀏覽裝置,網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊。再來,於網頁顯示字型的瀏覽裝置根據連接資訊從一字型伺服器下載一字型顯示程式,字型顯示程式至少根據該網頁網址與該字型資訊產生至少一第一定址資訊。之後,字型顯示程式根據第一定址資訊,至字型伺服器嘗試下載一第一子集合字型檔案。若於網頁顯示字型的瀏覽裝置成功下載第一子集合字型檔案,於網頁顯示字型的瀏覽裝置對第一子集合字型檔案進行解譯並產生一第一解譯結果,並將第一解譯結果呈現於一網頁上。接著,字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器,該字型伺服器包括一字型產生模組。再來,字型產生模組判斷網頁網址對應之字型資訊與字碼資訊至少其中之一是否有變動或並不存在該網址對應之字型資訊與字碼資訊,若是則進行下述步驟。首先,字型產生模組根據字碼資訊與字型資訊產生至少一對應的第二子集合字型檔案,及至少依據網頁網址與字型資訊產生一第二定址資訊。之後,傳送第二定址資訊至於網頁顯示字型的瀏覽裝置的字型顯示程式,且字型顯示程式根據第二定址資訊下載第二子集合字型檔案。接著,於網頁顯 示字型的瀏覽裝置對第二子集合字型檔案進行解譯並產生一第二解譯結果,並將該第二解譯結果呈現於一網頁上。 Based on the above objects and other objects, the present invention provides a method of accelerating a web page displaying Asian language fonts. First, downloading at least one webpage information from a webpage source corresponding to a webpage URL to a browsing device of a webpage display font, the webpage information includes a connection information, at least one wordcode information, and at least one font type information. Then, the browsing device displaying the font on the webpage downloads a font display program from the font server according to the connection information, and the font display program generates at least one first addressing information according to the webpage URL and the font information. After that, the font display program attempts to download a first sub-set font file according to the first addressing information to the font server. If the browsing device of the webpage displaying the font successfully downloads the first sub-set font file, the browsing device displaying the font on the webpage interprets the first sub-set font file and generates a first interpretation result, and the first An interpretation result is presented on a web page. Then, the font display program transmits the webpage URL, the word code information, and the font information to the font server, and the font server includes a font generation module. Then, the font generation module determines whether at least one of the font information and the word information corresponding to the webpage URL changes or does not have the font information and the word information corresponding to the web address, and if so, performs the following steps. First, the font generation module generates at least one corresponding second subset font file according to the word information and the font information, and generates a second address information according to at least the webpage URL and the font information. Thereafter, the second address information is transmitted to the font display program of the browsing device of the webpage display font, and the font display program downloads the second sub-set font file according to the second addressing information. Then, on the web page The type-based browsing device interprets the second subset font file and generates a second interpretation result, and presents the second interpretation result on a web page.
在上述的加速網頁顯示亞洲語系字型的方法中,字型伺服器包括一原始字型資料庫,該字型產生模組產生該第二子集合字型檔案的步驟包括以下步驟。首先,從原始字型資料庫中尋找符合該字型資訊要求之字型。接著,根據所接收到之字碼資訊,從原始字型資料庫中取得對應到該字碼資訊中之每一字碼的一字型圖像。再來,產生該字碼資訊與該字型圖像間之一索引表,且依據該索引表從原始字型資料庫中產生第二子集合字型檔案。 In the above method for displaying an Asian language font on an accelerated webpage, the font server includes an original font database, and the step of generating the second subset font file by the font generation module includes the following steps. First, find the font that matches the information requirements of the font from the original font database. Then, according to the received code information, a font image corresponding to each of the code information is obtained from the original font database. Then, an index table between the word information and the font image is generated, and a second sub-set font file is generated from the original font database according to the index table.
在上述的於網頁顯示字型的方法中,當字型產生模組判斷網頁網址、字型資訊、與字碼資訊任一未有變動時,該第二定址資訊等於該第一定址資訊。 In the above method for displaying a font on a webpage, when the font generation module determines that the webpage URL, the font information, and the wordcode information are not changed, the second addressing information is equal to the first addressing information.
在上述的於網頁顯示字型的方法中,當字型資訊與字碼資訊有變動時,第二解譯結果將覆蓋第一解譯結果。 In the above method for displaying a font on a webpage, when the font information and the word information are changed, the second interpretation result will cover the first interpretation result.
基於上述目的與其他目的,本發明提供一種字型伺服器,此字型伺服器通訊連接至一於網頁顯示字型的瀏覽裝置,該於網頁顯示字型的瀏覽裝置包括至少一網頁資訊,該網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊,於網頁顯示字型的瀏覽裝置根據連接資訊而連接至字型伺服器。字型伺服器包括一字型顯示程式與一字型產生模組,其中字型伺服器依據於網頁顯示字型的瀏覽裝置的請求而傳送字型顯示程式至於網頁顯示字型的瀏覽裝置,而字型產生模組產生至少一子集合字型檔案,且該字型伺服器還包括對應至該第一定址資訊的至少一第一子集合字型檔案。其中,於於網頁顯示字型的瀏覽裝置的字型顯示程式根據網頁網址與字型資訊產生至少一第一定址資訊,該字型顯示程式根據第一定址資訊從字型伺服器嘗試下載一第一子集合字型檔案,之後於於網頁顯示字型的瀏覽裝置的字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器。若該字型產生模組判斷該網頁網址對應之該字碼資訊 與該字型資訊至少其中之一是否不存在或有變動,則進行下述步驟。首先,根據字碼資訊與字型資訊產生至少一對應的第二子集合字型檔案,且根據網頁網址與字型資訊產生一第二定址資訊,並傳送第二定址資訊至於網頁顯示字型的瀏覽裝置的字型顯示程式。其中,於收到第二定址資訊後,於網頁顯示字型的瀏覽裝置的字型顯示程式根據第二定址資訊從字型伺服器下載第二子集合字型檔案並進行解譯以產生一第二解譯結果,並將該第二解譯結果呈現於一網頁上。 Based on the above and other objects, the present invention provides a font server, wherein the font server is communicably connected to a browsing device for displaying a font on a webpage, and the browsing device for displaying a font on the webpage includes at least one webpage information. The webpage information includes a connection information, at least one word code information, and at least one font type information, and the browsing device displaying the font on the webpage is connected to the font server according to the connection information. The font server includes a font display program and a font generation module, wherein the font server transmits the font display program to the browsing device of the webpage display font according to the request of the browsing device of the webpage display font. The font generation module generates at least one sub-set font file, and the font server further includes at least one first sub-set font file corresponding to the first address information. The font display program of the browsing device for displaying the font on the webpage generates at least one first addressing information according to the webpage URL and the font information, and the font display program attempts to download from the font server according to the first addressing information. A first sub-set font file, and then the font display program of the browsing device displaying the font on the web page transmits the web page URL, the word code information, and the font information to the font server. If the font generation module determines the word information corresponding to the webpage URL If at least one of the font information does not exist or changes, perform the following steps. Firstly, generating at least one corresponding second subset font file according to the word information and the font information, and generating a second addressing information according to the webpage URL and the font information, and transmitting the second addressing information to the webpage displaying the font type browsing The font display program of the device. After receiving the second address information, the font display program of the browsing device displaying the font on the webpage downloads the second sub-set font file from the font server according to the second addressing information and performs interpretation to generate a first The second interpretation result, and the second interpretation result is presented on a webpage.
基於上述目的與其他目的,本發明提供一種於網頁顯示字型的瀏覽裝置,此於網頁顯示字型的瀏覽裝置通訊連接至一字型伺服器與至少一網頁源。網頁源包括至少一網頁資訊,該網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊,而字型伺服器包括一字型顯示程式與一字型產生模組。字型產生模組適於產生至少一子集合字型檔,於網頁顯示字型的瀏覽裝置適於儲存由該網頁源所下載的網頁資訊以及由字型伺服器所下載的該字型顯示程式,該於網頁顯示字型的瀏覽裝置依據網頁資訊與字型顯示程式執行下述步驟。首先,根據連接資訊從一字型伺服器下載一字型顯示程式。接著,字型顯示程式至少根據網頁網址與字型資訊產生至少一第一定址資訊。再來,字型顯示程式根據第一定址資訊從字型伺服器嘗試下載第一子集合字型檔案。若成功下載第一子集合字型檔案,對該第一子集合字型檔案進行解譯並產生一第一解譯結果,並將第一解譯結果呈現於一網頁上。接著,字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器,其中字型伺服器的字型產生模組判斷網頁網址所對應之字型資訊與字碼資訊至少其中之一是否有變動或並不存在,若是則根據字碼資訊與字型資訊產生至少一對應的第二子集合字型檔案,及至少依據網頁網址與字型資訊產生一第二定址資訊,並傳送第二定址資訊至於網頁顯示字型的瀏覽裝置。之後,字型顯示程式根據第二定址資訊下載第二子集合字型檔 案。然後,對第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於一網頁上。 Based on the above and other objects, the present invention provides a browsing device for displaying a font on a webpage, wherein the browsing device of the webpage display font is communicably connected to the inline server and the at least one webpage source. The webpage source includes at least one webpage information, the webpage information includes a connection information, at least one wordcode information, and at least one font type information, and the font server includes a font display program and a font type generating module. The font generation module is adapted to generate at least one sub-set font file, and the browsing device for displaying the font on the webpage is adapted to store the webpage information downloaded by the webpage source and the font display program downloaded by the font server. The browsing device displaying the font on the webpage performs the following steps according to the webpage information and the font display program. First, download a font display program from a font server based on the connection information. Then, the font display program generates at least one first address information according to at least the webpage URL and the font information. Then, the font display program attempts to download the first sub-set font file from the font server according to the first addressing information. If the first sub-set font file is successfully downloaded, the first sub-set font file is interpreted and a first interpretation result is generated, and the first interpretation result is presented on a web page. Then, the font display program transmits the webpage URL, the word code information, and the font information to the font server, wherein the font generation module of the font server determines at least the font information and the word information corresponding to the webpage URL. Whether there is a change or does not exist, if yes, at least one corresponding second subset font file is generated according to the word information and the font information, and at least a second address information is generated according to the webpage URL and the font information, and the first address information is transmitted. The second addressing information is for the browsing device of the web page display font. After that, the font display program downloads the second sub-set font file according to the second address information. case. Then, the second subset font file is interpreted and a second interpretation result is generated, and the second interpretation result is presented on a web page.
此外,上述於網頁顯示字型的瀏覽裝置為裝設有瀏覽器軟體的一智慧型手機、一平板電腦、一桌上型電腦、或一筆記型電腦。 In addition, the browsing device for displaying the font on the webpage is a smart phone, a tablet computer, a desktop computer, or a notebook computer equipped with a browser software.
20‧‧‧網際網路 20‧‧‧Internet
30‧‧‧網頁 30‧‧‧Webpage
32‧‧‧下拉式選單區 32‧‧‧Drawdown menu area
100‧‧‧系統 100‧‧‧ system
110‧‧‧網頁源 110‧‧‧Web Source
112‧‧‧伺服主機 112‧‧‧Servo host
120‧‧‧於網頁顯示字型的瀏覽裝置 120‧‧‧Display device for displaying fonts on web pages
123‧‧‧主機 123‧‧‧Host
124‧‧‧螢幕 124‧‧‧ screen
130‧‧‧字型伺服器 130‧‧‧ font server
132‧‧‧字型產生模組 132‧‧‧ font generation module
134‧‧‧原始字型資料庫 134‧‧‧ original font database
S110~S170、S210~S260、S310~S350‧‧‧流程圖步驟 S110~S170, S210~S260, S310~S350‧‧‧ Flowchart steps
圖1所繪示為本發明之系統的實施例的示意圖。 1 is a schematic diagram of an embodiment of a system of the present invention.
圖2所繪示為本發明之於網頁顯示字型的方法的流程圖。 FIG. 2 is a flow chart showing a method for displaying a font on a webpage according to the present invention.
圖3所繪示為本發明之網頁的實施例。 FIG. 3 illustrates an embodiment of a web page of the present invention.
圖4A~圖4F所繪示為網頁源、於網頁顯示字型的瀏覽裝置、與字型伺服器間的資訊遞送關係的示意圖。 4A-4F are schematic diagrams showing a relationship between a webpage source, a browsing device for displaying a font on a webpage, and a message delivery relationship with a font server.
圖5所繪示為產生第二子集合字型檔案的流程圖。 FIG. 5 is a flow chart showing the generation of a second subset font file.
圖6A所繪示為字型顯示程式的部分原始碼。 FIG. 6A illustrates a partial source code of a font display program.
圖6B所繪示為字型產生模組的部分原始碼。 FIG. 6B illustrates a partial source code of the font generation module.
圖6C所繪示為第一定址資訊與第二定址資訊。 FIG. 6C illustrates the first addressing information and the second addressing information.
請參照圖1,圖1所繪示為本發明之系統的實施例的示意圖。在本實施例中,系統100包括一網頁源110、一於網頁顯示字型的瀏覽裝置120、與一字型伺服器130,其中網頁源110、於網頁顯示字型的瀏覽裝置120、與字型伺服器130之間是藉由網際網路20而彼此通訊連接。網頁源110是由至少一個(在本實施例為多個)伺服主機112所構成,這些伺服主機112可以置於一處或分散於多處。另外,於網頁顯示字型的瀏覽裝置120在本實施例中為一桌上型電腦,此桌上型電腦包括一主機123與一螢幕124;在其他實施例中,於網頁顯示字型的瀏覽裝置120也 可以為一筆記型電腦、一智慧型手機、一平板電腦、一All in One電腦或其他可以瀏覽網頁的電子裝置。此外,字型伺服器130也可由一個或多個伺服主機所構成,且字型伺服器130包括一字型產生模組132與一原始字型資料庫134,關於字型產生模組132與原始字型資料庫134將在後文有詳細的介紹。 Please refer to FIG. 1. FIG. 1 is a schematic diagram of an embodiment of a system of the present invention. In this embodiment, the system 100 includes a webpage source 110, a browsing device 120 for displaying a font on a webpage, and a font server 130, wherein the webpage source 110, the browsing device 120 for displaying the font on the webpage, and the word The types of servers 130 are communicatively coupled to one another via the Internet 20. The web page source 110 is composed of at least one (in this embodiment, a plurality of) servo hosts 112, which may be placed in one place or distributed in multiple places. In addition, the browsing device 120 for displaying a font on a webpage is a desktop computer in the embodiment, and the desktop computer includes a host 123 and a screen 124. In other embodiments, the font display is displayed on the webpage. Device 120 also It can be a notebook computer, a smart phone, a tablet computer, an All in One computer or other electronic device that can browse the web. In addition, the font server 130 can also be composed of one or more servo hosts, and the font server 130 includes a font generation module 132 and an original font database 134, and the font generation module 132 and the original The font database 134 will be described in detail later.
請同時參照圖2A與圖2B,圖2A與圖2B所繪示為本發明之於網頁顯示字型的方法的流程圖。首先,實施步驟S110,使用者於於網頁顯示字型的瀏覽裝置120將瀏覽器開啟,在本實施例中,瀏覽器可以為Internet Explorer、Firefox、Opera Web Browser、或Google Chrome等。再來,實施步驟S120,之後透過超連接的方式連接到網頁源,這樣螢幕124就會顯示出如圖3所示的網頁,圖3所示的網頁網址:http://www.abc.com.tw/。需注意的是,圖3所示網頁網址與網頁內容僅是示意,不代表真實網址,且網頁所示的內容也僅用於本申請案說明之用。此外,如圖4A所示,會從網頁源110下載到於網頁顯示字型的瀏覽裝置120的網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊,其中連接資訊是指連接到字型伺服器130的網址。另外,字碼資訊則例如是圖3所示網頁30中下拉式選單區32中所示的「時尚專區」、「女性用品」、「3C產品」、「日常用品」等,而字型資訊則例如是指上述字碼所使用的字型,例如為:POP1字型。 Please refer to FIG. 2A and FIG. 2B simultaneously. FIG. 2A and FIG. 2B are flowcharts showing a method for displaying a font on a webpage according to the present invention. First, in step S110, the user opens the browser on the browsing device 120 of the web page display font. In this embodiment, the browser may be Internet Explorer, Firefox, Opera Web Browser, or Google Chrome. Then, step S120 is implemented, and then connected to the webpage source through the hyperlink, so that the screen 124 displays the webpage as shown in FIG. 3, and the webpage URL shown in FIG. 3: http://www.abc.com .tw/. It should be noted that the webpage URL and webpage content shown in FIG. 3 are only schematic and do not represent real webpages, and the content shown on the webpage is only used for the description of the present application. In addition, as shown in FIG. 4A, the webpage information that is downloaded from the webpage source 110 to the browsing device 120 of the webpage display font includes a connection information, at least one word information, and at least one font type information, wherein the connection information refers to the connection. The URL to the font server 130. In addition, the word information is, for example, "fashion zone", "female product", "3C product", "daily product", etc. shown in the pull-down menu area 32 of the webpage 30 shown in FIG. 3, and the font information is, for example, It refers to the font used by the above code, for example: POP1 font.
之後,實施步驟S130,如圖4B所示,於網頁顯示字型的瀏覽裝置120根據連結資訊連接到字型伺服器130後,便會從字型伺服器130下載字型顯示程式,此字型顯示程式的部分原始碼如圖6A所示。再來,實施步驟S140,相關部分原始碼於圖6A的方框601中所圈選的區域,位於於網頁顯示字型的瀏覽裝置120的字型顯示程式會根據網頁網址(即圖3所示的網頁網址:http://www.abc.com.tw/)與字型資訊(例如有使用到pop1與pop2兩套字型),而產生一第一定址資訊,此第一定址資訊如圖6C中方框611所示。 Then, in step S130, as shown in FIG. 4B, after the browsing device 120 of the webpage display font is connected to the font server 130 according to the connection information, the font display program is downloaded from the font server 130, and the font is downloaded. A partial source code of the display program is shown in Fig. 6A. Then, in step S140, the relevant part of the original code is in the area circled in the block 601 of FIG. 6A, and the font display program of the browsing device 120 located on the webpage display font is based on the webpage URL (ie, as shown in FIG. Website address: http://www.abc.com.tw/) and font information (for example, use pop1 and pop2 two sets of fonts), and generate a first address information, this first address information This is shown as block 611 in Figure 6C.
然後,實施步驟S150,如圖4C所示,於網頁顯示字型的瀏覽裝置120根據第一定址資訊從字型伺服器130下載一第一子集合字型檔案。在本實施例中,第一子集合字型檔案較佳是只包括對應到該網頁30中所示字碼的字型,而非全部的字型。然後,實施步驟S160,於網頁顯示字型的瀏覽裝置120的主機123會對第一子集合字型檔案進行解譯,以產生一第一解釋結果,此第一解釋結果會呈現於於網頁顯示字型的瀏覽裝置120的網頁上。詳細地說,於網頁顯示字型的瀏覽裝置120會根據第一子集合字型檔案,而使網頁上的字碼(部分或全部)的字型會呈現對應到第一子集合字型檔案的字型。 Then, step S150 is implemented. As shown in FIG. 4C, the browsing device 120 displaying the font on the webpage downloads a first subset font file from the font server 130 according to the first addressing information. In this embodiment, the first sub-set font file preferably includes only fonts corresponding to the words shown in the web page 30, rather than all of the fonts. Then, in step S160, the host 123 of the browsing device 120 displaying the font on the webpage interprets the first subset font file to generate a first interpretation result, and the first interpretation result is presented on the webpage display. The web page of the font browsing device 120. In detail, the browsing device 120 displaying the font on the webpage causes the font of the word (partial or full) on the webpage to present the word corresponding to the first subset of the font file according to the first subset font file. type.
再來,實施步驟S170,如圖4D所示,於網頁顯示字型的瀏覽裝置120的字型顯示程式會將網頁網址與對應到該網頁網址的字碼資訊及字型資訊傳送到字型伺服器130。之後,實施步驟S210,字型產生模組132會判斷對應到該網頁網址的字碼資訊或字型資訊是否有變動,或判斷對應到該網頁網址的字碼資訊或字型資訊是否不存在。在本實施例中,字型產生模組132的部分原始碼如圖6B所示。 Then, in step S170, as shown in FIG. 4D, the font display program of the browsing device 120 displaying the font on the webpage transmits the webpage URL and the word information and font information corresponding to the webpage URL to the font server. 130. Then, in step S210, the font generation module 132 determines whether the word information or the font information corresponding to the webpage URL changes, or determines whether the word information or the font information corresponding to the webpage URL does not exist. In this embodiment, a part of the original code of the font generation module 132 is as shown in FIG. 6B.
更詳細的說,請同時參照圖1,在一般的情況下,字型伺服器130與網頁源110是由不同的業者所負責(但也可以同屬相同的業者),網頁源110的業者會向字型伺服器130的業者訂購服務,這樣一來於網頁顯示字型的瀏覽裝置120的消費者在瀏覽網頁源110的時候就可在網頁上看到字型伺服器130所提供的特殊字型,其運作的相關程序已如步驟S110~步驟S170所示。例如,於步驟S150所提到的第一子集合字型檔案便可為網頁源110的業者向字型伺服器130的業者訂購服務後,字型伺服器130便在字型伺服器130預先儲存的第一子集合字型檔案。然而,網頁源110的業者可能對該網頁中的字型或字碼進行修改,而導致於步驟S150所下載的第一子集合字型檔案無法讓網頁正確呈現更改後的字型或字碼。或者,網頁源110的業者可能新增新的網頁,當該新增網頁首次被下載時,字型伺服器130便不會存在與網址對應之字型資訊與字碼資訊。當發生上述情況時, 系統100便會執行步驟S230~步驟S260的程序,以產生新的子集合字型供使用,關於步驟S230~步驟S260將於下文詳細說明。在本實施例中,若不存在上述的情況,則字型伺服器130便不會產生新子集合字型(如步驟S220),字型顯示程式會直接下載第一子集合字型檔案顯示,直到於網頁顯示字型的瀏覽裝置120的使用者離開該網頁30。 In more detail, please refer to FIG. 1 at the same time. In the general case, the font server 130 and the webpage source 110 are responsible by different operators (but can also belong to the same industry), and the web source 110 will be The service is ordered from the operator of the font server 130, so that the consumer of the browsing device 120 displaying the font on the web page can see the special word provided by the font server 130 on the web page when browsing the webpage source 110. The type, the related procedure of its operation has been as shown in steps S110 to S170. For example, after the first sub-set font file mentioned in step S150 can order the service of the webpage source 110 to the operator of the font server 130, the font server 130 pre-stores the font server 130. The first subset of the font file. However, the operator of the webpage source 110 may modify the font or the word in the webpage, and the first sub-set font file downloaded in step S150 cannot cause the webpage to correctly present the changed font or word. Alternatively, the operator of the webpage source 110 may add a new webpage. When the newly added webpage is downloaded for the first time, the font server 130 does not have the font information and the wordcode information corresponding to the webpage. When this happens, The system 100 executes the procedures of steps S230 to S260 to generate a new sub-set font for use, and steps S230 to S260 will be described in detail below. In this embodiment, if the above situation does not exist, the font server 130 does not generate a new sub-set font (such as step S220), and the font display program directly downloads the first sub-set font file display. The user of the browsing device 120 that has displayed the font on the web page leaves the web page 30.
請繼續參照圖2B,實施步驟S230,於字型伺服器130中,字型產生模組132會產生一第二子集合字型及一第二定址資訊。詳細地說,字型產生模組132根據於網頁顯示字型的瀏覽裝置120所上傳的字碼資訊與字型資訊產生至少一對應的第二子集合字型檔,且也會依照網頁網址與字型資訊產生一第二定址資訊,此第二定址資訊如圖6C中方框612所示。 Referring to FIG. 2B, step S230 is implemented. In the font server 130, the font generation module 132 generates a second subset font and a second address information. In detail, the font generation module 132 generates at least one corresponding second subset font file according to the word information and the font information uploaded by the browsing device 120 of the webpage display font, and also according to the webpage URL and the word. The type information generates a second address information, which is shown in block 612 of Figure 6C.
之後,實施步驟S240,請同時參照圖4E,字型伺服器130將第二定址資訊傳送到於網頁顯示字型的瀏覽裝置120。然後,實施步驟S250,請同時參照圖4F,於網頁顯示字型的瀏覽裝置120的字型顯示程式130會根據第二定址資訊向字型伺服器130下載第二子集合字型檔案。再來,實施步驟S260,於網頁顯示字型的瀏覽裝置120的主機123對第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於網頁30上。也就是說,原本呈現在網頁30上的第一解釋結果會被第二解釋結果所覆蓋。值得注意的是,在較佳實施例中,因網頁會同時有多瀏覽者瀏覽,當有一位瀏覽者讀取過該網頁30並於字型伺服器130上產生第二子集合字型檔案後,其他瀏覽者即可在瀏覽時直接下載第二子集合字型檔案做顯示,無需再等待字型伺服器130通訊處理後方能顯示,故可以縮短處理和傳送所需的時間,從而讓於網頁顯示字型的瀏覽裝置120的瀏覽者在無需太多等待時間的情況下享受多樣化的字型。 Thereafter, step S240 is implemented. Referring to FIG. 4E at the same time, the font server 130 transmits the second address information to the browsing device 120 of the web page display font. Then, step S250 is implemented. Referring to FIG. 4F at the same time, the font display program 130 of the browsing device 120 displaying the font on the webpage downloads the second subset font file to the font server 130 according to the second addressing information. Then, in step S260, the host 123 of the browsing device 120 of the webpage display font interprets the second subset font file and generates a second interpretation result, and presents the second interpretation result to the webpage 30. on. That is, the first interpretation result originally presented on the web page 30 will be covered by the second interpretation result. It should be noted that in the preferred embodiment, since the web page is browsed by multiple viewers at the same time, when one viewer reads the web page 30 and generates the second sub-set font file on the font server 130, Other browsers can directly download the second sub-set font file for display during browsing, and can wait for the font server 130 to perform communication processing, so that the time required for processing and transmission can be shortened, thereby allowing the web page to be displayed. The viewer of the browsing device 120 displaying the font enjoys a variety of fonts without much waiting time.
需注意的是,在其他的實施例中,當字型產生模組132判斷網頁網址對應之字型資訊或字碼資訊無變動或已存在該網址對應之字型資訊與字碼資訊時,也 會執行步驟S230~步驟S260。不過,在此情況下,第二定址資訊會等於第一定址資訊。 It should be noted that, in other embodiments, when the font generation module 132 determines that the font information or the word information corresponding to the webpage URL does not change or the font information and the word information corresponding to the web address already exist, Steps S230 to S260 are executed. However, in this case, the second addressing information will be equal to the first addressing information.
綜上所述,在本發明中,於網頁顯示字型的瀏覽裝置120會先進行下載第一子集合字型檔案的程序並顯示第一解釋結果,之後字型伺服器130上的字型產生模組132才會判斷對應到該網頁網址的字碼資訊或字型資訊是否有變動,或判斷對應到該網頁網址的字碼資訊或字型資訊是否不存在。也就是說,字型產生模組132在未進行判斷前,於網頁顯示字型的瀏覽裝置120就會顯示第一解釋結果,相較於先進行判斷再顯示,本發明所揭露的方法可以減少於網頁顯示字型的瀏覽裝置120的使用者的等待時間。而且,就算第一子集合字型檔案不是所欲的子集合字型檔案,之後字型伺服器130也會依據於網頁顯示字型的瀏覽裝置120所上傳的字碼資訊與字型資訊產生正確的第二子集合字型檔。 In summary, in the present invention, the browsing device 120 displaying the font on the web page first downloads the program of the first sub-set font file and displays the first interpretation result, and then the font on the font server 130 is generated. The module 132 determines whether the word information or the font information corresponding to the webpage URL changes, or determines whether the word information or the font information corresponding to the webpage URL does not exist. In other words, the font generation module 132 displays the first interpretation result on the webpage display font display device 120 before the determination is made, and the method disclosed in the present invention can be reduced compared with the first judgment and then display. The waiting time of the user of the browsing device 120 displaying the font on the web page. Moreover, even if the first sub-set font file is not the desired sub-set font file, the font server 130 will generate the correct information according to the word information and the font information uploaded by the browsing device 120 of the web page display font. The second sub-set font file.
以下,將對第二子集合字型檔案的產生方式進行較詳細的介紹。請參照圖5,圖5所繪示為產生第二子集合字型檔案的流程圖。 In the following, a more detailed introduction will be made on the manner in which the second sub-set font file is generated. Please refer to FIG. 5. FIG. 5 is a flowchart of generating a second subset font file.
首先,實施步驟S310,字型產生模組132判斷及確認是否接收到來自於網頁顯示字型的瀏覽裝置120所傳送之字碼資訊與字型資訊。接著,實施步驟S320,字型產生模組132從原始字型資料庫134中尋找符合字型資訊所要求的字型,並且由至少一套字型資料所組成,其來源包括但不限於TTF(Truetype字型檔案格式)、TTC(Truetype字型檔案集格式)、OTF(opentype字型檔案格式)、XML(將字型檔案存成XML格式),其來源包含將字型轉換成等同效果之資料格式等。 First, in step S310, the font generation module 132 determines and confirms whether the word information and the font information transmitted by the browsing device 120 from the web page display font are received. Next, in step S320, the font generation module 132 searches for the fonts required by the font information from the original font database 134, and is composed of at least one set of font data, including but not limited to TTF ( Truetype font file format), TTC (Truetype font file format), OTF (opentype font file format), XML (store font file in XML format), the source of which contains the conversion of fonts into equivalent effects Format, etc.
再來,實施步驟S330,根據所接收到之字碼資訊(例如:“時尚專區”),字型產生模組132從原始字型資料庫134中取得對應到字碼資訊中之每一字碼的一字型圖像。舉例來說,當字型資訊為:[王漢宗字體](未顯示於圖中),其中“時”字之Unicode字碼為6642,則尋找[王漢宗字體]中之字碼索引值,得出字碼索引值為18432,又尋找[王漢宗字體],以字碼索引值18432尋找此字型圖像位置,取 得字型圖像之內容,其餘字“尚”、“專”、及“區”均可以同樣方式取得其字型圖像之內容,故不再贅述。 Then, in step S330, according to the received word information (for example, "fashion zone"), the font generation module 132 obtains a word corresponding to each word in the word information from the original font database 134. Type image. For example, when the font information is: [Wang Hanzong font] (not shown in the figure), where the Unicode word of the "hour" word is 6642, look for the word index value in [Wang Hanzong font] to get the word index value. For 18432, look for [Wang Hanzong font], find the font image position with the code index value 18432, take For the content of the font image, the rest of the words "Shang", "Special", and "Zone" can obtain the content of the font image in the same way, so it will not be described again.
然後,實施步驟S340,產生字碼資訊與字型圖像間之一索引表(未繪示)。之後,依據索引表便可以從原始字型資料庫134中產生第二子集合字型檔案。本發明說明如上,然其並非用以限定本創作所主張之專利權利範圍。其專利保護範圍當視後附之申請專利範圍及其等同領域而定。凡本領域具有通常知識者,在不脫離本專利精神或範圍內,所作之更動或潤飾,均屬於本創作所揭示精神下所完成之等效改變或設計,且應包含在下述之申請專利範圍內。 Then, step S340 is implemented to generate an index table (not shown) between the word information and the font image. Thereafter, a second subset of font files can be generated from the original font database 134 in accordance with the index table. The present invention has been described above, but it is not intended to limit the scope of patent rights claimed herein. The scope of patent protection is subject to the scope of the patent application and its equivalent fields. Any changes or modifications made by those skilled in the art without departing from the spirit or scope of this patent are subject to the equivalent changes or designs made in the spirit of the present disclosure and should be included in the scope of the patent application below. Inside.
S110~S170、S210~S260‧‧‧流程圖步驟 S110~S170, S210~S260‧‧‧ Flowchart steps
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105115119A TWI571751B (en) | 2016-05-17 | 2016-05-17 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
CN201610405117.7A CN107391519B (en) | 2016-05-17 | 2016-06-08 | Method for accelerating display of Asian language family fonts on webpage, font server and browser end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105115119A TWI571751B (en) | 2016-05-17 | 2016-05-17 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI571751B true TWI571751B (en) | 2017-02-21 |
TW201810077A TW201810077A (en) | 2018-03-16 |
Family
ID=58608480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105115119A TWI571751B (en) | 2016-05-17 | 2016-05-17 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107391519B (en) |
TW (1) | TWI571751B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664537A (en) * | 2017-03-30 | 2018-10-16 | 亚太戏网股份有限公司 | Method for displaying font when changing content of webpage |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI231457B (en) * | 2001-11-30 | 2005-04-21 | Dynacomware Taiwan Inc | System and method for converting an outline font into a glyph-based font |
TW200717257A (en) * | 2005-10-27 | 2007-05-01 | Dynacomware Taiwan Inc | A system and method for browsing web page documents containing asian characters with multiple font faces |
TW200907712A (en) * | 2007-08-01 | 2009-02-16 | Inventec Corp | A system and a method for recording a font's size of the web pages in which display in the client |
US20090112874A1 (en) * | 2007-10-26 | 2009-04-30 | Yahoo! Inc. | Text Enhancement Mechanism |
TWI427534B (en) * | 2010-10-20 | 2014-02-21 | Method for producing illustration of web page by illustration server |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1581155A (en) * | 2003-08-15 | 2005-02-16 | 英华达(上海)电子有限公司 | Method for setting special Chinese character written-form in mobile hand-set |
CN1677390A (en) * | 2005-02-02 | 2005-10-05 | 广州网上新生活软件技术服务有限公司 | Multiple typeface, size and model displaying system and method in embedded system |
JP2008165264A (en) * | 2006-12-26 | 2008-07-17 | Dynacomware Taiwan Inc | System and method for editing asia web page document using various font by through network |
US20110191671A1 (en) * | 2010-01-29 | 2011-08-04 | Extensis, Inc. | Website Font Previewing |
CN102467515A (en) * | 2010-10-28 | 2012-05-23 | 亚太戏网股份有限公司 | System for generating webpage totem through totem server |
-
2016
- 2016-05-17 TW TW105115119A patent/TWI571751B/en active
- 2016-06-08 CN CN201610405117.7A patent/CN107391519B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI231457B (en) * | 2001-11-30 | 2005-04-21 | Dynacomware Taiwan Inc | System and method for converting an outline font into a glyph-based font |
TW200717257A (en) * | 2005-10-27 | 2007-05-01 | Dynacomware Taiwan Inc | A system and method for browsing web page documents containing asian characters with multiple font faces |
TW200907712A (en) * | 2007-08-01 | 2009-02-16 | Inventec Corp | A system and a method for recording a font's size of the web pages in which display in the client |
US20090112874A1 (en) * | 2007-10-26 | 2009-04-30 | Yahoo! Inc. | Text Enhancement Mechanism |
TWI427534B (en) * | 2010-10-20 | 2014-02-21 | Method for producing illustration of web page by illustration server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108664537A (en) * | 2017-03-30 | 2018-10-16 | 亚太戏网股份有限公司 | Method for displaying font when changing content of webpage |
Also Published As
Publication number | Publication date |
---|---|
CN107391519B (en) | 2020-07-28 |
CN107391519A (en) | 2017-11-24 |
TW201810077A (en) | 2018-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10956531B2 (en) | Dynamic generation of mobile web experience | |
US20220171915A1 (en) | Automated augmentation of text, web and physical environments using multimedia content | |
EP3518124A1 (en) | Webpage rendering method and related device | |
JP6761112B2 (en) | Methods and systems for server-side rendering of native content for presentation | |
JP6051337B2 (en) | Client-side page processing | |
WO2021178731A1 (en) | Neurological movement detection to rapidly draw user attention to search results | |
JP4189875B2 (en) | How to reformat an area containing dense hyperlinks | |
TWI590157B (en) | Compressed serialization of data for communication from a client-side application | |
US20020133569A1 (en) | System and method for transcoding web content for display by alternative client devices | |
US20210149842A1 (en) | System and method for display of document comparisons on a remote device | |
US20180218076A1 (en) | Information obtaining method and apparatus | |
CN106339414A (en) | Webpage rendering method and device | |
US10558727B2 (en) | System and method for operating a browsing application | |
US20130080871A1 (en) | Method for retrieving a representation of an annotated web document, associated computer program and electronic device | |
WO2017096967A1 (en) | Method and device for self-adaptively displaying web page | |
US20070276921A1 (en) | Locating a portion of data on a computer network | |
EP3555765B1 (en) | Content search engine | |
TWI571751B (en) | Acceleration method for showing asian language fonts in pages, font server, and browsing end | |
US9648381B2 (en) | Method and system for managing display of web-based content on portable communication devices | |
TWI590081B (en) | Acceleration method for showing asian language fonts in pages, font server, and browsing end | |
US20170083481A1 (en) | Method and apparatus for rendering a screen-representation of an electronic document | |
JP7206863B2 (en) | Display control method, device, and program | |
JP4921570B2 (en) | Blog service providing system, method and program | |
US11880424B1 (en) | Image generation from HTML data using incremental caching | |
US20210357465A1 (en) | Method and System for High Speed Serving of Webpages |