Dizzay / mac-dictionary-kit

Automatically exported from code.google.com/p/mac-dictionary-kit
0 stars 0 forks source link

Stardict-babylon format not supported #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download a dictionary from 
http://reciteword.sourceforge.net/stardict/babylon.php
2. Try to convert it using DictUnifier (process finishes successfully)
3. Try translating a word using new dictionary

What is the expected output? What do you see instead?
To see a translation to the word.
Instead I get the following message:
Format not supported

What version of the product are you using? On what operating system?
Leopard 10.5.2

Please provide any additional information below.

Original issue reported on code.google.com by stakad...@gmail.com on 6 Apr 2008 at 5:55

GoogleCodeExporter commented 9 years ago
I have also same problem. My system Leopard 10.5.2
I am always getting "Format not supported" message.

Original comment by Oguz.Cel...@gmail.com on 6 May 2008 at 11:15

GoogleCodeExporter commented 9 years ago
My version is 10.5.4, I get the same message too

Original comment by glro...@gmail.com on 19 Jul 2008 at 10:33

GoogleCodeExporter commented 9 years ago
My version is 10.5.4, I get the same message with Russian-English dictionaries
downloaded from http://xdxf.revdanica.com/down/index.php

Original comment by champ...@gmail.com on 20 Jul 2008 at 9:18

GoogleCodeExporter commented 9 years ago
Specifically, the issue arises with the following dictionary:
stardict-comn_sdict02_rus_eng_full-2.4.2.tar.bz2

Original comment by champ...@gmail.com on 20 Jul 2008 at 9:21

GoogleCodeExporter commented 9 years ago
The error comes from ;

**** CODE **********************************************

            case 'h':
                p++;
                sec_size = strlen(p) + 1;

                g_string_append(dest, 
                                "<p class=\"error\">Format not supported.</p>");
                break;

**** CODE **********************************************

Does anyone tell me, what sort of format doesn't supporting? Maybe we can 
handle it. 

I used following url for babylon dictionaries ( English to Turkish )
http://reciteword.sourceforge.net/stardict/babylon.php

Original comment by Oguz.Cel...@gmail.com on 20 Jul 2008 at 4:18

GoogleCodeExporter commented 9 years ago
Thanks for the hint  Oguz.Celikdemir
taking into account http://code.google.com/p/babiloo/wiki/StarDict_format
i added this case:

-----------------------

case 'h':
  p++;
  sec_size = strlen(p);

  if (sec_size) {
    g_string_append(dest, p);
  }

  sec_size++;
  break;

-----------------------

and now it works!!!

Original comment by glro...@gmail.com on 30 Jul 2008 at 9:35

Attachments:

GoogleCodeExporter commented 9 years ago
i tried it also and couldn't make it work. still getting same message (Format 
not supported.)

can you post your version for testing?

thanks  :)

Original comment by stakad...@gmail.com on 31 Jul 2008 at 6:07

GoogleCodeExporter commented 9 years ago
Hi glromeo,
could you please post correct version to my mail:
oguz[ddot]celikdemir[aat]gmail[ddot]com
thanks,

Original comment by Oguz.Cel...@gmail.com on 31 Jul 2008 at 8:49

GoogleCodeExporter commented 9 years ago
Posted!

Inside the zip you will find the patched version and the modified convert.cpp

cheers

Original comment by glro...@gmail.com on 31 Jul 2008 at 9:12

Attachments:

GoogleCodeExporter commented 9 years ago
it works!  :)

thanks a lot.

Original comment by stakad...@gmail.com on 1 Aug 2008 at 6:02

GoogleCodeExporter commented 9 years ago
Hi glromeo,
I tried to add this dictionary, but I got no results (blank page without any 
error
message).

http://sourceforge.net/project/downloading.php?groupname=stardict&filename=stard
ict-babylon-cambridgev2_b13-2.4.2.tar.bz2&use_mirror=heanet

Is there anything wrong in the dictionary file or is a real issue?
Thanks a lot.

Original comment by edomon...@gmail.com on 4 Sep 2008 at 7:34

GoogleCodeExporter commented 9 years ago
@edomont77
It seems to me there is a dictionary problem. Try different one, particularly
following link dictionaries :
http://reciteword.sourceforge.net/stardict/babylon.php

Original comment by Oguz.Cel...@gmail.com on 4 Sep 2008 at 5:57

GoogleCodeExporter commented 9 years ago
Tried Longman Dictionary of Contemporary English (4th Ed) from 
http://reciteword.sourceforge.net/stardict/babylon.php

Didn't have much luck. Actually had no luck at all getting empty screen in 
Dictionary.app on any entry queried

The conversion went smoothly, the dictionary generated got picked up fine, no 
errors fired

Mac OS X 10.5.5, DictUnifier grabbed from this thread

http://mac-dictionary-kit.googlecode.com/issues/attachment?
aid=2734227378122100920&name=DictUnifier.zip

I am slightly concerned with this sort of dictionaries (startdict-babylon) in 
that it appears to be the only 
source of American Heritage Dictionary, Cambridge Advanced Learner's Dictionary 
and Longman Dictionary of 
Contemporary English (none is up with native Mac dict though) and the only app 
capable of viewing them is 
startdict itself which is just awful

Cheers

Original comment by osad...@gmail.com on 24 Sep 2008 at 12:22

GoogleCodeExporter commented 9 years ago
Hi, there
I downloaded some dictionaries from http://reciteword~~ and tried to add them. 
But as
edomont77 mentioned above, when I try to look up a word only a blank page's 
presented.
I used glromeo's modified DictUnifier on Mac OS 10.5.5.
Any suggestions would be appreciated.
TIA

Original comment by sujan...@gmail.com on 25 Sep 2008 at 6:36

GoogleCodeExporter commented 9 years ago
glromeo: I downloaded the modified version you attached, and it seemed to be 
the original version — it still 
produced the Format not supported messages.

I tried patching the TRUNK against your patch, and it converted the Finnish 
dictionary I wanted with no problem.

Original comment by mel...@gmail.com on 11 Nov 2008 at 8:27

GoogleCodeExporter commented 9 years ago
Hi melfar,

Could you give me a detailed explanation of your work-around?

Thanks

Original comment by sujan...@gmail.com on 12 Nov 2008 at 5:59

GoogleCodeExporter commented 9 years ago
 glromeo, 

I used your modified version and got no luck. What should I do to deal with the
convert.cpp you packed in the zip file? Thank you very much.

Original comment by wwa...@gmail.com on 14 Jan 2009 at 5:26

GoogleCodeExporter commented 9 years ago
Dear friends,
glromeo has modified a file inside the Dictunifier. If you are using never 
version of Dictunifier, conversation will 
not work. I don't know how we can compile a c++ file inside the mac. If melfar 
or glromeo can explain the patch 
way, I believe that you can do this right way.

Original comment by Oguz.Cel...@gmail.com on 14 Jan 2009 at 8:05

GoogleCodeExporter commented 9 years ago
I got more dictionaries compiled correctly, with no "Format not supported" 
errors and correctly displayed using the attached patched file (it's an hack, 
but it seems to work well).
I'm also attaching the compiled files (in the "bin" folder), you can place them 
in the DictUnifier application (the correct place is in 
DictUnifier.app/Contents/Resources/sdconv-current/bin).

Original comment by jawsoftw...@gmail.com on 10 May 2009 at 2:44

Attachments:

GoogleCodeExporter commented 9 years ago
YES! 
I have just installed the patch given in comment #19, and it works. I converted 
successfully 'stardict-babylon-
Babylon_English_French-2.4.2.tar' and 
'stardict-babylon-Babylon_French_English_diction-2.4.2.tar'.
Thanks a lot, I think you could release a new version.

Original comment by sdec...@gmail.com on 15 May 2009 at 7:59

GoogleCodeExporter commented 9 years ago
tried both patches (glromeo's and the newer one by jawsoftware) and still no 
luck with neither SOED nor 
Cambridge Advanced Learner's both available from 
http://reciteword.sourceforge.net/stardict/babylon.php

Original comment by rodyonro...@gmail.com on 18 May 2009 at 12:25

GoogleCodeExporter commented 9 years ago
I tried jawsoftware's patch (comment #19), but no success with SOED (referred 
to above, #21). Dictionary.app 
does not say "Format not supported" anymore, but the entries are empty.

Original comment by stepan.k...@gmail.com on 16 Aug 2009 at 1:41

GoogleCodeExporter commented 9 years ago
Sorry, I don't know how to add codes!!!!

Original comment by tur...@gmail.com on 12 Sep 2009 at 7:34

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.http://mac-dictionary-kit.googlecode.com/files/DictUnifier-1.1.dmg
2.http://mac-dictionary-kit.googlecode.com/files/sdconv-0.3.tar.bz2
3. 
http://prdownloads.sourceforge.net/stardict/stardict-babylon-Babylon_Italian_Eng
lish_dictio-
2.4.2.tar.bz2?download

What is the expected output? What do you see instead?

Format  supported

What version of the product are you using? On what operating system?
snow leopard 10.6.2

Please provide any additional information below.
Please may I have    screenshot  of installing the program with patch with flow 
where put this patch 

Original comment by Paolo4...@gmail.com on 19 Dec 2009 at 8:23

GoogleCodeExporter commented 9 years ago
I tried the latest patch in comment#19 but experienced same issue as comment 
22. 
Platform Snow Leopard 10.6.2

Can anybody help?

Original comment by freshven...@gmail.com on 5 Jan 2010 at 2:08

GoogleCodeExporter commented 9 years ago
I have the same problem that described in previous and comment 22.
I've converted 
http://sourceforge.net/projects/stardict/files/stardict-dict-babylon/en/stardict
-babylon-collins-en-cc3-2.4.2.tar.bz2/download
using DictUnifier downloaded from #9 and patched by patch from #19. 
Dictionary.app
shows an empty pages when words is founded.

Original comment by kasy...@gmail.com on 5 Feb 2010 at 11:11

GoogleCodeExporter commented 9 years ago
HOW CONVERT/ADD BABYLON DICTIONARIES TO MAC DICCIONARY

This process is not easy, but possible. You need make one part in linux 
(ubuntu) and other one in your mac

PART ONE: DOWNLOAD BABYLON DICTIONARIES

Go to "Free Babylon Glossary Page" and Download your favorite Glossary:
http://babylon.com/free-dictionaries/

PART TWO: IN UBUNTU LINUX

You will need Ubuntu or Debian / linux System for convert the BGL file to 
StarDict, using Dictconv or 
KTranslator (Sorry. I Don`t know How to compile it in X11 on MacOSX)

A) Install dictconv

wget -c 
http://3v1n0.tuxfamily.org/pool/feisty/3v1n0/dictconv_0.2-0~3v1ubuntu1_i386.deb

sudo dpkg -i dictconv_0.2-0~3v1ubuntu1_i386.deb

B) Convert BGL Files to StarDict files

dictconv my_downloaded_glossary_file.BGL -o my_somename_glossary_file.ifo

the output of this command is three file : 
*.ifo , *.idx , *.dict  (may be other file *.dz)

C) Move the three or four files (.ifo .idx .dict) in a folder  (Ex. 
SomeName_Glossary_Folder), and compress the 
folder to bz2 

tar -c SomeName_Glossary_Folder | bzip2 > SomeName_Glossary.bz2

That`s Ok. You could be continue in a MacOSX

PART THREE: IN MACOSX

A) Download Dictunifier (dgm)
http://code.google.com/p/mac-dictionary-kit/downloads/list

B) Run DictUnifier, and select  your SomeName_Glossary.bz2 created in UBUNTU

Enjoy, You have new dict

Original comment by Williams...@gmail.com on 9 Feb 2010 at 6:47

GoogleCodeExporter commented 9 years ago
HOW CONVERT/ADD BABYLON DICTIONARIES TO MAC DICCIONARY

This process is not easy, but possible. You need make one part in linux 
(ubuntu) and other one in your mac

PART ONE: DOWNLOAD BABYLON DICTIONARIES

Go to "Free Babylon Glossary Page" and Download your favorite Glossary:
http://babylon.com/free-dictionaries/

PART TWO: IN UBUNTU LINUX

You will need Ubuntu or Debian / linux System for convert the BGL file to 
StarDict, using Dictconv or 
KTranslator (Sorry. I Don`t know How to compile it in X11 on MacOSX)

A) Install dictconv

wget -c 
http://3v1n0.tuxfamily.org/pool/feisty/3v1n0/dictconv_0.2-0~3v1ubuntu1_i386.deb

sudo dpkg -i dictconv_0.2-0~3v1ubuntu1_i386.deb

B) Convert BGL Files to StarDict files

dictconv my_downloaded_glossary_file.BGL -o my_somename_glossary_file.ifo

the output of this command is three file : 
*.ifo , *.idx , *.dict  (may be other file *.dz)

C) Move the three or four files (.ifo .idx .dict) in a folder  (Ex. 
SomeName_Glossary_Folder), and compress the 
folder to bz2 

tar -c SomeName_Glossary_Folder | bzip2 > SomeName_Glossary.bz2

That`s Ok. You could be continue in a MacOSX

PART THREE: IN MACOSX

A) Download Dictunifier (dgm)
http://code.google.com/p/mac-dictionary-kit/downloads/list

B) Run DictUnifier, and select  your SomeName_Glossary.bz2 created in UBUNTU

Enjoy, You have new dict in Mac Diccionary
(Remember, you can enable-disblable and order sources dictionaries in 
"Preferences")

Original comment by Williams...@gmail.com on 9 Feb 2010 at 6:51

Attachments:

GoogleCodeExporter commented 9 years ago
I use the method on comment #28.
It all works.
but i got a problem. Cause the dictionary is Chinese-CHINESE Dictionary.
when i use dictconv , i find the *.dict file is not in Chinese , but like the 
file i 
upload.
i also change the code for Big5. But still the same.
the dictionary I download from : http://jedi.org/p4/Babylon/EduDict/EduDict-
199804.bgl
Could any one help me on this?
Thanks a lot!

Original comment by coolfis...@gmail.com on 11 Feb 2010 at 1:06

Attachments:

GoogleCodeExporter commented 9 years ago
The problem is XHTML tags required for Dictionary.app. In many dictionaries the 
tags are written in HTML way 
(i.e. in caps and not always closed). 

As I'am not very good in C programming I have overcame this in similar way to 
that from #28. I have converted 
the StarDict dictionary to tab format, than edited the tags (small letters, <br 
/ > in place of <br > an so on). and 
than reconverted it to the StarDict format.

The better way would be conversion embedded in sdconv but it's the work for 
some guys more experience in C.

Original comment by stasi...@gmail.com on 11 Apr 2010 at 9:31

GoogleCodeExporter commented 9 years ago
Thanks William (comment 28) for a wonderfully clear step-by-step explanation. 
Couldn't have been easier.

I'm on a MacBook but with Virtualbox Ubuntu guest so I can do all the 
conversion steps pretty easily.

My problem is that I've downloaded all the Mongolian-English dictionaries from 
the Babylon FREE dictionaries, 
but when I finish the conversion procedure, when trying to use the 
Dictionary.app to look up a word, I get 
"format not supported".

Files trying to convert:
http://info.babylon.com/glossaries/AA24/AACS_English_Mongolian.BGL
http://info.babylon.com/glossaries/AA25/AACS_Mongolian_English.BGL
http://info.babylon.com/glossaries/C526/Temukas_English_Mongolian.BGL

I can't tell if the original BGL file is incorrectly formatted or that 
somewhere in the conversion process 
something goes wrong. Mongolian uses the Russian Cyrillic alphabet so it's not 
that rare compared to other 
languages.

Any ideas?

Original comment by alla...@gmail.com on 26 Apr 2010 at 12:09

GoogleCodeExporter commented 9 years ago
Hi, I tried both patched posted here on the Babylon Stardict English-Italian 
dictionary, and they both do work but only to some extent - for instance for 
dictionary entries that have multiple words, only a few random ones will show 
up, the rest won't - no "format not supported" message, nothing, I just click 
on the entry in the list of results from Dictionary.app and nothing happens.

It seems to happen especially with entries comprised of 3 words. 

Could it be something about the formatting for spaces? For instance, the 
translation for "blue collar" shows up, but not "blue-collar worker".

Is there any other small amendment that can be made to the convert.cpp file to 
process the conversion for these entries correctly? Anyone? Any suggestions 
would be greatly appreciated, thanks!

Original comment by monica.c...@gmail.com on 25 Mar 2011 at 5:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
My mac system is 10.8.5.after l use the mac dictionary kit(2.1) to translate 
the XinHua dictionary.I get the same result called format not supported.but the 
simple english to Chinese dictionary can be used.what's my problem?

Original comment by aiyux...@gmail.com on 29 Sep 2013 at 9:11

GoogleCodeExporter commented 9 years ago
THANK YOU to commenter #9 - I struggled with this for hours and found your post 
finally... THANK YOU

Original comment by g...@jle.vi on 6 Jan 2014 at 6:42