90 likes | 219 Vues
The Transparent Translator project originated from challenges faced in researching for a French class. The goal is to create software that provides instantaneous pop-up translations of highlighted text, aiding comprehension in the French language. The standalone version will be developed using Visual Basic, incorporating online resources to enhance functionality. The software will allow users to click on text, retrieve definitions from an online dictionary, and display these translations. Future developments will focus on expanding translation capabilities to include phrases and paragraphs.
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.