Translating Gopher text with Chawan Tue, 04 Nov 2025 22:47:40 +0100 +-----------------------------------------------------------------+ I was wondering what I was missing in LFA's spanish section of his gopher hole, and now I know. I downloaded translate-shell: wget git.io/trans chmod +x ./trans I moved trans to .local/bin which is in my PATH, and added the following line in ~/.config/chawan/config.toml [page] gt = 'pager.externFilterSource(`trans :en -b`, null, null)' Now any texts in gopher holes can be translated by hitting 'gt' in Chawan. ## Lynx If you are using Lynx, you can use translate-shell too: Create the file lynx-translate-handler and make it executable: ------------- #!/usr/bin/env bash if curl --head --silent "$1" > /dev/null 2>&1; then curl -s "$1" | trans :en -b | lynx -dump -stdin -force_html else notify-send "Invalid URL $1" fi ------------- add this line in ~/.config/lynx/lynx.cfg EXTERNAL_MENU::Translate:lynx-translate-handler %s:TRUE To translate a page or url in lynx, hit , or . and select from the menu. NOTE: It doesn't work as well as with Chawan, perhaps an improvement is possible. ␌