On Fri, Feb 17, 2012 at 4:29 AM, Daniel Clemente wrote: > > > El Wed, 15 Feb 2012 13:33:49 +0530 Rustom Mody va escriure: > > > Now I am exploring how I could 'zip' the two together. My requirements > are like this: > > > > Any thoughts/suggestions? > > > > I made a small markup language which lets you write it in this way: > > > ------------------------------------------- > A song in English and Sanskrit: > Thanks Daniel -- that looks useful at some stage of the processing. I was thinking of concocting something like this myself. My (current main) use is a bit different however. Its not so much hand-translation as machine-transliteration. The below elisp code will apply whatever input-method you put into rpm-input-method and put the result into a new buffer. After that pasting the two together into something palatable/presentable is the question. For now Ive used paste -d'|' and then run it through org's table system to produce html -----------------------elisp----------------------------- (defvar rpm-input-method "devanagari-itrans") (defun rpm-apply-input-method () (interactive) (let* ((inp (buffer-substring-no-properties (point-min) (point-max))) (filename (file-name-nondirectory (buffer-file-name))) (outname (concat (file-name-sans-extension filename) "-hi" (file-name-extension filename t))) (p)) (switch-to-buffer-other-frame outname) (save-excursion (save-window-excursion (setq p (point)) (erase-buffer) (setq buffer-file-coding-system 'utf-8) (set-input-method rpm-input-method t) (execute-kbd-macro inp))) (goto-char p) (other-frame 1))) (global-set-key [f4] 'rpm-apply-input-method)