Skip to content

stardiviner/emacs-immersive-translate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

immersive-translate: Immersive Bilingual Translation (WIP)

Overview

This package is inspired by immersive-translate/immersive-translate .

Screenshots

elfeed

images/screenshots/elfeed.png

nov

images/screenshots/nov.png

info

images/screenshots/info.png

helpful/help

images/screenshots/help.png

Installation

You must also install karthink/gptel .

(add-to-list 'load-path "/path-to/emacs-immersive-translate/")
(require 'immersive-translate)
(add-hook 'elfeed-show-mode-hook #'immersive-translate-setup)
(add-hook 'nov-pre-html-render-hook #'immersive-translate-setup)

Usage

  • immersive-translate-buffer

    Translate the current buffer.

  • immersive-translate-paragraph

    Translate the current paragraph.

  • immersive-translate-clear

    Clear all translations.

  • immersive-translate-auto-mode

    Translate the current paraghraph automatically after Emacs is idle for immersive-translate-auto-idle seconds

Customizations

  • immersive-translate-auto-idle

    Perform translation the next time Emacs is idle for seconds. Used by immersive-translate-auto-mode.

  • immersive-translate-exclude-shr-tag

    HTML components that should not be translated. This variable applies to any buffer generated by shr.el, such as buffers in elfeed-show-mode, nov-mode and mu4e-view-mode.

  • immersive-translate-gptel-system-prompt

    System prompt used by ChatGPT.

  • immersive-translate-gptel-user-prompt

    User prompt used by ChatGPT.

  • immersive-translate-disable-predicates

    Predicates, return t when the current paragraph should not be translated. Predicate functions don’t take any arguments.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%