Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dictionary extensions for Firefox/Tbird 2

4 views
Skip to first unread message

Benjamin Smedberg

unread,
Jul 26, 2006, 3:07:37 PM7/26/06
to
Firefox and Thunderbird 2 will support a new packaging format for
spellchecking dictionary extensions. These extensions are maintained using
the extension manager infrastructure. I have created a tool that will
package a myspell dictionary into an extension for inclusion on
addons.mozilla.org.

I would like to ask each l10n team to submit a dictionary extension to
addons.mozilla.org:

1) First, you need to have the myspell .aff and .dic files for your language
dictionary. These can be under any open-source license, including GPL.

2) Feed these files into the webtool at
http://benjamin.smedbergs.us/dictionary-packager/
the "version" field should match up with release numbers for your localized
dictionary if possible.

3) The webtool should feed you a dictionary XPI of the name fr-dictionary.xpi

4) go to https://addons.mozilla.org/developers/ and submit the extension to
the addons system. It should be automatically marked compatible with Firefox
2.0b2 to 2.0.0.* and Thunderbird 2.0b2 to 2.0.0.*. You should manually mark
the extension compatible with SeaMonkey 1.1. Add the extension to the
"dictionaries" category of Firefox, Thunderbird, and SeaMonkey.

I will go through and approve the dictionaries on addons.mozilla.org fairly
regularly.

--BDS

Aleks Reinhardt

unread,
Jul 26, 2006, 4:07:51 PM7/26/06
to
Hello

Benjamin Smedberg wrote:
> 4) go to https://addons.mozilla.org/developers/ and submit the extension
> to the addons system. It should be automatically marked compatible with
> Firefox 2.0b2 to 2.0.0.* and Thunderbird 2.0b2 to 2.0.0.*. You should
> manually mark
> the extension compatible with SeaMonkey 1.1. Add the extension to the
> "dictionaries" category of Firefox, Thunderbird, and SeaMonkey.

I made it to this step, but here I get the following error:

> > Warning: Invalid argument supplied for foreach()
in /opt/update/core/inc_global.php on line 365
> > Error! The MaxAppVer for Firefox of 2.0.0.* in install.rdf is invalid.
> > Error! The MinAppVer for Thunderbird of 2.0b1 in install.rdf is invalid.
> > Error! The MaxAppVer for Thunderbird of 2.0.0.* in install.rdf is
invalid.
> > Errors were encountered during install.rdf checking...
> >
> > How to fix this:
> >
> > * See the list of valid version numbers
> > * minVersion (MinAppVer) values may only contain values 0-9 and '.'
because they have to be an absolute version. minVersions like 1.0+ or
1.5.0.* are not allowed.
> > * Your version has not been found in the addons database but it
should be. See #a...@mozilla.org in IRC if you think this is in error.
> >
> > Aborting...


What should I do about it?


Cheers
Aleks

Benjamin Smedberg

unread,
Jul 26, 2006, 4:35:12 PM7/26/06
to
Aleks Reinhardt wrote:

> What should I do about it?

Fixed, I think. Please try again.

--BDS

Aleks Reinhardt

unread,
Jul 26, 2006, 5:03:07 PM7/26/06
to
Benjamin Smedberg wrote:
> Fixed, I think. Please try again.

I've tried again, but get exactly the same error. Maybe it takes a while for
any changes you've made to take effect?


Cheers
Aleks

Marek Stepien

unread,
Jul 26, 2006, 5:18:00 PM7/26/06
to
Aleks Reinhardt napisał(a):

> I've tried again, but get exactly the same error.

Well, this may sound a bit "aolish", but: me too. :)

--
Marek Stępień <mar...@aviary.pl>
AviaryPL - polski zespół lokalizacyjny Mozilli
http://www.firefox.pl/ | http://www.mozilla.org.pl/

Marcelo Poli

unread,
Jul 26, 2006, 10:33:26 PM7/26/06
to
Seems that a.m.o doesn't have the Thunderbird versions in the database.

Firefox accepts the following version numbers

Firefox 2.0.0.* {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Firefox 2.0a1 {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Firefox 2.0a2 {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Firefox 2.0a3 {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Firefox 2.0b1 {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Firefox 3.0a1 {ec8030f7-c20a-464f-9b0e-13a3a9e97384}

But Thunbderbird only accepts

Thunderbird 2.0a1 {3550f703-e582-4d05-9a08-453d09bdfdc6}
Thunderbird 3.0a1 {3550f703-e582-4d05-9a08-453d09bdfdc6}

Marek Stepien escribió:

Benjamin Smedberg

unread,
Jul 26, 2006, 11:52:33 PM7/26/06
to
Aleks Reinhardt wrote:

> What should I do about it?

ok, the issues are fixed. Please *remake* your XPI using the
benjamin.smedbergs.us/dictionary-packager website, and resubmit to addons.
It should automatically accept the proper version numbers now.

--BDS

Aleks Reinhardt

unread,
Jul 27, 2006, 3:42:15 AM7/27/06
to
Benjamin Smedberg wrote:
> ok, the issues are fixed. Please *remake* your XPI using the
> benjamin.smedbergs.us/dictionary-packager website, and resubmit to addons.
> It should automatically accept the proper version numbers now.

Great, it seems to work now (it still produces a few errors, but that
doesn't seem to affect the upload, etc).

However, the name of the dictionary and the description seem to be
incorrectly encoded, and likewise the generated filename - the letter Č is
made out to be �, or '_auml_' for the filename. Can this be fixed?


Cheers
Aleks

Robert Kaiser

unread,
Jul 27, 2006, 10:09:09 AM7/27/06
to
Benjamin Smedberg schrieb:

> 1) First, you need to have the myspell .aff and .dic files for your
> language dictionary. These can be under any open-source license,
> including GPL.
>
> 2) Feed these files into the webtool at
> http://benjamin.smedbergs.us/dictionary-packager/
> the "version" field should match up with release numbers for your
> localized dictionary if possible.

Hmm, it still fails for me with "Language code must be
ab[-CD[-modifier]]" when I use "de-DE" as the Language code.
Maybe the problem is in fact not the language code, but the really huge
.dic file, which is 9.6 MB (!) for the current German (DE) dictionary...

It worked OK for me for the much smaller de-CH dictionary, but de-DE and
de-AT are much bigger files (yes, German has three variants, and I even
left out those for the legacy writing rules).


Robert Kaiser

Benjamin Smedberg

unread,
Jul 27, 2006, 10:21:20 AM7/27/06
to
Aleks Reinhardt wrote:

> However, the name of the dictionary and the description seem to be
> incorrectly encoded, and likewise the generated filename - the letter Č is
> made out to be �, or '_auml_' for the filename. Can this be fixed?

Interesting... I tested this using unicode characters and it seemed to work
for me.

I'm confused, though... you say the name of the dictionary is incorrectly
encoded? How can that be, since the name of the dictionary should be
cz-dictionary.xpi ?

--BDS

Benjamin Smedberg

unread,
Jul 27, 2006, 10:26:56 AM7/27/06
to
Robert Kaiser wrote:
> Benjamin Smedberg schrieb:
>> 1) First, you need to have the myspell .aff and .dic files for your
>> language dictionary. These can be under any open-source license,
>> including GPL.
>>
>> 2) Feed these files into the webtool at
>> http://benjamin.smedbergs.us/dictionary-packager/
>> the "version" field should match up with release numbers for your
>> localized dictionary if possible.
>
> Hmm, it still fails for me with "Language code must be
> ab[-CD[-modifier]]" when I use "de-DE" as the Language code.
> Maybe the problem is in fact not the language code, but the really huge
> .dic file, which is 9.6 MB (!) for the current German (DE) dictionary...

Perhaps... I tried uploading French dictionaries and pretending it was de-DE
langcode and that worked.

I can't change the max upload limit on my server, so you may need to package
that dictionary by hand, or copy the PHP files to your own server and
package it there.

--BDS

Aleks Reinhardt

unread,
Jul 27, 2006, 10:43:10 AM7/27/06
to
Benjamin Smedberg wrote:
> Interesting... I tested this using unicode characters and it seemed to
> work for me.
>
> I'm confused, though... you say the name of the dictionary is incorrectly
> encoded? How can that be, since the name of the dictionary should be
> cz-dictionary.xpi ?

Well, yes, the original filename was in fact sl-dictionary.xpi, but after
having uploaded it, the server renamed it into:
_auml_rkovalnik_za_slovenski_jezik-0.1-fx+zm+tb.xpi

Unicode seems to work *inside* the XPI, because the description was
correctly read by the server on upload; however, when it was saved on the
website, it got wrongly encoded.
Should I attempt the entire procedure again with a name which doesn't
contain any non-ASCII letters? (I can use 'slovar' instead of 'črkovalnik'
if need be.) But then someone would need to delete the current version, as
I don't seem to have the permissions to do so.


Cheers
Aleks

Benjamin Smedberg

unread,
Jul 27, 2006, 10:49:21 AM7/27/06
to
Aleks Reinhardt wrote:

> Unicode seems to work *inside* the XPI, because the description was
> correctly read by the server on upload; however, when it was saved on the
> website, it got wrongly encoded.

ok... let's not worry about the filename, since users don't really see that.
I think there's a way for you to update the description of the extension
after you've submitted it. (I know there is in my interfaces, but I'm an AMO
admin so I'm not sure whether your interface shows the same UI). Please try
that first. If it doesn't work, send me the description you want to use, and
I'll try using my edit system to update it.

We perhaps should file a bug agianst AMO about the incorrect encoding
detection. When you read AMO pages, what charset is the browser using?

--BDS

Robert Kaiser

unread,
Jul 27, 2006, 11:02:00 AM7/27/06
to
Benjamin Smedberg schrieb:

> We perhaps should file a bug agianst AMO about the incorrect encoding
> detection. When you read AMO pages, what charset is the browser using?

I'm seeing the same... Looks like AMO doesn't understand UTF-8 correctly :(

Definately looks like a bug of AMO to me.

Robert Kaiser

Robert Kaiser

unread,
Jul 27, 2006, 11:03:01 AM7/27/06
to
Benjamin Smedberg schrieb:

> I can't change the max upload limit on my server, so you may need to
> package that dictionary by hand, or copy the PHP files to your own
> server and package it there.

OK, having the de-CH one it's easy to repackage the others using the
same layout and adopted install.* files, I'll do that...

Robert Kaiser

Robert Kaiser

unread,
Jul 27, 2006, 11:08:31 AM7/27/06
to
Robert Kaiser schrieb:

Argh, and now AMO chokes on that 2.5 MB .xpi files :(

Robert Kaiser

Aleks Reinhardt

unread,
Jul 27, 2006, 11:13:20 AM7/27/06
to
Benjamin Smedberg wrote:
> ok... let's not worry about the filename, since users don't really see
> that. I think there's a way for you to update the description of the
> extension after you've submitted it. (I know there is in my interfaces,
> but I'm an AMO admin so I'm not sure whether your interface shows the same
> UI). Please try that first. If it doesn't work, send me the description
> you want to use, and I'll try using my edit system to update it.
>
> We perhaps should file a bug agianst AMO about the incorrect encoding
> detection. When you read AMO pages, what charset is the browser using?

OK, I've updated the description and name to one that uses ASCII characters
only. However, that kind of solution probably isn't practicable for most
languages - especially those which use only non-ASCII characters (eg Arabic
or Chinese). I suppose it might make sense to wait to see what their
experience is with the AMO system.

When viewing AMO pages, the browser uses Unicode, as it of course should:
the charset IS in fact specified in the HTML headers. I think the problem
must be with the form-processing scripts - ie with that part of the system
which transcribes what is given in forms into its database, or perhaps the
part which reads the database and serves it in HTML form?

(oops, I apparently sent this by email by accident; reposting to the
newsgroup)

Cheers
Aleks

Lodolo Francesco

unread,
Jul 27, 2006, 11:22:43 AM7/27/06
to Benjamin Smedberg, dev-...@lists.mozilla.org
Benjamin Smedberg Scrive:

> 1) First, you need to have the myspell .aff and .dic files for your
> language dictionary. These can be under any open-source license, including
> GPL.

Italian dictionary is released under GPL license but it's not maintained by
us. This team releases an xpi version with a lot of files inside (gpl
license, thanks, readme, etc. etc.); can I add these files to the xpi
generated by your script before submitting the xpi to AMO?

Francesco.

Benjamin Smedberg

unread,
Jul 27, 2006, 11:34:23 AM7/27/06
to

Yes.

--BDS

Benjamin Smedberg

unread,
Jul 27, 2006, 11:37:17 AM7/27/06
to

Please search/file/cc me.

--BDS

Robert Kaiser

unread,
Jul 27, 2006, 4:29:13 PM7/27/06
to
Benjamin Smedberg schrieb:

Looks like the same problem as already filed here:
https://bugzilla.mozilla.org/show_bug.cgi?id=332459

Robert kaiser

Marcelo Poli

unread,
Jul 27, 2006, 6:55:41 PM7/27/06
to

Robert Kaiser escribió:


>
> Looks like the same problem as already filed here:
> https://bugzilla.mozilla.org/show_bug.cgi?id=332459
>
> Robert kaiser

And there is a good workaround if you can write the description in
ISO-8859-1.

Quoting the bug:
The workaround I found for now is that after loading the Item Edit page,
to change the browser into ISO-8859-1, enter data and submit, and that
will work (if the characters you want work in that charset).

Axel Hecht

unread,
Jul 28, 2006, 7:10:52 AM7/28/06
to

Robert, I recall that both the swiss and the austrian dicts are
supplementals to the regular german dictionary, at least that's the info
I get on thunderbird-mail.de.

I wonder if you should package those up to include the german
dictionary, or even use extension dependencies.

Axel

Robert Kaiser

unread,
Jul 28, 2006, 7:49:16 AM7/28/06
to
Axel Hecht schrieb:

> Robert, I recall that both the swiss and the austrian dicts are
> supplementals to the regular german dictionary, at least that's the info
> I get on thunderbird-mail.de.
>
> I wonder if you should package those up to include the german
> dictionary, or even use extension dependencies.

The swiss is a separate dictionary, the Austrian is meant to extend the
de-DE one, but I think we don't support pointing a "de-AT" entry to use
"de-DE.dic + de-AT.dic" like OOo does, so I did a de-AT.dic which
actually has both merged into one.

Nevertheless, the de-DE.dic alone is 9.6 MB in uncompressed form, and
the de-DE XPI file is 2.5 MB, which is still not accepted by AMO, though
they tried to fix that yesterday.

Robert Kaiser

Alexander Ihrig

unread,
Jul 28, 2006, 10:47:32 AM7/28/06
to
Robert Kaiser schrieb:

> Axel Hecht schrieb:
>> Robert, I recall that both the swiss and the austrian dicts are
>> supplementals to the regular german dictionary, at least that's the
>> info I get on thunderbird-mail.de.
>>
>> I wonder if you should package those up to include the german
>> dictionary, or even use extension dependencies.
>
> The swiss is a separate dictionary, the Austrian is meant to extend the
> de-DE one, but I think we don't support pointing a "de-AT" entry to use
> "de-DE.dic + de-AT.dic" like OOo does, so I did a de-AT.dic which
> actually has both merged into one.

Extension dependencies wouldn't be working. Thunderbirds/Seamonkeys
myspell implementation doesn't support the combination of 2 or more
dicts. So dependencies would only install both dicts - not more.

Alex Ihrig

Robert Strong

unread,
Jul 28, 2006, 1:18:26 PM7/28/06
to dev-...@lists.mozilla.org
This is correct, extension dependencies adds a requirement for another
extension to be installed to the dependent extension. It doesn't change
the functionality of an extension.

Robert

Kostas Papadimas

unread,
Jul 29, 2006, 2:48:31 AM7/29/06
to
O/H Benjamin Smedberg έγραψε:
> Firefox and Thunderbird 2 will support a new packaging format for
> spellchecking dictionary extensions. These extensions are maintained
> using the extension manager infrastructure. I have created a tool that
> will package a myspell dictionary into an extension for inclusion on
> addons.mozilla.org.
>
> I would like to ask each l10n team to submit a dictionary extension to
> addons.mozilla.org:

>
> 1) First, you need to have the myspell .aff and .dic files for your
> language dictionary. These can be under any open-source license,
> including GPL.
>
> 2) Feed these files into the webtool at
> http://benjamin.smedbergs.us/dictionary-packager/
> the "version" field should match up with release numbers for your
> localized dictionary if possible.
>
> 3) The webtool should feed you a dictionary XPI of the name
> fr-dictionary.xpi

>
> 4) go to https://addons.mozilla.org/developers/ and submit the extension
> to the addons system. It should be automatically marked compatible with
> Firefox 2.0b2 to 2.0.0.* and Thunderbird 2.0b2 to 2.0.0.*. You should
> manually mark the extension compatible with SeaMonkey 1.1. Add the
> extension to the "dictionaries" category of Firefox, Thunderbird, and
> SeaMonkey.
>
> I will go through and approve the dictionaries on addons.mozilla.org
> fairly regularly.
>
> --BDS

No luck with the Greek spelling dictionary . I've submitted once, but
seems that is not accepted, and now the addons system claims that I am
not the owner of the dictionary and rejects any new dictionary
submissions. If someone can committed me for me the file is at
http://www.pkst.gr/el-dictionary.xpi

Thanks
Kostas

0 new messages