beatrice_otter: I don't want to be killed because of a typo.  It would be embarrassing. (Typo)
Lo these many years ago, when I was just a fannish newb trying to post fanfic to LJ, my elders passed down to me a secret: how to html code your fic the easy way in Microsoft Word, without either introducing errors or weird characters.  You see, if you use a rich text interface and go directly from Word to the rich text posting, things like smart quotes (quotes which curl toward the quoted text, which is Microsoft's default) will come out as weird characters when viewed in some browsers.  If, however, you post into the html interface, you lose the smart quotes ... but you also lose all other formatting like italics and so forth.  And if you write while inserting the html tags as you go, it looks a lot messier and is harder to read and edit, at least for me, anyway.

And so here I am, passing on what I have learned so that nobody has to hand code all their italics.

Here's the simple and easy way of coding your italics and such in Word.
  1. Write your fic as if it is a normal story.  If you want to have something italicized, just do it using Word's normal functions.  If you want something bold, do it using Word's normal functions.  Do this with all formatting like that.  Don't put in any html coding at all.  Just remember what formatting you put in that you will want to keep.
    1. EXCEPT scene breaks.  If you use something like this *** and Word turns it into lines for you, stop it from doing that.  (You can do this by hitting the backspace every time it does that, it should revert to *** for you.)  Use consistent characters for scene breaks, the same every time.
    2. Put a manual line break between each paragraph.  This looks nicest if you set it so that it doesn't automatically give you extra space between paragraphs, but you don't have to.  (This can be adjusted in the "Paragraph" dialog box, or in the Layout tab if you're using Word online through OneDrive.)
  2. When done and ready to post, hit ctrl-F.  This will bring up the Find box.  There are three tabs at the top; Find, Replace, and Go To.  Click Replace.  There will now be two fields in the box, Find What and Replace With.
  3. Put your cursor in the Find What field.  Type in whatever characters you use for scene breaks.  Then put your cursor in the Replace With field, and type < hr > (remove the spaces).  Click the "Replace All" button.  You now have the html code for horizontal lines at all the scene breaks.
  4. Delete the scene break characters from the Find What box.  Click the "More" button; more options should show up.  Down at the bottom, there will be a "Replace" section with three dropdown buttons, one greyed out.  Click the "Format" dropdown and select "Font."  A new dialog box will appear.  Click Italic in the Font Style box, and then Okay.  This dialog box will disappear, taking you back to the Find/Replace box, and underneath the Find What field it will now say Font: Italic.  Move your cursor to the Replace With field and type in < em > (without the spaces).  With your cursor still in the Replace With field, click the "Special" dropdown at the bottom and select "Find What Text."  A caret and ampersand (^&) should show up in the Replace With field.  After the caret ampersand, type < / em > (no spaces).  It should look like this, except without the spaces: < em > ^& < / em >.  Click "Replace All."  All of your italic text will still be italic, but it will now have the html tags around it.  You don't have to worry about remembering to close tags--the open tag will be inserted just before the italics begin, and the close tags will be inserted just after they end, leaving the text in the middle just the same as you typed it.
  5. Do the same with bold text, changing "italic" to "bold" in the Font Style box and using the strong tag instead of the em tag in the Replace With field.
  6. Do the same with any other formatting you want to do in html.
  7. Save As.  Instead of just hitting "Save," click "Save As" button and select .txt from the file type dropdown.  It'll ask you if you're sure, because that will strip out a lot of the formatting.  Click yes--you want to get rid of all of Microsoft's bulky and weird formatting, leaving nothing but your text and html tags.
  8. Open the .txt version of your story in a program like Notepad that does nothing but read .txt files, and copy and paste from there into the HTML posting interface of the site of your choice.
And there you have it!  A lot simpler and easier than typing in your html tags by hand, with no chance of missing a close tag somewhere.

Rebloggable on tumblr.

Date: 2016-06-06 06:38 pm (UTC)From: [personal profile] needled_ink_1975
needled_ink_1975: A snarling cougar; colored pencil on paper (Default)
I just tested this and it works in OpenOffice Writer, too! I have more than 130K worth of fic that is going to be MUCH easier to code now (I used to just search for italics. I never knew about the "^&" trick thingy).

You are a goddess.

–N

Date: 2016-06-07 12:40 pm (UTC)From: [personal profile] needled_ink_1975
needled_ink_1975: A snarling cougar; colored pencil on paper (Default)
That icon, your research icon? You have no idea how appropriate it is. My story's ~130K of WWII AU.

When I got your reply I blinked and actually checked to see if I'd somehow added you to my project filter without remembering :P

Date: 2016-06-06 07:26 pm (UTC)From: [personal profile] muccamukk
muccamukk: Wanda walking away, surrounded by towering black trees, her red cloak bright. (Default)
Hand tagging as I write is such a habit by now, for me anyway. I do it instinctively, even when I'm in the middle of a word war or something.

The finding italics thing is cool. It works on open office as well.

Date: 2016-06-07 12:58 pm (UTC)From: [personal profile] genarti
genarti: Knees-down view of woman on tiptoe next to bookshelves (Default)
Oh man, thank you so much! I knew there was a way to do it, but I hadn't been able to find the method for a) finding all italic or bold text and b) adding the formatting instead of just replacing all italic text with empty font tags or something. This will be hugely helpful, and way faster.

(I've also just got my MS Word set to not do curly quotes, not change -- or ... to their special character versions, etc. It loses me nothing to have my quotes be ", and it saves a lot of time.)

Date: 2016-06-07 10:04 pm (UTC)From: [personal profile] schneefink
schneefink: River walking among trees, from "Safe" (Default)
I didn't know you could search for text in italics! This is convenient, thanks :)

Date: 2016-06-28 10:49 pm (UTC)From: [personal profile] needled_ink_1975
needled_ink_1975: A snarling cougar; colored pencil on paper (Default)
Hi, I'm back here, because I have some useful info for OpenOffice Writer users.

The method that [personal profile] beatrice_otter details here will indeed work for some older versions of OOWriter (namely my ancient 2.something), but it doesn't work in newer versions. Apparently this is a known bug.

BUT! Here is a link to the AltSearch extension (this is an Apache-approved extension, nothing hinky). Download and install by double-clicking (starts OO) and confirm installation via the extension install dialogue.

After that:
~ open your document and click your new AltSearch icon
~ click "Properties" and select "Italic"
~ in the Replace field type "< em > & < /em >" or whichever appropriate tag (without quotes or spaces, and without the caret)
~ click "Replace all"
~ PROFIT!

And then you can come back here and use the rest of [personal profile] beatrice_otter's awesomesauce guide.

See ya.

Ugh, ETA: in AltSearch, make sure that you have the "Regular expressions" box checked.
Edited (...forget my head next.) Date: 2016-06-28 10:54 pm (UTC)

Profile

beatrice_otter: Me in red--face not shown (Default)
beatrice_otter

May 2026

S M T W T F S
     12
3456789
101112131415 16
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2026 07:35 pm
Powered by Dreamwidth Studios