web標準コンテンツ作成支援ツール npirka‘r o - …...© 2009 the seasar foundation and...
TRANSCRIPT
© 2009 The Seasar Foundation and the others, All rights reserved.
The Ashikunep Kotan
株式会社グルージェント 佐々木久禎
Web標準コンテンツ作成支援ツール
「Pirka‘r (ピリカル) 」
© 2009 The Seasar Foundation and the others, All rights reserved.
Pirka’rを取り巻く人々
2
利用者
Pirka’rの中の人
データ
WebデザイナWebアプリ開発者
© 2009 The Seasar Foundation and the others, All rights reserved.
Pirka’r
•利用者編
•Pirka’rの中の人編
•マニア編
3
© 2009 The Seasar Foundation and the others, All rights reserved.4
名前の意味
目的
Pirka‘rとは?
© 2009 The Seasar Foundation and the others, All rights reserved.
Pirka'r(ピリカル)とは?
5
アイヌ語で「良い道」という意味
情報処理推進機構(IPA)のオープンソフトウェア利用
促進事業「互換性の高いWebコンテンツ作成を支援す
るツールの開発」として採択
© 2009 The Seasar Foundation and the others, All rights reserved.6
互換性
対象とするWebコンテンツ
互換性の高いWebコンテンツとは?
© 2009 The Seasar Foundation and the others, All rights reserved.
互換性の高いWebコンテンツとは?
互換性が高い 特定ブラウザに依存しないこと
「Web標準」であること(W3C準拠)
互換性問題が発生するWebコンテンツ HTML
CSS
JavaScript
7
© 2009 The Seasar Foundation and the others, All rights reserved.8
機能
デモ
利用構成
利用者編
© 2009 The Seasar Foundation and the others, All rights reserved.9
ブラウザ互換性チェック
標準準拠チェック
マルチブラウザビュー自動レンダリング
多機能エディタ
Webコンテンツ収集
機能
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェック
10
Internet Explorer は Microsoft Corporation の登録商標です。
Firefox は Mozilla Foundation の登録商標です。
Safari は Apple Computer, Inc. の商標です。
Safari™
Firefox®
Internet Explorer ®
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェック
11
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェック(裏側)
12
ブラウザ互換性
チェックデータ
ブラウザ互換性チェック
アプリケーション
ブラウザ互換性
チェックデータ
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェック(裏側)
13
ブラウザ互換性
チェックデータ
ブラウザ互換性チェック
アプリケーション
ブラウザ互換性
チェックデータ
株式会社三菱総合研究所が
初期データを作成
その数・・・100件
© 2009 The Seasar Foundation and the others, All rights reserved.
標準準拠チェック
14
W3C CSS Validator
© 2009 The Seasar Foundation and the others, All rights reserved.
Internet
Explorer
Firefox
Safari
マルチブラウザビュー
15
注)IE、Firefox、Safariを表示できるのはWindows版のみです
© 2009 The Seasar Foundation and the others, All rights reserved.
編集 保存
表示
自動レンダリング
16
© 2009 The Seasar Foundation and the others, All rights reserved.
多機能エディタ
17
シンタックス
ハイライト
コード
補完
構文
チェック
© 2009 The Seasar Foundation and the others, All rights reserved.
シンタックスハイライト(多機能エディタ)
18
シンタックス
ハイライト
コード
補完
構文
チェック
HTML
CSS JavaScript
© 2009 The Seasar Foundation and the others, All rights reserved.
シンタックス
ハイライト
コード
補完
構文
チェック
コード補完(多機能エディタ)
19
© 2009 The Seasar Foundation and the others, All rights reserved.
シンタックス
ハイライト
コード
補完
構文
チェック
構文チェック(多機能エディタ)
20
© 2009 The Seasar Foundation and the others, All rights reserved.
画面
21
ブラウザ表示
エディタ表示
問題内容表示
コンテンツ表示
© 2009 The Seasar Foundation and the others, All rights reserved.
Webコンテンツ収集
22
http://~
Web
コンテンツ
© 2009 The Seasar Foundation and the others, All rights reserved.23
デモ
ブラウザ互換性チェック
標準準拠チェック
マルチブラウザビュー自動レンダリング
多機能エディタ
Webコンテンツ収集
© 2009 The Seasar Foundation and the others, All rights reserved.24
Webコンテンツ制作
利用シーン
© 2009 The Seasar Foundation and the others, All rights reserved.
利用シーン[作成]
25
© 2009 The Seasar Foundation and the others, All rights reserved.
利用シーン[確認]
26
© 2009 The Seasar Foundation and the others, All rights reserved.
デモ環境解説
27
利用構成
© 2009 The Seasar Foundation and the others, All rights reserved.
デモ環境解説
28
クライアント サーバ
ブラウザ互換性
チェックデータ
ブラウザ互換性チェック
アプリケーション
© 2009 The Seasar Foundation and the others, All rights reserved.
2009年3月14日
サイト公開
2009年5月
限定公開(予定)
2009年9月
一般公開
2010年X月
改良版公開
ロードマップ
29
© 2009 The Seasar Foundation and the others, All rights reserved.
公開サイト
http://pirkar.ashikunep.org/Pirka'rのダウンロードはできませんm(_ _)m
30
Coming Sooooon!!
© 2009 The Seasar Foundation and the others, All rights reserved.
公開サイト
サイトデザインは合同会社CGFM
・・・カネウチカズコさん
カネウチさんと言えば…
ねこび~ん by カネウチカズコ is licensed under a Creative Commons 表示-継承 2.1 日本 License.
ねこび~ん
31
© 2009 The Seasar Foundation and the others, All rights reserved.32
全体構成
ブラウザ互換性チェックデータ
Pirka’rの中の人編
© 2009 The Seasar Foundation and the others, All rights reserved.33
配信サーバ
互換性チェックサーバ
クライアント
全体構成
© 2009 The Seasar Foundation and the others, All rights reserved.
Pirka’r全体構成
34
利用者
データ管理者
ブラウザ互換性
チェックデータ
利用者
利用者
互換性チェックアプリ
互換性チェックアプリ
互換性チェックアプリ
© 2009 The Seasar Foundation and the others, All rights reserved.35
項目
スクリプト
ブラウザ互換性チェックデータ
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェックデータ
ブラウザ互換性チェックデータ項目
• 検証名
• 影響度
FATAL - 内容が理解できない(コンテンツ非表示など)
ERROR - なんとか内容が理解できる(レイアウト崩れなど)
WARNING - 内容は理解できる(色が違うなど)
• 詳細情報
• 修正情報
• スクリプト
タグや属性など問題の記述を検出するスクリプト。
JavaScriptで記述する。
• サンプルデータ
スクリプトが正しいか検証するためのサンプル。
36
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェックデータ
例)blinkタグの検出
• 検証名
blinkタグ
• 影響度
WARNING
• 詳細情報
「<blink>はタグによって囲まれた部分を点滅させるNetscape の
独自要素です。Firefoxは対応していますが・・・」
• 修正情報
「Internet Explorer やSafari では動作しないため削除すべきで
す。」
37
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェックデータ
例)blinkタグの検出
スクリプト
38
(function() {
throw document.getElementsByTagName("blink");
})();
互換性問題となるオブジェクトを例外として投げる。
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェックデータ
例)blinkタグの検出
サンプルデータ
39
<html>
<body>
<div>点滅なし</div>
</body>
</html>
<html>
<body>
<blink>点滅あり</blink>
</body>
</html>
例外を検出しない例外を検出する
© 2009 The Seasar Foundation and the others, All rights reserved.
ブラウザ互換性チェックデータ
40
© 2009 The Seasar Foundation and the others, All rights reserved.
募集
41
利用者
ブラウザ互換性
チェックデータ
互換性チェックアプリ
互換性チェックアプリ
互換性チェックアプリ
管理者
管理者
© 2009 The Seasar Foundation and the others, All rights reserved.42
実装技術
マニア編
© 2009 The Seasar Foundation and the others, All rights reserved.43
クライアント
互換性チェックサーバ
実装技術
© 2009 The Seasar Foundation and the others, All rights reserved.
クライアント実装技術
Eclipse RCP(Rich Client Platform)で実装 単体アプリにするため、コンテキストメニューとか
いろいろ隠蔽
ブラウザ表示のためにWinネイティブなAPIを実装(SWT.COMをカスタマイズしてJNIで実装)
詳しくは
外部ツールとの連携 W3C CSS Validator [標準準拠チェック]
(http://jigsaw.w3.org/css-validator/)
GNU Wget [Webコンテンツ収集](http://www.gnu.org/software/wget/)
44
こげつきません 検索
© 2009 The Seasar Foundation and the others, All rights reserved.
互換性チェック クラサバ連携実装技術
Yukara Wisdom(※)を利用 ブラウザ互換性チェックのクラサバ通信はWisdomを
カスタマイズ
ブラウザ互換性チェック用のエンジンを実装
45
※ Yukara Wisdom:Yukaraのサブプロジェクト。開発の叡智を蓄積し、容易に利用できるようにする。
http://yukara.ashikunep.org/wisdom/
© 2009 The Seasar Foundation and the others, All rights reserved.
互換性チェックサーバ実装技術
• ブラウザ互換性チェック用のAPI実装ブラウザ互換性チェックスクリプト(JavaScript)から対象WebコンテンツにアクセスするAPIを作成
46
CSS• 指定プロパティを含んだスタイルオブジェクトを取得
document.styleSheets.properties.color
• 指定セレクタを含んだスタイルオブジェクトを取得
document.styleSheets.selectors.タグ 例).selectors.h1
document.styleSheets.selectors[“#ID”]
document.styleSheets.selectors[“.class名”]
• 指定メディアを含んだスタイルオブジェクトを取得document.styleSheets.medias.screen
JavaScript• 指定条件にマッチした行情報オブジェクトを取得
document.scripts.matched(正規表現, bool)
// 第2引数はコメントや文字列を検索対象から除くかどうか
© 2009 The Seasar Foundation and the others, All rights reserved.
Irenkaと技術の共有(予定)
Irenka – Javaソースコードを対象
←Pirka’rのHTML,CSS,JavaScriptの解析技術
47
※ Irenka:Ashikunepのプロジェクト。Javaソースのコンパイル時にユーザー実装エージェントの実行を行う。
IPAの2007年度第Ⅱ期 未踏ソフトウェア創造事業で採択され、開発者の
荒川氏(株式会社グルージェント)は天才プログラマーに認定。
http://irenka.ashikunep.org/
Irenka2.0(^^;
© 2009 The Seasar Foundation and the others, All rights reserved.
リリース予定
2009年5月限定公開(予定)
2009年9月一般公開
乞うご期待!
48
© 2009 The Seasar Foundation and the others, All rights reserved.
ご清聴ありがとうございました
Web標準コンテンツ作成支援ツール
「Pirka'r」