Sergeyさんへの返答について
英文でメールを出そうと思っています
Sergeyさんのメールの件ですが、次のような内容のメールを書こうと思っています。
Hello, Sergey.
I am interested in the Ample SDK project that is very exciting. I am terribly sorry, but I can not help you, because I used the Mozilla's code and modified for the algorithms implementation.
Google code search「nsSVGPathDataParser.cpp」
http://www.google.com/codesearch/p?hl=ja#e_ObwTAVPyo/content/svg/content/src/nsSVGPathDataParser.cpp&q=svg%20path%20parser%20moveto&d=4so,
1) Well, I think, Algorithms for mapping SVG path commands to VML path commands is:
1, all commands to 'M', 'L', or 'C' commands (for example, "M20 30 l 20 30 A 0 1.." >>> "M 20 30 L 40 60 C 30 40 50 60..")
2, coordinate transform - CTM (for example, if a value of 'transform' attribute is 'scale(2)', "M 20 30" >>> "M40 60")
3, all commands to 'm', 'l' or 'c' commands. ("M 40 60" >>> "m40 60")The implementation of that is very difficult. Please search SVG browsers' code and use it.
2) I do not know what you mean. Anyway, I would like to use the Ample SDK to advance the SIE project.
3) >>so its children should be transformed separately
Right.By the way,
I wonder if I can open your e-mail to the public for a oepn discussion of the SIE community. Would you like to permit me to copy yours to my blog?
上記の訳
こんにちは、Sergeyさん。
私はわくわくするようなAmple SDKプロジェクトに興味があります。ただ、申し訳ないけど、あなたを助けることができません。なぜなら、そのアルゴリズムの実装に、Mozillaのコードを使ったからです。
Google code search「nsSVGPathDataParser.cpp」
http://www.google.com/codesearch/p?hl=ja#e_ObwTAVPyo/content/svg/content/src/nsSVGPathDataParser.cpp&q=svg%20path%20parser%20moveto&d=41) ええと、私の考えでは、SVGのpath要素をVMLにマッピングするアルゴリズムは以下のとおりです。
1, すべてのコマンドをM, L, Cコマンドに (たとえば、 "M20 30 l 20 30 A 0 1.." >>> "M 20 30 L 40 60 C 30 40 50 60..")
2, 座標変換 - CTM (たとえば, transform属性の値が'scale(2)'ならば、 "M 20 30" >>> "M40 60")
3, すべてのコマンドを 'm', 'l', 'c' コマンドに. ("M 40 60" >>> "m40 60")
この実装は難しいです。SVGブラウザのコードを探して、使ってください。2) 私はあなたの言いたいことがわかりませんでした。とにかく、SIE プロジェクトの進歩のために、Ample SDKを使わせていただきます。
3) >>子要素の座標変換は個々でやるべき
そうです。ところで、SIEコミュニティのオープン議論のために、あなたのメールを公開してよいでしょうか。ブログにコピーすることを許してくださいませんか?
メールを出しました
さきほど、メールを出してみました。「協力が難しい」という趣旨がSergey氏に伝わることを願っています。