
Can anyone tell me how to change real italics in MSWord 2003 to html markup (<i>words</i> and the reverse? I do not want to change the document to html, just the italic markup. I used to know how to do it but I have forgotten. nwolcott2@post.harvard.edu

go to edit/replace convert _text_ to <i>text</i> 1st find _^? replace <i>^& 2nd find ^?_ replace ^&</i> 3rd find _ replace (blank field) convert <i>text</i>to _text_ 1st find <i> replace _ 2nd find </i> replace _ that's how i use to do it. not sure if there's an easier way. ricardo

I'm not aware that you can change a font format to an actual character string. It may be that Word Basic can do it, with some programming, but I can't speak to that. You might try this: - load the document into Wordpad, and save it as RTF. - load that file into Notepad (or some other plain text editor) - go to the italicized text--you should see it surrounded by "\i" and "\i0" - globally replace "\i0" with "</i>" - globally replace "\i" with "<i>" - save the file, and reload it into Word (or Wordpad) to see if things look OK. Wordpad uses a much simpler form of RTF than Word. You can use the same technique for bolding (\b and \b0). Note that you may have to deal with unwanted blank spaces before and after these codes and the resulting HTML tags. Experimentation is recommended. Al ----- Original Message ----- From: Norm Wolcott To: gutvol-d@lists.pglaf.org Cc: nwolcott2@post.harvard.edu Sent: Monday, May 11, 2009 8:48 AM Subject: [gutvol-d] Italilc markkup Can anyone tell me how to change real italics in MSWord 2003 to html markup (<i>words</i> and the reverse? I do not want to change the document to html, just the italic markup. I used to know how to do it but I have forgotten. nwolcott2@post.harvard.edu ------------------------------------------------------------------------------ _______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/mailman/listinfo/gutvol-d

OK, this is what I came up with under WinWord: Bring up the Find and Replace Dialog Under Find What: choose Font Italic -- nothing else Under Replace With: choose Font Regular and then enter this string "<i>^&</i>" -- where "^&" is a special character sequence meaning "that string of text found by "Find What:" So what this does is match a stretch of italic font text, replace it with regular font text, and put the HTML italic markers before and after that stretch of text.

- Pull up the find/replace box. - Make sure you're in the replace tab, and the cursor's in the 'find what' field - Click the 'more' button at the bottom - Click the 'format' button at the bottom of that - Click font - Choose italic, and click OK - In the 'replace with' field: <i>^&</i> - You can go through the format steps if you want to tell it to strip the italics, as well. Just do as above, but choose 'Regular' instead of italics On Mon, May 11, 2009 at 9:48 AM, Norm Wolcott <nwolcott2ster@gmail.com>wrote:
Can anyone tell me how to change real italics in MSWord 2003 to html markup (<i>words</i> and the reverse? I do not want to change the document to html, just the italic markup. I used to know how to do it but I have forgotten.
nwolcott2@post.harvard.edu
_______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/mailman/listinfo/gutvol-d
participants (5)
-
Al Haines (shaw)
-
Jim Adcock
-
Norm Wolcott
-
Ricardo F Diogo
-
Scott Olson