sokudoku

package module
v0.0.0-...-1e09d59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2016 License: MIT Imports: 9 Imported by: 0

README

Sokudoku(速読)

Spritsやspeedreadのように使える、オープンソースのターミナルアプリケーションです。

このコマンドは、日本語のテキストを読み込んで単語ごとに素早く表示します。

Install

# For install go-mecab
$ export CGO_LDFLAGS="-L/path/to/lib -lmecab -lstdc++"
$ export CGO_CFLAGS="-I/path/to/include"

# install sokudoku
$ go install github.com/umanoda/sokudoku

Basic Example

cat cat.txt | sokudoku -w 250

デフォルトでは1単語を250ミリ秒ごとに切り替えて表示します。なれるまではこの速度を使うとよいでしょう。 500ミリ秒ごとの表示ならば、かなり簡単に読み取ることが出来ます。

Controls

コマンドの実行中に以下の操作が行えます

  • [ - 表示速度を10%遅くします
  • ] - 表示速度を10%速くします
  • space - 停止します (そして、最新の2行を表示します)

Inspire

pasky / speedread

TODO

  • コマンドの実装
  • 表示単語の中央にある文字を赤く色づける
  • 赤く色づけた文字の表示位置を固定
  • 文章の区切りは決定木をつかって機械学習させたい…
    • マルコフ分布を使う

Development

デバッグモードでの実行
$ cat cat.txt | go run -tags debug cmd/sokudoku/sokudoku.go
or
$ go build -tags cmd/sokudoku/sokudoku.go

Documentation

Index

Constants

View Source
const DEBUG = false

Variables

This section is empty.

Functions

func Run

func Run(wait int) error

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL