Swedish multisearch + audio pronunciation

I have made a Swedish multi-search using Gabriel's Javascript, and I thought I'd post it in case anyone wants to use it. It's at the bottom of this post. Tyda.se gives the different tenses and conjugations for the words which I found very useful and time saving. I also found the use of en and ett in the recordings on globse.com useful for remembering which word is which, used in addtion to the mnemonics. You can extract the audio from the site using a Firefox add-on. I use the one called UnPlug by h2g2bob. You can access it through tools on the menu bar at the top of Firefox bowser. Good luck, and I hope it helps anyone. Leon

What Svenska word would you like to multisearch? Type below, then press enter please.



* Originally posted by L prato.

Didn't find what you were looking for?

New post
Was this post helpful?
0 out of 0 found this helpful

Comments

2 comments

  • Okay, just found out you can access UnPlug by right clicking on the page aswell which is alot easier.

    Another add on I use is gtranslate by Pau Thomas. You can just highlight some text, right click and it will translate it to english.

    * Originally posted by L prato.
    0
  • Thanks so much for posting this...

    I have noticed a few problems.   If you cut and paste this script into https://fluent-forever.com/wp-content/uploads/2018/05/german_multisearch.html  it will do nothing when you enter a word and hit ENTER.

    I figured out that var q was not enclosed by +.   When I did this the four tabs appear in Firefox (but do not in Chrome or Edge) after allowing popups from this local URL.   I had to change the search URL for tyda as it didn't work for me.

    Now I am having a heck of a time trying to get the URLs in window.open for translate.google.com to resolve.  They both don't work even if I cut and paste from your snippet above.

    The script below works for me - except the google translate.   Any ideas?

     

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body style="background-color:grey">

    <p>What Swedish word would you like to multisearch? Type below, then press enter please.</p>
    <input type="text" id="boxu" autofocus>

    <script>
    document.getElementById("boxu").onkeydown = function(e) {searchy(e)};
    function searchy(e)
    {
    if (e.which == 13)
    {
    var q = document.getElementById("boxu").value;
    window.open("https://www.forvo.com/word/" + q +"/#sv");
    window.open("https://glosbe.com/sv/en/" + q);
    window.open("http://tyda.se/search/" +q+ "?lang[0]=en&lang[1]=es&lang[2]=sv"); 
    window.open("https://www.interglot.com/dictionary/sv/en/search?q=" + q + "&m=");
    window.open("https://translate.google.com/translate?sl=sv&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https://images.google.se/search?q=" + q + "&sout=1&tbm=isch&oq=gris&gs_l=img.3..0l7j0i67j0l2.18913.47690.0.48050.4.4.0.0.0.0.88.316.4.4.0....0...1ac.1.34.img..0.4.314.ahPpE1M88uY&edit-text=&act=url")
    document.getElementById("boxu").value = "";
    }
    }
    </script>
    </body>
    </html>

    0

Please sign in to leave a comment.