TWI590081B - 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
- TWI590081B TWI590081B TW105125094A TW105125094A TWI590081B TW I590081 B TWI590081 B TW I590081B TW 105125094 A TW105125094 A TW 105125094A TW 105125094 A TW105125094 A TW 105125094A TW I590081 B TWI590081 B TW I590081B
- Authority
- TW
- Taiwan
- Prior art keywords
- font
- information
- webpage
- file
- display program
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
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)
- Information Transfer Between Computers (AREA)
- Document Processing Apparatus (AREA)
Description
本發明是關於一種加速網頁顯示字型顯示的方法,尤其是針對亞洲語系字型在網頁顯示上的加速呈現處理。The invention relates to a method for accelerating display of fonts on a webpage, in particular to an accelerated rendering process of an Asian-language font on a webpage display.
隨著資訊科技的不斷進展,人的生活可以說是已經離不開網際網路。相較於全球資訊網(World Wide Web)發展的早期,目前網頁上所呈現的內容可以說是愈來愈豐富。舉例來說,在早期瀏覽器端的網頁所呈現文字的字型絕大部分是由超文件標示語言(HyperText Markup Language,簡稱:HTML)來定義,然而隨著網頁內容愈來愈多元與豐富的趨勢下,已有業者開始提供根據網頁需求透過網際網路下載不同字型檔案的服務。這樣一來,即使瀏覽器端未安裝該字型的樣式,也可讓使用者在瀏覽網頁時享受到多樣化的字型。然而,亞洲文字字型的檔案通常很大,需花費較多的時間下載,從而增加使用者的等待時間。 台灣專利I427534 藉由圖騰伺服器產生網頁圖騰之方法中揭露之方法,是以圖騰顯示程式與圖騰伺服器通訊後,以該網頁之字碼及字型資訊來取得子集合字型,以縮小字型檔案達到加快下載呈現速度之目的。該方法雖較整個字型檔案下載快速,但在與圖騰伺服器通訊仍有等待時間,依照網路品質與頻寬不同約需等待數秒,等待時間中間會有數秒顯示為系統預設字型,等待子集合字型檔案完全下載完成後,方能正確顯示出設定的字型樣式。因此,如何讓瀏覽者省略中間的等待時間,能直接瀏覽到網頁設定的字型樣式,是值得本領域具有知識者去思考的。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 web pages in the early browsers are defined by the HyperText Markup Language (HTML), but as the content of the webpage becomes more diverse and richer, Under the existing business, users 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 style of the font is not installed on the browser side, 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. Taiwan Patent I427534 The method disclosed in the method for generating a web totem by a totem server is that 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. Therefore, how to let the viewer omit the waiting time in the middle, can directly browse to the font style set by the webpage, which is worthy of consideration by those who have knowledge in the field.
為了解決上述之問題,本發明的目的在於提供一種加速網頁顯示亞洲語系字型的方法,此種於網頁顯示字型的方法能讓使用者在無需太多等待時間的情況下享受多樣化的亞洲語系字型。 基於上述目的與其他目的,本發明提供一種加速網頁顯示亞洲語系字型的方法。首先,從對應到一網頁網址的一網頁源下載至少一網頁資訊到一瀏覽器端,網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊。接著,瀏覽器端根據連接資訊從一字型伺服器下載一字型顯示程式。然後,字型顯示程式至少根據網頁網址與字型資訊產生至少一第一定址資訊。再來,字型顯示程式根據第一定址資訊至字型伺服器下載至少一第一子集合字型檔案,其中第一子集合字型檔案是基於一常用字統計資訊而產生,該第一子集合字型檔案包含N個屬於相同字型的常用字。之後,瀏覽器端根據字碼資訊、字型資訊、與第一子集合字型檔案進行解譯並產生一第一解譯結果,並將第一解譯結果呈現於一網頁上。然後,字型顯示程式分析該字碼資訊與該字型資訊,以判定該第一子集合字型檔案是否包含對應至該網頁資訊中全部的字碼資訊,若不包含則進行下段所述的步驟。 首先,字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器,該字型伺服器包括一字型產生模組。之後,字型產生模組根據上述字碼資訊與字型資訊產生至少一對應的第二子集合字型檔案,且字型產生模組還至少依據上述網頁網址與字型資訊產生一第二定址資訊。再來,傳送第二定址資訊至瀏覽器端的字型顯示程式,瀏覽器端的字型顯示程式根據第二定址資訊下載第二子集合字型檔案。之後,瀏覽器端至少根據字碼資訊、字型資訊、與第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於網頁上。 在上述中,是先下載字型顯示程式,再藉由字型顯示程式來從字型伺服器下載第一子集合字型檔案。然而,若第一子集合字型檔案所位於的位址為固定的話,也可同時下載字型顯示程式與第一子集合字型檔案,這樣一來就可以省略『產生第一定址資訊』的程序。 在上述的加速網頁顯示亞洲語系字型的方法中,常用字統計資訊是依據至少一網站之文字使用頻率而產生,該網站為一入口網站、一社群網站、一搜尋網站、一新聞網站、一部落格網站或是至少二者之組合。其中,N為100~10000。 在上述的於網頁顯示字型的方法中,字型伺服器包括一原始字型資料庫,該字型產生模組產生該第二子集合字型檔案包括以下步驟。首先,從原始字型資料庫中尋找符合上述字型資訊要求之字型。之後,根據所接收到之字碼資訊,從原始字型資料庫中取得對應到該字碼資訊中之每一字碼的一字型圖像。再來,產生字碼資訊與字型圖像間之一索引表。之後,依據索引表從原始字型資料庫中產生第二子集合字型檔案。 基於上述目的與其他目的,本發明提供一種字型伺服器,此字型伺服器通訊連接至一瀏覽器端,該瀏覽器端包括至少一網頁資訊,該網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊,瀏覽器端根據連接資訊而連接至字型伺服器。字型伺服器包括一字型顯示程式與一字型產生模組,其中字型伺服器依據瀏覽器端的請求而傳送字型顯示程式至瀏覽器端,而字型產生模組產生至少一子集合字型檔案,且字型伺服器還包括對應至第一定址資訊的至少一第一子集合字型檔案。其中,第一子集合字型檔案是基於一常用字統計資訊而產生,第一子集合字型檔案包含N個屬於相同字型的常用字。其中,於瀏覽器端,根據字碼資訊、字型資訊、與第一子集合字型檔案進行解譯並產生一第一解譯結果,並將第一解譯結果呈現於一網頁上。瀏覽器端的字型顯示程式分析字碼資訊與字型資訊,以判定該第一子集合字型檔案是否包含對應至該網頁資訊中全部的字碼資訊,若不包含則進行下段所述的步驟。 首先,字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器。之後,字型產生模組根據上述字碼資訊與字型資訊產生至少一對應的第二子集合字型檔案,且字型產生模組還至少依據上述網頁網址與字型資訊產生一第二定址資訊。再來,傳送第二定址資訊至瀏覽器端的字型顯示程式,且瀏覽器端的字型顯示程式根據第二定址資訊下載第二子集合字型檔案。之後,瀏覽器端至少根據字碼資訊、字型資訊、與第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於網頁上。 基於上述目的與其他目的,本發明提供一種瀏覽器端,此瀏覽器端通訊連接至一字型伺服器與至少一網頁源。網頁源包括至少一網頁資訊,該網頁資訊包括一連接資訊、至少一字碼資訊、與至少一字型資訊,而字型伺服器包括一字型顯示程式與一字型產生模組。字型產生模組適於產生至少一子集合字型檔,瀏覽器端適於儲存由該網頁源所下載的網頁資訊以及由字型伺服器所下載的該字型顯示程式,該瀏覽器端依據網頁資訊與字型顯示程式執行下述步驟。首先,根據連接資訊從一字型伺服器下載一字型顯示程式。接著,字型顯示程式至少根據網頁網址與字型資訊產生至少一第一定址資訊。之後,字型顯示程式根據第一定址資訊至字型伺服器下載至少一第一子集合字型檔案,第一子集合字型檔案是基於一常用字統計資訊而產生,且第一子集合字型檔案包含N個屬於相同字型的常用字。再來,根據字碼資訊、字型資訊、與第一子集合字型檔案進行解譯並產生一第一解譯結果,並將第一解譯結果呈現於一網頁上。之後,字型顯示程式分析字碼資訊與字型資訊,以判定第一子集合字型檔案是否包含對應至網頁資訊中全部的字碼資訊與字型資訊的字型,若不包含則進行下段所述的步驟。 首先,字型顯示程式將網頁網址、字碼資訊、與字型資訊傳送至字型伺服器,其中字型伺服器的該字型產生模組根據該字碼資訊與該字型資訊產生至少一對應的第二子集合字型檔案,及至少依據該網頁網址與該字型資訊產生一定址資訊,並傳送定址資訊至瀏覽器端。之後,字型顯示程式根據第二定址資訊下載第二子集合字型檔案。然後,瀏覽器端至少根據字碼資訊、字型資訊、與第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於網頁上。 此外,上述瀏覽器端為裝設有瀏覽器軟體的一智慧型手機、一平板電腦、一桌上型電腦、或一筆記型電腦。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 browser end, the webpage information includes a connection information, at least one wordcode information, and at least one font type information. Then, the browser downloads a font display program from the font server according to the connection information. Then, the font display program generates at least one first addressing information based on at least the webpage URL and the font information. Then, the font display program downloads at least one first sub-set font file according to the first addressing information to the font server, wherein the first sub-set font file is generated based on a common word statistical information, the first The sub-set font file contains N common words belonging to the same font. Then, the browser side interprets according to the word information, the font information, and the first sub-set font file, and generates a first interpretation result, and presents the first interpretation result on a webpage. Then, the font display program analyzes the word information and the font information to determine whether the first sub-set font file contains all the word information corresponding to the web page information, and if not, performs the steps described in the following paragraph. First, 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 generates at least one corresponding second sub-set font file according to the word information and the font information, and the font generation module further generates a second address information according to at least the webpage URL and the font information. . Then, the second address information is transmitted to the font display program on the browser side, and the font display program on the browser side downloads the second sub-set font file according to the second address information. Thereafter, the browser side interprets according to at least the code information, the font information, and the second sub-set font file, and generates a second interpretation result, and presents the second interpretation result on the webpage. In the above, the font display program is downloaded first, and then the first sub-set font file is downloaded from the font server by the font display program. However, if the address of the first sub-set font file is fixed, the font display program and the first sub-set font file can also be downloaded at the same time, so that the "first address information can be generated" can be omitted. program of. In the above method for accelerating the display of Asian fonts on the webpage, the commonly used word statistics information is generated according to the frequency of use of at least one website, which is an entrance website, a social website, a search website, a news website, A blog site or a combination of at least two. Among them, N is 100~10000. In the above method for displaying a font on a webpage, the font server includes an original font database, and the font generation module generates the second subset font file including the following steps. First, find the fonts that meet the above-mentioned font information requirements 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. Then, the second sub-set font file is generated from the original font database according to the index table. Based on the above and other objects, the present invention provides a font server, wherein the font server is communicatively coupled to a browser, the browser includes at least one webpage information, and the webpage information includes a connection information and at least one word code. Information, and at least one type of information, the browser 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 browser according to the request of the browser, and the font generation module generates at least one subset. The font file, and the font server further includes at least one first subset font file corresponding to the first address information. The first sub-set font file is generated based on a common word statistical file, and the first sub-set font file includes N common words belonging to the same font. In the browser side, according to the word information, the font information, and the first sub-set font file are interpreted and a first interpretation result is generated, and the first interpretation result is presented on a webpage. The font display program on the browser side analyzes the word information and the font information to determine whether the first sub-set font file contains all the word information corresponding to the web page information. If not, the steps described in the next paragraph are performed. First, the font display program transmits the web page URL, word code information, and font information to the font server. Then, the font generation module generates at least one corresponding second sub-set font file according to the word information and the font information, and the font generation module further generates a second address information according to at least the webpage URL and the font information. . Then, the second address information is transmitted to the font display program on the browser side, and the font display program on the browser side downloads the second sub-set font file according to the second address information. Thereafter, the browser side interprets according to at least the code information, the font information, and the second sub-set font file, and generates a second interpretation result, and presents the second interpretation result on the webpage. Based on the above and other objects, the present invention provides a browser end communicatively coupled to a font server and at least one web page 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 browser end is adapted to store webpage information downloaded by the webpage source and the font display program downloaded by the font server, the browser end Perform the following steps based on the web page information and 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 downloads at least one first sub-set font file according to the first address information to the font server, and the first sub-set font file is generated based on a common word statistical information, and the first subset is generated. The font file contains N common words belonging to the same font. Then, according to the word information, the font information, and the first sub-set font file are interpreted and a first interpretation result is generated, and the first interpretation result is presented on a webpage. After that, the font display program analyzes the word information and the font information to determine whether the first sub-set font file contains all the font information and font information corresponding to the webpage information, if not, the following paragraph A step of. First, 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 generates at least one corresponding to the font information according to the font information. The second sub-set font file, and at least generating the address information according to the webpage URL and the font information, and transmitting the address information to the browser end. After that, the font display program downloads the second sub-set font file according to the second address information. Then, the browser side interprets at least according to the code information, the font information, and the second sub-set font file, and generates a second interpretation result, and presents the second interpretation result on the webpage. In addition, the browser side is a smart phone, a tablet computer, a desktop computer, or a notebook computer equipped with a browser software.
請參照圖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將在後文有詳細的介紹。 請同時參照圖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字型。 之後,實施步驟S130,如圖4B所示,瀏覽器端120根據連結資訊連接到字型伺服器130後,便會從字型伺服器130下載字型顯示程式,此字型顯示程式的部分原始碼如圖6A的方框601中所圈選的區域所示。位於瀏覽器端120的字型顯示程式會根據網頁網址(即圖3所示的網頁網址:http://www.abc.com.tw/)與字型資訊(例如有使用到pop1與pop2兩套字型),而產生一第一定址資訊,此第一定址資訊如圖6B中方框611所示。 再來,實施步驟S140,如圖4C所示,瀏覽器端120根據第一定址資訊從字型伺服器130下載至少一第一子集合字型檔案。第一子集合字型檔案是基於一常用字統計資訊而產生,第一子集合字型檔案包含N個屬於相同字型的常用字,也就是說第一子集合字型檔案可以被視為或稱為常用字子集合檔。在較佳實施例中,N是100~10000。更詳細的說,若網頁網址:http://www.abc.com.tw/用到pop1與pop2兩套字型,則會從字型伺服器130下載二個分別對應到pop1與pop2字型的第一子集合字型檔案,且其中一第一子集合字型檔案例如包括1000個屬於pop1字型的常用字,而另外一第一子集合字型檔案例如包括1500個屬於pop2字型的常用字。 需注意的是,上述之第一子集合字型檔案例如是儲存在原始字型資料庫134,且也可以是由原始字型資料庫134所產生,每一第一子集合字型檔案都可對應到其中一種字型。上述之常用字統計資訊例如是依據至少一網站之文字使用頻率而產生,該網站可為一入口網站、一社群網站、一搜尋網站、一新聞網站、一部落格網站或是至少二者之組合。或者,常用字統計資訊也可以是由公正的第三方的統計資料調查而來,此第三方例如為教育部,本文在此並不做任何限制。 此外,在上述中,是先下載字型顯示程式,再藉由字型顯示程式來從字型伺服器130下載第一子集合字型檔案。然而,若第一子集合字型檔案所位於的位址為固定的話,也可在步驟S130中就同時下載字型顯示程式與第一子集合字型檔案,這樣一來就可以省略『產生第一定址資訊』的程序。 然後,實施步驟S150,瀏覽器端120的主機123會對第一子集合字型檔案進行解譯,以產生一第一解釋結果,此第一解釋結果會呈現於瀏覽器端120的網頁上。詳細地說,瀏覽器端120會根據第一子集合字型檔案,而使網頁上的字碼(部分或全部)的字型會呈現對應到第一子集合字型檔案的字型。 再來,實施步驟S160與步驟S170,瀏覽器端120的字型顯示程式分析網頁中的字碼資訊與字型資訊,以判定第一子集合字型檔案是否包含對應至網頁資訊中全部的字碼資訊;若包含,則實施步驟S180,瀏覽器端120持續顯示上述之第一解譯結果;若不包含,則進行下述的步驟。 如步驟S190與圖4D所示,瀏覽器端120的字型顯示程式會將網頁網址與對應到該網頁網址的字碼資訊及字型資訊傳送到字型伺服器130。之後,實施步驟S210,於字型伺服器130中,字型產生模組132會產生一第二子集合字型及一第二定址資訊。詳細地說,字型產生模組132根據瀏覽器端120所上傳的字碼資訊與字型資訊產生至少一對應的第二子集合字型檔,且也會依照網頁網址與字型資訊產生一第二定址資訊,此第二定址資訊如圖6B中方框612所示。 之後,實施步驟S220,請同時參照圖4E,字型伺服器130將第二定址資訊傳送到瀏覽器端120的字型顯示程式。然後,實施步驟S230,請同時參照圖4F,瀏覽器端120的字型顯示程式會根據第二定址資訊向字型伺服器130下載第二子集合字型檔案。再來,實施步驟S240,瀏覽器端120的主機123對第二子集合字型檔案進行解譯並產生一第二解譯結果,並將第二解譯結果呈現於網頁30上。也就是說,原本呈現在網頁30上的第一解釋結果會被第二解釋結果所覆蓋。值得注意的是,在較佳實施例中,因網頁會同時有多瀏覽者瀏覽,當有一位瀏覽者讀取過該網頁30並於字型伺服器130上產生第二子集合字型檔案後,其他瀏覽者即可在瀏覽時直接下載第二子集合字型檔案做顯示,無需再等待字型伺服器130通訊處理後方能顯示,故可以縮短處理和傳送所需的時間,從而讓瀏覽器端120的瀏覽者在無需太多等待時間的情況下享受多樣化的字型。 綜上所述,在本發明中,瀏覽器端120會先進行下載第一子集合字型檔案的程序並顯示第一解釋結果,之後瀏覽器端120的字型顯示程式分析網頁中的字碼資訊與字型資訊,以判定該第一子集合字型檔案是否包含對應至網頁資訊中全部的字碼資訊。也就是說,字型顯示程式在未進行分析前,瀏覽器端120就會顯示第一解釋結果,相較於先進行分析再顯示,本發明所揭露的方法可以減少瀏覽器端120的使用者的等待時間。而且,就算第一子集合字型檔案不是所欲的子集合字型檔案,之後字型伺服器130也會依據瀏覽器端120所上傳的字碼資訊與字型資訊產生正確的第二子集合字型檔。 以下,將對第二子集合字型檔案的產生方式進行較詳細的介紹。請參照圖5,圖5所繪示為產生第二子集合字型檔案的流程圖。 首先,實施步驟S310,字型產生模組132判斷及確認是否接收到來自瀏覽器端120所傳送之字碼資訊與字型資訊。接著,實施步驟S320,字型產生模組132從原始字型資料庫134中尋找符合字型資訊所要求的字型,並且由至少一套字型資料所組成,其來源包括但不限於TTF(Truetype字型檔案格式)、TTC(Truetype字型檔案集格式)、OTF(opentype字型檔案格式)、XML(將字型檔案存成XML格式),其來源包含將字型轉換成等同效果之資料格式等。 再來,實施步驟S330,根據所接收到之字碼資訊(例如:“時尚專區”),字型產生模組132從原始字型資料庫134中取得對應到字碼資訊中之每一字碼的一字型圖像。舉例來說,當字型資訊為:[王漢宗字體](未顯示於圖中),其中“時”字之Unicode字碼為6642,則尋找[王漢宗字體]中之字碼索引值,得出字碼索引值為18432,又尋找[王漢宗字體],以字碼索引值18432尋找此字型圖像位置,取得字型圖像之內容,其餘字“尚”、“專”、及“區”均可以同樣方式取得其字型圖像之內容,故不再贅述。 然後,實施步驟S340,產生字碼資訊與字型圖像間之一索引表(未繪示)。之後,依據索引表便可以從原始字型資料庫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 browser end 120, and a font server 130. The webpage source 110, the browser end 120, and the font server 130 are connected by the internet. The networks 20 are in communication with each other. 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 browser terminal 120 is a desktop computer in this embodiment. The desktop computer includes a host 123 and a screen 124. In other embodiments, the browser end 120 can also 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. 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 browser end 120. 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 browser end 120 includes a connection information, at least one word information, and at least one font type information, wherein the connection information refers to connecting to the font server. 130 URL. 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. Then, step S130 is implemented. As shown in FIG. 4B, after the browser end 120 is connected to the font server 130 according to the link information, the font display program is downloaded from the font server 130, and the font display part of the original program. The code is shown in the area circled in block 601 of Figure 6A. The font display program located at the browser end 120 will be based on the webpage URL (ie, the webpage URL shown in Figure 3: http://www.abc.com.tw/) and the font information (for example, there are two to pop1 and pop2). A set of fonts is generated to generate a first address information, as shown in block 611 of FIG. 6B. Then, in step S140, as shown in FIG. 4C, the browser end 120 downloads at least one first subset font file from the font server 130 according to the first addressing information. The first sub-set font file is generated based on a common word statistical file, and the first sub-set font file contains N common words belonging to the same font, that is, the first sub-set font file can be regarded as or It is called a common word sub-collection file. In the preferred embodiment, N is from 100 to 10,000. In more detail, if the webpage URL: http://www.abc.com.tw/ uses pop1 and pop2 two sets of fonts, it will download two fonts corresponding to pop1 and pop2 respectively from the font server 130. The first sub-set font file, and one of the first sub-set font files includes, for example, 1000 common words belonging to the pop1 font, and the other first sub-set font file includes, for example, 1500 characters belonging to the pop2 font. Common words. It should be noted that the first sub-set font file is stored in the original font database 134, and may also be generated by the original font database 134. Each of the first sub-set font files may be Corresponds to one of the font types. The above-mentioned common word statistics information is generated, for example, according to the frequency of use of at least one website, and the website may be an entrance website, a social website, a search website, a news website, a blog website, or at least two of them. combination. Alternatively, commonly used word statistics may also be investigated by an impartial third party's statistical data, such as the Ministry of Education, and this article does not impose any restrictions. In addition, in the above, the font display program is downloaded first, and the first sub-set font file is downloaded from the font server 130 by the font display program. However, if the address of the first sub-set font file is fixed, the font display program and the first sub-set font file may be simultaneously downloaded in step S130, so that the generation may be omitted. The procedure of the site information. Then, in step S150, the host 123 of the browser end 120 interprets the first subset font file to generate a first interpretation result, and the first interpretation result is presented on the webpage of the browser terminal 120. In detail, the browser 120 may cause the font (partial or full) of the font on the webpage to present a font corresponding to the first subset font file according to the first subset font file. Then, in step S160 and step S170, the font display program of the browser end 120 analyzes the word information and the font information in the webpage to determine whether the first sub-set font file contains all the word information corresponding to the webpage information. If yes, proceed to step S180, the browser end 120 continues to display the first interpretation result described above; if not, the following steps are performed. As shown in step S190 and FIG. 4D, the font display program of the browser end 120 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, 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 browser terminal 120, and generates a first according to the webpage URL and the font information. The second addressing information is as shown in block 612 of Figure 6B. Thereafter, step S220 is implemented. Referring to FIG. 4E at the same time, the font server 130 transmits the second address information to the font display program of the browser terminal 120. Then, step S230 is implemented. Referring to FIG. 4F at the same time, the font display program of the browser end 120 downloads the second subset font file to the font server 130 according to the second addressing information. Then, in step S240, the host 123 of the browser end 120 interprets the second subset font file and generates a second interpretation result, and presents the second interpretation result on the web page 30. 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, thereby shortening the processing and transfer time, thereby allowing the browser to The viewer of the end 120 enjoys a variety of fonts without much waiting time. In summary, in the present invention, the browser end 120 first downloads the program of the first sub-set font file and displays the first interpretation result, and then the font display program of the browser terminal 120 analyzes the word information in the webpage. And the font information to determine whether the first sub-set font file contains all the word information corresponding to the webpage information. That is to say, before the analysis of the font display program, the browser terminal 120 displays the first interpretation result, and the method disclosed in the present invention can reduce the user of the browser terminal 120 compared to the analysis and display. Waiting time. Moreover, even if the first sub-set font file is not the desired sub-set font file, the font server 130 generates the correct second subset word according to the word information and the font information uploaded by the browser 120. Profile. 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. First, in step S310, the font generation module 132 determines and confirms whether the word information and the font information transmitted from the browser terminal 120 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. 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 position of the font image with the code index value 18432, and obtain the content of the font image. The other words "Shang", "Special", and "Zone" can be obtained in the same way. The content of the font image is not described here. 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.
20‧‧‧網際網路
30‧‧‧網頁
32‧‧‧下拉式選單區
100‧‧‧系統
110‧‧‧網頁源
112‧‧‧伺服主機
120‧‧‧瀏覽器端
123‧‧‧主機
124‧‧‧螢幕
130‧‧‧字型伺服器
132‧‧‧字型產生模組
134‧‧‧原始字型資料庫
S110~S190、S210~S240、S310~S350‧‧‧流程圖步驟20‧‧‧Internet
30‧‧‧Webpage
32‧‧‧Drawdown menu area
100‧‧‧ system
110‧‧‧Web Source
112‧‧‧Servo host
120‧‧‧ browser side
123‧‧‧Host
124‧‧‧ screen
130‧‧‧ font server
132‧‧‧ font generation module
134‧‧‧ original font database
S110~S190, S210~S240, S310~S350‧‧‧ flowchart steps
圖1所繪示為本發明之系統的實施例的示意圖。 圖2A與圖2B所繪示為本發明之於網頁顯示字型的方法的流程圖。 圖3所繪示為本發明之網頁的實施例。 圖4A~圖4F所繪示為網頁源、瀏覽器端、與字型伺服器間的資訊遞送關係的示意圖。 圖5所繪示為產生第二子集合字型檔案的流程圖。 圖6A所繪示為字型顯示程式的部分原始碼。 圖6B所繪示為第一定址資訊與第二定址資訊。1 is a schematic diagram of an embodiment of a system of the present invention. FIG. 2A and FIG. 2B are flowcharts showing a method for displaying a font on a webpage according to the present invention. FIG. 3 illustrates an embodiment of a web page of the present invention. 4A-4F are schematic diagrams showing information delivery relationships between a webpage source, a browser, and a font server. FIG. 5 is a flow chart showing the generation of a second subset font file. FIG. 6A illustrates a partial source code of a font display program. FIG. 6B illustrates the first addressing information and the second addressing information.
20‧‧‧網際網路 20‧‧‧Internet
100‧‧‧系統 100‧‧‧ system
110‧‧‧網頁源 110‧‧‧Web Source
112‧‧‧伺服主機 112‧‧‧Servo host
120‧‧‧瀏覽器端 120‧‧‧ browser side
123‧‧‧主機 123‧‧‧Host
124‧‧‧螢幕 124‧‧‧ screen
130‧‧‧字型伺服器 130‧‧‧ font server
132‧‧‧字型產生模組 132‧‧‧ font generation module
134‧‧‧原始字型資料庫 134‧‧‧ original font database
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105125094A TWI590081B (en) | 2016-08-08 | 2016-08-08 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
| CN201610823197.8A CN107704476B (en) | 2016-08-08 | 2016-09-14 | 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 |
|---|---|---|---|
| TW105125094A TWI590081B (en) | 2016-08-08 | 2016-08-08 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| TWI590081B true TWI590081B (en) | 2017-07-01 |
| TW201805838A TW201805838A (en) | 2018-02-16 |
Family
ID=60048541
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW105125094A TWI590081B (en) | 2016-08-08 | 2016-08-08 | Acceleration method for showing asian language fonts in pages, font server, and browsing end |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107704476B (en) |
| TW (1) | TWI590081B (en) |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20030039342A (en) * | 2003-03-18 | 2003-05-17 | 이재필 | Multi national language same time indicator |
| US8768911B2 (en) * | 2005-06-15 | 2014-07-01 | Geronimo Development | System and method for indexing and displaying document text that has been subsequently quoted |
| TWI285323B (en) * | 2005-10-27 | 2007-08-11 | Dynacomware Taiwan Inc | A system and method for browsing web page documents containing Asian characters with multiple font faces |
| CN102831117B (en) * | 2011-06-15 | 2016-07-06 | 阿里巴巴集团控股有限公司 | Select font, the determination of font, recommendation, generation method and equipment thereof |
| CN103176955A (en) * | 2013-01-03 | 2013-06-26 | 陈灿华 | System and method for displaying Chinese character webpage scripts |
| TWI493365B (en) * | 2013-08-16 | 2015-07-21 | Arphic Technology Co Ltd | Input and instant displaying method with multiple character-set character codes, system and apparatus |
| CN103761110B (en) * | 2014-02-18 | 2017-12-26 | 优视科技有限公司 | browser font display processing method and device |
| CN104899319B (en) * | 2015-06-18 | 2018-07-24 | 深圳市茁壮网络股份有限公司 | A kind of Web page icon loading method and device |
| CN105549817B (en) * | 2015-12-09 | 2017-09-29 | 广州阿里巴巴文学信息技术有限公司 | The generation method of font packet, the methods of exhibiting of device and figure, device |
-
2016
- 2016-08-08 TW TW105125094A patent/TWI590081B/en active
- 2016-09-14 CN CN201610823197.8A patent/CN107704476B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN107704476A (en) | 2018-02-16 |
| TW201805838A (en) | 2018-02-16 |
| CN107704476B (en) | 2021-01-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20220171915A1 (en) | Automated augmentation of text, web and physical environments using multimedia content | |
| US20190251143A1 (en) | Web page rendering method and related device | |
| 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 | |
| US20170371974A1 (en) | Method for loading webpage, client and programmable device | |
| CN102420813B (en) | Method and device for providing target information according to terminal attributes of user equipment | |
| WO2014206072A1 (en) | Web page previewing method and system | |
| US20140289612A1 (en) | Merging web page style addresses | |
| CN102708174A (en) | Method and device for displaying rich media information in browser | |
| CN109428877B (en) | Method and device for accessing service system through user equipment | |
| CN101751444A (en) | Webpage content customizing system and method | |
| CN103279517A (en) | A method for displaying webpage content | |
| US20150220235A1 (en) | Tracking user interaction with a stream of content | |
| CN102023998B (en) | Method and device for processing webpage so as to display on handheld equipment | |
| CN114297544A (en) | A remote browsing method, device, device and storage medium | |
| US11488213B2 (en) | Tracking user interaction with a stream of content | |
| CN113239256B (en) | Method for generating website signature, method and device for identifying website | |
| WO2007139913A2 (en) | Locating a portion of data on a computer network | |
| TW200939730A (en) | Method of browsing network information by hand-held communication device | |
| CN113448649B (en) | A server and method for loading home page data based on Redis | |
| CN111783006B (en) | Page generation method and device, electronic equipment and computer readable medium | |
| TWI571751B (en) | Acceleration method for showing asian language fonts in pages, font server, and browsing end | |
| TWI590081B (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 | |
| CN102279860B (en) | Mobile phone network information navigation system and realizing method thereof |