emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rustom Mody <rustompmody@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: org-odt-export-to-odt: hide text
Date: Sun, 7 Jul 2013 12:53:19 +0530	[thread overview]
Message-ID: <CAJ+TeocBHveqHRBNcpMXVpOtdjmXABqynfb7RbDMXcGV6Y_k2w@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 781 bytes --]

Hi,
I have written something that may be useful to some and is somewhat
complementary to what is being discussed here.
[Well 'written' is not quite accurate  -- Nick and Stefan helped me get it
together]
Its a transliteration system that Ive used with the itrans devanagari (ie
Hindi/Sanskrit etc)

I expect that in any language in which
1. there is a somewhat accepted standard roman form
2. that roman form is available as an emacs input method
3. the roman is easier to write but painful (for natives of course!!) to
read

this will be useful

ie make a buffer (needs to be visiting a file) containing
OM
and call rpm-apply-iinput-method
and you should get a buffer containing
ॐ

Regards
Rusi

-- 
http://www.the-magus.in
http://blog.languager.org

[-- Attachment #1.2: Type: text/html, Size: 981 bytes --]

[-- Attachment #2: apply-input-method.el --]
[-- Type: application/octet-stream, Size: 747 bytes --]


(setq rpm-input-method "devanagari-itrans")

(defun rpm-apply-input-method ()
  "buffer to buffer apply input method with buffering windowing stuff mixed up"
  (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 buffer-file-coding-system 'utf-8)
	(set-input-method rpm-input-method t)
	(setq p (point))
	(erase-buffer)
	(execute-kbd-macro inp)))
    (goto-char p)
    (other-frame 1)))

(global-set-key [f4] 'rpm-apply-input-method)

         reply	other threads:[~2013-07-07  7:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-05 12:17 org-odt-export-to-odt: hide text Uwe Brauer
2013-07-05 17:07 ` Eric S Fraga
2013-07-05 17:22   ` Uwe Brauer
2013-07-05 17:40     ` Eric S Fraga
2013-07-05 19:26       ` Uwe Brauer
2013-07-06  7:13         ` Suvayu Ali
2013-07-06  8:37           ` Uwe Brauer
2013-07-06 11:03             ` Suvayu Ali
2013-07-06 16:48               ` Daniel Clemente
2013-07-07  3:32                 ` Eric Abrahamsen
2013-07-07  8:04                   ` Suvayu Ali
2013-07-07  8:48                   ` Daniel Clemente
2013-07-06  9:52           ` Christian Moe
2013-07-07  7:23 ` Rustom Mody [this message]
2013-07-07  8:05   ` Suvayu Ali

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+TeocBHveqHRBNcpMXVpOtdjmXABqynfb7RbDMXcGV6Y_k2w@mail.gmail.com \
    --to=rustompmody@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).