github tanakh/plamo-translate-desktop v0.6.0
PLaMo Translate Desktop 0.6.0

one hour ago

Added

  • Translate when copied twice in Settings (#7): select text in any application and press Ctrl+C twice quickly (⌘C on macOS), and the app's window comes to the front and translates it. Only the clipboard is watched, not the keyboard, so no permission is needed. Off by default. On Linux it needs X11, or Xwayland in a Wayland session.
  • Keep running when the window is closed in Settings: the app keeps running without its window, which opens again from the icon in the notification area (Windows), the Dock (macOS), or by starting the app again (Linux). The model is released meanwhile and loaded again when the window opens. Off by default. Ctrl+Q (⌘Q) quits.
  • The browser extension translates PDFs: Translate this page with PLaMo (or the panel's button, or the shortcut) on a PDF opens it in a new tab, in a viewer of the extension's own, with each paragraph's translation over the paragraph. Figures, tables, and formulas stay as they are, and formulas inside a paragraph keep their place in the translation. See the README for the details.
    • Original shows the PDF as it was, and pointing at a translated paragraph shows its original text.
    • Save as PDF saves the translated PDF through the browser's print dialog (choose Save as PDF as the destination): the translations as text, over an image of each page.
    • The PDF is kept in the browser, so a reloaded or restored tab shows it again, with the translations it had (see the translations kept, below). Only the last 5 PDFs opened are kept (256 MB at most together, none for more than 30 days). Translate again translates a PDF anew.
    • A PDF without text (scanned pages) cannot be translated, and the viewer says so. Vertical and rotated text stays as it is.
    • A PDF on this computer needs Allow access to file URLs in the extension's details. Where it is off, the viewer says so, with a button that opens the details.
    • From the right-click menu, the browser's PDF viewer gives the extension no access to the PDF, so the extension's viewer asks for access to the PDF's site, once for each site. The shortcut needs no such step.
  • The browser extension keeps translations and uses them again (#9): text translated before is shown at once instead of being translated again, on a page loaded again, in a PDF reopened, and for the same text in the panel (which then says translated before).
    • A translation is used again only for the same text with the same engine and model, target language, and style. A paragraph a page translated is used for the same text in the panel too.
    • Translate this page (the menu, the panel's button, or the shortcut) on a translated page shows the original again, and once more the translation, at once from the translations kept. While the page is being translated, or was stopped, it goes on as before.
    • They are kept in this browser only: up to about 8 million characters, the least recently used going first, and none not used for 30 days. Nothing of a private (incognito) window is kept.
    • Keep translations to use them again under Settings in the panel turns this off, which also removes what is kept; Clear there removes it at any time, next to the number kept.
  • Keyboard shortcuts under Settings in the browser extension's panel shows the keys of its shortcuts, and Set in the browser opens the browser's page where they are set (chrome://extensions/shortcuts, or edge://extensions/shortcuts in Edge). The browser does not let an extension set its keys itself.

Changed

  • Starting the app while it runs brings its window to the front, instead of starting a second copy that loads the model again.
  • Translate this page with PLaMo also shows in the right-click menu inside frames of a page (and so in the browser's PDF viewer). It translates the whole page from there too.

Fixed

  • Ctrl+Enter (⌘Enter on macOS) in the app translates without also putting a line break into the text (#8). In the context and glossary fields it now translates too, instead of breaking the line.
  • With the source and the translation scrolling together, a pane sometimes moved by a line a moment after the scrolling stopped. The pane that had followed the other was taken for scrolled by the reader, and the other followed it back.
  • Japanese ⇄ English (auto) took a text for Japanese when it had a single kana, so an English text that quotes a Japanese word (a manual with こんにちは in an example) was translated into English, which left it as it was. A text now counts as Japanese when kana and kanji make up a tenth of its letters or more, in the app and in the browser extension's panel. Pages and PDFs went by a share already.
  • Translate this page in the browser extension's panel did nothing where the extension's access to sites is set to "on click" in the browser: the browser neither ran nor refused the request. The panel now explains, and offers to allow the extension on all sites, as it does on other tabs it may not enter.
  • Page translation in the browser extension left alone the parts of a page marked not to be translated, code blocks, and text being edited, but translated content added to them later (as a page loads more). It now leaves that alone too.

Full Changelog: v0.5.0...v0.6.0

Don't miss a new plamo-translate-desktop release

NewReleases is sending notifications on new releases.