Menu

Translation session immediately ended

Help
2024-02-10
2024-02-12
  • Hans van Tilburg

    I wanted to revisit Anaphraseus again after many years. I'm using macOS High Sierra and downloaded LO 6.0.0.1. I installed Anaphraseus (latest version). First segment works alright, but when I click the first button or press Alt+down, I get an error message:

     
    • Ole Yansen

      Ole Yansen - 2024-02-10

      Hello Hans,

      I'm away from my computer and can check it only at Monday, February 12.

      Meanwhile I think that text you try to translate contain some special
      character. Anaphraseus think this is the end of text and show message.

      There is several ways to fix it. First you can try to enable special
      characters in LibreOffice. Open menu Options - Writer - View - Check all
      checkboxes like "show hidden characters". You can find more detailed
      instructions in FAQ which included in ZIP available for download, or I can
      give more instructions when I get bank to my computer.

      Let me know if it works, if not, I will help further.

      With best regards,
      Ole

      On Sat, Feb 10, 2024, 12:21 Hans Lenting hanstilburg@users.sourceforge.net
      wrote:

      I wanted to revisit Anaphraseus again after many years. I'm using macOS
      High Sierra and downloaded LO 6.0.0.1. I installed Anaphraseus (latest
      version). First segment works alright, but when I click the first button or
      press Alt+down, I get an error message:


      Translation session immediately ended
      https://sourceforge.net/p/anaphraseus/discussion/743096/thread/411e2890f9/?limit=25#b5f2


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/anaphraseus/discussion/743096/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Ole Yansen

    Ole Yansen - 2024-02-12

    Hello Hans,

    I'm back.
    In order for Anaphraseus to work in LibreOffice some initial setup required.
    Please open menus Tools → Options → LibreOffice Writer → Formatting Aids: all 'hidden text' entries have to be checked on. Please check attached screenshot.

    The error above usually shows up if there other translation session in other document opened.
    To fix just close all translation sessions.

    Please let me know if it help.

    With best regards,
    Ole

     
  • Hans van Tilburg

    Hello Ole,

    Thank you for taking the time to reply to my question.

    LO 6.0.1 crashed on opening the Settings (Preferences). I had to update to 6.4.7.2 to see and set them. After that, Anaphraseus presented the third and second sentence too.

    I must say: quite impressive how you managed to add DeepL support :).

    I'm familiar with the macro language of Ms Word and I would like to study the code of Anaphraseus to learn from you. I'm especially interested in how Anaphrases compares the current source segment with the source segments in the TM via fuzzy matching. Where in all code should I look to see how this works? (It's kind of a hobby project for me to learn this.)

    One more question: if I remember correctly, Anaphraseus originially didn't require Java. What do you use Java for in the later versions?

    Thank you in advance!

    Cheers,

    Hans

     
  • Ole Yansen

    Ole Yansen - 2024-02-12

    Hello Hans,

    Glad to hear it start working :)
    Let me start to answer from the last question. With usage of Java, TMs load, TMX export, word search in the memory go much faster. Also there is no limit of TM size (depends only on the computer memory available). Querying online translation engines such as Google Translator and Microsoft Bing also use Java and not available for non-Java version.

    If you want to start OpenOffice programming I can recommend very good source where I have learned: https://www.pitonyak.org/oo.php

    Code for fuzzy search you can find in Basic module OFuzzu.xba: https://sourceforge.net/p/anaphraseus/code/HEAD/tree/trunk/JavaStorage/extension.oxt/LibAnaphrase/OFuzzy.xba

    And also in Java code available here, because Java is much faster :) https://sourceforge.net/p/anaphraseus/code/HEAD/tree/trunk/JavaStorage/java/SrcNetBeans_6.5/TMStorage/src/org/openoffice/anaphraseus/TMStorage.java

    Main idea is to get "meaningful" part of word discarding end of it (let say 10%) and count how many times it appear in sentence. For example word "counting" we strip end of it and get "count". Then check it appearance in sentence. Of course it will not work well for China and Japanese languages :)
    If you looking for more advanced method I can point to Levenshtein distance https://en.wikipedia.org/wiki/Levenshtein_distance
    In time we develop Anaphraseus we though about it but with Basic it took to many time to calculate, so we stick to home made solution :)

    Wish you a lot of fun with Anahraseus, and if you have any questions I will be glad to answer.

    With best regards,
    Ole

     

Log in to post a comment.