Hi List,
I would like to hear your opinion. I made a small movie definition file as follows. (See attached file: movie.xml) This input is as small as 1Kbytes. Here contained a <font> tag of which glyphs attribute's value has silly long duplication of 0 character : <font glyphs="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456789abcdefghijklmnopqrstuvwxyz"/> I processed this movie.xml with swfmill 0.2.11 to produce a swf file, then I processed the swf with swfmill to serialize into a xml text. This final out.xml has 481Kbyte length. This big! The reason why the out.xml is this big is simple. <Glyph map="48"> element ( this node reporesents '0' character) is duplicating much, as follows .... <Glyph map="48"><GlyphShape><edges><ShapeSetup x="126" y="-734" fillStyle0="1"/><CurveTo x1="56" y1="-56" x2="68" y2="0"/>.... <Glyph map="48"><GlyphShape><edges><ShapeSetup x="126" y="-734" fillStyle0="1"/><CurveTo x1="56" y1="-56" x2="68" y2="0"/>.... <Glyph map="48"><GlyphShape><edges><ShapeSetup x="126" y="-734" fillStyle0="1"/><CurveTo x1="56" y1="-56" x2="68" y2="0"/>.... <Glyph map="48"><GlyphShape><edges><ShapeSetup x="126" y="-734" fillStyle0="1"/><CurveTo x1="56" y1="-56" x2="68" y2="0"/>.... .... Why not the swfmill preprocess the glyphs' string to remove character-duplications and make it contain unique characters? ------------- How come I put duplicating characters in the glyph attribute? I have a actual usecase. The following code fragment shows what my application is doing. My application gets a lengthy news text from a certain URL, and generates a swf file which displays the text. My application sets the text as the glyphs attribute's value as is. The text will contain a lot of duplication of characters of course. <font id="MS ゴシック" import="../_common/resources/font/MSgothic.ttf" glyphs="◇高値圏でもみ合い――新日鉄、住金、トヨタが大商い 2006/12/27 10:10 27日前場中ごろの東京株式市場で、日経平均株価はきょうの高値圏でもみ合ってい る。前日26日の米株高や外国為替市場での円安・ドル高傾向を好感した買いが幅広 い銘柄に先行した後も、旺盛な買いは継続している。年末接近で国内外の機関投資 家の動きは鈍い半面、個人や証券会社の自己売買部門が積極的な買いを入れている という。東証株価指数(TOPIX)も引き続きしっかり。 東証1部の売買代金 ランキング上位に顔を並べている新日鉄、住金、トヨタがにぎわっている。値動き の良さや業界再編の思惑に加え、トヨタについては円安傾向も追い風になっている ようで、物色がこの3銘柄に集中している格好。米株高を手掛かりに値がさのハイ テク株も総じて高い。半面、このところ物色の圏外に置かれているソフトバンクな どの値動きは鈍い。 10時現在の東証1部の売買代金は概算で6328億円、売買高は 6億5242万株。東証1部の値上がり銘柄数は1044と全体の6割超を占めている。値 下がり銘柄数は496、変わらずは164。 新日鉄、住金、トヨタに加え、みずほ FG、川重、三菱マ、ホンダ、石川島、いすゞ、武田、日金工が売買を伴って上 昇。日本橋、アゼル、東京鉄が高い。一方、JFE、神戸鋼が朝高後下げに転じて おり、過熱感の強い銘柄の一部には利益確定売りも出ているようだ。住友鉱、日興 コーデがさえない。 東証2部株価指数は続伸。ニチモ、日鉄商、プリヴェ投資が 買われ、コマツ電子、鈴木金が売られている。〔NQN〕"/> It is desirable, I think, if the swfmill manage the character duplication in the input and produce swf without duplicating <Glyph> tags. MATSUHASHI, kazuaki Japan
movie.xml
Description: Binary data
_______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org