New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Website dictionary "bug"?

Report bugs here

Website dictionary "bug"?

Postby bluebird11 » Thu May 26, 2011 7:36 am

Hi all,

thanks for the excellent dictionary!

I am trying to add LEO Dict website as a dictionary. Using
Code: Select all
http://dict.leo.org/?lp=ende&search=%GDWORD%

works perfectly in GoldenDict.

However, when I try to use the mobile version of LEO Dict using
Code: Select all
http://pda.leo.org/?lp=ende&search=%GDWORD%

which works perfectly in browser, I get an empty page in GoldenDict :(

The thing is, that if I add both dictionaries (dict.leo.org AND pda.leo.org) to the same group, they both work.

Can someone help me? Am I doing something wrong or could it be, that GoldenDict cannot handle mobile site versions correctly?
bluebird11
 
Posts: 5
Joined: Thu May 26, 2011 7:26 am

Re: Website dictionary "bug"?

Postby bluebird11 » Fri May 27, 2011 9:14 pm

Hi all,

I tried a minimal example (taken from here):
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Afficher Hello world en XHTML 1.0 Strict</title>
    </head>
 
    <body>
        <p>Hello world !</p>
    </body>
</html>

GoldenDict is not displaying anything. Displaying google.com works.

Not working both under Windwos XP & Windows 7.

Could it be a parsing error? I tried ripping a working html file to a minimal example, but it stopped working at random points and I could not see any pattern.
bluebird11
 
Posts: 5
Joined: Thu May 26, 2011 7:26 am

Re: Website dictionary "bug"?

Postby chulai » Sat May 28, 2011 2:27 pm

I did my own test. First web page works always. Second works only the first time and from then on it shows an empty page.
I think the problem is that the PDA version relies heavily on browser sniffing (which is a bad web practice). It has this on the html code:

<script language="javascript" type="text/javascript"
src="/js/browserDetection.js"></script>

<script language="javascript" type="text/javascript" src="/js/top-pda.js">
</script>

GoldenDict uses webkit internally to render web pages (same layout engine as Safari and Chrome). I would say the problem lies on the website browser detection code not been able to detect other non-common browsers accordantly.

yassendobrev wrote:Hi all,

thanks for the excellent dictionary!

I am trying to add LEO Dict website as a dictionary. Using
Code: Select all
http://dict.leo.org/?lp=ende&search=%GDWORD%

works perfectly in GoldenDict.

However, when I try to use the mobile version of LEO Dict using
Code: Select all
http://pda.leo.org/?lp=ende&search=%GDWORD%

which works perfectly in browser, I get an empty page in GoldenDict :(

The thing is, that if I add both dictionaries (dict.leo.org AND pda.leo.org) to the same group, they both work.

Can someone help me? Am I doing something wrong or could it be, that GoldenDict cannot handle mobile site versions correctly?
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Website dictionary "bug"?

Postby bluebird11 » Sat May 28, 2011 6:46 pm

chulai thanks for your reply!

I tried removing all the scripts and it does not work either. The fact, that GD can't open the simple XHTML example suggests that the problem is elsewhere too.

I found someone else on the forum reporting the same problem: http://goldendict.org/forum/viewtopic.php?f=5&t=1087&p=4598&hilit=website#p4598
bluebird11
 
Posts: 5
Joined: Thu May 26, 2011 7:26 am

Re: Website dictionary "bug"?

Postby chulai » Mon May 30, 2011 11:11 pm

yassendobrev, I will try to look at it in more detail at some point, but honestly I don't know when. I'm working on other bugs right now. Anyway, I took note of it.

yassendobrev wrote:chulai thanks for your reply!

I tried removing all the scripts and it does not work either. The fact, that GD can't open the simple XHTML example suggests that the problem is elsewhere too.

I found someone else on the forum reporting the same problem: http://goldendict.org/forum/viewtopic.php?f=5&t=1087&p=4598&hilit=website#p4598
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Website dictionary "bug"?

Postby cortez » Tue Nov 12, 2013 3:53 pm

add for dict leo the line http://dict.leo.org/#/search=%GDWORD%&searchLoc=0&resultOrder=basic&multiwordShowSingle=on

this will fix it
cortez
 
Posts: 3
Joined: Tue Nov 12, 2013 3:51 pm

Re: Website dictionary "bug"?

Postby bluebird11 » Fri Nov 15, 2013 6:00 pm

cortez wrote:add for dict leo the line http://dict.leo.org/#/search=%GDWORD%&searchLoc=0&resultOrder=basic&multiwordShowSingle=on

this will fix it


Doesn't work for me :( Still the same issue as before.
bluebird11
 
Posts: 5
Joined: Thu May 26, 2011 7:26 am

Re: Website dictionary "bug"?

Postby cortez » Fri Nov 22, 2013 12:06 pm

Ok. Well, did you put the url into the right field? First field is for naming, second to the right is for the url. afterwards you have to check the box to the very left to activate. I made this mistake once. Works under Kubuntu and Win7 fine for me.
cortez
 
Posts: 3
Joined: Tue Nov 12, 2013 3:51 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 18 guests