February 2024

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728 29  

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Monday, March 16th, 2009 10:20 pm
Many of us write our stories in Word, or similar programs. Here's a word to the wise, folks: don't. :) Or at least, tread carefully! Make sure you avoid importing some of the more infuriating aspects to your LJ or website.

Step one: don't use smart quotes, ellipses, and em dashes.

Yes, they will make your post look prettier. No, they don't work all the time.

Here's a line from an older fic, before I discovered the painful truth:

"Teal'c?" he croaked.

Now, here's the same line as it appears on an archive in which I included smart quotes:



And that's in Firefox. Do you think it's any better in Explorer? Well, it's different, I'll grant you:



Then there are those who read on Opera, or whatever other browser their handheld uses. From personal experience, I can tell you that smart quotes, em dashes, ellipses, and the like don't show up, period. I don't have a screencap to show you, but it looks like this:

Tealc? he croaked.

Bottom line for step one: as a favor to your readers, use regular quotes, apostrophes, ellipses, and either single or doubled en dashes. It may not be as pretty, but at least you can be confident that your readers can actually read your fic.

To turn off smart quotes and smart tags in Word, you'll have to do two things:

1. Go to Tools, then Options. Click on the View tab and clear the box marked "smart tags."

2. Go to Format, then AutoFormat. Click on "Options" and clear all the boxes regarding replacing quotes with smart quotes, en dashes with em dashes, and anything else you'd prefer to avoid. Hit OK, then Cancel so your current file doesn't get automatically formatted.

Step two: don't use real text instead of HTML.

If you were like me, when you first joined LJ, you were completely ignorant in HTML. You didn't know how to make an lj-cut properly, much less hyperlink or link to a person's LJ with that cute little silhouette in front of the name. And I used the real text frame when I posted entries, because it was so much easier, right? Even when I switched to Semagic, it was still much easier than working in the HTML window.

Only it wasn't. It added huge amounts of messy coding and proved nearly impossible to edit cleanly.

Here are a few brief examples. This is how you would type my LJ username in HTML:



And this is what it looks like when you use real text to write a username, and then edit that post in HTML:



Why does it matter? Because LJ limits posts to 64K. That means every letter, number, and space counts. And if you're writing a longer story, and you've cluttered up your post with unnecessary HTML coding, you might have to break up your story between two (or more) posts.

(Also, if you want to edit your post, it is really annoying.)

And while we're on the subject of unnecessary HTML clutter, consider what Word will merrily insert into every single line of your story:



How about random xml codes? Extra coding that defines words as cities? (Did you know that "Hammond" is a city? Word does!) And if someone tries to copy a few lines of your story - just by random example, in order to include an excerpt in a fic rec - all that annoying coding is going to get copied along with the sparkling dialogue and deathless prose. Unless, of course, the reccer in question copies as text... but that means losing your italics and other special codes that you really do want to be include.

So write in HTML, folks. Or if you write in Word, copy your story and paste it as text into your HTML posting window. It might be awkward at first; I know I found it so, at the beginning. But I slowly learned to write my posts in the HTML window, and Semagic still has the same helpful shortcuts for HTML that it has for real text.

What about the coding that you do need, then? If you're writing directly in Semagic, just type your story in HTML as you would in the real text window. Select whatever text you want bolded, italicized, or centered and use the icons at the top of the window - Semagic will insert the coding for you. And as you grow more comfortable with HTML, you'l find yourself automatically typing the coding yourself, without finding it distracting in the least.

But what if you're not using Semagic? What if you're using LJ's web browser interface? It's still pretty simple. The basics of HMTL you need for your average story on LJ are bold, italics, hyperlinks, and lj-cuts, and they are as follows:



(A word to the wise, since I discovered it the hard way: you cannot include quotes as your lj-cut text, because the coding calls for quotes in the first place. You can use single quotes, though.)

How about writing a story in Word, and then transferring it to Semagic or the "post new entry" page on your web browser? I know that's my preference for longer stories. The important thing is to make sure that what you paste is text with HTML coding, not real text. Here are some simple steps for converting your Word document to coded text, using italics as an example:

1. In the upper right-hand corner of Word, Click on Edit, then Replace.

2. Click on "More."

3. Click on "Format."

4. Select "Font." This will take you to "Find Font."

5. Under "Font styles," click "Italic," and then "OK." This will return you to the "Find and Replace" window.

Then fill out the "Replace With" text box so it looks like this:



(that's bracket-i-bracket, then hit the "Special" button and click on "Find What Text," then bracket-backstroke-i-bracket)

6. Hit "Replace All." Your story will still have italics, but each italicized word or phrase will now be surrounded by the proper HTML coding. And when you paste it as text in your HTML window on Semagic or your web browser (or other LJ client), only the HTML coding will make the transition.

If your story includes words in bold, repeat the steps above, replacing the "i" with "b."

(All the step-by-step directions in this entry are for Word 2003. If other editions use different commands or formats, please drop a line below and I'll edit the post to include them.)

LJ-cuts and hyperlinks are best added within the LJ client, rather than included in Word.

If you found this post useful, please let me know. If anything is unclear, or you have more suggestions to add, please comment! And if you think this is a total waste of time... Well, you're welcome to let me know that, too. :)

ETA: Some helpful links included in the comments:

[livejournal.com profile] cleothemuse offers a macro Word 97-2003 which strips a number of odd-ball characters out of Word documents and formats the whole thing into an eFiction-friendly HTML-ready format. It's available in ZIP format, and includes installation and use instructions on a PDF. It works in Word 2007, too, although instructions are not yet included in the zip file.

[livejournal.com profile] rigel_7 wrote a post in [livejournal.com profile] fandom_grammar that covers not only what I've written here, but much, much more. Seriously, just skip my entry and go read hers. :)

[livejournal.com profile] jedibuttercup has an extensive list of HTML codes for accents and symbols.

Below in the comments, [livejournal.com profile] pepper_field explains how to include quotes in LJ cuts and have brackets show in your entry.
Monday, March 16th, 2009 09:06 pm (UTC)
Ah, the ol' “Smart Quotes” issue...

A year ago or so, I wrote a macro for Word 97-2003 which strips a number of odd-ball characters out of Word documents and formats the whole darn thing into an eFiction-friendly HTML-ready format. It's available in ZIP format here (http://www.cleothemuse.net/downloads/ConvertToHTML.zip), and includes installation and use instructions on a PDF. It works in Word 2007, too, but I haven't yet written the instructions for it.

Feel free to mess around with it, and let me know if you want it to convert any other characters into an HTML-friendly format.
Monday, March 16th, 2009 09:12 pm (UTC)
wow, your Word does a lot of stuff mine doesn't....huh.
I've generally found that if I copy from word and paste into the html box to post to lj, it gets rid of all the Word crap like smartquotes (though I usually have most of those things turned off anyway). In fact...I wouldn't have a clue how to make it copy over the special formatting. Hm.

(also, oh, LJ, when you created a rich text editor you caused so many problems. So glad I've been around since before it existed and never even considered using it)

[the other option with formatting is to be like me and Aurora and be so used to LJ formatting that we italicize the html/LJ way even when we aren't supposed to :P ]

But I bet this post will definitely be useful to people!
Monday, March 16th, 2009 09:13 pm (UTC)
Interesting stuff you write here ...

I am totally agin MS Office (and microsoft in general when I can avoid it) and have Orac the Mac at home. I am also an Open Source Software fiend and use OpenOffice now and used NeoOffice before it was ported to the Mac. I have OOo on Jolinar Laptop (Vista unfortunately) my second computer and Portable OpenOffice on my flashdrive to take to work so I can get round that problem too. They are all a LOT more sensible than MS Word for a number of reasons (including the stupid new tabbed layout) and when I checked OOo help for 'Smart Quotes' it didn't even recognise the terms.

I would have realised this anyway because I have had no problems importing my fiction to places before. I have used XJournal to post from the Mac in the past , but as I have learnt my HTML its easier to post straight from the browser. On the Laptop I use Semagic which a friend pointed me towards. V useful the WYSIWYG setup on that and it taught me all the HTML for the LJ-cuts etc ...
Monday, March 16th, 2009 09:21 pm (UTC)
I've turned off the smart quote and auto-formatting features in my Word program for this very same reason. This works great, especially since I LOVE Word! :D But I still take an extra step whenever I go from Word to LJ. I copy paste everything that's going into LJ's entry form into Notepad first, than copy/paste into LJ. Notepad strips everything funky out of Word formatted typing, including the "e" in cliche and the "c" in facade. *g* But it's a great go-around for Word lovers like me.

And Rich Text formatting is the worst! I only used it once in my Fanfic Index, and I will never make that mistake again.

Oh, and if you are interested, [livejournal.com profile] rigel_7 did something like this for [livejournal.com profile] fandom_grammar - here (http://community.livejournal.com/fandom_grammar/9516.html), if you're interested.

Thank you for taking the time to write this up for us. It's going into my memories as soon as I hit Post Comment!
Monday, March 16th, 2009 09:32 pm (UTC)
Oh, man. That find and replace thing would be AWESOME if I didn't already do all my own coding. I think it still might be handy sometimes...
Monday, March 16th, 2009 10:14 pm (UTC)
Great instructions! I didn't know about the replace-font-format trick. I'll have to remember that one.

Of course, I've been writing for the 'net for enough years that I automatically type things like 'cliché' instead of 'cliché' straight into Wordpad without even bothering with Word proper anymore; I got sick of having to either turn off or autoreplace all the quotes, ellipses, accents, and other bells and whistles in order to make them show up properly on the webpage.

I made a personal list, years ago, of all kinds of HTML codes for the kinds of accents and symbols that would be nice to include if only browsers wouldn't choke on them when pasted straight from Word, and it's held me in good stead, so far:

http://www.jedibuttercup.com/misc/entities.html
Monday, March 16th, 2009 10:18 pm (UTC)
It just occurred to me to figure this out (because I've had an issue with it before, too): you can use quotes in an LJ cut - if you write them as code.

So you'd put <lj-cut text="The &quot;real&quot; James Bond".>

And it should come out with a cut text of 'The "real" James Bond.'

(And you would not believe the amount of code I had to work out to make that look right. I hope it does look right. *crosses fingers*)
Monday, March 16th, 2009 10:33 pm (UTC)
I'd give you my first born son if I weren't already sorta attached to him. This is so unbelievably helpful. I don't know what I am doing. Very much not a waste of time. I'm sure there are more compu-morons out there like me who need it!
Monday, March 16th, 2009 10:36 pm (UTC)
And, p.s., you can use < and > in LJ text, too, if you write them as code. The code for them is &lt; for < and &gt; for >.

And I had to write the code for the ampersand (&amp;) to write the code for the bracket thingies. And the code for the ampersand to write the code for the ampersand. It's all gone a bit quantum. :)
Monday, March 16th, 2009 10:37 pm (UTC)
An above commenter linked to [livejournal.com profile] rigel_7's post on htmal and LJ and formatting and it's FANTASTIC as a resource.

It's definitely a learning process, but you'll get used to it before you know it.
Monday, March 16th, 2009 11:34 pm (UTC)
Oh THAT's why you were talking about extending your lj post length. Yes, I've never used real text editor on LJ. It just seems to cause trouble.

Redbyrd taught me long ago how to turn off smartquotes and the like on my WordPerfect program. It's a similar process I think for Word. That way you can just copy and paste without problems. Because yes, smartquotes, while pretty in the program, just look ridiculous in html.

I think another option is to copy your post from the word processor program to notepad (don't open it in notepad, just straight copy paste). I think that works sometimes. Hey, maybe I should've tried THAT to the Shau'ri fic! LOL
Tuesday, March 17th, 2009 01:27 am (UTC)
Wordperfect smartquotes, on the other hand, make it through my cut-and-pastes to LJ; whenever I've got hyperlinks in a document that I'm doing that with, I have to go in and replace all the quote markes so the links will work in LJ.
Tuesday, March 17th, 2009 01:29 am (UTC)
This is stuff I know, but that just makes me aware of how many people don't so - yay for an excellent PSA!!
Tuesday, March 17th, 2009 01:30 am (UTC)
ILU.

I've been trying to figure out how to do this for years.
Tuesday, March 17th, 2009 02:23 am (UTC)
Thanks for this! I've been familiar with basic html for years but not so much with online writing, so I started out copy-pasting into the rich text editor and have only recently found myself using that less and less... anyway, LJ tips are always very helpful to me when I can't figure out why my formatting has gone all to heck :)
Tuesday, March 17th, 2009 03:24 am (UTC)
The find and replace will be very helpful. When I've written longer things in Word, I've usually ended up going back and forth between coding my bolds and italics and just cntrl+b/i -ing them (holy inappropriate use of the English language, Batman!) Then by the time I've gone through and re-found anything I may have formatted and changed it to code, I really kind of hate what I've written.
Tuesday, March 17th, 2009 03:32 am (UTC)
Oh yes... I'm learning the basics of HTML slowly, and keep a doc file where I scribble any little bits of info I get (like how to do block quotes, larger font for header, thumbnails...)

I write in word, but then convert to HTML text before posting, it's a bit of a pain but worth it (and I have found I'm getting used to it to the point of putting the HTML codes for italics and bold into ordinary emails, where it just sits there looking silly...)

Thank you for more stuff to file away in the how-to file :)
Tuesday, March 17th, 2009 04:11 am (UTC)
I discovered that a few years back when I first started putting my fanfic on the internet. I went through and changed basically all my quotes and ellipses by hand (Find-Replace helped, but there were a LOT of files). Then I learned how to turn off smart quotes and delete AutoFormat ellipses, and all was well with the world. It's annoying when I have to use a campus computer to work on stuff though, because I don't want to change their settings but I am NOT going to use that shitty formatting.

But then I code all my stuff by hand (older brother taught me basic HTML when I had to stay home sick from school one day, and then I studied up on it by myself), I never use webpage creation programs, so that gave me a bit of an edge as well. :) They're good things to know!
Tuesday, March 17th, 2009 05:28 am (UTC)
Thanks! That find and replace thing is awesome. I usually cut and paste into the HTML box and then hand code my formatting. This looks much simpler.
Tuesday, March 17th, 2009 06:01 am (UTC)
Thanks! I've edited the entry to include the link.
Tuesday, March 17th, 2009 06:04 am (UTC)
Depending on your copy and paste defaults, all the extra nonsense may or may not make the transition. I've found it does, unless I copy as text.

Heh, yes. I typed this whole thing straight in the HMTL window. But I couldn't do that a year ago, and I didn't even realize there were such things as smart quotes and smart tags. So I hope this will, as you say, be useful to some people out there. :)
Tuesday, March 17th, 2009 06:07 am (UTC)
::nods:: I'm sure a lot of programs do avoid the problem.

I've found that WYSIWYG in Semagic does add a lot of extra coding, though, like bridge returns, so that everything is one long block of text instead of broken up into paragraphs. And the html for LJ-cuts, etc. is also available in the hmtl setup, which is why I find it easier to use. But to each their own. :)
Tuesday, March 17th, 2009 06:12 am (UTC)
My problem is that I need some of the auto-formatting for RL purposes, so it's a matter of remembering what to turn on and off... :)

If you paste "as text," that might negate the extra step of pasting to Notepad first.

Thank you for the link to Rigel's fantastic post! I've edited the entry to include it.
Tuesday, March 17th, 2009 06:12 am (UTC)
Heh, yes, this post isn't aimed at the people who have been doing this for a while. :) But I do hope it will be useful for relative newcomers.
Tuesday, March 17th, 2009 06:14 am (UTC)
Thank you very much! I'm sure a lot of people will find the list useful, and I've included it in the post.
Tuesday, March 17th, 2009 06:24 am (UTC)
Yes, I second Abyssis' comment: I am awed at Rigel's post and would never have bothered with this if I'd seen it first! :) But I'm glad you found it useful, and I hope others will, too.
Tuesday, March 17th, 2009 06:24 am (UTC)
Fantastic! I've linked to this in the entry, so many thanks. :)
Tuesday, March 17th, 2009 06:25 am (UTC)
::nods:: Some of this seems basic and simple, after a while - but you have to get there first! And if this helps someone streamline that process, then it's worth it. :)
Tuesday, March 17th, 2009 06:26 am (UTC)
Thank you! That's exactly what I'm hoping for - to give a few hints to the people who haven't learned this yet. I know it took me long enough. :)
Tuesday, March 17th, 2009 06:27 am (UTC)
Heh - sometimes I just stare at the screen and wail, Why are you doing this?

One step at a time, for those of us unfamiliar with this. And yes, stay far away from the rich text editor!
Tuesday, March 17th, 2009 06:28 am (UTC)
I confess I do like writing fic in Word, when it's longer stuff, but hoo boy yes it can be a pain! I'm glad you've found part of this helpful. :)
Tuesday, March 17th, 2009 06:30 am (UTC)
Oh, I have definitely found myself adding html coding to e-mail or in IM! It gets to be a habit, after a while. :)

Check out Rigel's awesomely detailed post, cited above and now included in the entry.
Tuesday, March 17th, 2009 06:31 am (UTC)
Oh, yes, definitely a learning processs. And turning off smart quotes and auto formatting makes everything much, much easier. :)

You do find yourself automatically coding by hand after a while, but that's part of the learning process, too.
Tuesday, March 17th, 2009 06:31 am (UTC)
Excellent! I'm glad you found it useful. :)
Tuesday, March 17th, 2009 10:13 am (UTC)
You're welcome!!

And paste "as text" sounds like a great shortcut to what I'm doing now. I like shortcuts! :) Can you tell me how to paste as text, as I can't figure out how to do it in my browser?

Thanks again!
Tuesday, March 17th, 2009 12:00 pm (UTC)
awwww *smishes*

I enjoyed writing that massive screed of a guide, because it had taken me umpteen years of jotting down bits and pieces of information before I managed to get the hang of formatting anything that would come out readable :)

I'm rather thrilled that you found it useful!
Tuesday, March 17th, 2009 02:40 pm (UTC)
I only wish I'd known about it before putting this post together. I would've just linked people there! :D

Seriously, a fantastic resource. Thank you.
Tuesday, March 17th, 2009 02:43 pm (UTC)
In Semagic, it's pretty simple: click on edit, paste special, then text.

Not so sure how to do it in your browser. Maybe someone reading this can chime in?