Skip to content
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

Improve named color support for jd.css #844

Merged
merged 2 commits into from Oct 30, 2021

Conversation

ma8ma
Copy link
Collaborator

@ma8ma ma8ma commented Oct 30, 2021

Improve named color support for jd.css

スタイルシート(jd.css)によるスレビューのカスタマイズを更新してサポートする色キーワードを追加します。

  • 色のプロパティ値は大文字小文字を区別しません。
  • 色キーワードにCSS2.1, CSS3, CSS4の対応を追加します。
実装の詳細

webブラウザと異なり未知のキーワードや不正な値は変換して扱われます。

miscgtk: Use std::lower_bound() to search named color

std::find_if()による線形探索のかわりの文字列の辞書順ソートを利用した二分探索に変更して検索効率を改善します。

関連のissue: #76

@ma8ma ma8ma added the feature 機能の追加と削除 label Oct 30, 2021
@ma8ma ma8ma added this to In progress in State of JDim-v0.6.0+ via automation Oct 30, 2021
ma8ma and others added 2 commits October 30, 2021 16:29
スタイルシート(`jd.css`)によるスレビューのカスタマイズを更新して
サポートする色キーワード[*]を追加します。

- 色のプロパティ値は大文字小文字を区別しません。
- 色キーワードにCSS2.1, CSS3, CSS4の対応を追加します。

実装の詳細
webブラウザと異なり未知のキーワードや不正な値は変換して扱われます。

[*]: https://developer.mozilla.org/ja/docs/Web/CSS/color_value#color_keywords

Co-authored-by: JD Project <jd.project@acc574344b8506f1335297eaa7f74be0f7ea992b>
`std::find_if()`による線形探索のかわりの文字列の辞書順ソートを利用した
二分探索に変更して検索効率を改善します。
@ma8ma ma8ma force-pushed the improve-named-color-support-for-jdcss branch from 93ed39d to 9d59274 Compare October 30, 2021 07:29
@ma8ma ma8ma merged commit 763b77a into JDimproved:master Oct 30, 2021
State of JDim-v0.6.0+ automation moved this from In progress to Done Oct 30, 2021
@ma8ma ma8ma deleted the improve-named-color-support-for-jdcss branch October 30, 2021 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 機能の追加と削除
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant