{"id":15381109,"url":"https://github.com/tani/cl-skkserv","last_synced_at":"2025-09-12T17:34:17.914Z","repository":{"id":97698433,"uuid":"115701011","full_name":"tani/cl-skkserv","owner":"tani","description":"Common LispによるSKK辞書サーバーとその拡張","archived":false,"fork":false,"pushed_at":"2024-10-31T12:32:52.000Z","size":1885,"stargazers_count":28,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-02T00:46:31.226Z","etag":null,"topics":["common-lisp","input-method","japanese","skk","skk-dic"],"latest_commit_sha":null,"homepage":"https://tani.github.io/cl-skkserv/index.html","language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tani"}},"created_at":"2017-12-29T07:56:21.000Z","updated_at":"2025-01-10T08:57:37.000Z","dependencies_parsed_at":"2024-10-18T06:31:29.432Z","dependency_job_id":null,"html_url":"https://github.com/tani/cl-skkserv","commit_stats":{"total_commits":119,"total_committers":5,"mean_commits":23.8,"dds":0.3697478991596639,"last_synced_commit":"592314eddc6a408748fd37c042d26f6d80236693"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcl-skkserv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcl-skkserv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcl-skkserv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tani%2Fcl-skkserv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tani","download_url":"https://codeload.github.com/tani/cl-skkserv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245935628,"owners_count":20696672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["common-lisp","input-method","japanese","skk","skk-dic"],"created_at":"2024-10-01T14:25:44.121Z","updated_at":"2025-03-27T22:34:05.003Z","avatar_url":"https://github.com/tani.png","language":"Common Lisp","funding_links":["https://github.com/sponsors/tani"],"categories":[],"sub_categories":[],"readme":"# cl-skkserv\n[![GitHub](https://img.shields.io/badge/Hosted%20with-GitHub-red.svg)](https://github.com/tani/cl-skkserv/) [![Quicklisp](http://quickdocs.org/badge/cl-skkserv.svg)](http://quickdocs.org/cl-skkserv/)\n\n## 概要\n\ncl-skkserv はSKKに影響を受けた日本語入力システムです。\n既存のSKKサーバーとの互換性を保ちながらCommon Lispによるインテグレーションを可能にします。\n\ncl-skkservはSKKサーバーとその辞書機能が完全に分離しており動的に辞書機能を書き換えることが可能です。\nこれにより辞書ファイルを事前に合成しておく必要がなくなります。\n更にGoogleのCGIや他のSKKサーバーでさえ辞書として使うことができます。\n\n## 導入\n\nCommon Lisp開発ツールであるRoswellを使うことで以下のように簡単に導入できます。\n\n    $ ros install cl-skkserv # 安定版 (Quicklisp)\n    $ ros install tani/cl-skkserv # 開発版 (Nightly)\n\nNix Flake を使うことで以下のようにも実行できます。\n\n    $ nix run github:tani/cl-skkserv\n\n## 使い方\n\n### 基礎\n\n    $ skkserv start # skkservを起動する\n    $ skkserv stop  # skkservを停止する\n\n### 応用\n\n#### 設定\n\n`~/.skkservrc`で編集することができます。以下に一例を示します。\n\n```lisp\n(in-package :skkserv-user)\n\n(setf *dictionary* (make-instance 'skk-dictionary :pathname #p\"/path/to/dictionary\"))\n```\n##### Emacs\n\nEmacsで使う場合は`~/.emacs`で以下を追記してください。\n\n```\n(setq skk-server-host \"127.0.0.1\")\n(setq skk-server-portnum 1178)\n```\n\n##### Vim\n\nVimで使う場合は`~/.vimrc`で以下を追記してください。\n```\nlet g:eskk#server = {\n\\\t'host': 'localhost',\n\\\t'port': 1178,\n\\}\n```\n\n#### 辞書\n\nすべての辞書はCLOSによって管理されており、必ずDICTIONARYクラスを継承しconvertメソッドが定義されています。\nもしあなたが新しい辞書を作りたい場合はDICTIONARYクラスを継承しconvertメソッドを定義したクラスを作ることで辞書を作ることができます。\n\n以下は入力をそのまま候補として返すEcho辞書の例です。\nメソッドコンビネーションがappendになっていることに注意してください。\n\n```lisp\n(defclass echo-dictionary (dictionary) ())\n(defmethod convert append ((d echo-dictionary) (s string)) (declare (ignore d)) (list s))\n(setq *dictionary* (make-instance 'echo-dictionary))\n```\n\n例えば、SKKの辞書にEcho辞書を合成したいならSKK辞書を継承して以下のようにすることができます。\n\n```lisp\n(defclass echo-and-skk-dictionary (echo-dictionary skk-dictionary) ()) ;; skk-dicitonary はdictionaryクラスのサブクラスです。\n(setq *dictionary* (make-instance 'echo-and-skk-dictionary :pathname #p\"/path/to/dictionary\"))\n```\n\nまた、DICTIONARYクラスのサブクラスのインスタンス同士を合成するMIXED-DICTIONARYクラスを使うこともできます。\n\n```lisp\n(defvar skk (make-instance 'skk-dictionary :pathname #p\"/path/to/dictionary\"))\n(defvar echo (make-instance 'echo-dictionary))\n(setq *dictionary* (make-instance 'mixed-dictionary :dictionaries (list skk echo)))\n```\n\ncl-skkservで既に定義されている辞書としては以下のクラスがあります。\n\n- dictionary\n    - skk-text-dictionary\n        - skk-dictionary\n    - skk-lisp-dictionary\n        - skk-dictionary\n    - skk-pattern-dictionary\n        - skk-dictionary\n    - google-ime-dictionary\n    - mixed-dictionary\n    - proxy-dictionary\n\n## リファレンス\n\n各システムは[Papyrus](https://github.com/tani/papyrus/)によって文芸的プログラミングで作られています。\n各ページへの目次は以下の通りです。\n\n- [ルート](https://tani.github.io/cl-skkserv/index.html)\n    - [コア機能](https://tani.github.io/cl-skkserv/index.html?source=core/index.md)\n    - [SKK辞書](https://tani.github.io/cl-skkserv/index.html?source=skk/index.md)\n    - [Google日本語入力辞書](https://tani.github.io/cl-skkserv/index.html?source=google-ime/index.md)\n    - [プロキシー辞書](https://tani.github.io/cl-skkserv/index.html?source=proxy/index.md)\n    - [複合辞書](https://tani.github.io/cl-skkserv/index.html?source=mixed/index.md)\n    - [設定ファイル](https://tani.github.io/cl-skkserv/index.html?source=user/index.md)\n\n## ライセンス\n\nGPL第三版及びそれ以降のライセンスのもとで公開された自由ソフトウェアです。\nライセンスドキュメントは[こちら](https://tani.github.io/cl-skkserv/index.html?source=LICENSE.md)。\n\n## 著作権表示\n\nCopyright (c) 2017 TANIGUCHI Masaya ALL Rights Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fcl-skkserv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftani%2Fcl-skkserv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftani%2Fcl-skkserv/lists"}