> I'm not entirely sure what sort of result you want when you talk about
> font
> _changes_, but there are two possible ways to find all fonts used in a
> document ...
>
> 1) Check each character and see what font it is
How do I go about this?
I'll try and explain what exactly is my requirement
I need to form my own XML/HTML displaying only the textual part but with
complete formatting.
Therefore I need to know each place where font is changing or as you
mentioned Check each character and see what font it is
Here is an example of what I need
This is an XML generated from Word I need it simple format
<w:p>
- <w:r>
<w:t>This testing is for the conversion of Word doc to flash and also to
test for</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:b />
</w:rPr>
<w:t>BOLD</w:t>
</w:r>
- <w:r>
<w:t>and</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:i />
</w:rPr>
<w:t>ITALICS</w:t>
</w:r>
- <w:r>
<w:t>and this is</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:u w:val="single" />
</w:rPr>
<w:t>UNDERLINE</w:t>
</w:r>
- <w:r>
<w:t>and this is</w:t>
</w:r>
- <w:r>
- <w:rPr>
<w:b />
<w:i />
<w:u w:val="single" />
</w:rPr>
<w:t>BOLD,ITALICS,AND UNDERLINE</w:t>
</w:r>
</w:p>
I need it like
<p><font name="Times New Roman" size="10">This testing is for the conversion
of Word doc to flash and also to test for<b>BOLD</b>and
<i/> ITALICS</i>and this is<u> UNDERLINE</u>and this is
<b><i><u> BOLD,ITALICS,AND UNDERLINE</b></i></u></font></p>
> 2) Check each font and search the document for it
>
[quoted text clipped - 5 lines]
> Enjoy,
> Tony
Tony Jollans - 14 Oct 2005 17:46 GMT
I'm sorry I don't know enough about XML to help you but you seem to want
simple HTML. Have you tried saving as a web page and working with that
rather than the XML (or even looking at what is generated in the Script
Editor (Alt+Shift+F11))
--
Enjoy,
Tony
> > I'm not entirely sure what sort of result you want when you talk about
> > font
[quoted text clipped - 69 lines]
> > Enjoy,
> > Tony