OSDN Git Service

Merge branch 'master' into develop
[sie/sie.git] / document / sieb.html
index 7be207b..a544460 100644 (file)
-<!xml version="1.0" encoding="utf-8"!>
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<title>Sieb:SIEのブックマークレット</title>
-<meta http-equiv="Content-Type" content="text/html; charset=urf-8">
-<link rel="stylesheet" type="text/css" href="instyle.css"></link>
-</head>
-<body>
-<h1>Sieb - ブラウザでSVGを表示できるブックマークレット</h1>
-<h2>Text2SVG</h2>
-<p>SIEを使えば、普通の文章をSVG画像に変換して、表示することができます。このような機能をText2SVGと呼ぶことにします。Siebでは、このText2SVG機能を使って、たとえば、2ちゃんねるのような掲示板やブログやWIKIなどに書き込まれたSVGを簡単に表示できるようにしました。特徴は以下のとおりです。</p>
-<ul>
- <li>インストール、プラグイン不要</li>
- <li>ブックマークから呼び出せる</li>
- <li>クロスブラウザ</li>
- <li>ブログ、WIKIなどに書き込まれたSVGソースを、画像として表示できる</li>
-</ul>
-<h2>使い方</h2>
-<h3>準備するもの</h3>
-<h4>ブックマークする</h4>
-<p><a href="javascript:void(function(){var ss=function(tag){var pr=document.getElementsByTagName(tag);for(var i=0;i<pr.length;i++){var prr=pr[i].innerHTML;prr=prr.replace(/(&amp;lt;svg(?:\s|&amp;gt;|>))/g,'&amp;nbsp;<script type=image/svg+xml width=300 height=300>$1').replace(/(\/svg(?:&amp;gt;|>))/g,'$1</script>');pr[i].innerHTML=prr;}};ss('pre');ss('dd');sieb_s=true;var src=document.createElement('script');src.setAttribute('src','http://sie.sourceforge.jp/sie-mini.js');document.body.appendChild(src);})();">Sieb2</a>(ブックマークレット)</p>
-<p>あらかじめ、上記のリンク先をブックマーク(IEでは、「右クリック-&gt;お気に入りに追加」。それ以外のブラウザではツールバーにドラッグでOK)してください。</p>
-<h3>ネットの公開のしかた</h3>
-<ol>
- <li>掲示板やブログにSVGのソースを必ず「整形テキスト」で書き込んでください。たとえば、以下のSVGのソースを使ってみましょう。<textarea rows="3" cols="70">&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;
-  &lt;g id="eo"&gt;
-   &lt;circle cx="50" cy="40" r="40"/&gt;
-   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;
-  &lt;/g&gt;
- &lt;/svg&gt;</textarea>なお、整形テキストはpre要素を利用した文章です。</li>
- <li>上記でブックマークしたものを呼び出してください。ブックマークを呼び出したら、すぐに、下記のデモで円が表示されるはずです。</li>
-</ol>
-<h2>デモ(4wd.svg)</h2>
-<dl>
-<dt>
-<dd>&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;
-  &lt;g id="eo"&gt;
-   &lt;circle cx="50" cy="40" r="40"/&gt;<BR>
-   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;
-  &lt;/g&gt;
- &lt;/svg&gt;
-</dl>
-<pre>
-&lt;svg xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;
-  &amp;lt;&lt;g id="eo"&gt;
-   &lt;circle cx="50" cy="40" r="40"/&gt;
-   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;
-  &lt;/g&gt;
- &lt;/svg&gt;
-</pre>
-<p>HTML文書のソースは以下のとおり。</p>
-<pre>&lt;html  xmlns="http://www.w3.org/1999/xhtml"&gt;
-&lt;head&gt;
-&lt;title&gt;SIE&lt;/title&gt;
-&lt;script defer="defer" type="text/javascript" src="sie.js"&gt;&lt;/script&gt;
-&lt;link rel="stylesheet" type="text/css" href="instyle.css"&gt;&lt;/link&gt;
-&lt;/head&gt;
-&lt;body&gt;
-&lt;h1&gt;SIE - プラグインなしでIEにSVGを表示する方法&lt;/h1&gt;
-&lt;h2&gt;デモ(ant.svg)&lt;/h2&gt;
-</pre>
-<p>&lt;pre&gt;&amp;lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&amp;gt;
-  &amp;lt;g id="eo"&amp;gt;
-   &amp;lt;circle cx="50" cy="40" r="40"/&amp;gt;
-   &amp;lt;circle cx="40" cy="30" r="20" fill="red"/&amp;gt;
-  &amp;lt;/g&amp;gt;
- &amp;lt;/svg&amp;gt;&lt;/pre&gt;</p>
-<pre>
-&lt;/body&gt;
-&lt;/html&gt;</pre>
-<script type="image/svg+xml" width="200" height="200"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none">
-  <g id="eo">
-   <circle cx="50" cy="40" r="40"/>
-   <circle cx="40" cy="30" r="20" fill="red"/>
-  </g>
- </svg></script>
-<h2>動作環境</h2>
-<p>WindowsXP SP2 IE7で確認</p>
-<p>その他、Windows XPの、Firefox3、Opera9.51、Safari3.1.2</p>
-<h2>目標</h2>
-<p>Inkscapeで作成されたSVGを表示できるようにする。</p>
-<h2>課題</h2>
-<p>バージョンや、問題等につきましては、ブログで公開しています。「<a href="http://d.hatena.ne.jp/dhrname/">dhrnameのウェブ日誌</a>」をご覧ください。</p>
-<p>最後に、<a href="http://sourceforge.jp/"><img src="http://sourceforge.jp/sflogo.php?group_id=3313" width="96" height="31" border="0" alt="SourceForge.jp"></a>さんに謝意を述べたいと思います。</p>
-<address>&copy; Copyright 2003 dhr(Eメールで<a href="mailto:dhrname@mail.goo.ne.jp">dhrname@mail.goo.ne.jp</a>)コードの著作権の許諾に関しては、次の文章に書かれています。(英文<a href="http://dhr.at.infoseek.co.jp/LICENCE.txt">LICENCE.txt</a>)。このページの許諾に関しても、同様のライセンスが適用されるものとします。</address>
-<!--/*SIE-SVGtoVML LGPL2.1 & GPL1.1 & Mozilla Public Lisence*/
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Mozilla Public License Version
- * 1.1 (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * Contributor(s):DHRNAME
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either of the GNU General Public License Version 2 or later (the "GPL"),
- * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the MPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the MPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */-->
-    </body>
+<!xml version="1.0" encoding="utf-8"!>\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+<title>Sieb:SIEのブックマークレット</title>\r
+<meta http-equiv="Content-Type" content="text/html; charset=urf-8">\r
+<link rel="stylesheet" type="text/css" href="instyle.css"></link>\r
+</head>\r
+<body>\r
+<h1>Sieb - ブラウザでSVGを表示できるブックマークレット</h1>\r
+<h2>Text2SVG</h2>\r
+<p>SIEを使えば、普通の文章をSVG画像に変換して、表示することができます。このような機能をText2SVGと呼ぶことにします。Siebでは、このText2SVG機能を使って、たとえば、2ちゃんねるのような掲示板やブログやWIKIなどに書き込まれたSVGを簡単に表示できるようにしました。特徴は以下のとおりです。</p>\r
+<ul>\r
+ <li>インストール、プラグイン不要</li>\r
+ <li>ブックマークから呼び出せる</li>\r
+ <li>クロスブラウザ</li>\r
+ <li>ブログ、WIKIなどに書き込まれたSVGソースを、画像として表示できる</li>\r
+</ul>\r
+<h2>使い方</h2>\r
+<h3>準備するもの</h3>\r
+<h4>ブックマークする</h4>\r
+<p><a href="javascript:void(function(){var ss=function(tag){var pr=document.getElementsByTagName(tag);for(var i=0;i<pr.length;i++){var prr=pr[i].innerHTML;prr=prr.replace(/(&amp;lt;svg(?:\s|&amp;gt;|>))/g,'&amp;nbsp;<script type=image/svg+xml width=300 height=300>$1').replace(/(\/svg(?:&amp;gt;|>))/g,'$1</script>');pr[i].innerHTML=prr;}};ss('pre');ss('dd');sieb_s=true;var src=document.createElement('script');src.setAttribute('src','http://sie.sourceforge.jp/sie-mini.js');document.body.appendChild(src);})();">Sieb2</a>(ブックマークレット)</p>\r
+<p>あらかじめ、上記のリンク先をブックマーク(IEでは、「右クリック-&gt;お気に入りに追加」。それ以外のブラウザではツールバーにドラッグでOK)してください。</p>\r
+<h3>ネットの公開のしかた</h3>\r
+<ol>\r
+ <li>掲示板やブログにSVGのソースを必ず「整形テキスト」で書き込んでください。たとえば、以下のSVGのソースを使ってみましょう。<textarea rows="3" cols="70">&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;\r
+  &lt;g id="eo"&gt;\r
+   &lt;circle cx="50" cy="40" r="40"/&gt;\r
+   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;\r
+  &lt;/g&gt;\r
+ &lt;/svg&gt;</textarea>なお、整形テキストはpre要素を利用した文章です。</li>\r
+ <li>上記でブックマークしたものを呼び出してください。ブックマークを呼び出したら、すぐに、下記のデモで円が表示されるはずです。</li>\r
+</ol>\r
+<h2>デモ(4wd.svg)</h2>\r
+<dl>\r
+<dt>\r
+<dd>&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;\r
+  &lt;g id="eo"&gt;\r
+   &lt;circle cx="50" cy="40" r="40"/&gt;<BR>\r
+   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;\r
+  &lt;/g&gt;\r
+ &lt;/svg&gt;\r
+</dl>\r
+<pre>\r
+&lt;svg xmlns="<a href="http://www.w3.org/2000/svg" target="_blank">http://www.w3.org/2000/svg</a>" viewBox="0 0 100 100" preseveAspectRatio="none"&gt;\r
+  &amp;lt;&lt;g id="eo"&gt;\r
+   &lt;circle cx="50" cy="40" r="40"/&gt;\r
+   &lt;circle cx="40" cy="30" r="20" fill="red"/&gt;\r
+  &lt;/g&gt;\r
+ &lt;/svg&gt;\r
+</pre>\r
+<p>HTML文書のソースは以下のとおり。</p>\r
+<pre>&lt;html  xmlns="http://www.w3.org/1999/xhtml"&gt;\r
+&lt;head&gt;\r
+&lt;title&gt;SIE&lt;/title&gt;\r
+&lt;script defer="defer" type="text/javascript" src="sie.js"&gt;&lt;/script&gt;\r
+&lt;link rel="stylesheet" type="text/css" href="instyle.css"&gt;&lt;/link&gt;\r
+&lt;/head&gt;\r
+&lt;body&gt;\r
+&lt;h1&gt;SIE - プラグインなしでIEにSVGを表示する方法&lt;/h1&gt;\r
+&lt;h2&gt;デモ(ant.svg)&lt;/h2&gt;\r
+</pre>\r
+<p>&lt;pre&gt;&amp;lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none"&amp;gt;\r
+  &amp;lt;g id="eo"&amp;gt;\r
+   &amp;lt;circle cx="50" cy="40" r="40"/&amp;gt;\r
+   &amp;lt;circle cx="40" cy="30" r="20" fill="red"/&amp;gt;\r
+  &amp;lt;/g&amp;gt;\r
+ &amp;lt;/svg&amp;gt;&lt;/pre&gt;</p>\r
+<pre>\r
+&lt;/body&gt;\r
+&lt;/html&gt;</pre>\r
+<script type="image/svg+xml" width="200" height="200"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preseveAspectRatio="none">\r
+  <g id="eo">\r
+   <circle cx="50" cy="40" r="40"/>\r
+   <circle cx="40" cy="30" r="20" fill="red"/>\r
+  </g>\r
+ </svg></script>\r
+<h2>動作環境</h2>\r
+<p>WindowsXP SP2 IE7で確認</p>\r
+<p>その他、Windows XPの、Firefox3、Opera9.51、Safari3.1.2</p>\r
+<h2>目標</h2>\r
+<p>Inkscapeで作成されたSVGを表示できるようにする。</p>\r
+<h2>課題</h2>\r
+<p>バージョンや、問題等につきましては、ブログで公開しています。「<a href="http://d.hatena.ne.jp/dhrname/">dhrnameのウェブ日誌</a>」をご覧ください。</p>\r
+<p>最後に、<a href="http://sourceforge.jp/"><img src="http://sourceforge.jp/sflogo.php?group_id=3313" width="96" height="31" border="0" alt="SourceForge.jp"></a>さんに謝意を述べたいと思います。</p>\r
+<address>&copy; Copyright 2003 dhr(Eメールで<a href="mailto:dhrname@mail.goo.ne.jp">dhrname@mail.goo.ne.jp</a>)コードの著作権の許諾に関しては、次の文章に書かれています。(英文<a href="http://dhr.at.infoseek.co.jp/LICENCE.txt">LICENCE.txt</a>)。このページの許諾に関しても、同様のライセンスが適用されるものとします。</address>\r
+<!--/*SIE-SVGtoVML LGPL2.1 & GPL1.1 & Mozilla Public Lisence*/\r
+/* ***** BEGIN LICENSE BLOCK *****\r
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1\r
+ *\r
+ * The contents of this file are subject to the Mozilla Public License Version\r
+ * 1.1 (the "License"); you may not use this file except in compliance with\r
+ * the License. You may obtain a copy of the License at\r
+ * http://www.mozilla.org/MPL/\r
+ *\r
+ * Software distributed under the License is distributed on an "AS IS" basis,\r
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License\r
+ * for the specific language governing rights and limitations under the\r
+ * License.\r
+ *\r
+ * Contributor(s):DHRNAME\r
+ *\r
+ * Alternatively, the contents of this file may be used under the terms of\r
+ * either of the GNU General Public License Version 2 or later (the "GPL"),\r
+ * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),\r
+ * in which case the provisions of the GPL or the LGPL are applicable instead\r
+ * of those above. If you wish to allow use of your version of this file only\r
+ * under the terms of either the GPL or the LGPL, and not to allow others to\r
+ * use your version of this file under the terms of the MPL, indicate your\r
+ * decision by deleting the provisions above and replace them with the notice\r
+ * and other provisions required by the GPL or the LGPL. If you do not delete\r
+ * the provisions above, a recipient may use your version of this file under\r
+ * the terms of any one of the MPL, the GPL or the LGPL.\r
+ *\r
+ * ***** END LICENSE BLOCK ***** */-->\r
+    </body>\r
 </html>
\ No newline at end of file