shithub: ktrans

Download patch

ref: b0303e391e2d60e0afd89a9c64ebfcb56cc74dbe
parent: 030d8259f711b8f599ffb073885cca85981c50c7
author: Romi Hervier <r@sansfontieres.com>
date: Wed Jun 29 11:31:15 EDT 2022

Ctrl-o replaces Ctrl-g for greek transliteration.

It was quite anoying on 9front’s sam.

--- a/README.md
+++ b/README.md
@@ -18,7 +18,8 @@
 ## Changes
 
 - `$jisho` replaces `$KTJISHO`
-- Ctrl+t replaces Ctrl+e
+- Ctrl+t replaces Ctrl+e to stop transliteration (now you can go at the end of a line)
+- Ctrl+o replaces Ctrl+g to transliterate Greek alphabet (now you can switch between a file and a command window in sam)
 
 
 ## Usage
@@ -25,7 +26,7 @@
 
 Run `mk install` and add start your next rio session by adding `ktrans` right before rio in your `$home/lib/profile`. The dictionnary to translate kana to kanji is expected to be `$home/lib/kanji.dict` but you can define a custom location with the environment variable `$jisho`.
 
-Your next rio session will start with ktrans enabled. Refer to Kenji’s README for more usage informations, but keep in mind the list of changes. If Shift+Spaced doesn’t work for kanji translation, try Ctrl+\.
+Your next rio session will start with ktrans enabled. Refer to Kenji’s README for more usage informations, but keep in mind the list of changes. If Shift+Spaced doesn’t work for kanji translation, try Ctrl+\\.
 
 
 ## Custom dictionnary
--- a/main.c
+++ b/main.c
@@ -334,7 +334,7 @@
 		llen = 0;
 		return 1;
 	}
-	if (c=='') {               /* ^g (Greek mode ) */
+	if (c=='') {               /* ^o (Greek mode ) */
 		natural = 0;
 		table = greek;
 		llen = 0;