90 likes | 212 Views
Transparent Translator. Maryam Kamvar JP Fall ‘00. Objective. Idea stemmed from frustrations with doing research for French class Create a layer of software that aids in the comprehension of the French Language Essentially, pop-up translation of text hi-lighted by the user. Game Plan.
E N D
Transparent Translator Maryam Kamvar JP Fall ‘00
Objective • Idea stemmed from frustrations with doing research for French class • Create a layer of software that aids in the comprehension of the French Language • Essentially, pop-up translation of text hi-lighted by the user
Game Plan • Create a standalone version of software • Modify and upgrade to incorporate the internet • Language of Choice:Visual Basic/ Visual Basic Script
The Macro • Hi-lighted text is grabbed upon click • Word is appended to a URL • Online Cgi Dictionary is called • Source code of the page is returned • Source code string is parsed • Definition is shown
The Troublesome Transition Browser Word Doc Translator
What worked • Not the original, or most intuitive plan… 2 reasons for the dummy frame. GO button calls cgi perl program Powered by Javascript: timer and automatic reload Source code of user-entered URL plus hidden VB Script Code Button triggers action instead of Mouse up event
The Cgi/Perl Program • Gets the URL entered by the user • Opens a connection with the homepage and grabs source code. • Appends VB script code to the HTML • “New” Page written to main frame
The Future for my JP • Use a more sophisticated translator for phrases and paragraphs • This entails trick interface into submitting a form • Give user choice of language translation, both from and to.