From: Rustom Mody <rustompmody@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: multilingual presentation with org
Date: Fri, 17 Feb 2012 09:14:05 +0530 [thread overview]
Message-ID: <CAJ+TeofY=FtNv8s3Q1n2ud-uyP_JUSNV=AqnTBr4tvc407dRGw@mail.gmail.com> (raw)
In-Reply-To: <8739aa4c6g.wl%n142857@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
On Fri, Feb 17, 2012 at 4:29 AM, Daniel Clemente <n142857@gmail.com> 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)
[-- Attachment #2: Type: text/html, Size: 2201 bytes --]
prev parent reply other threads:[~2012-02-17 3:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <rustompmody@gmail.com>
2012-02-15 8:03 ` multilingual presentation with org Rustom Mody
2012-02-15 13:08 ` Nick Dokos
2012-02-15 14:24 ` suvayu ali
2012-02-15 18:32 ` Rustom Mody
2012-02-15 18:43 ` Rustom Mody
2012-02-15 19:02 ` brian powell
2012-02-15 19:49 ` Nick Dokos
2012-02-15 20:01 ` brian powell
2012-02-15 20:26 ` brian powell
2012-02-15 21:04 ` Nick Dokos
2012-02-15 21:48 ` Jambunathan K
2012-02-15 22:01 ` Nick Dokos
2012-02-15 22:31 ` Jambunathan K
2012-02-15 17:23 ` brian powell
2012-02-15 17:51 ` Nick Dokos
2012-02-16 22:59 ` Daniel Clemente
2012-02-17 3:44 ` Rustom Mody [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ+TeofY=FtNv8s3Q1n2ud-uyP_JUSNV=AqnTBr4tvc407dRGw@mail.gmail.com' \
--to=rustompmody@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n142857@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).