Author Topic: Dictionary viewer  (Read 9300 times)

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Dictionary viewer
« on: April 11, 2016, 10:38:51 AM »
Dictionary viewer is a remake of KeyInto 1.8.7.
See http://macintoshgarden.org/apps/keyinto-dictionary-1
I decoded the dictionaries from KeyInto.
Then I display them in a larger font and in color.

You can copy it here:
http://shareware.gangstalkingwiki.com/DictionaryViewer_manual.php

The dictionaries are on the test files page.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Dictionary viewer
« Reply #1 on: April 11, 2016, 01:08:39 PM »
Thanks. Great work.

BTW, do you know something about creating MacWrite spelling  dictionaries ?
Please don't PM about things that are not private.

Offline jamunroe

  • Active Member
  • *
  • Posts: 5
  • new to the forums
Re: Dictionary viewer
« Reply #2 on: April 12, 2016, 05:41:58 AM »
Very cool. Thanks!

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #3 on: April 13, 2016, 09:53:50 AM »
I improved on it, but it's not ready to upload. First I have to make new icons. The new version will have dictionaries in Unicode and there will be a Linux version. There will also be a conversion program that enables you to create your own dictionaries by converting plain text to binary.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #4 on: April 13, 2016, 10:01:04 AM »
do you know something about creating MacWrite spelling dictionaries ?
I don't use that program anymore, but I copied it and I will look into it. As I remember, the dictionaries are similar to those of ClarisWorks so I will look into that too.

The dictionaries that come with my program have about 12,000 entries, which is in my opinion not enough. The first words that I looked up were not found (navarin, cordage).

I search large open source dictionaries: explanatory dictionaries and bilingual dictionaries, of which the format is public. Then I want to convert them.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #5 on: April 15, 2016, 07:03:51 AM »
About the MacWrite/ClarisWorks dictionaries.
The bytes are distributed like in natural language, so they probably use a substitution table like 224=a, 198=b and so on.
Bytes 0-10 are probably codes.
That's all that I could find.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Dictionary viewer
« Reply #6 on: April 15, 2016, 08:59:22 AM »
About the MacWrite/ClarisWorks dictionaries.
The bytes are distributed like in natural language, so they probably use a substitution table like 224=a, 198=b and so on.
Bytes 0-10 are probably codes.
That's all that I could find.

Thank You very much. MacWrite is my favorite word processor up to date. Long time a go I have started a unfructuous  :'(  project to try to expand the language dictionaries available for it. May be some day I'll recover the project again.
Please don't PM about things that are not private.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #7 on: April 15, 2016, 09:45:00 AM »
Can you see where the words start or end or do you know the number of words?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Dictionary viewer
« Reply #8 on: April 15, 2016, 10:38:01 AM »
Can you see where the words start or end or do you know the number of words?
No I can't. I only know that those dictionaries were made by Xerox and Microlytics and the resource fork are near the same. The main differences are in the data fork. But I can't find it's structure ...
Please don't PM about things that are not private.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #9 on: April 17, 2016, 01:51:55 AM »
It's called SpellFinder 2. It's in a code resource. Every dictionary has its own encoding. The English dictionary has 100,000 entries. As far as I can see with Zone ranger it doesn't read the entire dictionary into memory. With a program which can trace file reads or SetFPos you could find the start of the words.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #10 on: April 28, 2016, 07:03:01 AM »
There's a new version with files in Unicode. There's also a version for Linux.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Dictionary viewer
« Reply #11 on: June 07, 2016, 05:58:40 AM »
AppleWorks uses the same dictionaries as MacWrite, but it doesn't need the strange software form Claris (Spelling enabler and so).
AppleWorks can be fragmalyzed and then you see that it uses all the read/write instructions (FS-instructions, FSp-instructions, PB-instructions, PBH-instructions).
So if you patch all the variants of SetFPos and in these patches you say if LMCurAppName<>AppleWorks then return, then you can follow what it is doing and write this to a file.
You need also to limit SetFPos to your dictionary file.
First you search the refnum of the open data fork of the dictionary.
This can be done with PBGetCatInfo.
This can't be done by the init because the dictionary isn't open at startup.
Then you need a control panel where you can type this number to store it into memory, so the init can see it.
This would result in a log file that shows you at which positions it has been reading from the dictionary.
This will be an indication where the words start.

The words are stored as separate syllables.
I did brute force and I found leap, pale, peal and plea but not apple or lapel.