TW201207638A - Device and method for processing customized Web pages - Google Patents

Device and method for processing customized Web pages Download PDF

Info

Publication number
TW201207638A
TW201207638A TW99125661A TW99125661A TW201207638A TW 201207638 A TW201207638 A TW 201207638A TW 99125661 A TW99125661 A TW 99125661A TW 99125661 A TW99125661 A TW 99125661A TW 201207638 A TW201207638 A TW 201207638A
Authority
TW
Taiwan
Prior art keywords
file
language
folder
customized
webpage
Prior art date
Application number
TW99125661A
Other languages
Chinese (zh)
Other versions
TWI407321B (en
Inventor
Cheng-Yen Tsai
Chih-Yuan Huang
Original Assignee
Hon Hai Prec Ind Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW99125661A priority Critical patent/TWI407321B/en
Publication of TW201207638A publication Critical patent/TW201207638A/en
Application granted granted Critical
Publication of TWI407321B publication Critical patent/TWI407321B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention proves a device and method for processing customized Web pages. The device includes a webpage processing unit and a storage unit. The webpage processing unit includes a file folder creating module, a language analysis module, a data translation module, a web page generation module. The method creates root directory including a based file folder and different language file folders, and creates a symbolic link between the based file folder and each of the language file folders. When a user inputs a web address from a browser, the device analyzes a required language from the web address, obtains data from the based file folder and a customized file from the language file folder corresponding to the required language. The device further translates the data and the customized file to generate a HTML file, and displays a customized web page based on the HTML file on the browser.

Description

201207638 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種網站網頁處理系統及方法,尤其係關於 一種支援多種語系之客製化網頁處理裝置及方法。 【先前技#f】 [0002] 如今,網際網路已成為傳遞資訊之最重要工具之一種。 隨著網際網路之發展,使用者可以藉由瀏覽器於網際網 路上獲得自己想要知道之各種資訊及各式各樣之檔案資 料。於習知技術而言,為了使不同語系之訪客能夠瀏覽 到不同語系之網頁,就必須製作不同語系之網頁放置於 網站伺服器中,以提供訪客瀏覽不同種語系網站之需求 〇 [0003] 於製作不同語系網站時,通常需要製作複數不同語系網 頁放於不同之網路伺服器中。舉個例子來說,於製作相 同内容之簡體中文網站與繁體中文網站時,會先製作一 套簡體中文版網頁,再利用文書處理程式將網頁由簡體 中文轉化為繁體中文運用於網站上。然而,如果網頁數 量過於龐大,常常需要增加製作及維護網站之人力成本 ,並且會佔用大量之伺服器儲存空間,進而造成伺服器 之儲存空間及人力成本之浪費。當訪客使用瀏覽器瀏覽 不同語系之網頁時,瀏覽器必須於不同語系之間進行轉 化後,再動態地載入所需語系之網頁資料至瀏覽器上, 其所需之延遲時間比較長,進而增加瀏覽網頁之時間。 此外,習知網頁技術不能根據不同語系之需求而於瀏覽 器中呈現適合不同語系風格之網頁呈現效果。 099125661 表單編號A0101 第4頁/共18頁 0992045021-0 201207638 [0004] [0005] Ο Ο [0006] 【發明内容】 蓉於以上内容,有必要提供—種客製化網頁處理裝置及 方法,能夠產生不同語系風格之客製化網頁,並且節省 儲存通用網頁資料之儲存空間及載人網頁之時間。 所述之客數化網頁處理裝置,包括網頁處理單元及儲存 單元。該網頁處理單元包括··檔案夾建立模組,用於: 儲存單it巾紅-錬職夾,該根職夾包括—個基 檔案夹及複數語«案夾,該檔案夾建立模組還用於將 基槽案爽與每-個語系㈣炎之間建立虛擬鏈結;語系 解析模組,用於接收於用戶終端發送之訪問網址,=該 訪問網址中解析出用戶所需訪問網頁對應之語系,及根 據所需語系於根檔案夾下查找對應之語系檔案 八,貫料 翻譯模組,用於藉由所述虛擬鏈結於基檔案失中讀取通 用網頁檔案,將通用網頁檔案中之資料轉化成用戶所+ 語系之翻譯資料,於所述語系檔案夾中查找客製化檔= ,及將翻譯資料及客製化檔案儲存於腳本槽 “ T,網頁 生成模組,用於根據腳本檀棄產「生一個!可於用戶線 劇覽器上顯示成網頁之HTML檔案:及根據 瀏覽器上顯示相應語系之客製化網頁。 >'、 所述之客製化網頁處理方法,包括如下步驟:於儲存單 元中建立一個根檔案夹,該根檔案夾包括一個基檔=早 及複數語系槽案A ;將基㈣失與每_個語系檔案爽^ 間建立虛擬鏈結;接收於用戶終端發送之訪問網址 該訪問網址中解析出用戶所需訪問網頁對應之語系於 據該語系於根權案夾下查找對應之語系檔案夹;|^根 符田虛 099125661 表單編號A0101 第5頁/共18頁 0992045021-0 201207638 擬鍵結於基檔錢中讀取通用網頁«,並將通用網頁 棺案中之資料轉化❹戶所需語系之翻譯資料;於所述 語系檔案夹中查找客製化檔案,並將翻譯資料及客製化 檔案儲存於腳本檔案中;根據腳本播案產生—個可於用 戶終端之瀏覽器上顯示成網頁之HTML檔案;及根據該 HTML檔案於所述瀏覽器上顯示相應語系之客製化網頁。 [0007] [0008] 相較於習知技術’本發日摘述之客製化網頁處理裝置及 方法,藉由虛擬鏈結使不同語系網頁共用通用網頁資料 ^產生不同語系風格之客製化網頁,節省健存通用網頁 ―貝料之儲存空間及載入網頁之時間。 【實施方式】 如圖1所不’係為發明客製化網頁處理裝置1較佳實施例 之實施架構圖。於本實施财,所述之客製化網頁處理 裝置1與用戶終端2藉由網路3相連接。該客製化網頁處理 裝置1可以為—種間道(Gateway),或者綱l數據機( WSL/Cable Modem)。該客製化網頁處理裝置丨接收用 戶、、冬端2發达之網頁訪問網址,於該網頁訪問網址中解析 出用戶所需訪_頁對應之語系,產生於該語系之客製 化網頁,並將客製化網頁發送給用戶終端2。所述之語系 為國際通用語系,包括但不限於,簡體中文、繁體中文 、英語、日語、法語、俄語等。所述之客製化網頁是指 適合不同語线格之網頁,例如,㈣料之網頁具有 不同網頁畫面之呈現效果。所述用戶終端2可以為一種電 腦、手機、或者為PD綠置(PersQnal S1Stant,個人數位助理裝置)。用戶終端2包括劉覽器 099125661 表單編號· Α0ΗΗ 第6頁/共18頁 0992045021-0 201207638 [0009] Ο [0010] 〇 099125661 20,用於供用戶訪問所需網站時輸入網址及載入並顯示 所述之客製化網頁處理裝置1產生之客製化網頁。網路3 可以是區域網路(Intranet),也可以是廣域網路( Internet)或其他類型之通訊網絡。 於本實施例中,所述之客製化網頁處理裝置丨包括網頁處 理單元10、儲存單元11及微處理器12。該網頁處理單元 10包括檔案夾建立模組1〇1、語系解析模組丨〇2、資料翻 譯模組103、及網頁生成模組1〇4。本發明所稱模組係為 一種能夠完成特定功能且能夠被微處理器1 2執行之程式 段,其比程式更適合於描述軟體於所述之客製化網頁處理裝置1中之執行過程,因此本發明對軟體之描述均以模 組描述。檔案夾建立模組101用於從儲存單元丨丨中建立一個根檔案 夾(Root folder),該根檔案夾包括一個基檔案夾( Base folder)及複數語系檔案夾(Language f〇ld )。该基槽案夾包括複數用於.組成網冥.内容之通用網頁 . ;:' 檔案(Common files),該通用網頁檔案包括但不限於HTML檔案、CSS (Cascading style sheet)檔案、影 像檔案(Image files)及腳本檔案(JavaScript f i 1 e )。HTML槽案用於記錄每一個網頁内容,CSS樓案 用於控制網頁畫面之呈現效果,影像檔案用於記錄網頁 之影像資料,JavaScript檔案用於將網頁内容轉換為不 同語系之網頁。 所述之檔案夾建立模組101還用於將基檔案夾與每一個語 系構案夾之間建立一個虛擬鏈結(Symb〇lic link)。 表單編號A0101 第7頁/共18頁 0992045021-0 [0011] 201207638 參考圖2所示,每一個語系檔案夹對應一種語系,例如, 繁體中文檔案夹(Tw—folder),曰語檔案夾( JP—folder),及英語檔案夾(En_f〇lder)等。每— 個語系檔案夾包括客製化檔案(Cust〇IDized fUes) ,該客製化檔案用於記錄適合不同語系風格之網頁晝面 的呈現效果。檔案夾建立模組1〇1藉由基檔案夾中之通用 網頁檔案與每一個語系檔案夾之間建立的虛擬鏈結,使 得每一個語系檔案夾可以共用通用網頁檔案下面之通用 網頁檔案,避免於儲存單元n令重複儲存基檔案夾下之 通用網頁檔案,從而節省了儲存單之儲存空間。當 用戶端需要訪問某一語系(例如英語)之鱗站時該語 系檔案夾(例如En—f〇lde案良)可以藉由虛擬鏈結 共用到基檔案夾中之通用網,案,並將通用網頁槽案 中資料内容翻譯成對應語系之網頁内容。 [0012] [0013] 所述之語系解析模組1 〇 2用於接收於用戶終端2之瀏覽器 2 0發送之訪問網址,於該訪問網址中解析出用戶所需訪 問網頁對應之語系,及根據該語系於根檔案夾下查找對 應之語系檔案夾。#用戶於㈣㈣輸人網站網址匕卜 tp· //WWW· google. c〇m切時,語系解析模組1〇2於網 站網址中解析出用戶所需之語系為漢語(例如,繁體中 文),亚找到相應之繁體中文檔案夾(Tw—。 所述之資料翻譯模組1()3用於藉由虛擬鍵結於基播案央中 靖取通用網頁貧料槽,並將通用網頁檀案中之資料轉化 成用戶所需語系之翻譯資料’及將翻譯資料儲存於腳本 (JaVaSCript)檔案中。資料翻譯模組103還用於判斷 099125661 表單編號A0101 第8頁/共18頁 0992045021 201207638 查找到之語系檔案夾中是否有客製化檔案。當語系檔案 夾中有客製化檔案時,資料翻譯模組〗〇3於該語系檔案夾 中讀取客製化檔案,並將客製化檔案增加到JavaScriM 檔案中。 [0014] 0 [0015] [0016] ❹ 所述之、'用頁生成模組1〇4用於根據javaScript檀案產生 一個可於瀏覽器20上顯示成網頁之HTML檔案,及將該 HTML檔案發送至用戶終端2並根據該旧肌檔案於瀏覽器 2 0上顯示相應語系之客製化網頁。 如圖3所示,係為發明客製化網頁處理方法較佳實施例之 流程圖。於本實施例中,該方法能夠於用戶終端2發送之 網頁訪問請求中解析出用戶訪問網頁所需之不同語系, 根據不同語系風格產生於不同語系下之客製化網頁,並 將該客製化網頁發送給用戶終端2 ^ 步驟S30,檔案夹建立模組101於儲存單元u中建立一個 根檔案夾(Root folder),該根檔案赛包括一個基檔 案夾(Base folder)及複數語系檔案夾(LangUage folder)。該基檔案夾包括複數用於組成網頁内容之通 用網頁檔案(Common files) ’該通用網頁檔案包括但 不限於HTML檔案、CSS (Cascading style sheet)檔 案、影像檔案(Image files)及腳本檔案(javaS_ cript fiie)。HTML檔案用於記錄每一個網頁内容, CSS檔案用於控制網頁畫面之呈現效果,影像檔案用於記 錄網頁之影像資料,JavaScript檔案用於將網頁内容轉 換為不同語系之網頁。 099125661 表單編號A0101 第9頁/共18頁 0992045021-0 201207638 陳]步驟S31,槽案夹建立模組1〇1將基標案央與每一個語系 檔案夾之間建立一個虛擬鏈結(symb〇lic link)。參 考圖2所不,每一個語系檔案夾對應一種語系,例如,繁 體中文檔案夾(Tw_f〇ider),日語檔案夾( JP_folder),及英語檔案夹(En_f〇lder)等。每一 個語系檔案夾包括客製化檔案(Cust〇mized files) ,该客製化檔案用於記錄適合不同語系風格之網頁畫面 呈現效果。檔案夾建立模組1〇1藉由基檔案夾中與每一個 浯系檔案夾之間之虛擬鏈結,使得每一個語系檔案夾可 以共用通用網頁檔案下面之通用網頁檔案,避免於儲存 單兀11中重複儲存基檔案爽下之邇用網頁檔案,從而節 省儲存單元11之儲存空間。奮用戶端需要訪問某一語系 (例如英語)之網站時,該語系檔(例如办―f〇lder檔 案夾)可以藉由虛擬鏈結共用到基檔案夾中之通用網頁 檔案,並將通用網頁檔案中之資料内容翻譯成相應語系 的網頁内容。 [0018] 步驟S32,語系解析模組102接收於瀏覽器2〇發送之訪問 網址,於該訪問網址中解析出用戶所需訪問網頁對應之 語系。步驟S33,語系解析模組102根據所需語系於根檔 案夾下查找對應之語系檔案夾。例如,當用戶於瀏覽器 2 0輸入網站網址http://www. g〇0gie. c⑽‘ “時,語系 解析模組102於網站網址中解析出用戶所需之語系為漢往 (例如,繁體中文),並找到相應之繁體中文檔案失( Tw—folder)。 [0019] 步驟S34,資料翻譯模組1〇3藉由虛擬鏈結於基檔案夾中 09912566! 表單編號A0101 第10頁/共18頁 0992045021-0 201207638 [0020] Ο [0021] 讀取通用網頁檔案,並將通用網頁檔案中之資料轉化成 用戶所需語系之翻譯資料。步驟S35,資料翻譯模組1〇3 判斷查找到之語系檔案夾中是否含有客製化檔案。若語 系檔案夹中含有客製化檔案,執行步驟S36 ;若語系檔案 爽中;又有客製化播案,執行步驟S37。 步驟S36,資料翻譯模組103於查找到之語系檔案夾中讀 取客製化檔案’並將客製化檔案及翻譯資料儲存到 JavaScript檔案中。步驟S37,資料翻譯模組1〇3將所 述之翻譯資料儲存到javaScript檔案中。 步驟S38 ’網頁生成模組1〇4根據JavaScript檔案產生 一個可於瀏覽器20上顯示成網頁之HTML檔案。步驟S39 ’網頁生成模組104將該HTML檔案發送至用戶終端2,並 根據HTML檔案於用戶終端2之瀏覽器20上顯示相應語系之 客製化網頁。 [0022]Ο 以上所述僅為本發明之較佳實施例雨已,且已達廣泛之 使用功效’凡其他未脫離本發明所揭示之精神下所完成 之均等變化或修飾,均應包含於下述之申請專利範圍内 [0023] [0024] 【圖式簡單說明】 圖1係為本發明客製化網頁處理裝置較佳實施例之實施架 構圖。 圖2係於根檔案夾目錄下建立不同語系檔案之虛擬目錄的 示意圖。 [0025] 圖3係為本發明客製化網頁處理方法較佳實施例之流程圖 099125661 表單編號A0101 第11頁/共18頁 0992045021-0 201207638 【主要元件符號說明】 [0026] 客製化網頁處理裝置1 [0027] 網頁處理單元 10 [0028] 檔案夾建立模組101 [0029] 語系解析模組 102 [0030] 資料翻譯模組 103 [0031] 網頁生成模組 104 [0032] 儲存單元Π [0033] 微處理器12 [0034] 用戶終端2 [0035] 瀏覽器20 [0036] 網路3 099125661 表單編號A0101 第12頁/共18頁 0992045021-0201207638 VI. Description of the Invention: [Technical Field] The present invention relates to a web page processing system and method, and more particularly to a customized web page processing apparatus and method for supporting multiple languages. [Previous Technology #f] [0002] Today, the Internet has become one of the most important tools for delivering information. With the development of the Internet, users can get all kinds of information and various kinds of archives they want to know on the Internet through the browser. In the case of the prior art, in order to enable visitors of different language families to browse web pages of different language families, it is necessary to create web pages of different language systems to be placed on the web server to provide visitors with the need to browse different language websites [0003] When creating different language websites, it is usually necessary to make a plurality of different language pages placed on different web servers. For example, when you create a Simplified Chinese website and a traditional Chinese website with the same content, you will first create a simplified Chinese version of the web page, and then use the word processing program to convert the web page from Simplified Chinese to Traditional Chinese for use on the website. However, if the number of web pages is too large, it is often necessary to increase the labor cost of creating and maintaining the website, and it will occupy a large amount of server storage space, thereby causing waste of storage space and labor costs of the server. When a visitor uses a browser to browse web pages of different languages, the browser must convert between different language families and then dynamically load the webpage data of the desired language into the browser, which requires a relatively long delay. Increase the time to browse the web. In addition, the conventional webpage technology cannot render webpage rendering effects suitable for different language styles in the browser according to the needs of different language families. 099125661 Form No. A0101 Page 4 / 18 pages 0992045021-0 201207638 [0004] [0005] [0005] [Invention] In the above content, it is necessary to provide a customized web processing device and method, Produce customized web pages in different language styles, and save time in storing storage space for general web pages and manned web pages. The customerized webpage processing apparatus includes a webpage processing unit and a storage unit. The webpage processing unit comprises: a folder creation module, which is configured to: store a single-letter-red folder, the root folder includes a base folder and a plurality of words «case folder, the folder creation module further The utility model is used for establishing a virtual link between the base case and each language system (four) inflammation; the language analysis module is configured to receive the access URL sent by the user terminal, and the corresponding access page of the user is parsed in the access URL. a language system, and searching for a corresponding language file under the root folder according to the desired language. The translation module is used to read the general web file file by using the virtual link in the base file to delete the common web file file. The data in the translation is converted into the translation data of the user + language, the customized file is found in the language file folder, and the translated data and the customized file are stored in the script slot "T, the webpage generation module is used for According to the script, the production of a web page is displayed on the user line projector: and the customized web page is displayed according to the corresponding language on the browser. >', the customized web page processing Method, including the following Step: Create a root folder in the storage unit, the root folder includes a base file = early and plural language slot A; the base (four) is lost with each _ language file to establish a virtual link; received by the user The access URL sent by the terminal resolves the language corresponding to the user's required access page in the access URL, and searches for the corresponding language file folder according to the language file in the root file folder; |^根符田虚099125661 Form No. A0101 Page 5/ A total of 18 pages 0992045021-0 201207638 intends to key in the basic file to read the general web page «, and convert the information in the general web page file into the translation data of the desired language of the household; find the custom system in the language file folder Archive the file and store the translated data and the customized file in the script file; generate an HTML file that can be displayed as a web page on the browser of the user terminal according to the script broadcast; and according to the HTML file in the browser The customized webpage of the corresponding language is displayed. [0007] [0008] Compared with the prior art, the customized webpage processing apparatus and method described in the present disclosure, the virtual language links make the different language webpages common. General webpage data^ Generate customized webpages of different language styles, saving the storage time of the general-purpose webpages, the storage space of the billiards, and the time of loading the webpages. [Embodiment] As shown in Figure 1, the webpage processing is invented. The implementation diagram of the preferred embodiment of the device 1. In the implementation, the customized webpage processing device 1 and the user terminal 2 are connected by a network 3. The customized webpage processing device 1 can be Gateway, or WSL/Cable Modem. The customized web processing device receives the user, the winter page 2 developed web access URL, and parses the user in the webpage access URL. The language corresponding to the _page is required to be generated from the customized webpage of the language system, and the customized webpage is sent to the user terminal 2. The language is an international language, including but not limited to, Simplified Chinese, Traditional Chinese, English, Japanese, French, Russian, and the like. The customized webpage refers to a webpage suitable for different language lines, for example, (4) the webpage has different webpage rendering effects. The user terminal 2 can be a computer, a mobile phone, or a PD Green (PersQnal S1 Stant). The user terminal 2 includes a browser 099125661 Form number·Α0ΗΗ Page 6/18 pages 0992045021-0 201207638 [0009] Ο [0010] 〇099125661 20, for inputting the URL and loading and displaying when the user visits the desired website The customized webpage generated by the customized webpage processing apparatus 1 is generated. Network 3 can be a regional network (intranet) or a wide area network (Internet) or other type of communication network. In the embodiment, the customized webpage processing device includes a webpage processing unit 10, a storage unit 11, and a microprocessor 12. The webpage processing unit 10 includes a folder creation module 101, a language analysis module 丨〇2, a data translation module 103, and a web page generation module 1-4. The module referred to in the present invention is a program segment capable of performing a specific function and capable of being executed by the microprocessor 12, which is more suitable than the program for describing the execution process of the software in the customized webpage processing apparatus 1. Therefore, the description of the software of the present invention is described by a module. The folder creation module 101 is configured to establish a root folder from the storage unit, the root folder including a base folder and a plurality of language files (Language f〇ld). The base slot folder includes a plurality of common web pages for composing the content of the web. ;: 'Common files, including but not limited to HTML files, CSS (Cascading style sheet) files, video files ( Image files) and script files (JavaScript fi 1 e ). The HTML slot is used to record the content of each web page, the CSS building is used to control the rendering of the web page, the video file is used to record the image data of the web page, and the JavaScript file is used to convert the web content into web pages of different languages. The folder creation module 101 is further configured to establish a virtual link (Symb〇lic link) between the base folder and each of the language folders. Form No. A0101 Page 7 of 18 0992045021-0 [0011] 201207638 As shown in Figure 2, each language folder corresponds to a language system, for example, Traditional Chinese Folder (Tw-folder), Slang File Folder ( JP —folder), and English folder (En_f〇lder). Each of the language files includes a customized file (Cust〇IDized fUes), which is used to record the rendering of web pages that are suitable for different language styles. The folder creation module 101 uses a virtual link established between the common web page file in the base folder and each language file folder, so that each language file folder can share the common web file file under the common web file file, thereby avoiding The storage unit n makes it possible to repeatedly store the common webpage file under the base folder, thereby saving the storage space of the storage list. When the client needs to access the scale station of a certain language (for example, English), the language folder (for example, En-f〇lde case) can be shared by the virtual link to the universal network in the base folder, and The content of the data in the general webpage case is translated into the content of the webpage of the corresponding language system. [0013] The language analysis module 1 用于 2 is configured to receive an access URL sent by the browser 20 of the user terminal 2, and parse the language corresponding to the webpage required by the user in the access URL, and Find the corresponding language folder under the root folder according to the language. #用户于(四)(4) The website of the input website 匕卜tp· //WWW· google. c〇m cut, the language analysis module 1〇2 parses out the language required by the user in the website URL as Chinese (for example, Traditional Chinese) , Ya finds the corresponding traditional Chinese folder (Tw-. The data translation module 1 () 3 is used to virtualize the basic webpage in the base of the broadcast case, and the general page The data in the case is translated into the translated material of the user's desired language' and the translated data is stored in the script (JaVaSCript) file. The data translation module 103 is also used to determine 099125661 Form No. A0101 Page 8 of 18 0992045021 201207638 Whether there is a customized file in the folder of the language. When there is a customized file in the language file folder, the data translation module 〇3 reads the customized file in the file folder and customizes it. The file is added to the JavaScriM file. [0014] [The page generation module 1〇4 is used to generate an HTML that can be displayed as a web page on the browser 20 according to the javascript file. File, and send the HTML file to The user terminal 2 displays the customized webpage of the corresponding language on the browser 20 according to the old muscle file. As shown in FIG. 3, it is a flowchart of a preferred embodiment of the method for processing a customized webpage. In an example, the method can parse a different language system required for a user to access a webpage in a webpage access request sent by the user terminal 2, generate a customized webpage in different language styles according to different language styles, and send the customized webpage. To the user terminal 2 ^ step S30, the folder creation module 101 creates a root folder in the storage unit u, the root file game includes a base folder and a plurality of language folders (LangUage folder) The base folder includes a plurality of common files for composing web content. The common web file includes but is not limited to an HTML file, a CSS (Cascading style sheet) file, an image file (Image files), and a script file. (javaS_ cript fiie). HTML files are used to record the content of each web page, CSS files are used to control the rendering of web pages, and image files are used for Record the image data of the webpage, and the JavaScript file is used to convert the webpage content into different language pages. 099125661 Form No. A0101 Page 9/18 pages 0992045021-0 201207638 Chen] Step S31, the slot folder creation module 1〇1 will A base link (symb〇lic link) is established between each base file and each language file folder. Referring to Figure 2, each language folder corresponds to a language system, such as the Traditional Chinese Folder (Tw_f〇ider), the Japanese Folder (Jp_folder), and the English Folder (En_f〇lder). Each language file folder includes Cust〇mized files, which are used to record the rendering of web pages suitable for different language styles. The folder creation module 101 uses a virtual link between the base folder and each of the file folders, so that each language file folder can share the common web file file under the common web file file, thereby avoiding the storage unit. In the 11th, the storage of the base file is repeated, so that the storage space of the storage unit 11 is saved. When the client needs to access a website of a language (for example, English), the language file (for example, the folder) can be shared by the virtual link into the common web file in the base folder, and the common web page is The content of the data in the file is translated into the content of the webpage of the corresponding language. [0018] Step S32, the language analysis module 102 receives the access URL sent by the browser 2, and parses out the language corresponding to the webpage that the user needs to access in the access URL. In step S33, the language analysis module 102 searches for the corresponding language file folder according to the required language system in the root file folder. For example, when the user inputs the website URL http://www.g〇0gie.c(10)' in the browser 20, the language analysis module 102 parses the language required by the user into the website URL (for example, traditional Chinese). Chinese), and find the corresponding Traditional Chinese file loss (Tw-folder). [0019] Step S34, the data translation module 1〇3 is virtualized in the base folder 09912566! Form No. A0101 Page 10 / Total 18 pages 0992045021-0 201207638 [0020] Ο [0021] Read the general webpage file and convert the data in the general webpage file into the translation data of the user's desired language. In step S35, the data translation module 1〇3 judges to find Whether the file contains a customized file. If the language file folder contains a customized file, go to step S36; if the language file is cool; if there is a customized broadcast, go to step S37. Step S36, data translation The module 103 reads the customized file in the found file folder and stores the customized file and the translated data into the JavaScript file. In step S37, the data translation module 1〇3 stores the translated data. To javaScrip Step S38 'The webpage generating module 1〇4 generates an HTML file which can be displayed as a webpage on the browser 20 according to the JavaScript file. Step S39 'The webpage generating module 104 sends the HTML file to the user terminal 2, And displaying the customized webpage of the corresponding language according to the HTML file on the browser 20 of the user terminal 2. [0022] The above description is only a preferred embodiment of the present invention, and has reached a wide range of functions. Other equivalent changes or modifications that are not to be made in the spirit of the present invention should be included in the scope of the following claims. [0023] [FIG. 1] FIG. 1 is a customization of the present invention. FIG. 2 is a schematic diagram of establishing a virtual directory of different language files in a root folder directory. [0025] FIG. 3 is a preferred embodiment of a method for processing a customized webpage according to the present invention. Flowchart 099125661 Form No. A0101 Page 11 / Total 18 Page 0992045021-0 201207638 [Description of Main Component Symbols] [0026] Customized Web Page Processing Apparatus 1 [0027] Webpage Processing Unit 10 [0028] Folder Creation Module 101 [0029] Language Analysis Module 102 [0030] Data Translation Module 103 [0031] Web Page Generation Module 104 [0032] Storage Unit [0033] Microprocessor 12 [0034] User Terminal 2 [ 0035] Browser 20 [0036] Network 3 099125661 Form No. A0101 Page 12 of 18 0992045021-0

Claims (1)

201207638 七、申請專利範圍: 1 . 一種客製化網頁處理裝置,包括網頁處理單元及儲存單元 ,其中,所述之網頁處理單元包括: 檔案夾建立模組,用於從儲存單元中建立一個根檔案夾, 該根檔案夾包括一個基檔案夾及複數語系檔案夾,該檔案 夾建立模組還用於將基檔案夾與每一個語系檔案夾之間建 立虛擬鏈結; 語系解析模組,用於接收於用戶終端發送之訪問網址,於 該訪問網址中解析出用戶所需訪問網頁對應之語系,及根 Ο 據該語系於根檔案夾下查找對應之語系檔案夾; 資料翻譯模組,用於藉由所述虛擬鏈結於基檔案夾中讀取 通用網頁檔案,將通用網頁檔案中之資料轉化成該語系之 翻譯資料,於所述語系檔案夾中查找客製化檔案,及將翻 譯資料及客製化檔案儲存於腳本檔案中; 網頁生成模組,用於根據腳本檔案產生一個可於用戶終端 之瀏覽器上顯示成網頁之HTML檔案,及根據該HTML檔案 _ 於瀏覽器上顯示該語系之客製化網頁。 2 .如申請專利範圍第1項所述之客製化網頁處理裝置,其中 ,所述之資料翻譯模組還用於判斷所述語系檔案夾中是否 包含客製化檔案。 3 .如申請專利範圍第1項所述之客製化網頁處理裝置,其中 ,所述之基檔案夾包括複數用於組成網頁内容之通用網頁 檔案,該通用網頁檔案包括HTML檔案、CSS檔、影像檔案 及腳本檔案。 4 .如申請專利範圍第3項所述之客製化網頁處理裝置,其t 099125661 表單編號A0101 第13頁/共18頁 0992045021-0 201207638 ,每一個語系檔案夾對應一種語系,並藉由所述之虛擬鏈 結共用基檔案夾中之通用網頁檔案。 5 .如申請專利範圍第1項所述之客製化網頁處理裝置,其中 ,所述之客製化檔案用於記錄適合不同語系風格之網頁晝 面呈現效果。 6 . 一種客製化網頁處理方法,該方法包括步驟: 於客製化網頁處理裝置之儲存單元中建立一個根檔案夾, 該根檔案夾包括一個基檔案夹及複數語系檔案夾; 將基檔案夾與每一個語系檔案夾之間建立虛擬鏈結; 接收於用戶終端發送之訪問網址,於該訪問網址中解析出 用戶所需訪問網頁對應之語系; 根據該語系於根檔案夾下查找對應之語系檔案夾; 藉由所述虛擬鏈結於基檔案夾中讀取通用網頁檔案,並將 通用網頁檔案中之資料轉化成該語系之翻譯資料; 於所述語系檔案夾中查找客製化檔案,並將翻譯資料及客 製化檔案儲存於腳本檔案中; 根據腳本檔案產生一個可於用戶終端之瀏覽器上顯示成網 頁之HTML檔案;及 根據該HTML檔案於所述瀏覽器上顯示該語系之客製化網 頁。 7 .如申請專利範圍第6項所述之客製化網頁處理方法,該方 法還包括步驟: 判斷所述語系檔案夾中是否有客製化檔案; 當該語系檔案夾沒有客製化檔案時,將翻譯資料儲存於腳 本檔案中。 8 .如申請專利範圍第6項所述之客製化網頁處理方法,其中 099125661 表單編號A0101 第14頁/共18頁 0992045021-0 201207638 ,所述之基檔案夾包括複數用於組成網頁内容之通用網頁 檔案,該通用網頁檔案包括HTML檔案、CSS檔、影像檔案 及腳本檔案。 9 .如申請專利範圍第8項所述之客製化網頁處理方法,其中 ,每一個語系檔案夹對應一種語系,並藉由所述之虛擬鏈 ' 結共用基檔案夾中之通用網頁檔案。 10 .如申請專利範圍第6項所述之客製化網頁處理方法,其中 ,所述之客製化檔案用於記錄適合不同語系風格之網頁畫 面呈現效果。 〇 〇 099125661 表單編號A0101 第15頁/共18頁 0992045021-0201207638 VII. Patent application scope: 1. A customized webpage processing device, comprising a webpage processing unit and a storage unit, wherein the webpage processing unit comprises: a folder creation module, configured to establish a root from the storage unit a folder, the root folder includes a base folder and a plurality of language files folder, the folder creation module is further configured to establish a virtual link between the base folder and each language file folder; the language analysis module, Receiving the access URL sent by the user terminal, parsing the language corresponding to the webpage required by the user in the access webpage, and searching for the corresponding language file folder according to the language file in the root folder; Translating the general webpage file into the base file folder by using the virtual link, converting the data in the universal webpage file into the translation data of the language system, searching for the customized file in the language file folder, and translating The data and the customized file are stored in the script file; the webpage generating module is configured to generate a usable terminal according to the script file The HTML file displayed as a web page on the browser, and the customized web page displaying the language according to the HTML file _ on the browser. 2. The customized web page processing device of claim 1, wherein the data translation module is further configured to determine whether the customized file is included in the language file folder. 3. The customized webpage processing apparatus of claim 1, wherein the base folder comprises a plurality of general webpage files for composing webpage content, the universal webpage file comprising an HTML file, a CSS file, Image files and script files. 4. The customized webpage processing apparatus according to item 3 of the patent application, wherein t 099125661 form number A0101 page 13 / 18 pages 0992045021-0 201207638, each language file folder corresponds to a language system, and The virtual link shares the common web page file in the base folder. 5. The customized web page processing device of claim 1, wherein the customized file is used to record a web page presentation effect suitable for different language styles. 6. A method for processing a customized web page, the method comprising the steps of: creating a root folder in a storage unit of the customized web processing device, the root folder comprising a base folder and a plurality of language files; A virtual link is established between the folder and each of the language files; the access URL sent by the user terminal is received, and the language corresponding to the user's desired access page is parsed in the access URL; and the corresponding file is searched according to the language file in the root folder. a language file folder; reading a general web page file in the base folder by the virtual link, and converting the data in the common web file file into translation data of the language system; searching for the customized file in the language file folder And storing the translated data and the customized file in the script file; generating an HTML file that can be displayed as a web page on the browser of the user terminal according to the script file; and displaying the language system on the browser according to the HTML file Customized web pages. 7. The method for processing a customized web page according to claim 6, wherein the method further comprises the steps of: determining whether there is a customized file in the language file folder; when the language file folder has no customized file , the translation data is stored in the script file. 8. The method for processing a customized webpage according to claim 6, wherein 099125661 form number A0101 is 14/18 pages 0992045021-0 201207638, and the base folder includes plural numbers for composing webpage content. A generic web page file that includes HTML files, CSS files, image files, and script files. 9. The method for processing a customized web page according to claim 8, wherein each of the language files corresponds to a language system, and the virtual web link is used to share the common web file in the base folder. 10. The method for processing a customized web page according to claim 6, wherein the customized file is used to record a web page presentation effect suitable for different language styles. 〇 〇 099125661 Form No. A0101 Page 15 of 18 0992045021-0
TW99125661A 2010-08-03 2010-08-03 Device and method for processing customized web pages TWI407321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99125661A TWI407321B (en) 2010-08-03 2010-08-03 Device and method for processing customized web pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99125661A TWI407321B (en) 2010-08-03 2010-08-03 Device and method for processing customized web pages

Publications (2)

Publication Number Publication Date
TW201207638A true TW201207638A (en) 2012-02-16
TWI407321B TWI407321B (en) 2013-09-01

Family

ID=46762255

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99125661A TWI407321B (en) 2010-08-03 2010-08-03 Device and method for processing customized web pages

Country Status (1)

Country Link
TW (1) TWI407321B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI557583B (en) * 2015-05-26 2016-11-11 鴻海精密工業股份有限公司 Webpage comment classification method, system and webpage management device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2540058A1 (en) * 2005-12-06 2007-06-08 Emeka Akaezuwa Portable search engine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI557583B (en) * 2015-05-26 2016-11-11 鴻海精密工業股份有限公司 Webpage comment classification method, system and webpage management device

Also Published As

Publication number Publication date
TWI407321B (en) 2013-09-01

Similar Documents

Publication Publication Date Title
JP6748071B2 (en) Web content generation method and system
WO2020253389A1 (en) Page translation method and apparatus, medium, and electronic device
KR101824222B1 (en) Fast rendering of websites containing dynamic content and stale content
US20190272313A1 (en) Dynamic generation of mobile web experience
US9311283B2 (en) System for clipping webpages by traversing a dom, and highlighting a minimum number of words
US20140331124A1 (en) Method for maintaining common data across multiple platforms
US8250466B2 (en) Computer and method for converting a web page
CN104063460A (en) Method and device for loading webpage in browser
CN106951270B (en) Code processing method, system and server
CN102413297A (en) Method for realizing webpage browsing on television and television
US20180253504A1 (en) File display method and device
TW201437826A (en) Method and device for combining webpage style address
CN101808114A (en) Method and system for realizing website access and front-end server
CN104423991A (en) Webpage loading and webpage data providing method and device of mobile terminal
CN102346738A (en) Customized web page processing device and method
GB2464313A (en) Trancoding a web page
CN110968314B (en) Page generation method and device
CN110955855B (en) Information interception method, device and terminal
KR101637016B1 (en) Method for providing user reaction web page
NL2006294C2 (en) Website translator, system, and method.
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
WO2016011699A1 (en) Method and device for use in configuring navigation page of browser
JP5809099B2 (en) Web browsing screen thumbnail generation system
TW201207638A (en) Device and method for processing customized Web pages
CN102087653A (en) Method and device for issuing website information

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees