team 23 multilingual online dictionary n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Team 23 Multilingual Online Dictionary PowerPoint Presentation
Download Presentation
Team 23 Multilingual Online Dictionary

Loading in 2 Seconds...

play fullscreen
1 / 15

Team 23 Multilingual Online Dictionary - PowerPoint PPT Presentation


  • 93 Views
  • Uploaded on

Team 23 Multilingual Online Dictionary. 資工碩一 吳全勳 R02922002 資工四 李竺軒 B99902033 電機四 何 偉 B99901068 資工二 王昱蓉 B01902018. Outline. The Scheme XPath Language Detection Template. The Scheme. bab.la linguee.com glosbe.com. XPath.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Team 23 Multilingual Online Dictionary' - elmo-osborne


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
team 23 multilingual online dictionary

Team 23Multilingual Online Dictionary

資工碩一 吳全勳 R02922002

資工四 李竺軒 B99902033

電機四 何 偉 B99901068

資工二 王昱蓉 B01902018

outline
Outline
  • The Scheme
  • XPath
  • Language Detection
  • Template
the scheme
The Scheme

bab.la

linguee.com

glosbe.com

xpath
XPath
  • XPath is a query language for selecting nodes from an XML document.
  • Using path expressions to navigate in XML documents
  • Containing a library of standard functions.
  • Major element in XSLT.
  • W3C recommendation
xpath terminology
XPath Terminology

<bookstore>(root element node)

  • Nodes

<?xml version="1.0" encoding="UTF-8"?>

<bookstore>

<book>

<title lang="en">Harry Potter</title>

<author>J K. Rowling</author>

<year>2005</year>

<price>29.99</price>

</book>

</bookstore>

<author>J K. Rowling</author> (element node)

lang="en”(attribute node)

xpath terminology1
XPath Terminology
  • Relationship of Nodes

<bookstore>

<book>    <title>Harry Potter</title>    <author>J K. Rowling</author>    <year>2005</year>    <price>29.99</price></book>

<bookstore>

The ancestorsof titleare book and bookstore.

The descendants of bookstore are book, title, author, year, and price.

book is the parent of the title, author, year, and price.

title, author, year, and price are the childrenof book.

title, author,year, and price are all siblings.

xpath terminology2
XPath Terminology
  • SelectingNodes
xpath terminology3
XPath Terminology

<?xml version=“1.0” encoding=“UTF-8”?><bookstore> <book> <title lang=“eng”>Harry Potter</title>   <price>29.99</price></book><book><title lang=“eng”>Learning XML</title><price>39.95</price></book></bookstore>

language detection
Language Detection
  • Website: http://detectlanguage.com
  • 1.Sign up for free account
  • 2.Get personal API key3.use Language Detection API for query
  • 4.Transfer query by ajax
  • 5.Return result in JSON
slide10

Asynchronous Ajax

xmlhttp.open("GET",target, true); //true for asynchronous

xmlhttp.onreadystatechange = function (e) { //callback function

if (this.readyState == 4 && this.status == 200){

}

}

好處:

可以避免傳輸發生delay造成script block住的情形發生

影響使用者與網頁之間的互動

template
Template
  • A website template is a pre-designed webpage, or set of webpages, that anyone can modify with their own content and images to setup a website.
  • Usually built using HTML and CSS code, website templates allow anyone to setup a website without having to hire a professional web developer or designer.
  • Some templates are complete websites that you can use to “plug-in” your own text and images with little, or no, editing of the layout or design.
template1
Template
  • 1. Search for a free template
template2
Template
  • 2. Compose
template3
Template
  • 3. Apply to our website and done!
reference
Reference
  • http://www.w3schools.com/XPath/
  • http://allwebcodesign.com/website-templates.htm
  • http://html5up.net/prologue