TWI617926B - A method dynamic to create word object and it's link. - Google Patents
A method dynamic to create word object and it's link. Download PDFInfo
- Publication number
- TWI617926B TWI617926B TW104101419A TW104101419A TWI617926B TW I617926 B TWI617926 B TW I617926B TW 104101419 A TW104101419 A TW 104101419A TW 104101419 A TW104101419 A TW 104101419A TW I617926 B TWI617926 B TW I617926B
- Authority
- TW
- Taiwan
- Prior art keywords
- word
- event
- text
- individual
- space
- Prior art date
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
一種透過網頁前端的事件程序,動態產生新文字物件的方法,將整句文字物件動態產生數個個別單字的物件,並為個別單字物件建立連結之事件,讓個別單字物件可以獨自被操作,藉此達成加速單字操作的功能。 A method of dynamically generating a new text object through an event program at the front end of the webpage, dynamically generating an object of a plurality of individual words by the entire sentence text object, and establishing an event for the individual single word object, so that the individual single word object can be operated by itself, borrowing This achieves the function of speeding up single word operations.
Description
本發明係網路前端(Client Side)文字物件動態產生之技術,前端係指使用者利用瀏覽器(Browser)做為執行界面。 The invention is a technology for dynamically generating a text object of a client front end (Client Side), and the front end refers to a user using a browser as an execution interface.
在過去線上字典查詢網站(或平台)中,除提供查詢字詞之語義之外,大部份也提供該查詢字詞相關的例句,部份網站更提供例句中個別單字再查詢的功能,使用者只要點選任何一個單字,都可以再查詢此單字的字義,為達成此功能,先前技術使用的方法都是先經由伺服器在送出例句時,為每一個個別單字的前後加入超連結的標籤來達成。例如使用者查詢"student"這個字,而查詢網站會提供“She is a student of international politics."這句相關範例,這些網站為了便於使用者查詢其他的文字,會將這個例句的每一個個別單字都加上超連結標籤,而成為如下類似內容:<a href="javascript:void();" word="He">She</a> In the past, online dictionary search websites (or platforms), in addition to providing the semantics of query terms, most of them also provide examples related to the query terms. Some websites also provide the function of retrieving individual words in the example sentences. Anyone who clicks on any single word can query the meaning of the word. In order to achieve this function, the methods used in the prior art are to first add the hyperlinked label to each of the individual words before sending the example sentence via the server. To reach. For example, the user queries the word "student", and the query website provides a related example of "She is a student of international politics.". For the convenience of the user to query other words, these websites will each individual word of the example sentence. Add the Hyperlink tab and become something like this: <a href="javascript:void();" word="He">She</a>
<a href="javascript:void();" word="is">is</a> <a href="javascript:void();" word="is">is</a>
<a href="javascript:void();" word="a">a</a> <b>student</b> <a href="javascript:void();" word="a">a</a> <b>student</b>
<a href="javascript:void();" word="of">of</a> <a href="javascript:void();" word="of">of</a>
<a href="javascript:void();" word="international">international</a> <a href="javascript:void();" word="international">international</a>
<a href="javascript:void();" word=:politics">politics</a>這樣的處理方法有兩大缺點,第一是伺服器端增加這些標籤所增加的處理 時間,第二是網路傳輸量大為增加,而這兩者都造成了回應時間的延遲。 There are two major drawbacks to the <a href="javascript:void();" word=:politics">politics</a> approach. The first is the addition of these tags to the server. Time, the second is a large increase in network traffic, both of which cause delays in response time.
另外有些網站會以ActiveX元件或擴增瀏覽器元件的方式,來達成網頁中個別單字的查詢功能,但這些方法都有跨平台的問題,再者查詢方式及提供的內容,也不是全能由內容提供者所能決定。 In addition, some websites use the ActiveX component or augmented browser component to achieve the query function of individual words in the webpage, but these methods have cross-platform problems, and the query method and content provided are not all-purpose content. The provider can decide.
本發明的方法是採前端標準程式語言(Javascript),動態的在使用者端進行個別單字的物件化,同時建立連結,原網頁內容(例句或文章內容)套用此方法後,即可將原內容中的每一個單字轉變成物件,並可個別設定物件的操作事件,這個方法不同於先前技術在伺服器端進行標籤化的處理,不會造成伺服器與網路額外的負載或流量,而且是跨平台,任何採用標準Javascript程式語言的瀏覽器,都可以加以實現,對比先前之技術,網路資料量減少之比例視文字長度而定,句子愈長資料減少比例愈高,以“She is a student of international politics."此段文字為例,本發明減少的傳輸資料量約為先前技術的80%,本發明具有更佳之進步姓及實用性。本發明不限於特定文字語言,也不僅限於文字字義的操作。 The method of the invention adopts the front-end standard programming language (Javascript), dynamically objects the individual words on the user side, and establishes a link, and the original web content (example sentence or article content) can apply the original content after applying the method. Each word in the file is transformed into an object, and the operation event of the object can be set individually. This method is different from the labeling process of the prior art on the server side, and does not cause additional load or flow of the server and the network, and is Cross-platform, any browser using the standard Javascript programming language can be implemented. Compared with the previous technology, the proportion of network data reduction depends on the length of the text. The longer the sentence, the higher the proportion of data reduction, "She is a In the case of this paragraph, the reduced amount of transmitted data of the present invention is about 80% of that of the prior art, and the present invention has a better progressive surname and practicality. The invention is not limited to a particular word language, nor is it limited to the operation of literal literals.
100‧‧‧使用者端執行平台:網路系統中使用者所使用的作業系 統 100‧‧‧User-side execution platform: the operating system used by users in the network system System
110‧‧‧瀏覽器:網路系統中使用者瀏覽網頁的程式軟體 110‧‧‧Browser: Program software for users to browse the web in the network system
120‧‧‧伺服器端執行平台:網路系統中伺服器使用的作業系統 120‧‧‧Server-side execution platform: The operating system used by the server in the network system
130‧‧‧網頁服務系統:全球資訊網服務軟體 130‧‧‧Web Service System: Global Information Network Service Software
140‧‧‧字義資料庫:提供字義解析內容的資料庫 140‧‧‧Literature database: a database that provides semantic analysis content
200‧‧‧文字空間:本發明存放原文字內容的網頁空間或連結標籤,例如<div>、<span>或<a href=.......>等 200‧‧‧Text space: The web space or link label of the present invention for storing the original text content, such as <div>, <span> or <a href=.......>
210‧‧‧文字空間的辨識碼(id) 210‧‧‧Text space identification code (id)
220‧‧‧文字空間的事件:動態產生單字物件的事件 220‧‧‧Events in the text space: events that dynamically generate single-word objects
240‧‧‧文字內容:原顯示的文字內容 240‧‧‧Text content: Originally displayed text content
250‧‧‧文字空間中的個別單字:一段文字中的某一單字 250‧‧‧Single words in the text space: a word in a paragraph of text
260‧‧‧個別單字事件程序範例(字義查詢的結果顯示) 260‧‧‧Examples of individual word event programs (the results of the word query)
300‧‧‧動態產生之單字物件組合的內容:由數個動態產生的單字物件組合而成 300‧‧‧Contents of a dynamically generated single-word object combination: a combination of several dynamically generated single-word objects
310‧‧‧動態產生的一個單字空間 310‧‧‧ Dynamically generated a single word space
320‧‧‧單字空間的事件:操作單字的事件 320‧‧‧Single-space events: events that operate on a single word
330‧‧‧單字空間的事件程序:單字事件產生後執行的程序 330‧‧‧Event procedures in single-word space: procedures executed after the occurrence of a single-word event
340‧‧‧單字空間中的單字 340‧‧‧words in the word space
350‧‧‧原文字空間中被取代的文字 350‧‧‧Subjected text in the original text space
第1圖為本發明運作之各部方塊圖 Figure 1 is a block diagram of each part of the operation of the present invention.
第2圖為本發明伺服器建立之整句文字物件。 Figure 2 is a complete sentence text object created by the server of the present invention.
第3圖為本發明動態產生的單字物件內容。 Figure 3 is a diagram showing the content of a single word object dynamically generated by the present invention.
本發明在伺服器端(或文章內容提供者)將欲提供查詢的整篇或整句文字置於一個文字空間(SPAN或DIV標籤)中(第2圖200),並為這 個空間建立一"動態建立個別單字物件"(220)的事件。 The present invention places the entire or entire sentence of the query to be provided in a text space (SPAN or DIV tag) on the server side (or article content provider) (Fig. 2, 200), and The space creates an event of "dynamically creating individual word objects" (220).
當使用者點選(onclick)或執行其他伺服器端所設定的事件,即啟動"動態建立個別單字物件"之Javascript程序(230)。 When the user clicks (onclicks) or executes an event set by another server, the Javascript program (230) of "dynamically creating individual word objects" is started.
"動態建立個別單字物件"的程序如下: The procedure for "dynamically creating individual word objects" is as follows:
1.讀入文字空間(200)中的全部文字(innerHTML)。 1. Read all the text (innerHTML) in the text space (200).
2.分割每一個單字,並為每個單字建立單字空間及其事件(310)。 2. Split each word and create a single word space and its events for each word (310).
3.組合每個單字空間(300)。 3. Combine each single word space (300).
4.將組合內容寫回文字空間中,取代原文字空間中的文字(350)。 4. Write the combined content back into the text space, replacing the text in the original text space (350).
因使用者的動作而觸動個別單字的事件程序,這個事件程序可以執行此單字的相關操作。本發明設計一個顯示模組,在單字旁開啟一個視窗,視窗連結伺服器顯示出查詢單字的字義(260)。 The event program that touches a single word due to the user's action, the event program can perform the operation of the word. The present invention designs a display module that opens a window next to a word, and the window link server displays the meaning of the query word (260).
伺服器回應查詢結果給使用者端的瀏覽器。 The server responds to the query result to the browser of the user.
伺服器的回應處理如下: The response of the server is as follows:
1.刪除查詢單字可能的多餘字元,例如多的標點符號。 1. Delete possible extra characters in the query word, such as multiple punctuation.
2.查詢資料庫中的字義或縮減查詢單字的字元再查詢字義。 2. Query the meaning of the data in the database or reduce the characters of the query word and then query the meaning of the word.
3.回應查詢結果。 3. Respond to the query results.
上例為本發明可應用範圍之一,不代表本發明僅可應用於此。 The above example is one of the applicable scopes of the present invention, and does not mean that the present invention can be applied only thereto.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104101419A TWI617926B (en) | 2015-01-16 | 2015-01-16 | A method dynamic to create word object and it's link. |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104101419A TWI617926B (en) | 2015-01-16 | 2015-01-16 | A method dynamic to create word object and it's link. |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201533586A TW201533586A (en) | 2015-09-01 |
TWI617926B true TWI617926B (en) | 2018-03-11 |
Family
ID=54694782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104101419A TWI617926B (en) | 2015-01-16 | 2015-01-16 | A method dynamic to create word object and it's link. |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI617926B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799815A (en) * | 2009-12-30 | 2010-08-11 | 北京世纪高通科技有限公司 | Method and device for obtaining information |
CN103139260A (en) * | 2011-11-30 | 2013-06-05 | 国际商业机器公司 | Method and system for reusing hypertext markup language (HTML) content |
-
2015
- 2015-01-16 TW TW104101419A patent/TWI617926B/en active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799815A (en) * | 2009-12-30 | 2010-08-11 | 北京世纪高通科技有限公司 | Method and device for obtaining information |
CN103139260A (en) * | 2011-11-30 | 2013-06-05 | 国际商业机器公司 | Method and system for reusing hypertext markup language (HTML) content |
Also Published As
Publication number | Publication date |
---|---|
TW201533586A (en) | 2015-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11281852B2 (en) | Systems and methods for automatically creating tables using auto-generated templates | |
US6651066B2 (en) | Content management system | |
CN108399150B (en) | Text processing method and device, computer equipment and storage medium | |
US10380197B2 (en) | Network searching method and network searching system | |
US7669119B1 (en) | Correlation-based information extraction from markup language documents | |
US20150067476A1 (en) | Title and body extraction from web page | |
US20180173812A1 (en) | Systems and methods for parsing and ingesting data in big data environments | |
US7958449B2 (en) | Method and apparatus for displaying and processing input fields from a document | |
US8321396B2 (en) | Automatically extracting by-line information | |
US20100281357A1 (en) | System and method for processing a widget at a web browser | |
US7805464B2 (en) | Web viewer setup dialog and grammar for generating web addresses | |
CN104063401B (en) | The method and apparatus that a kind of webpage pattern address merges | |
US20180218076A1 (en) | Information obtaining method and apparatus | |
AU2009238294A1 (en) | Data transformation based on a technical design document | |
US20040205558A1 (en) | Method and apparatus for enhancement of web searches | |
US9864738B2 (en) | Methods and apparatus related to automatically rewriting strings of text | |
US9208142B2 (en) | Analyzing documents corresponding to demographics | |
Kowalczyk et al. | Enhancing SEO in single-page web applications in contrast with multi-page applications | |
US20150154162A1 (en) | Website content and seo modifications via a web browser for native and third party hosted websites | |
US8327261B2 (en) | Multilingual tagging of content with conditional display of unilingual tags | |
TWI617926B (en) | A method dynamic to create word object and it's link. | |
Berta et al. | Employing issues and commits for in-code sentence based use case identification and remodularization | |
WO2018040807A1 (en) | Method and device for browsing front-end auxiliary converted data | |
US20130311860A1 (en) | Identifying Referred Documents Based on a Search Result | |
US20160283605A1 (en) | Information extraction device, information extraction method, and display control system |