Thanks for the reply! The plugin opstion sounds like an interesting idea. I would like to explore that. I will contact you by mail :)<br /><br /><div class="gmail_quote"><div dir="auto" class="gmail_attr">torsdag den 16. marts 2023 kl. 16.22.06 UTC+1 skrev ghedlund:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
  
    
  
  <div>
    <p>Hello Ruben,</p></div><div>
    <div>On 16-Mar-2023 06:23, Ruben
      Schachtenhaufen wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div>Dear developers,</div>
      <div><br>
      </div>
      <div>I am developing a Danish IPA dictionary at
        <a href="https://udtaleordbog.dk/" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=da&q=https://udtaleordbog.dk/&source=gmail&ust=1679416742320000&usg=AOvVaw3_gKW6rZkOR7U6okJRm9sz">https://udtaleordbog.dk/</a>. I would like to integrate the
        dictionary with Phon in some way.</div>
    </blockquote>
    </div><div><p>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.</p></div><div>
    <blockquote type="cite">
      <div><br>
      </div>
      <div>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.</div>
      <div><br>
      </div>
      <div>Do you have technical solutions for connecting Phon to an
        online dictionary, e.g. via an API?</div>
    </blockquote>
    </div><div><p>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. </p>
    <p>Custom dictionary types may be added to the application using a
      plugin.  The basic Idea would be to implement
<a href="https://www.phon.ca/apidocs/ca/phon/ipadictionary/spi/IPADictionarySPI.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=da&q=https://www.phon.ca/apidocs/ca/phon/ipadictionary/spi/IPADictionarySPI.html&source=gmail&ust=1679416742320000&usg=AOvVaw1Nr_6LOXxssWxyYhmsus9M">https://www.phon.ca/apidocs/ca/phon/ipadictionary/spi/IPADictionarySPI.html</a>
      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
<a href="https://www.phon.ca/apidocs/ca/phon/ipadictionary/DictionaryProvider.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=da&q=https://www.phon.ca/apidocs/ca/phon/ipadictionary/DictionaryProvider.html&source=gmail&ust=1679416742320000&usg=AOvVaw0zc-znkYZ8RZwKjIBZpofo">https://www.phon.ca/apidocs/ca/phon/ipadictionary/DictionaryProvider.html</a>
      which will create an instance of
      <a href="https://www.phon.ca/apidocs/ca/phon/ipadictionary/IPADictionary.html" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=da&q=https://www.phon.ca/apidocs/ca/phon/ipadictionary/IPADictionary.html&source=gmail&ust=1679416742320000&usg=AOvVaw0FVA2dkX0vW8uLkULGhK9T">https://www.phon.ca/apidocs/ca/phon/ipadictionary/IPADictionary.html</a>
      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.<br>
    </p>
    <p>If you wish to go this route please contact my personal email and
      I will help with setting up the Java project.</p>
    <p>Cheers,</p>
    <p>-Greg</p>
    <p><br>
    </p>
    <blockquote type="cite">
      <div><br>
      </div>
      <div>Ruben<br>
      </div>
      -- <br>
      You received this message because you are subscribed to the Google
      Groups "Phon" group.<br>
      To unsubscribe from this group and stop receiving emails from it,
      send an email to <a href data-email-masked rel="nofollow">phon+uns...@googlegroups.com</a>.<br>
      To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=da&q=https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1679416742320000&usg=AOvVaw3tearNHN3a89YSimqP5Qnm">https://groups.google.com/d/msgid/phon/e92dd749-ec02-45b4-a7bb-8947abcd6bbbn%40googlegroups.com</a>.<br>
    </blockquote>
  </div>

</blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "Phon" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:phon+unsubscribe@googlegroups.com">phon+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/phon/05d846ce-dcdc-4c5d-b7af-dab759a29731n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/phon/05d846ce-dcdc-4c5d-b7af-dab759a29731n%40googlegroups.com</a>.<br />