Hello Ruben,
Dear developers,
I am developing a Danish IPA dictionary at https://udtaleordbog.dk/. I would like to integrate the dictionary with Phon in some way.
It is possible to create a plug-in jar that you could distribute to your users and provides your custom dictionary. I can provide instructions for how to create this file.
As my dictionary is in development, ideally I would like users to be able to get the latest updates at all times in an automated way, and I would also like to get feedback on missing words so I can add them to the dictionary.
Do you have technical solutions for connecting Phon to an online dictionary, e.g. via an API?
We have never really considered this approach as we have been developing Phon as an offline application (aside from automatic updates.) While it is possible to quickly modify the application to load dictionary files from an online resource, latency and connection issues have not been fully considered and may cause unexpected issues in the application.
Custom dictionary types may be added to the application using a
plugin. The basic Idea would be to implement
https://www.phon.ca/apidocs/ca/phon/ipadictionary/spi/IPADictionarySPI.html
so that the lookup function calls your online API and returns a
list of ipa strings for the given orthography. You would also
need to create your own
https://www.phon.ca/apidocs/ca/phon/ipadictionary/DictionaryProvider.html
which will create an instance of
https://www.phon.ca/apidocs/ca/phon/ipadictionary/IPADictionary.html
that uses your custom SPI. Finally place the fully qualified name
of the dictionary provider class in a file named
META-INF/services/ca.phon.ipadictionary.DictionaryProvider.
If you wish to go this route please contact my personal email and I will help with setting up the Java project.
Cheers,
-Greg
Ruben--
You received this message because you are subscribed to the Google Groups "Phon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phon+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%40googlegroups.com.