update uim-mozc to r323
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Nobuhiro Iwamatsu
11 years ago
0 | 0 | Description: Support uim framework |
1 | Origin: macuim project: http://macuim.googlecode.com/svn/trunk / r319 | |
1 | Origin: macuim project: http://macuim.googlecode.com/svn/trunk / r323 | |
2 | 2 | Forwarded: http://code.google.com/p/mozc/issues/detail?id=13 |
3 | 3 | Author: uim Project http://code.google.com/p/uim/ |
4 | Last-Update: 2012-06-20 | |
4 | Last-Update: 2013-04-12 | |
5 | 5 | |
6 | From bbd5996759344ac28497ead81c3be2b41b4f1a38 Mon Sep 17 00:00:00 2001 | |
6 | From 4ffa8f548066a4398d238df4a748cca9993bb105 Mon Sep 17 00:00:00 2001 | |
7 | 7 | From: Nobuhiro Iwamatsu <iwamatsu@debian.org> |
8 | Date: Wed, 20 Jun 2012 01:53:18 +0900 | |
9 | Subject: [PATCH] Add support uim / macuim r319 | |
8 | Date: Fri, 12 Apr 2013 12:40:01 +0900 | |
9 | Subject: [PATCH] Add support uim / macuim r323 | |
10 | 10 | |
11 | 11 | Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org> |
12 | 12 | --- |
15 | 15 | unix/uim/mozc.cc | 1185 ++++++++++++++++++++++++++++++++++++++ |
16 | 16 | unix/uim/scm/mozc-custom.scm | 390 +++++++++++++ |
17 | 17 | unix/uim/scm/mozc-key-custom.scm | 74 +++ |
18 | unix/uim/scm/mozc.scm | 557 ++++++++++++++++++ | |
18 | unix/uim/scm/mozc.scm | 560 ++++++++++++++++++ | |
19 | 19 | unix/uim/uim.gyp | 85 +++ |
20 | 7 files changed, 2838 insertions(+) | |
20 | 7 files changed, 2841 insertions(+) | |
21 | 21 | create mode 100644 unix/uim/key_translator.cc |
22 | 22 | create mode 100644 unix/uim/key_translator.h |
23 | 23 | create mode 100644 unix/uim/mozc.cc |
2254 | 2254 | + (_ "long description will be here")) |
2255 | 2255 | diff --git a/unix/uim/scm/mozc.scm b/unix/uim/scm/mozc.scm |
2256 | 2256 | new file mode 100644 |
2257 | index 0000000..4e303e6 | |
2257 | index 0000000..89a5c1c | |
2258 | 2258 | --- /dev/null |
2259 | 2259 | +++ b/unix/uim/scm/mozc.scm |
2260 | @@ -0,0 +1,557 @@ | |
2260 | @@ -0,0 +1,560 @@ | |
2261 | 2261 | +;;; |
2262 | 2262 | +;;; Copyright (c) 2010-2012 uim Project http://code.google.com/p/uim/ |
2263 | 2263 | +;;; |
2623 | 2623 | +(define mozc-context-new |
2624 | 2624 | + (lambda (id im name) |
2625 | 2625 | + (let* ((mc (mozc-context-new-internal id im)) |
2626 | + (mid (if (symbol-bound? 'mozc-lib-alloc-context) | |
2627 | + (mozc-lib-alloc-context mc) | |
2628 | + #f))) | |
2626 | + (mid (if (symbol-bound? 'mozc-lib-alloc-context) | |
2627 | + (if (= (getuid) 0) | |
2628 | + #f | |
2629 | + (mozc-lib-alloc-context mc)) | |
2630 | + (begin | |
2631 | + (uim-notify-info | |
2632 | + (N_ "libuim-mozc.so couldn't be loaded")) | |
2633 | + #f)))) | |
2629 | 2634 | + (mozc-context-set-widgets! mc mozc-widgets) |
2630 | 2635 | + (mozc-context-set-mc-id! mc mid) |
2631 | + (if (not mid) | |
2632 | + (uim-notify-info (N_ "libuim-mozc.so couldn't be loaded"))) | |
2633 | 2636 | + mc))) |
2634 | 2637 | + |
2635 | 2638 | +(define mozc-separator |
2907 | 2910 | + ], |
2908 | 2911 | +} |
2909 | 2912 | -- |
2910 | 1.7.10 | |
2913 | 1.7.10.4 | |
2911 | 2914 |