New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

日本語をスペルチェックから除外する #476

Closed
k-takata opened this Issue Oct 4, 2013 · 16 comments

Comments

Projects
None yet
5 participants
@k-takata
Member

k-takata commented Oct 4, 2013

:set spell でスペルチェックを行うと、日本語が間違いとして検出されてしまいます。
todo.txt にも以下の記載がありますが、これを何とかしたいです。

Have an option for spell checking to not mark any Chinese, Japanese or other
double-width characters as error. Or perhaps all characters above 256.
(Bill Sun) Helps a lot for mixed Asian and latin text.


  • have some way not to give spelling errors for a range of characters.
    E.g. for Chinese and other languages with specific characters for which we
    don't have a spell file. Useful when there is also text in other
    languages in the file.

とりあえずオプション化せず、東アジアの文字をスペルチェックから除外するだけのパッチ。
https://bitbucket.org/k_takata/vim-ktakata-mq/src/f77ba41c22c8f1f132c6a75936db3d85c72f4c0e/exclude-east-asian-chars-from-spell-checking.patch

@Shougo

This comment has been minimized.

Show comment
Hide comment
@Shougo

Shougo Oct 5, 2013

Member

はい。私はオプション追加に反対なので、それで良いと思います。

Member

Shougo commented Oct 5, 2013

はい。私はオプション追加に反対なので、それで良いと思います。

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Oct 7, 2013

Member

これは取り入れられそうなので早速送った方がよさそう。

Member

mattn commented Oct 7, 2013

これは取り入れられそうなので早速送った方がよさそう。

@alpaca-tc

This comment has been minimized.

Show comment
Hide comment
@alpaca-tc
Member

alpaca-tc commented Oct 7, 2013

+1

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Oct 7, 2013

Member

Warningが出ていたので、直して投げました。
https://groups.google.com/d/topic/vim_dev/svbOqepFBFE/discussion

Member

k-takata commented Oct 7, 2013

Warningが出ていたので、直して投げました。
https://groups.google.com/d/topic/vim_dev/svbOqepFBFE/discussion

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Oct 7, 2013

Member

Hmm, これはオプションにすべきという流れか。

Member

k-takata commented Oct 7, 2013

Hmm, これはオプションにすべきという流れか。

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Oct 8, 2013

Member

'spelllang' に "nocjk" を追加すると、CJK の文字をスペルチェックから除外するようにしてみました。
https://groups.google.com/d/msg/vim_dev/svbOqepFBFE/3JGfeFJy0jgJ

Member

k-takata commented Oct 8, 2013

'spelllang' に "nocjk" を追加すると、CJK の文字をスペルチェックから除外するようにしてみました。
https://groups.google.com/d/msg/vim_dev/svbOqepFBFE/3JGfeFJy0jgJ

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Oct 8, 2013

Member

"nocjk" ではなく "cjk" にすべきだと言われたので修正しました。
https://groups.google.com/d/msg/vim_dev/svbOqepFBFE/HhNqpO6H1zwJ

Member

k-takata commented Oct 8, 2013

"nocjk" ではなく "cjk" にすべきだと言われたので修正しました。
https://groups.google.com/d/msg/vim_dev/svbOqepFBFE/HhNqpO6H1zwJ

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 3, 2013

Member

todo入りしました。

-   Have an option for spell checking to not mark any Chinese, Japanese or
    other double-width characters (or CJK characters) as error.
    Helps a lot for mixed Asian and latin text.
    More general: Have some way not to give spelling errors for a range of
    characters.
Patch to add "cjk" to 'spelllang'. (Ken Takata, 2013 Oct 8, second one)
Member

k-takata commented Nov 3, 2013

todo入りしました。

-   Have an option for spell checking to not mark any Chinese, Japanese or
    other double-width characters (or CJK characters) as error.
    Helps a lot for mixed Asian and latin text.
    More general: Have some way not to give spelling errors for a range of
    characters.
Patch to add "cjk" to 'spelllang'. (Ken Takata, 2013 Oct 8, second one)

@k-takata k-takata closed this Nov 3, 2013

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 3, 2013

Member

課題はこれですね。

More general: Have some way not to give spelling errors for a range of characters.

Member

k-takata commented Nov 3, 2013

課題はこれですね。

More general: Have some way not to give spelling errors for a range of characters.

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Nov 5, 2013

Member

便利なので早く入ってほしい

Member

mattn commented Nov 5, 2013

便利なので早く入ってほしい

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 5, 2013

Member

便利なので早く入ってほしい(自画自賛)

Member

k-takata commented Nov 5, 2013

便利なので早く入ってほしい(自画自賛)

@Shougo

This comment has been minimized.

Show comment
Hide comment
@Shougo
Member

Shougo commented Nov 12, 2013

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Nov 12, 2013

Member

やったー

Member

mattn commented Nov 12, 2013

やったー

@koron

This comment has been minimized.

Show comment
Hide comment
@koron

koron Nov 12, 2013

Member

👍

Member

koron commented Nov 12, 2013

👍

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 14, 2013

Member

Vim 7.4.092で追加修正です。FEAT_MBYTEがoffの場合に不備がありましたorz
https://groups.google.com/d/topic/vim_dev/5Ee4Iw4QU_s/discussion

Member

k-takata commented Nov 14, 2013

Vim 7.4.092で追加修正です。FEAT_MBYTEがoffの場合に不備がありましたorz
https://groups.google.com/d/topic/vim_dev/5Ee4Iw4QU_s/discussion

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 14, 2013

Member

todo.txtが更新されて、

More general: Have some way not to give spelling errors for a range of characters.

も含めて削除されました。ま、いっか。

Member

k-takata commented Nov 14, 2013

todo.txtが更新されて、

More general: Have some way not to give spelling errors for a range of characters.

も含めて削除されました。ま、いっか。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment