Author Topic: Remake of OSX's Dictionary  (Read 21168 times)

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 2116
  • keep it simple
Re: Remake of OSX's Dictionary
« Reply #20 on: January 28, 2019, 08:04:42 AM »
You also need to install the "Noto Sans" font (which is included in the download). It doesn't work without the font.
That's was the issue. Once I have installed "Noto Sans" font the app worked.
Please don't PM about things that are not private.

Offline ELN

  • Gold Member
  • *****
  • Posts: 295
  • new to the forums
Re: Remake of OSX's Dictionary
« Reply #21 on: January 28, 2019, 07:56:51 PM »
No chance of bundling the font in the app’s resource fork? This is a very cool tool!

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #22 on: January 29, 2019, 02:42:02 AM »
If you install the Unicode support then you can type Unicode in the windows.

Unfortunately printing will crash. I tried to print in WorldText and it crashed too. Is there a program/printer combination that doesn't crash when trying to print Unicode?

Offline WillyWonka

  • Enthusiast Member
  • ***
  • Posts: 30
  • New Member
Re: Remake of OSX's Dictionary
« Reply #23 on: February 01, 2019, 02:54:01 AM »
Does this app accept custom dictionaries?

The reference dictionary in Spanish is the Real Academia de la Lengua, which I use under OS X as it was converted to Dictionary.app format using DictUnifier.

The bundled Spanish dictionary in dictionary.app is well... poor.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #24 on: February 01, 2019, 05:22:55 AM »
Does this app accept custom dictionaries?
No, I convert the XML to a binary format that contains Unicode instead of UTF-8.

If you send me a download link for this Real Academia de la Lengua converted to Dictionary.app format then I'll look into it. Does this contain also a thesaurus? The program was written for dictionary + thesaurus combination.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #25 on: February 07, 2019, 04:39:21 AM »
I improved the program with error messages.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #26 on: February 11, 2019, 04:06:01 AM »
There's a flaw in the multilingual text engine. You have to move the file position to 0 before you call TXNSave if you change the data fork (after Save As). I'll correct this in the next version.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #27 on: April 09, 2019, 06:19:56 AM »
I rewrote the Dictionary program. The difficult stuff is part of the OS 9.3 SDK as DictionaryLib. The rest is open source and in English, less than 2000 lines of code. Then you can make dictionary programs for other languages.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #28 on: May 29, 2019, 09:42:54 AM »
I reverted to the previous version because this was easier to maintain.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #29 on: May 29, 2019, 09:44:06 AM »
See in the attachment the new version. It uses 200 MB of memory instead of 300 MB, it's 20% faster and it can export as HTML.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #30 on: June 04, 2019, 06:35:40 AM »
The maximum text length was miscalculated. The explanation for "break", "get", "go" and "run" could not be displayed. But now I have it right with a verification procedure.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #31 on: June 06, 2019, 02:21:13 AM »
I removed the code for opening Textension documents because this program isn't meant to be a Unicode editor. I removed the AppleScript support from PowerPlant. I added a Quit handler. I simplified the menus.

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #32 on: January 06, 2020, 09:39:49 AM »
I improved it.

It uses 20 MB more but it starts up more than twice as fast.

I changed the sorting order. It sorts case insensitive and diacritics insensitive and characters like space, "-" and "'" are ignored if the rest is equal.

I removed the progress dialog.

I found 2 words that are not displayed correctly: Novotný and Üsküdar.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: Remake of OSX's Dictionary
« Reply #33 on: January 07, 2020, 04:25:44 PM »
"Novotný" is one of the most important words of all.

i use it in every second sentence i write, Novotný, and sometimes even Novotný twice in one.
insert arbitrary signature here

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #34 on: January 10, 2020, 03:57:59 AM »
26.600.000 results for Novotný.
24.500.000 results for Üsküdar.
Novotný has won.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: Remake of OSX's Dictionary
« Reply #35 on: January 11, 2020, 07:40:14 PM »
from germany (google.com):

Novotný About 13.100.000 results (0,56 seconds)
 
Üsküdar About 23.900.000 results (0,49 seconds)

here Üsküdar wins by far. plus he is faster!


insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: Remake of OSX's Dictionary
« Reply #36 on: January 11, 2020, 07:42:25 PM »

direct comparison between Üsküdar and Novotný (measured on an atari ST, headless, blitter off)



insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: Remake of OSX's Dictionary
« Reply #37 on: January 11, 2020, 07:43:44 PM »
Novotný seems to be larger, that´s interesting.

i wonder if he runs under emulation?
insert arbitrary signature here

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: Remake of OSX's Dictionary
« Reply #38 on: January 13, 2020, 06:27:55 AM »
Surprisingly, Novotný is written correctly using the Geneva font, but incorrectly using the Noto font. Noto means no tofu, tofu being the rectangle that is drawn for missing characters. Noto shows tofu for ý, but Geneva doesn't.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: Remake of OSX's Dictionary
« Reply #39 on: January 13, 2020, 12:10:46 PM »
that is what i was wondering: is that the only word with the character ý?

and why would ý be broken in a regular truetype in OS9 but not in OSX?
insert arbitrary signature here