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.
Rebloggable on tumblr.
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.
- 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.
- 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.
- 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.)
- 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.
- 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.
- 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.
- 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.
- Do the same with any other formatting you want to do in html.
- 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.
- 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.
Rebloggable on tumblr.
no subject
Date: 2016-06-06 06:38 pm (UTC)From:You are a goddess.
–N
no subject
Date: 2016-06-07 12:23 am (UTC)From:no subject
Date: 2016-06-07 12:40 pm (UTC)From: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
no subject
Date: 2016-06-07 05:49 pm (UTC)From:no subject
Date: 2016-06-06 07:26 pm (UTC)From:The finding italics thing is cool. It works on open office as well.
no subject
Date: 2016-06-07 12:25 am (UTC)From:I can hand tag while writing on an instinctive level; such as when I'm commenting on LJ/DW, for example. But I prefer not to have to, because it takes longer than ctrl-I or ctrl-B or whatever, and thus interrupts my thoughts more.
no subject
Date: 2016-06-07 12:58 pm (UTC)From:(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.)
no subject
Date: 2016-06-07 05:54 pm (UTC)From:no subject
Date: 2016-06-07 10:04 pm (UTC)From:no subject
Date: 2016-06-08 12:19 am (UTC)From:no subject
Date: 2016-06-28 10:49 pm (UTC)From:The method that
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
See ya.
Ugh, ETA: in AltSearch, make sure that you have the "Regular expressions" box checked.