From: Mohit Sindhwani Date: 2008-10-26T18:47:47+09:00 Subject: Re: Word + win32ole - how to find formatting of a word? Axel Etzold wrote: >> HI! I'm trying to use Ruby and win32ole to parse a Word document. So >> far, I'm able to extract the style and text of each paragraph. That >> works great to convert it into individual divs (in the HTML CSS sense). >> >> Now, inside the paragraphs, there are certain words that have special >> formatting (for e.g. the name of a command which is in monospace) - I'm >> trying to find how to extract those special cases. Does anyone know how >> to achieve that? >> > > Dear Mohit, > > you could save the Word file as an html and then extract the relevant information... > I did that using OpenOffice and got a file containing the font information in the following form. > > > >

A command in Linux > Libertine

>

A text in Bitstream > Charter

> > Hi Axel Thanks for replying! Converting to HTML and working with that is my last option actually. In a well-written document, I found that using Word to return style information about the paragraph is a lot less work and relatively easy to work with. I guess it's time to consider your suggestion! Cheers, Mohit. 10/26/2008 | 5:44 PM.