Mozilla SVG Project Frequently Asked Questions

Mozilla SVG プロジェクト FAQ

This FAQ was originally drawn up after searching through the newsgroup netscape.public.mozilla.svg and the discussion forums at forums.mozillazine.org to see what sort of questions were being asked about SVG in Mozilla. If you have a question you think should be added to this page please let us know.

この FAQ は元々、 Mozilla の SVG についてどんな種類の質問がされていたかを知るため、 netscape.public.mozilla.svg ニュースグループと forums.mozillazine.org のディスカッションフォーラムをサーチした後、書き下ろされました。このページに追加すべきだと思う質問があれば、 お知らせください[訳注 : 英語で]

Does Mozilla support SVG?

Mozilla は SVG をサポートしていますか ?

The official milestones released on mozilla.org don't include support for SVG. At least not yet. If everything goes well, we hope to have SVG support included in Mozilla Firefox 1.1. There will be a user configuration preference (pref) to allow the support to be turned on or off, and our intention is that it should be turned on by default. To keep up to date with the progress being made on getting SVG support included in the official builds you can CC yourself to bug 122092.

mozilla.org からリリースされている公式マイルストーンには、 SVG サポートは含まれていません。少なくともまだ今のところは。全てうまくいけば、 Mozilla Firefox 1.1 に SVG サポートが含まれると期待しています。SVG サポートをオン・オフできる優先的ユーザ設定 (pref) があることでしょうし、デフォルトでオンになっているのが私たちの目標です。公式ビルドに含まれる SVG サポートを入手するには、作成されている進捗を最新に保つために、 bug 122092 にあなたの CC を追加してください。

Until SVG support is included in the official mozilla.org releases, you can download SVG enabled builds from the build/download page. Please help test the SVG implementation by using these builds as much as possible. If you have any SVG related problems, or if you find what you suspect to be a bug in our SVG implementation, please let us know.

公式の mozilla.org リリースに SVG サポートが含まれるまで、 ビルド/ダウンロードのページ から SVG が有効になっているビルドをダウンロードすることができます。可能ならこのビルドを使って SVG の実装のテストを手伝ってください。 SVG に関連したどんな問題でも、または SVG の実装にバグがあると疑うものがあるなら、どうぞ。 お知らせください

Why isn't SVG enabled in the milestones yet?

どうしてまだマイルストーンで SVG が有効になっていないのですか ?

There are various reasons for this. Probably the biggest issue is that every single line of the SVG code must be properly reviewed and approved before it can be included in the official releases. This is a major task that hasn't been finished yet. Another issue has been the licencing of Libart which has been our cross-platform backend almost since the beginning of the SVG project. Unfortunately Libart's licence is incompatible with Mozilla's tri-licence which prevents us from distributing it with Mozilla. Recently the graphics library cairo has become mature enough for us to consider dropping Libart in its favour. One final problem has been updating the tinderbox that build the official mozilla.org releases so that they can build SVG. This is turning out to be quite a lot of work.

これにはいくつか理由があります。おそらく一番の問題になっているものは、公式リリースに含める前に SVG コードの全ての行を 1 行ずつ適切にレビューして承認しなければならない、ということです。これはまだ完了していない主要な仕事です。もう一つの問題は、 SVG プロジェクトのほぼ開始以来、クロスプラットフォームのバックエンドである Libart のライセンスがあります。残念ながら Libart のライセンスは Mozilla のトリプルライセンスとは互換性がなく、 Mozilla とともに配布することができません。最近はグラフィックスライブラリ cairo が十分が成熟してきましたので、その好意で Libart をやめることを考えています。最後の問題は、 SVG をビルドするために公式 mozilla.org リリースをビルドするための tinderbox をアップデートすることです。これにはかなりたくさんの労働が必要になることが判っています。

Where can I get SVG enabled versions of Mozilla?

Mozilla の SVG 有効バージョンはどこで入手できるのですか ?

There are links to, and information on, SVG enabled builds in the build/download page. Please use these builds as much as possible and give us your feedback. If you're sure you've found a bug, please search the SVG Component of Mozilla to see if the issue has already been reported, and if you can't find a matching bug, please file a new report.

ビルド/ダウンロードのページ に SVG 有効ビルドへのリンクおよび情報があります。できる限りこのビルドを使用して、 フィードバックをください。 バグを見つけたと思った場合は、その問題がすでに報告されているかどうかを知るために Mozilla の SVG Component を検索してください。そして該当するバグを発見できなかったら、新しい報告を送ってください。

Why doen't my SVG enabled build recognise SVG?

どうして私の SVG 有効ビルドは SVG を認識しないのですか ?

If you've downloaded an SVG enabled build of Mozilla/Mozilla Firefox note that you still need to turn SVG on in your profile's configuration preferences. If the browser asks you to install a plug-in for the MIME-type 'image/svg+xml' then you probably haven't done this. Set the 'svg.enabled' pref to 'true' and try again. If this doesn't solve things, check out the answers to some of the other questions on this page.

Mozilla/Mozilla Firefox の SVG 有効ビルドをダウンロードしたのであれば、プロファイルの設定ファイルで SVG をオンにする必要があることに注意してください。ブラウザが MIME-type 'image/svg+xml' 用のプラグインをインストールするか訊いてきたら、そのときはこれは行わないでください。 'svg.enabled' を 'true' に設定 して、再トライしてください。これで解決されない場合は、このページの他の質問のどれかの回答をチェックしてみてください。

What is the status of the SVG implementation?

SVG 実装の状況はどうですか ?

The information we have on the current status of Mozilla's SVG implementation is maintained on the status page. If this doesn't provide you with the information you need please let us know and we'll do our best to provide it. You can also try searching the SVG Component of Mozilla for bugs on issues of interest to you.

Mozilla の SVG 実装の現在の状況についての情報は、 ステータスページ でメンテナンスされています。必要な情報がないここに場合は、 お知らせください。提供するよう努力します。 興味のあるバグについては、 Mozilla の SVG Component の検索を行うのもいいことです。

Is/will native SVG support be available as an extension?

拡張としてネイティブな SVG サポートは利用できますか/できるようになりますか ?

That's an easy one. No. The SVG code is far too integrated into Gecko for it to be possible to separate out to create an extension. Probably the CSS parsing and style system is where we're most tightly integrated. Other than that it's mainly the reluctance to freeze internal APIs that would be needed to make layout pluggable.

その答えは簡単です。いいえ。 SVG コードはあまりに深く Gecko に統合されているので、拡張として作るために分離することができません。多分 CSS 構文解析とスタイルシステムが最も緊密に統合されている箇所です。内部 API を凍結するのはとても不本意であるとともに、レイアウトを取り外し可能 (pluggable) にする必要があるでしょう。

How does Mozilla's SVG implementation compare to Adobe's?

Adobe のものと比べて Mozilla の SVG 実装はどうですか ?

Mozilla's native implementation is much less complete than Adobe's in general. There are major features such as filters and SMIL based animation that have still to be implemented. However, Mozilla's implementation already supports some things that Adobe's lacks, particularly parts of the XML and SVG DOMs. For example we support SVG exceptions and transform objects.

Mozilla のネイティブ実装は一般に Adobe のものよりずっと完全からは遠いです。まだ実装する必要のある、フィルタや SMIL ベースのアニメーションのような主要な機能が残っています。でも、 Mozilla の実装では Adobe に欠けているもの、特に XML や SVG DOM の部分、がいくつか既にサポートされています。例えば SVG 例外やオブジェクトの変形をサポートしています。

Does Mozilla/Mozilla Firefox work with Adobe's SVG Viewer?

Adobe の SVG Viewer は Mozilla/Mozilla Firefox で動きますか ?

The SVG project is about Mozilla's native implementation of SVG, not Adobe/Corel/whoever's plug-in. However, we might as well answer this question to save you searching for this information elsewhere. ASV3 does not work with recent versions of Mozilla. In fact, using it will most probably cause your browser to hang or crash. Apparently it is intended that ASV6 will support Mozilla, and there are many reports of success with the beta version. However you should be aware that as well as being beta it uses interfaces that aren't frozen, so don't be too surprised if it bites you.

SVG プロジェクトは Mozilla の SVG ネイティブ実装であって、 Adobe/Corel/他のだれかのプラグインではありません。でも、あなたがどこかでこの情報を検索する時間を節約するために、この質問に答えることもできます。 ASV3 は Mozilla の最近のバージョンでは動きません。実際それを使用すると、きっとブラウザをハングアップさせるかクラッシュさせることになります。明らかに ASV6 は Mozilla をサポートすることを意図していますし、そのβバージョンでは成功したという報告がたくさんあります。しかしそれがβであることと同様に、凍結していないインターフェイスを使用していることに気をつける必要があります。なので、噛みつかれても驚かないでください。

How do you install Adobe's SVG Viewer in Mozilla/Mozilla Firefox?

どうやって Adobe の SVG Viewer を Mozilla/Mozilla Firefox にインストールするの ?

See these install instructions on mozdev.org. It's also useful to know that you can check whether Mozilla has recognised your plug-ins by typing 'about:plugins' into your address bar (linking to that doesn't work for security reasons).

mozdev.org の これらのインストールの説明 を見てください。アドレスバーに 'about:plugins' をタイプすると Mozilla がプラグインを認識しているかどうかをチェックすることができる、ということを知っておくのも役に立ちます (これへのリンクはセキュリティ上の理由のために動きません)。

Does Mozilla/Mozilla Firefox work with Corel's SVG plug-in?

Corel の SVG プラグインは Mozilla/Mozilla Firefox で動きますか ?

There are reports that it does, but that it's much slower than the Adobe plug-in. See this document for information on how to install it.

動作したという報告はありますが、 Adobe のプラグインよりずっと遅いそうです。インストール方法については、 このドキュメント を見てください。

Can you have both native SVG support and an SVG plug-in installed?

ネイティブ SVG サポートと SVG プラグインのインストールの両方を持つことはできますか ?

Yes. If the plug-in works with the equivalent non-SVG version of Mozilla, then it should also work in the SVG enabled version. To be able to use it, you must make sure the svg.enabled pref is set to false. This will disable the native SVG support.

はい。 Mozilla の非 SVG 等価バージョンでプラグインが動作するなら、 SVG 有効バージョンでも動作するはずです。使用できるようにするには、 svg.enabled 設定が false になっていることを確認しなければなりません。ネイティブ SVG サポートを無効にします。

Does the <embed> tag support SVG documents?

<embed> タグは SVG 文書をサポートしていますか ?

Yes. As of 2004-11-11, builds with native SVG support will use the native support to render SVG documents that are embeded by reference into an HTML document using the <embed> tag. Note that this capability was added to support legacy content. The <object> tag should be used in preference to the <embed> tag in new content whenever possible.

はい。 2004-11-11 現在、ネイティブ SVG サポート付きのビルドはネイティブサポートを使用して、 HTML 文書中に <embed> タグを使って参照で埋め込まれる SVG 文書を描画します。この能力はレガシーな内容をサポートするために追加された、ということに注意してください。 可能なときはいつでも、新しい内容では <embed> タグに優先して <object> タグを使用する必要があります。

The first milestone builds that will have this support will be SVG enabled builds of Firefox 1.1.

このサポートを含む最初のマイルストーンビルドは、 Firefox 1.1 の SVG 有効ビルドになる予定です。

Why does Mozilla show the source code instead of displaying my SVG?

どうして SVG を描画しないで Mozilla はソースコードを表示するのでしょうか ?

There are two possible reasons for this. If there is a grey area above the source that says something like "This XML file does not appear to have any style information associated with it", then your problem is probably that you haven't given your root <svg> tag an 'xmlns' attribute or that the value you gave it contains an error. The correct string is "http://www.w3.org/2000/svg". If you don't see a grey area above the source code then the problem is most likely that the server your SVG files are on hasn't been configured to send the correct MIME-type for files that have the file name extension ".svg" or ".svgz". Unless this has been set up, your server will probably send the value "text/plain" for the Content-Type HTTP header instead of "image/svg+xml". Mozilla quite properly respects what the server says and displays your files as text. Note that this is not a bug! Failing to respect the MIME-type sent by the server has been a source of security holes in Microsoft Internet Explorer, and Mozilla will not be changing this behaviour.

この理由には 2 つの可能性があります。ソースの上部に灰色の領域があって、「この XML ファイルには関連するスタイル情報がなく表示されません」 ("This XML file does not appear to have any style information associated with it") というようなことを言っているのであれば、問題は多分ルートの <svg> タグに 'xmlns' 属性を与えていないか、または与えた値がエラーになっているかです。正しい文字列は "http://www.w3.org/2000/svg" です。ソースコードの上部に灰色の領域がなければ、問題はほぼ SVG ファイルを置いているサーバが、拡張子が ".svg" や ".svgz" のファイル名のファイルに対して正しい MIME-type を送るように設定されていないことです。この設定を行わなければ、サーバはおそらく Content-Type HTTP ヘッダに "image/svg+xml" ではなく "text/plain" という値を送るでしょう。 Mozilla は非常に正確にサーバの応答を尊重して、ファイルをテキストとして表示します。これはバグではないことに注意! サーバに送られた MIME-type を尊重しないことが Microsoft Internet Explorer のセキュリティホールの源です。 Mozilla はこの振るまいを変更しないでしょう。

Why aren't the scripts in my SVG document working?

どうして SVG 文書のスクリプトが動作しないのでしょう ?

There is a good chance you're experiencing this problem because Mozilla doesn't recognise 'text/ecmascript' as a valid MIME-type. As a result, Mozilla will ignore scripts inserted into a document using a <script> tag if the tag's 'type' attribute is set to the value 'text/ecmascript'. The reason Mozilla doesn't recognise 'text/ecmascript' is political (the issue is being tracked by bug 62485 and bug 267953 for those who are interested).

Mozilla は妥当な MIME-type として 'text/ecmascript' を認識しないため、この問題を経験している良い機会です。結果としては、タグの 'type' 属性が 'text/ecmascript' という値に設定されているのなら、文書中に <script> タグを使って挿入されたスクリプトを Mozilla は無視します。 Mozilla が 'text/ecmascript' を認識しない理由は政治的なものです (この問題は bug 62485bug 267953 で興味のある人のために追跡されています)。

So what should you do to ensure that the JavaScript scripts in your SVG documents will run in Mozilla as well as the other major SVG viewers out there? Well Mozilla currently recognises the MIME-types 'application/x-javascript' and 'text/javascript', whereas Adobe's SVG Viewer recognises 'text/ecmascript', 'text/javascript' and 'text/jscript', and Batik only recognises 'text/ecmascript'. It seems there is no value that will work for all three. Fortunately, you do not need to specify a 'type' attribute for the SVG <script> tag. If you simply omit the attribute, all three viewers will assume your script is JavaScript. Until the MIME-type issue is resolved (probably years from now), this is what we recommend you do.

それでは他の主要な SVG ビュワーと同様に、 Mozilla で SVG 文書中の JavaScript が走ることを保証するには他に何をする必要があるのでしょうか ? Mozilla は現在 'application/x-javascript' と 'text/javascript' の MIME-type を認識しています。一方 Adobe の SVG Viewer は 'text/ecmascript'、 'text/javascript'、 'text/jscript' を認識していて、 Batik は 'text/ecmascript' だけを認識しています。 3 つ全部で機能する値はないようです。運のいいことに、 SVG の <script> タグでは 'type' 属性を指定する必要がありません。単に属性を取り除けば、 3 つのビュワー全てでスクリプトは JavaScript であると仮定されます。 MIME-type 問題が解決されるまで (おそらくは数年)、これがあなたに推薦する方法です。

What can I do to help the SVG project?

何か SVG プロジェクトで手伝えることはありますか ?

Okay so maybe this isn't such a frequently asked question, but if it was, just think how much further on with our SVG implementation we could be! We're always looking for help from anyone willing to lend a hand. If you're a C++ programmer interested in working on the SVG implementation, please contact us and we'll be happy to help you get involved. Alternatively, if you're an SVG user you can help by testing the SVG enabled nightlies and filing bugs with minimal testcases whenever you encounter a problem. If you can't do either of these things you should still feel free to ask us friendly questions and give us constructive feedback.

オーケー、これは多分そんなにはよくある質問ではありません。でもそうなら、SVG 実装で私たちがどれくらい前進できたかちょっと考えてみてください。私たちは常に、手を貸してくれる人からの助けを求め続けています。もしあなたが C++ プログラマで SVG 実装の作業に興味があるなら、 私たちにコンタクトを取ってください。よろこんであなたが関わる手助けを行います。あるいはあなたが SVG ユーザであれば、 SVG 有効ナイトリーをテストして問題に出会ったときには最小テストケースでバグを整理することで手伝うことができます。このどちらもできなくてもまだ気兼ねなく、私たちにフレンドリな質問を送って建設的なフィードバックを与えてください。

Who's currently working on what?

現在誰が何について作業しているのですか ?

Other than reviewing patches and fixing the occassional bug, Alex is currently taking a break from active SVG development to concentrate on 'real work' and cool stuff like XTF and JSSh. Tim is working on implementing <filter> and working on items that need to be done before turning on SVG by default. After recently implementing gradients, Scooter is working on fixing some issues that remain outstanding and fixing <switch>. Jonathan is working on various bugs, especially those that need to be fixed before SVG can be enabled in the official builds. David continues to create SVG enabled nightlies and answer build related questions as he has done for some time. Finally, occasional fixes are provided by other Mozilla hackers.

パッチをレビューしたり副次的バグをフィクスしたりする以外に、現在 Alex は「現実の仕事」と XTFJSSh のようなクールな素材に集中するため、 SVG のアクティブな開発からは距離を取っています。 Tim<filter> の実装を行っており、またデフォルトで SVG をオンにする前に行っておく必要のある事々をしています。最近 gradients の実装をした後、 Scooter は残りの目立つものをフィクスしたり <switch> をフィクスしたりしています。 Jonathan はいろんなバグ、特に公式ビルドで SVG が有効になる前にフィクスする必要のあるものについて行っています。 David はしばらくの間行っているように、 SVG 有効ナイトリーの作成やビルドに関連した質問への回答を続けています。最後に、他の Mozilla ハッカーにより時折フィクスが提供されています。

How can I get in contact with you?

どうやったらあなたたちにコンタクトできますか ?

The best way to get in contact with us is to join the #svg channel on mozilla.org's IRC server. This is where most of us hang out to discuss issues relating to the SVG implementation. If you don't have an IRC client then install chatzilla into Mozilla/Mozilla Firefox (note it may already be built in). Clicking on the link above should then take you straight there. If you'd prefer to contact us by email you can send an email to our newsgroup netscape.public.mozilla.svg which is archived here. Alternatively you can email any of us directly of course (see the preceeding question for our email addresses).

私たちにコンタクトする最善の方法は、 mozilla.org の IRC サーバにある #svg channel に join することです。ここが、 SVG 実装に関する問題について議論するために私たちの多くが居る場所です。 IRC クライアントを持っていないのであれば、 chatzilla を Mozilla/Mozilla Firefox (既に組み込まれているかもしれません) にインストールしてください。上のリンクをクリックすると、簡単にそこに行くことができます。 email でコンタクトするほうが好きなら、ニュースグループ netscape.public.mozilla.svg に email を送るのでもいいです。これは ここにアーカイブされています。これ以外にもちろん私たちのだれかに直接 email するのでもいいです (私たちの email アドレスは前の質問を見てください)。


Jonathan Watt