Options for importing an IPA dictionary
Ruben Schachtenhaufen
metaplasme at gmail.com
Tue Mar 21 09:19:06 UTC 2023
Thanks for the reply! The plugin opstion sounds like an interesting idea. I
would like to explore that. I will contact you by mail :)
torsdag den 16. marts 2023 kl. 16.22.06 UTC+1 skrev ghedlund:
> Hello Ruben,
> On 16-Mar-2023 06:23, Ruben Schachtenhaufen wrote:
>
> 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... at googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%40googlegroups.com
> <https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
--
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+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/phon/05d846ce-dcdc-4c5d-b7af-dab759a29731n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/phon/attachments/20230321/9e4cab19/attachment.htm>
More information about the Phon
mailing list