mohamad Posted October 14, 2014 Share Posted October 14, 2014 (edited) Automatic translation from dictionary.cambridge.org/ help please what do i need to know? is there a tutorial for web automation? and winhttprequest? Should i learn http? Edited:Case closed,don't need help anymore. Edited October 15, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 ummm...no for several reasons 1. We teach how to fish, not give fish 2. Your request makes no sense. Translate to what? 3. what have you tried already? so far nothing.... mohamad 1 The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 (edited) ummm...no for several reasons 1. We teach how to fish, not give fish 2. Your request makes no sense. Translate to what? 3. what have you tried already? so far nothing.... translate from english to arabic ,and english to english,i want a function that takes a string and return an array of all definitions of the word, its not as if didnt try to start coding it, didnt understand how web automation works,and didn't understand winhttprequest. if possible provide me with links to detailed tutorials of what i need to know to start coding.for example i dont know whether i should learn http or not. *I preffer to do it myself Edited October 14, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 Ok, I can see the site and the specific page your referencing: http://dictionary.cambridge.org/us/dictionary/english-arabic/ I can see what you want to do but I'm not clear on the purpose. For example, are you reading a word document and need to translate it? Are you looking at a website and need to translate specific words? The reason I ask is you need to know the source of the string before you can translate it. If a word doc then there are tools for that. IF a webpage then a different route can be taken. Make sense? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 (edited) Ok, I can see the site and the specific page your referencing: http://dictionary.cambridge.org/us/dictionary/english-arabic/ I can see what you want to do but I'm not clear on the purpose. For example, are you reading a word document and need to translate it? Are you looking at a website and need to translate specific words? The reason I ask is you need to know the source of the string before you can translate it. If a word doc then there are tools for that. IF a webpage then a different route can be taken. Make sense? umm ,reading a book and need to translate specific words,so a word doc Edited October 14, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 (edited) Is the book in PDF? Hardcover you hold in your hand? Edited October 14, 2014 by DarthCookieMonster The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 ummm....you're missing what I'm asking. I need to know WHERE you are reading it from. A word doc, Text file, PDF, Excel.... The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 True i dont really know why that matters, since i can read it from anyone of them : Text file ,PDF,word doc not excel i would preffer pdf. Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 It matters for you are asking to capture the string first. If a web page then we need to use the IE tools. If a text file then that is different. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 Let me ask you this: would you want it so you simply highlight the word with your cursor then hit a key on your keyboard and have it translated for you:? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 (edited) Thanks for helping, i make it hard to help dont i.I want to capture the text from text file ,not a web page ,i hope i answered your correctly this time,the hard part is to auto translate the word from the website Cambridge. i dont care about capturing the text really,i want something like this Local $string="Hello" ..... .... ..... $translation[0]="أهلاً وسَهْلاً / مَرْحَباً" $translation[1]="ألو" this is the only part that i want. Edited October 14, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 (edited) Would this approach on how you want it to work do? 1. you highlight the word you want to translate. 2. You press a key on your keyboard such as F9 or F10 and the word you highlighted is copied to the clipboard 3. The website: http://dictionary.cambridge.org/us/dictionary/english-arabic/ is accessed and the word translated from the data in the clipboard. 4. You can either: The translation is copied to the clipboard so you can paste the data to anything you want. OR The data is put into a database or spreadsheet like Excel. Edited October 14, 2014 by DarthCookieMonster The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 (edited) Would this approach on how you want it to work do? 1. you highlight the word you want to translate. 2. You press a key on your keyboard such as F9 or F10 and the word you highlighted is copied to the clipboard 3. The website: http://dictionary.cambridge.org/us/dictionary/english-arabic/ is accessed and the word translated from the data in the clipboard. 4. You can either: The translation is copied to the clipboard so you can paste the data to anything you want. OR The data is put into a database or spreadsheet like Excel. that would be wonderful,4. do what ever u want both work great. Edited: its important for me to get all the translations that exist of a word, not only the first one.so i think copying to clipboard may not work take your time. Edited October 14, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 OK, this one sounds like fun. Normally I do not do this but I'll write it for you...give me a few minutes The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 OK, I have a problem - You want the various definitions. What will you do with them once you have the information? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 OK, I have a problem - You want the various definitions. What will you do with them once you have the information? Put them in excel file.i can do that myself though Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 (edited) you didn't answering my question. Ok, you got it in the Excel file. Now what are you going to do with the excel file? That is what I need to know. Edited October 14, 2014 by DarthCookieMonster The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
mohamad Posted October 14, 2014 Author Share Posted October 14, 2014 (edited) you didn't answering my question. Ok, you got it in the Excel file. Now what are you going to do with the excel file? That is what I need to know. put the english word in excel file and put the translation in arabic next to the word. Edited October 14, 2014 by mohamad Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 put the english word in excel file and put the translation in arabic next to the word. Then what do you plan to do with that knowledge once you have it? You do not tell me the intent of your project other than your requirement. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Bert Posted October 14, 2014 Share Posted October 14, 2014 Is there any reason why you can't use this: http://en.bab.la/dictionary/english-arabic/ The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now