Commit a8d9d882 authored by Yuanle Song's avatar Yuanle Song
Browse files

v1.2.5 renamed zero-framework.el to zero.el;

split ert tests to separate files. These tests are not required in melpa
distribution.
parent d71546e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
VERSION := $(shell grep 'setq zero-version' zero-framework.el | cut -d'"' -f2)
VERSION := $(shell grep 'setq zero-version' zero.el | cut -d'"' -f2)

default: compile
pkg-el:
	sed "s/PKG_VERSION/$(VERSION)/g" zero-pkg.el.tpl > zero-pkg.el
compile:
	emacs -Q --batch -l zero-reload-all.el -f zero-rebuild -l zero-table.el -f ert-run-tests-batch
	emacs -Q --batch -l zero-reload-all.el -f zero-rebuild -l zero-table.el -l zero-table-test.el -f ert-run-tests-batch
zip: pkg-el
	git archive -o zero-el-$(VERSION).zip --prefix=zero/ HEAD
pkg: pkg-el
+2 −3
Original line number Diff line number Diff line
zero-el
Copyright (C) 2019 Yuanle Song <sylecn@gmail.com>

ibus-compute-pixel-position function in zero-framework.el is copied from
ibus.el. This function is under GPLv3 license.
Copyright (C) 2010-2012 S. Irie
ibus-compute-pixel-position function in zero.el is copied from ibus.el.
This function is under GPLv3 license.  Copyright (C) 2010-2012 S. Irie
+6 −6
Original line number Diff line number Diff line
* COMMENT -*- mode: org -*-
#+Date: 2019-09-01
Time-stamp: <2019-09-01>
Time-stamp: <2019-10-11>

* zero-el

@@ -8,9 +8,9 @@ zero-el provides zero-pinyin, an emacs pinyin input method for Chinese and
zero-framework, which is an emacs Chinese input method framework.

* File list
- zero-framework.el
- zero.el

  zero-framework source code. This provides the framework and user interface
  zero framework source code. This provides the framework and user interface
  for zero-el.

- zero-panel.el
@@ -23,7 +23,7 @@ zero-framework, which is an emacs Chinese input method framework.

- zero-pinyin.el

  pinyin input method implemented using zero-framework.el
  pinyin input method implemented using zero.el

- zero-quickdial.el

@@ -35,7 +35,7 @@ zero-framework, which is an emacs Chinese input method framework.

- zero-table.el

  serves as an example of how to use zero-framework to create new input
  serves as an example of how to use zero framework to create new input
  methods.

* introduce to zero-el
@@ -44,5 +44,5 @@ https://blog.emacsos.com/zero-el.html
* License
zero-el is under Apache License 2.0

ibus-compute-pixel-position function in zero-framework.el is under GPLv3.
ibus-compute-pixel-position function in zero.el is under GPLv3.
see NOTICE file.
+7 −3
Original line number Diff line number Diff line
* COMMENT -*- mode: org -*-
#+Date: 2019-10-08
Time-stamp: <2019-10-10>
Time-stamp: <2019-10-11>
#+STARTUP: content
* notes                                                               :entry:
** 2019-04-01 zero-framework.el a Chinese IM framework in emacs; FSM	:doc:
** 2019-04-01 zero.el a Chinese IM framework in emacs; FSM              :doc:
title was: how to write a modern im for emacs.
cd ~/lisp/elisp/zero/
- DONE can I implement it as a minor mode? yes.
- DONE can I use panel to show candidates? yes.
- zero minor mode FSM
  implemented in zero-framework.el
  implemented in zero.el

  | Imp | state            | action                                              | next state       | trigger action                                                                                          |
  |-----+------------------+-----------------------------------------------------+------------------+---------------------------------------------------------------------------------------------------------|
@@ -83,6 +83,10 @@ cd ~/lisp/elisp/zero/
* later                                                               :entry:
* current                                                             :entry:
** 
** 2019-10-11 move tests to separated files.
otherwise (require 'zero-pinyin) will fail because (require 'ert) is not in
source code.

* done                                                                :entry:
** 2019-10-09 release zero-el on melpa
melpa/CONTRIBUTING.org at master · melpa/melpa · GitHub

zero-panel-test.el

0 → 100644
+35 −0
Original line number Diff line number Diff line
;;; zero-panel-test.el --- tests for zero-panel.el -*- lexical-binding: t -*-

;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the License.
;; You may obtain a copy of the License at
;;
;;     http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.

;;; Commentary:

;;

;;; Code:

(require 'ert)
(require 'zero-panel)

(ert-deftest zero-alist-to-asv ()
  (should (equal (zero-alist-to-asv nil) '(:array :signature "{sv}")))
  (should (equal (zero-alist-to-asv
		  '(("name" "foo")
		    ("timeout" :int32 10)))
		 '(:array
		   (:dict-entry "name" (:variant "foo"))
		   (:dict-entry "timeout" (:variant :int32 10))))))

(provide 'zero-panel-test)

;;; zero-panel-test.el ends here
Loading