[swfmill] Patch: Specify text encoding for string in swf

2008-01-21 Thread INADA Naoki
Hi, all.

Text encoding of inner swf strings is environment-dependent 
before SWF Version 6. For example, strings encoded in cp932 in Japan.

And Flash Lite 1.x based on Flash 4 is still lot in use for 
celler phones in Japanese. 

swfmill swf2xml fails for such swf files because swfmill insert
inner swf string into libxml doc tree without encoding conversion.
(text encoding must be UTF-8 in libxml doc tree.)

I fixup swfmill to convert text encoding in swf2xml and xml2swf.
And attached patch is the fix.
 * swfmill -e cp932 swf2xml foo.swf bar.xml converts encoding from 
   cp932(in swf) into UTF-8(in xml).
 * swfmill -e cp932 xml2swf bar.xml foo.swf converts encoding from 
   UTF-8(in xml) into cp932(in swf).

Do anyone want this option?
I want this patch applied to swfmill. But if no one wants this option, 
making swfmill Japanese branch is better for me, maybe.

-- 
Sorry about my poor English.

INADA Naoki [EMAIL PROTECTED]


encoding.patch
Description: Binary data
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Patch: Specify text encoding for string in swf

2008-01-21 Thread Daniel Fischer
On Mon, 21 Jan 2008 21:36:19 +0900
INADA Naoki [EMAIL PROTECTED] wrote:

 Do anyone want this option?
 I want this patch applied to swfmill. But if no one wants this
 option, making swfmill Japanese branch is better for me, maybe.

That should be fine; i'll review your patch when i find some time.
There's another few patches in the queue but a release should follow
soon.

Thank you very much!

-dan

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Patch: Specify text encoding for string in swf

2008-01-21 Thread INADA Naoki
On Mon, 21 Jan 2008 14:26:21 +0100
Daniel Fischer [EMAIL PROTECTED] wrote:

 That should be fine; i'll review your patch when i find some time.
 There's another few patches in the queue but a release should follow
 soon.

I see.
I'll release custom build that include some additional feature at my company 
site,
and send patches to this ML for some stable feature once in a while in return 
for
my benefit of swfmill.

Thanks for your work on swfmill.
-- 
Sorry about my poor English.

INADA Naoki [EMAIL PROTECTED]

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org