G
Guest
Hi,
Im making a html converter from word, and i have some difficulties in the
algorithm that parses the bolds, italics, and underlines...
if in a word document i have with some bolds, italic and underlined formats
(for instance, i have this paragraph) :
IM BOLD, IM UNDERLINED, IM ITALIC
i would like to convert to:
<b>IM BOLD,</B> <U>IM UNDERLINED,</U><I>IM ITALIC</I>
for me is easy to do:
<b>IM</b><b>BOLD</b><u>IM</u><u>UNDERLINED</u>.....
but following this way i have a lot of tags, and i would like to minimize
this...
If anybody knows how could i organize this algorithm (taking in count that
when a word is going to be parsed, i have to check what tags are open
before,etc...) i would be grateful...
Im making a html converter from word, and i have some difficulties in the
algorithm that parses the bolds, italics, and underlines...
if in a word document i have with some bolds, italic and underlined formats
(for instance, i have this paragraph) :
IM BOLD, IM UNDERLINED, IM ITALIC
i would like to convert to:
<b>IM BOLD,</B> <U>IM UNDERLINED,</U><I>IM ITALIC</I>
for me is easy to do:
<b>IM</b><b>BOLD</b><u>IM</u><u>UNDERLINED</u>.....
but following this way i have a lot of tags, and i would like to minimize
this...
If anybody knows how could i organize this algorithm (taking in count that
when a word is going to be parsed, i have to check what tags are open
before,etc...) i would be grateful...