[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pyim-basedict a819eed 01/32: Init commit
From: |
Feng Shu |
Subject: |
[elpa] externals/pyim-basedict a819eed 01/32: Init commit |
Date: |
Wed, 10 Mar 2021 20:56:12 -0500 (EST) |
branch: externals/pyim-basedict
commit a819eedd9404ff59979378271dcae4ce06d1a287
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
Init commit
---
.gitignore | 2 ++
README.md | 21 ++++++++++++
chinese-pyim-basedict.el | 84 +++++++++++++++++++++++++++++++++++++++++++++++
pyim-basedict.pyim.gz | Bin 0 -> 896099 bytes
4 files changed, 107 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4b7d2ca
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/*~
+/chinese-pyim-basedict.org
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..6a6295d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,21 @@
+- [chinese-pyim-basedict README](#chinese-pyim-basedict-readme)
+ - [简介](#简介)
+ - [安装和使用](#安装和使用)
+
+# chinese-pyim-basedict README<a id="orgheadline3"></a>
+
+## 简介<a id="orgheadline1"></a>
+
+Chinese-pyim-basedict 是 chinese-pyim 的默认词库,词库的内容的来源:
+
+1. libpinyin 项目内置的词库
+2. chinese-pyim 用户贡献的个人词库
+
+## 安装和使用<a id="orgheadline2"></a>
+
+1. 配置melpa源,参考:<http://melpa.org/#/getting-started>
+2. M-x package-install RET chinese-pyim-basedict RET
+3. 在emacs配置文件中(比如: ~/.emacs)添加如下代码:
+
+ (require 'chinese-pyim-basedict)
+ (chinese-pyim-basedict-enable)
diff --git a/chinese-pyim-basedict.el b/chinese-pyim-basedict.el
new file mode 100644
index 0000000..a6b236a
--- /dev/null
+++ b/chinese-pyim-basedict.el
@@ -0,0 +1,84 @@
+;;; chinese-pyim-basedict.el --- The default pinyin dict of chinese-pyim
+
+;; * Header
+;; Copyright (C) 2015 Feng Shu <tumashu@163.com>
+
+;; Author: Feng Shu <tumashu@163.com>
+;; URL: https://github.com/tumashu/chinese-pyim-basedict
+;; Version: 0.0.1
+;; Keywords: convenience, Chinese, pinyin, input-method, complete
+
+;;; License:
+
+;; This file is not part of GNU Emacs.
+
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License
+;; as published by the Free Software Foundation; either version 3
+;; of the License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
+
+;;; Commentary:
+;; * chinese-pyim-basedict README :README:doc:
+
+;; ** 简介
+;; Chinese-pyim-basedict 是 chinese-pyim 的默认词库,词库的内容的来源:
+
+;; 1. libpinyin 项目内置的词库
+;; 2. chinese-pyim 用户贡献的个人词库
+
+;; ** 安装和使用
+;; 1. 配置melpa源,参考:http://melpa.org/#/getting-started
+;; 2. M-x package-install RET chinese-pyim-basedict RET
+;; 3. 在emacs配置文件中(比如: ~/.emacs)添加如下代码:
+;; #+BEGIN_EXAMPLE
+;; (require 'chinese-pyim-basedict)
+;; (chinese-pyim-basedict-enable)
+;; #+END_EXAMPLE
+
+;;; Code:
+;; * 代码 :code:
+;; #+BEGIN_SRC emacs-lisp
+
+;;;###autoload
+(defun chinese-pyim-basedict-enable ()
+ "Add basedict to chinese-pyim."
+ (interactive)
+ (let* ((file (concat (file-name-directory
+ (locate-library "chinese-pyim-basedict.el"))
+ "pyim-basedict.pyim.gz")))
+ (when (file-exists-p file)
+ (if (featurep 'chinese-pyim)
+ (pyim-extra-dicts-add-dict
+ `(:name "Basedict-elpa"
+ :file ,file
+ :coding utf-8-unix
+ :dict-type pinyin-dict
+ :elpa t))
+ (message "Chinese-pyim 没有安装,chinese-pyim-basedict 启用失败。")))))
+
+;; Enable pyim-basedict
+(chinese-pyim-basedict-enable)
+
+;; #+END_SRC
+
+;; * Footer
+
+;; #+BEGIN_SRC emacs-lisp
+(provide 'chinese-pyim-basedict)
+
+;; Local Variables:
+;; no-byte-compile: t
+;; End:
+
+;;; chinese-pyim-basedict.el ends here
+;; #+END_SRC
diff --git a/pyim-basedict.pyim.gz b/pyim-basedict.pyim.gz
new file mode 100644
index 0000000..49e69c3
Binary files /dev/null and b/pyim-basedict.pyim.gz differ
- [elpa] branch externals/pyim-basedict created (now 79f5d2d), Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 33523f5 08/32: Add Xunchen Liu's contribute words, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 59ea301 09/32: Remove useless space, Fix #1, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 9f9e1ab 05/32: Update dict, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 82b26fe 11/32: chinese-pyim- -> pyim-, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 687a996 06/32: Update, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 3bca276 10/32: Delete useless pyim files, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict c08ec89 14/32: Use pyim-basedict.pyim, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict b2b3e2d 28/32: Add pyim-basedict-libpinyin-tarball-url and use it., Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict f13b6d2 07/32: update README, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict a819eed 01/32: Init commit,
Feng Shu <=
- [elpa] externals/pyim-basedict 7a054e6 02/32: Update README, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 45931a0 04/32: Add section: How to contribute, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict e2df78f 03/32: Update README, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict f71d0ff 15/32: Update README, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 0d00da0 27/32: Merge patch of Stefan, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 958199d 29/32: * pyim-basedict.el (pyim-extra-dicts-add-dict): declare-function., Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict bfb3cbe 30/32: Add libpinyin-*.tar.gz's url., Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 6a86a31 21/32: 回退到最初的版本,以消除合并个人词库带来的多音字污染, Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 06a191c 31/32: Update pyim-basedict.el header., Feng Shu, 2021/03/10
- [elpa] externals/pyim-basedict 7b3bbd1 24/32: remove dups, Feng Shu, 2021/03/10