emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* patch for org-freemind.el
@ 2009-11-17 16:38 Tokuya Kameshima
  2009-11-17 19:36 ` Carsten Dominik
  0 siblings, 1 reply; 4+ messages in thread
From: Tokuya Kameshima @ 2009-11-17 16:38 UTC (permalink / raw)
  To: carsten.dominik; +Cc: kames, emacs-orgmode

[-- Attachment #1: Type: Text/Plain, Size: 247 bytes --]

Hi Carsten,

This is a small patch for org-freemind.el to convert the multibyte
characters to unicode numeric character references such as "亀".
It is likely that Freemind supports the multibyte characters in this
style.

Thanks,

--Tokuya


[-- Attachment #2: org-freemind.el.patch --]
[-- Type: Text/X-Patch, Size: 393 bytes --]

--- org-freemind.el.ORIG	Mon Nov 16 23:26:36 2009
+++ org-freemind.el	Tue Nov 17 00:27:22 2009
@@ -240,7 +240,7 @@
                       ;; file is utf-8:
                       ;;
                       ;; (format "&#x%x;" (- cc ;; ?\x800))
-                      (char-to-string cc)
+                      (format "&#x%x;" (encode-char cc 'ucs))
                       ))))
     fm-str))
 

[-- Attachment #3: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-12  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-17 16:38 patch for org-freemind.el Tokuya Kameshima
2009-11-17 19:36 ` Carsten Dominik
2009-12-11 15:00   ` Tokuya Kameshima
2009-12-12  9:52     ` Carsten Dominik

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).