sekka 1.5.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION.yml +1 -1
- data/emacs/concurrent.el +508 -0
- data/emacs/deferred.el +956 -0
- data/emacs/sekka.el +16 -29
- data/lib/sekka/sekkaversion.rb +1 -1
- metadata +4 -2
data/emacs/sekka.el
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
(require 'http-get)
|
28
28
|
(require 'popup)
|
29
29
|
(require 'url-parse)
|
30
|
+
(require 'concurrent)
|
30
31
|
|
31
32
|
;;;
|
32
33
|
;;;
|
@@ -513,20 +514,20 @@ non-nil で明示的に呼びだすまでGoogleIMEは起動しない。"
|
|
513
514
|
|
514
515
|
;;
|
515
516
|
;; ユーザー語彙をサーバーに登録する。
|
516
|
-
;; only-first が t の時は、1ブロック目だけを登録する
|
517
517
|
(defun sekka-register-userdict-internal (&optional only-first)
|
518
|
-
(let
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
518
|
+
(lexical-let ((str (sekka-get-jisyo-str sekka-jisyo-filename)))
|
519
|
+
(lexical-let ((str-lst (if only-first
|
520
|
+
(list (car (sekka-divide-into-few-line str)))
|
521
|
+
(sekka-divide-into-few-line str)))
|
522
|
+
(x '()))
|
523
|
+
(cc:thread 100
|
524
|
+
(while (< 0 (length str-lst))
|
525
|
+
(setq x (pop str-lst))
|
526
|
+
;;(message "Requesting to sekka server...")
|
527
|
+
(sekka-debug-print (format "register [%s]\n" x))
|
528
|
+
(lexical-let ((result (sekka-rest-request "register" `((dict . ,x)))))
|
529
|
+
(sekka-debug-print (format "register-result:%S\n" result))
|
530
|
+
(message result)))))
|
530
531
|
t))
|
531
532
|
|
532
533
|
|
@@ -561,21 +562,7 @@ non-nil で明示的に呼びだすまでGoogleIMEは起動しない。"
|
|
561
562
|
(while (< 0 (length str-lst))
|
562
563
|
(push
|
563
564
|
(concat
|
564
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
565
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
566
|
-
|
567
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
568
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
569
|
-
|
570
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
571
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
572
|
-
|
573
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
574
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
575
|
-
|
576
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
577
|
-
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n"
|
578
|
-
)
|
565
|
+
(pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" (pop str-lst) "\n" )
|
579
566
|
result))
|
580
567
|
(reverse result))
|
581
568
|
'()))
|
@@ -1650,7 +1637,7 @@ point から行頭方向に同種の文字列が続く間を漢字変換しま
|
|
1650
1637
|
(setq default-input-method "japanese-sekka")
|
1651
1638
|
|
1652
1639
|
(defconst sekka-version
|
1653
|
-
"1.5.
|
1640
|
+
"1.5.4" ;;SEKKA-VERSION
|
1654
1641
|
)
|
1655
1642
|
(defun sekka-version (&optional arg)
|
1656
1643
|
"入力モード変更"
|
data/lib/sekka/sekkaversion.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sekka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kiyoka Nishiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -198,6 +198,8 @@ files:
|
|
198
198
|
- bin/sekka-jisyo
|
199
199
|
- bin/sekka-path
|
200
200
|
- bin/sekka-server
|
201
|
+
- emacs/concurrent.el
|
202
|
+
- emacs/deferred.el
|
201
203
|
- emacs/http-cookies.el
|
202
204
|
- emacs/http-get.el
|
203
205
|
- emacs/popup.el
|