book-ja icon indicating copy to clipboard operation
book-ja copied to clipboard

日本語検索機能

Open tamuhey opened this issue 3 years ago • 1 comments

はじめまして。Rust bookの日本語版のページを実験的に日本語検索に対応させてみました。(Chromeのみ) https://tamuhey.github.io/book-ja/

mdbookの検索機能をtinysearchとrust-icuで置き換えて作成しました。(詳細:https://qiita.com/tamurahey/items/8db20ae0b1931c96d54a)

https://doc.rust-jp.rs/book-ja/ に導入すると便利かと思うのですが、いかがでしょう?

tamuhey avatar Nov 03 '20 14:11 tamuhey

ちなみに現状以下の点に問題があります:

  • 日本語対応はChromium(V8)のみ。SafariやFirefoxでは従来どおりの検索性能(英語部分は検索できる)
    • Intl.v8BreakIteratorと同じ機能があるならば実装可能
  • 検索結果一覧の部分に本文の抜粋が出ない(未実装)

tamuhey avatar Nov 03 '20 14:11 tamuhey