Saturday, October 2, 2010

Formatting a Book in Word 2003 for Publishing with Lightning Source (LSI)

As a rule, new publishers have little money, and need a way to economically produce professional looking books. Here is the question many new publishers ask: Can Word 2003 produce a professional looking book?

The answer is YES. You don’t need a book designer or fancy software to make a professional looking book.*  Word is especially excellent for producing fiction novels. Diamond Press has now published two romance novels, entirely formatted in Word 2003. In fact, I just received the proof for the second book in the mail today, and was thrilled by how professional it looks—and all by using only Word! In this article, I’ll show you how to do the same. A warning--this article is very much a technical, “how to” post on how to format your book in Word for publishing through Lightning Source. You may want to open your manuscript file and work on it as we go along.

First of all, you must decide which LSI trim size you would like to use to publish your book. LSI offers 5” x 8”, 6” x 9” and so on. To peruse a list of all the book sizes Lightning Source offers, go to LSI’s home page (http://www.lightningsource.com/), go to “File Creation” and select “Cover Template Generator.” On that page, you’ll see that you can choose creme or white paper (I like to use creme for a fiction novel). In addition, in the pull down box next to “Book Type,” you’ll see a list of all of the book sizes available through LSI. For fiction and most books through LSI, you’ll want to choose “perfect bound,” which means a trade paperback. Choose the size you want, and take note of it. (For fiction, I like to use the 5” x 8” size, while for nonfiction, author Aaron Shepard likes to use the 6” x 9” size for his wonderful books on POD publishing.)

Now you’re ready to set up your book in Word. (By the way, for an example of how Diamond Press has used Word to publish a book, click here to download a sample Word Doc (5" x 8" size) of an actual book that has been published through LSI. It includes all of the front matter and a few pages of Chapter One.) Click on the next link to download an example of a 6" x 9" nonfiction book. (Please disregard the paragraph spacing in this example, as it is a diary. Most books are single-spaced with indents, not double-spaced between paragraphs.)

For the sake of this article, I will assume that you would like to publish a book in the 5 x 8 trim size.

Change Paper Size in Word

First, you’ll need to change the paper size in Word to 5 x 8. This way, you'll know what the finished product looks like (on the screen, at least). It will also then be ready to be easily converted to LSI's required PDF format.

Go to File—Page SetUp, and click on the Paper tab. It'll probably have 8 1/2 x 11 as the paper size. Just type in 5" in the width section and 8" in the height section. To adjust the margins, (still in Page Setup) click the Margins tab. Under the "Margins" section on the page, type in the margins you want. Here are the margins I like to use:

.75 on top, .46 on bottom, .65 (for a bit more room, .75 works well) on inside (left), .5 outside (right)

If you would like to have mirror margins (the inner gutter is different than the outer gutter), on that same page go to the "Pages, Multiple pages" section. In the pull down box select "Mirror Margins." Again, you can take a look at this Word document formatted for Lightning Source to see exactly what numbers are typed into the various boxes.

Choose Your Font and Line Spacing

Choosing a font for your book is a very important decision. You want the font to be clearly legible and professional. A number of fonts will fit this bill nicely. I like to use Georgia, because it looks crisp and professional, and prints well through LSI.

Select all of the text you’d like to format, and then go to Format—Font, and choose the font and point size you'd like. (For the main text of the book, I use Georgia, 10 pt.) Next, go to Format—Paragraph and choose your line spacing. Under “Spacing” choose “0 pt” for both “before” and “after” boxes. Next to this, in “line spacing” choose “exactly,” and next to it, “At;” choose 13 pt.

If you’d like to use a different font, just experiment by trying different typefaces and line spacing values. Print a page of each experiment, because then you’ll see how it will look when it is printed by LSI. (For a 6 x 9 book, author Aaron Shepard reports using 12 pt Georgia with 15 pt line spacing.)

Justified Margins

Most books are published with justified margins. If you’d like your book formatted with justified margins, go to Format—Paragraph—Indents and Spacing. Under “General” Alignment choose “Justified.” Next to this, in “Outline level” choose “body text.” Please be aware that if you choose “justified, you will need to go through your book again and possibly re-center chapter headings, etc. Under the “Indentation” section, choose “0” for both left and right pull down boxes.

Use Indents instead of Tabs

Under the “Special” pull down box, choose “first line indent”. Under “By” choose 0.25” or 0.33”—or whatever you’d like the indent to be for the beginning of each paragraph. If there are paragraphs in the manuscript for which you don’t want an indent, this can be adjusted easily.  First, place your cursor where you’d like the indent removed, and then with your mouse go to the top ruler and slide the indent triangle to the zero position. This procedure may need to be done for centered Chapter Headings as well.

Using indents rather than tabs is especially important if you’d like your books converted into Kindle or other ebook formats in the future. According to Smashwords documentation, tabs do not work well for ebook formats. In fact, if you have tabs, you will need to delete them. Select the tab, copy it, and then in Edit—Replace, paste the tab in the “find” section, leave the “replace” section blank, and replace all tabs in the document.

Headers and Footers

I like to use headers without footers, because then I can get more printed lines of the novel on the page. I use a different header for the left and right pages, and include the page number in the Header box. To accomplish this, you’ll need to make several additional formatting changes in the Page Setup box.

To make these adjustments, go to File—Page Setup—Layout. Under the Headers and Footers section, check the two boxes entitled “different odd and even pages” and “different first page.” In the dimensions box type the following: Header: 0.4”, Footer 0” (use “0” only if you don’t plan to use a footer—if you do, then experiment to figure out the best spacing for the footer). At the bottom of this page, under the “Preview” section’s “Apply to” pull down box, select “This section.” Click Okay to save changes.

NOTE:

In order to prevent headers/footers from printing on the front matter of the book, and the first page of each chapter, you will need to do the following:

At the bottom of each page of the front matter go to Insert—Break, “Section break types” and choose “even page” (at the end of the first page of front matter), “odd page” at the end of the next, and so on, until you’re ready to begin the first chapter. At the end of the page preceding the first chapter, choose Insert—Break “odd page.” (This will ensure that your first chapter begins on an odd page.) Subsequent chapters can be sectioned off by using the section break for "next page." All of these page break options will give the next page a “first page” status, and the headers will not print on these pages, since you’ve already selected the option “different first page,” above.

Additional Helpful Setup Options

Go to Tools, Options, Compatibility and check the next box:
"Don’t Use HTML paragraph auto spacing"

ALWAYS make sure the Widow/Orphan box is marked. (Format—Paragraph—Line and Page Breaks, check “widow/orphan” box.)

At any time, in order to show the hidden formatting on the page (especially useful when dealing with section breaks), go to Tools—Options—View and in the "Formatting Marks" section, check the box next to "All."

Hyphenation

Set all hyphenation to ON. (Tools—Language—Hyphenation)
However, sometimes you won’t want a word hyphenated, such as at the bottom of a page which leads into another page, or for other aesthetic reasons. If this is the case:

To delete the hyphens in the entire paragraph, highlight the word, then go to:
Format—Paragraph—Lines and Page Breaks, and click “don’t hyphenate.”

Sometimes choosing this option results in large gaps between words on the line, or in the paragraph. If this is the case, undo the last action and highlight the line with the word you don't want hyphenated, go to Format—Font—Character Spacing, and under “Spacing” reduce it by 0.1 pt. The selected characters/words on that line will be scrunched a bit closer together, which may eliminate the need for hyphenation. See if that works better.

Final Details

When you have formatted your book the way you’d like it to look, view the book under “Print Preview,” and choose the “two pages” option. The first page of your front matter should be on the right side, with no page at all on the left. The first page of your first chapter should be on the right as well, preferably with a blank page on the left, preceding it. Again, please take a look at this example to see how it should look.

Congratulations! You’ve made it through a whole lot of technical details! You’re well on your way to publishing your professional looking book through Lightning Source.


* You do not need a book designer or fancy software unless you are producing books that include a number of graphics, pictures and tables which require exact placement on the page. If this is the case, you might want to use InDesign (or a similar program) to produce the professional books you need.



“Thy Word is a lamp unto my feet
And a light unto my path.”
~ Psalm 119:105

Friday, July 23, 2010

Simple Contact Form with Recaptcha: Code and How to Install

Let's face it. You want your website or blog visitors to be able to contact you. On the other hand, allowing all of the web to find your email address will only invite emails of the worst kind--spam.  The best way to receive the emails you want and at the same time protect yourself from spam is to use a simple contact form.  Even better, a simple contact form with recaptcha built in. Recaptcha requires the person to type in specific letters and numbers before the email is sent to you. 

This post will tell you where to find a simple contact form and how to install it in several easy steps. 

First of all, I have to give full kudos to Chris Coyier of CSS-Tricks, because he is the one who developed the basic, simple contact form I will describe how to install.  I tweaked the files a bit, to better suit my purposes.  Click to see an example of my simple contact form with recaptcha.  Here's another contact form that is a little bit different. Click here to see Chris's. (If you prefer his, then download the files from his site.)  If you'd prefer mine, click here to download the zip file.  I found it convenient to download the file to the contact folder within my website.

Get Your Recaptcha Key Codes

After you've downloaded the file and unzipped it, go to the Recaptcha website to get the key codes you'll need for your recaptcha to work.  Go to: http://www.google.com/recaptcha/plugins/php  Click on the link sign up for an API key. (Or, go directly to: https://www.google.com/recaptcha/admin/create)  Type in your website address.  If you need a global key, follow their instructions. Then click "Create Key." The page that loads has your Public Key and Private Key. Save this information in a safe place, for you will need to be able to access it to modify the contact form files.

Use your website design software to make the following changes to your new files.

Modify the file:  contactengine.php

1.  Replace the words YOURPRIVATEKEYHERE with your Private Key, supplied by the Recaptcha website.
2. Replace the captilized words below with the email address you want the message sent to (both addresses must be the same, as in the example):

$EmailFrom = "YOURCONTACTNAME@YOURDOMAIN.com";
$EmailTo = "YOURCONTACTNAME@YOURDOMAIN.com";

Modify the file:  style.css

1.  If you'd like, change the background image or color.  The following is the code currently in the file which points to a url for a repeating image in the images folder:

body {
font-size: 62.5%;
font-family: Helvetica, sans-serif;
background: url(images/expnewbg-mainbackground.png) repeat;
}

If you'd like to use your own image, or Chris' pinstriped black image, replace the url above with one in the images folder.

If you'd like to use a solid color instead, replace the background line with the following:

background: #000000;
Only, of course, replace the 000000 (which is black) with your own color code.

2.  Another color you might like to change is the background color under the section #page-wrap. Modify as desired.

Modify the file:  contactthanks.php

This is the file that comes up after someone successfully sends a message to you. 

1.  If you'd like your website banner at the top of the page, copy your own banner into the images file and replace (line 7) "dpbackground.jpg" with your own file name.  Also, change the Cap Letters for the alt section. If you don't want a banner, just delete line 7.

2.  Where would you like to direct your visitor after he has successfully emailed you?  On this contact thank you page, provide a link for him to click so he can return to your main page. Update the link and TEXT (line 22) with the correct information for your website.

Modify the file:  index.php

This is the actual simple contact form with recaptcha that your visitor will see when they email you.

1.  Change line 19 in the same way you changed line 7 under step 1 of "Modify the file: contactthanks.php".
2.  Copy and paste your public and private keys into the following code in the file:

$publickey = "YOURPUBLICKEYHERE";
$privatekey = "YOURPRIVATEKEYHERE";


That's it!  Congratulations!  Now you just need to update your contact links in your website so they hyperlink to your index.php file.  Upload it to your server and test it out.

Hope this helps!


"Many are the plans in a man's heart,
but it is the LORD's purpose that prevails." ~ Proverbs 19:21

Tuesday, July 13, 2010

Search Engine Optimization (SEO) for your Website or Blog

Search Engine Optimization is the holy grail of website designers, website owners and bloggers.  We want to get traffic to our pages so we can communicate to the world, sell a product, or promote a cause. But how do we get noticed?  Specifically, how do we convince Google and other search engines to rank our pages higher than those of another website?  The answer is search engine optimization (SEO).

Search engine optimization, at it's basic level, is fairly simple.  It can also be far more complex than I'll get into here, but these tips are a great way to start, and with a little time and effort, anyone can do them to improve their website or blog's page ranking.

Get quality links coming into your site. It is a fantastic way to improve your site's search engine optimization. 

The best links are from websites that are similar to yours in subject.  For example, if you are selling sculptures, links from other art related sites will help you in two ways:

1) You may get clicks from their site to yours, since their customers are looking for art, and you offer sculptures, and

2) When a search engine assesses the keywords in the linking site, it takes several factors into consideration to determine the quality of the link.  In the art example we're talking about, Google will look at the site's key words, determine that it is an art site, and when it follows the link and discovers yours is an art site also, it concludes that yours is a relevant site. It will reward the link accordingly.  It helps if key words relating to your site are imbedded in the host link.  Such as Stainless Steel Sculptures in this example. 

By the way, the worst links are those coming from link farms.  Google places no value on these links, and in fact, it is now believed by SEO experts that if the linking page/site is being penalized in some way by Google, that can negatively affect your own page ranking.  Get quality links!!!

Keywords are "key" to improving your site's SEO. Choose appropriate keywords to incorporate into your web pages.

Choosing the correct keywords for your web pages or blog is vital.  It may help to first answer the following questions:

1.  Who will visit your page and why?
2.  What information are they looking for?
3.  How does your web page meet their need?

You'll notice I'm saying web page, not website.  This is because it is likely each page of your site will have a different purpose.  For example, you may have a contact page, or a faq page.  These pages will require different keywords, because their purpose is different than your main page or your product page.

Let's go back to the art example.  If you are selling sculptures, determine which page you would like your visitor to land on.  The first page?  The sculpture product page?  After you have decided, then it is time to determine the best keywords for that particular page.  Once you have found those keywords, sprinkle them liberally on the page (in context please, and not enough to be annoying, of course), and include them in your page title, description and meta tags.  More on this later.

Think about the product you want to sell.  Say you have several stainless steel art sculptures to sell.  Brainstorm keyword ideas and write them down.  Imagine you are an art connoisseur, looking for that perfect sculpture for your garden. What keywords would you type into Google to find that perfect art piece? Stainless steel sculpture?  Garden Art? You get the idea.  (And let's not forget about Google images.  Later, I'll tell you how to use keywords with images, too.)

Now let's get a few more keyword ideas.  Two wonderful sites for this are:

Google Insights for Searchhttp://www.google.com/insights/search/
Type in your keyword(s), and hit "Search." The keywords' popularity will be listed on the right side of the page (a blue bar under the word TOTALS). Related keywords are listed at the bottom of the page.  These are additional ideas to add to your keyword brainstorming sheet.

Google Adwords: Keyword Tool: http://adwords.google.com/select/KeywordToolExternal 
At the top of the page, under "Find Keywords," type in the keywords you would like to research, and hit "Search." A table will load up, full of information about your keywords, plus additional, related keywords.  (You can delete any irrelevant words, if you wish.) 

You can customize these columns by clicking on the tab "Columns." I like to look at the "Estimated Average CPC," "Competition" and "Global Monthly Searches."  The local search columns can be helpful, too, depending upon your purposes.  These columns convey a wealth of information.  The "Competition" column tells you how popular that search term is.  If the bar is completely green, the competition is high.  By correlation, the "Global Monthly Search" level is also high (lots of people are searching for this term), and the "Estimated Ave. CPC" (CPC stands for cost per click in an Adwords campaign) is high, also.

While these highly competitive keywords might relate perfectly to your site, the competition is clearly fierce for those words.  It will be easy to get lost in the crowd.  While you can certainly use those keywords in your web page, you might want to focus more closely on different keywords--keywords with high relevance to your page, and less competition.  The book "Search Engine Optimization: An Hour a Day," by Jennifer Grappone and Gradiva Couzin, (an excellent book, by the way--I highly recommend it), advises website designers to choose keywords with the following attributes:

1.  Lower Popularity and Higher Relevance (meaning the keywords are very relevant to your page)
2.  Higher Competition along with Higher Relevance

If you'd like an Excel spreadsheet of the data you've found on the Adwords site, you'll want to click the button at the top of the page that says "Previous Interface."  It will allow you to export your findings to an Excel file, and download it to your computer.

By now you have a good number of possible keywords to use.  I recommend using one last tool to narrow down your best keywords to a manageable handful of five to ten.  To further determine your competition for keywords, go to http://www.google.com/.  In the search box type:  allintitle: YOUR SEARCH TERMS  and click "search." 

Google will tell you (in the line directly below the search box), exactly how many results (web pages) have your search terms in their title.  Once again, a large number means you're competing against a whole lot of people.  Keep in mind when choosing your keywords that while there are millions of fish in the sea, it's easy to drown in deep waters.  On the other hand, a tidal pool may have only a few fish, but they are easier to catch.

After you've decided on your keywords, it's time to implement them into your site.  Finally!

Plug your Keywords into Your Site in order to Improve your Website's Search Engine Optimization.

1.  Put your best keywords into the html of your site.  Put the best phrase(s) in your title (place them between the two Title tags). Add your keywords to your Meta tags, and include them in your Meta description.  NOTE:  If you put the keywords in your title, meta tags and meta description, be sure those exact keywords are located in the actual text of your page.  Title tags and Meta tags matter little if the search engines don't find the keywords in the actual content of your page.

2. Use your keywords as often as possible in your page content (without being obnoxious about it). Especially include your keywords in headers.  Search engines pay attention to bold or other emphasized text, and draw the conclusion that the content on your page is about the headlined text.

3. Remember I said I'd explain how to optimize your images for SEO?  It's easy.  Include keywords within the alt tags of the photo's html.  I like to put relevant keywords in both the short and long descriptions.  This way when people search Google images and type in your keywords, your pictures can come up.  Easy!

As I said in the beginning, search engine optimization is not hard, although it can be time consuming.  In addition, many more steps can be taken to further optimize your website for the search engines, but the steps I've outlined are a great way to start. With a little time and effort, you can begin to make your website into the popular site you would like it to be.


"For the LORD God is a sun and shield; the LORD bestows favor and honor;
no good thing does He withhold from those whose walk is blameless."
Psalm 84:11

Thursday, July 8, 2010

Basic Gimp - Scale (Resize) a Picture

Gimp is a free, open source program, which allows you to edit photos and images. It's available at the following website: http://www.gimp.org/

The Gimp website does contain extensive intructions, but I found it difficult to find answers to my beginning, basic questions about Gimp. As a consequence, I spent a great deal of time researching the internet and watching YouTube videos of how to do basic Gimp functions.  By the way, there are some fantastic YouTube videos out there, and I highly recommend them. GimpKnowHow does a particularly fine job.

Here is how to do the most basic functions in Gimp:

Undo Last Command - Ctrl Z
Redo Last Command - Ctrl Y

Scale/Resize a Photo or Picture Image to a Smaller size:

1.  Open the picture or image you would like to resize.
2.  In the Toolbox, click on the Crop tool.  (It looks like a square with a little square flying out of it.)
3.  Click on the picture or photo you would like to resize. A dialogue box will appear. To make the image scale proportionately, click the chain links object (next to the width and height boxes) so they link together. Type in the width or height dimension you need. Press "Enter," and the other measurement box will change accordingly.
4.  To actually scale the picture, click the "Scale" button.
5.  Now your picture is resized.   Only now you will see a lot of checkered gray area surrounding your picture. How to get rid of it?
6.  At the top of the Gimp task pane, click "Image," and then "Fit Canvas to Layers." Now all of the checkered gray is gone.

To Save Your File:

To save as a native Gimp file (and keep all layers separated), click "File," "Save As," and then type your new file name in the pop up dialogue box and add the extension .xcf.  For example, yourfilename.xcf

To save as a JPEG or TIFF File, you will first need to flatten the image before you can save it.
1.  In the layers panel, 'right click' in the white area below the tiny thumbnail of your picture
2.  Click "Flatten Image."
3.  Now you can save.  Go to "File," "Save As," and in the pop up box type in your new file name with either the extension .jpg or .tiff   Click "Save" (my version of Gimp requires me to click "Save" twice. I'm not sure why). In the pop up box you can choose the quality (or compression, if it's a TIFF file) of the final file. After this, click "Save," and you are done!

Check back for more tutorials for learning basic Gimp. Other areas we will cover include:

1. Cropping a picture
2. Cut with transparency
3. Layers
4. Cloning
5. Delete bits of a picture and make them transparent

Have a great day!

"Fear of man will prove to be a snare,
but whoever trusts in the LORD is kept safe." ~ Proverbs 29:25