# translate("Typesetting in Adobe InDesign CS5.5")

## translate("Introduction")

translate("See the online help about typesetting for more information and general principles.")

## translate("Chapter numbers in drop caps")

translate("Bibledit normally exports chapter numbers in bigger font in a text frame.")

translate("In InDesign it is helpful to have these in drop caps.")

- translate("Go to Bibledit, menu Export.")
- translate("There is a setting for using frames in the drop caps. Switch it off.")
- translate("Do a fresh export.")

## translate("Creating a new document")

translate("Typesetting in InDesign starts with creating a new document.")

- translate("Choose menu File / New / Document, or press Ctrl-N.")
- translate("In the New Document dialog, make some settings.")
- translate("Facing Pages: on.")
- translate("Page width: 138 mm.")
- translate("Page height: 210 mm.")
- translate("Number of columns: 2.")
- translate("Gutter: 4.2 mm.")
- translate("Top, Bottom and Outside margins: 10 mm.")
- translate("Untick the option to set all margins the same.")
- translate("Inside margin: 12 mm.")
- translate("Click Save Preset, and save the settings as 'Ndebele'. Next time, use this preset to quickly make another new document with the same settings as this one.")
- translate("Click OK to create the new document.")

## translate("Setting up the baseline grid")

translate("All our text will stick to the baseline grid.")

translate("This is a key factor to good typography.")

translate("My leading is 12 points, and I will set up a grid to reflect this.")

translate("Go to menu Edit / Preferences / Grids.")

translate("Start the baseline grid at 0 mm relative to the top margin.")

translate("Increment it every 12 points.")

translate("Press OK. The grid is now set up.")

translate("Optionally, to make it visible, go to menu View / Grids and Guides / Show Baseline Grid.")

## translate("Placing text")

translate("I am going to show how to place Bible text in InDesign.")

translate("The text is available from Bibledit as OpenDocument files.")

translate("Open the book of Genesis, the version with text and note citations, in OpenOffice.")

translate("Save it as a Microsoft Word 97-2003 (.doc) document.")

translate("Create a new document in InDesign.")

translate("Go to menu File / Place, or press Ctrl-D.")

translate("Select the document in MS Word (.doc) format.")

translate("Move the cursor through the document in InDesign. Notice that the cursor shows some of the text to be placed.")

translate("Move the cursor to the corner of the first column where the text will start. Click there. Notice that the first bit of the text will be placed in the first column.")

translate("There is much more text than what fits in just one column. This extra text is not visible. What is visible, though, is a red plus near the end of the first column. This shows that more text is available.")

translate("I would like to place this extra text in the second column.")

translate("Click the Selection Tool or press V. The cursor changes to a selection arrow.")

translate("Select the first column, and then click the red plus near the end of the first column. Notice that the cursor will now show some text.")

translate("Place this text in the second column, in the same way as it was placed in the first column.")

translate("There is still more text than fits in the second column. I estimate that there is enough text to fill many pages.")

translate("I am going to insert an extra page, so that we get more space to place the text.")

translate("To add blank pages, I need to have the Pages palette visible. If the Pages palette is not visible, choose Window > Pages to open the palette.")

translate("In the Pages palette, click Create new page. A new page will be added. This is page 2. Press F12 to close the palette.")

translate("Page 2 shows guides for two columns. I can fill these with text in the manner as described above.")

translate("I can then add as many pages as are needed, and fill each page with text.")

## translate("Span headlines across columns")

translate("The headline I have in this example is 'The first book of Moses called Genesis'. I'd like it to span across the two columns.")

translate("Select the left column, and drag the top to make it shorter, so creating space above it.")

translate("Do the same with the right column.")

translate("Select the text 'The first book of Moses called Genesis'. Cut it to the clipboard.")

translate("Click the Type tool or type Escape T.")

translate("Create a new text box above the two columns. Let it span across the two columns. Estimate the size it needs to be.")

translate("Paste the text into that text box.")

translate("Resize the text box so it looks smart. Then resize both columns so that all looks good.")

## translate("Making text align to the grid")

translate("Text aligned to the grid is key to good typesetting.")

translate("Select all text you would like to stick to the baseline grid.")

translate("Go to menu Type / Paragraph, or press Alt-Ctrl-T.")

translate("Press the Align to baseline grid button in the bottom right hand corner.")

translate("The leading of the text should be equal to the baseline grid. If the leading of the text is bigger, then it is like as if you have double line spacing.")

## translate("Total page count")

translate("The publisher may set limits to the number of pages the typeset Bible may contain.")

translate("In this example, we expect an entire Bible, with singable Psalms added as an appendix, to contain no more than 2000 pages. Normal range is 1500 to 1800 pages.")

translate("We suppose that the singable Psalms take up no more than 200 pages.")

translate("Usually the inclusion of the singable Psalms in a Bible will add about 10 percent to the number of pages.")

translate("The Bible will have footnotes and crossreferences, all lumped together into a single textframe at the bottom of each page.")

translate("Let us now measure how many pages the notes are likely to take up.")

translate("Create a new document in InDesign.")

translate("Open the file with all notes in LibreOffice. It is 00_Bible_notes.odt. Save it in the correct format for InDesign.")

translate("Place the text as described above. But I am going to use Autoflow this time. Autoflow will automatically create new text boxes and new page till all text has been placed. This allows us quickly to see how many pages the notes will take up.")

translate("This is how to use Autoflow.")

translate("When you are about the click where you want the text to go, keep the Shift key down.")

translate("I can now roughly see the total number of pages that the notes will take up.")

translate("This is sufficient for an estimate.")

translate("Let us now find out how many pages the main text body is likely to take up.")

translate("The text is in the file called 00_Bible_text_and_note_citations.odt.")

translate("Place this text and use Autoflow.")

translate("It appears that, on my system, all text cannot be placed at once. It will cut off after some point.")

translate("I will place 01_Genesis_text_and_note_citations.odt instead.")

translate("I can now roughly see the total number of pages that the text of Genesis will take up.")

translate("The size of the whole Bible is about 22 times more than the size of Genesis.")

translate("The font is of particular influence on the page count. This is not dealt with here.")

## translate("Editing a paragraph style")

translate("After exporting USFM text to OpenDocument, and placing this text into InDesign, the USFM styles appear in InDesign.")

translate("For example, normal paragraphs usually have style 'p', and section heading 's'.")

translate("If you like to update a paragraph style, you may update each section heading individually, but this is a lot of work. It is faster to update the style for 's', so that this updates all paragraphs that have this style.")

translate("To update a paragraph style, place the cursor in it, and on the palette choose Paragraph Styles. Right-click the style you want and choose Edit.")

translate("Section headings look better after ticking ‘Balance ragged lines’ in the paragraph options.")

## translate("Running headers")

translate("The Bible will have running headers. The headers contain the page number near the inside margin. At the right margin it shows book and chapter numbers on that page.")

translate("Enter the page numbers on the master pages.")

translate("On the Pages palette, double-click the master pages.")

translate("On the left master page, create a text frame, and enter the page number at the inside margin.")

translate("Page numbers can be found in menu Type / Insert Special Character / Marker / Current Page Number.")

translate("On the right master page, create a text frame, and enter the page number at the inside margin too.")

translate("On page 1, create a new text frame at the top, and put the book and chapter at the outside margin.")

translate("This text frame can be copied to each odd page as it is generated.")

translate("The same applies for page 2, and any subsequent even pages.")

translate("The page where a book starts normally does not display a page number.")

translate("In order to do that, apply master page [None] to that particular page.")

## translate("Space between drop caps and text")

translate("It may be visually pleasant to have some space between the drop caps chapter numbers and the text beside it.")

translate("All that is needed is a fixed space after the chapter numbers. Pick any one from a hair space to an em space. The number of characters in drop caps is now increased by one. Set this value in the drop cap settings. All lines after the first will automatically line up.")

## translate("Managing widows or orphans")

translate("Widows and orphans are words or short lines at the beginning or end of a paragraph, which are left dangling at the top or bottom of a column, separated from the rest of the paragraph.")

translate("There is some disagreement about the definitions of widow and orphan; what one calls a widow the other calls an orphan.")

translate("There are some ways to avoid widows or orphans.")

translate("- Adjusting the spacing between words to produce tighter or looser paragraphs.")

translate("- Adjusting the tracking of the text. This is the overall spacing of the letters in a paragraph or on a line. With a good font in justified paragraphs this can usually be adjusted by up to -25 or +15 without it looking too out of place.")

translate("- Adjusting the hyphenation of words within the paragraph.")

translate("- Forcing a word down onto the next line using a soft return.")

## translate("Scripting")

translate("Here is a sample script.") translate("It runs in InDesign.") translate("It shows how to replace text, and how to update the formatting.")

    ﻿// InDesign CS5.5 JavaScript
    // Used for typesetting the Bible.

    main();

    function main(){

        var myDocument = app.activeDocument;
        var paragraphStyle;

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedFont = "Times New Roman";
        app.changeTextPreferences.appliedFont = "Minion Pro";
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("mt");
        app.changeTextPreferences.fontStyle = "Bold";
        app.changeTextPreferences.pointSize = 20;
        app.changeTextPreferences.spaceBefore = 0;
        app.changeTextPreferences.spaceAfter = 0;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("mt2");
        app.changeTextPreferences.fontStyle = "Regular";
        app.changeTextPreferences.pointSize = 14;
        app.changeTextPreferences.spaceBefore = 0;
        app.changeTextPreferences.spaceAfter = 0;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("s");
        app.changeTextPreferences.fontStyle = "Italic";
        app.changeTextPreferences.pointSize = 11;
        app.changeTextPreferences.spaceBefore = 2;
        app.changeTextPreferences.spaceAfter = 0;
        app.changeTextPreferences.baselineShift = 3;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("p");
        app.changeTextPreferences.fontStyle = "Regular";
        app.changeTextPreferences.pointSize = 11;
        app.changeTextPreferences.spaceBefore = 0;
        app.changeTextPreferences.spaceAfter = 0;
        app.changeTextPreferences.firstLineIndent = 3;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("p_c1");
        app.changeTextPreferences.dropCapCharacters = 2; // Insert thin space for proper spacing.
        app.changeTextPreferences.dropCapLines = 2;
        app.changeTextPreferences.pointSize = 11;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        //app.findTextPreferences.appliedParagraphStyle = ("nb_c1");
        //app.changeTextPreferences.dropCapCharacters = 2; // Insert thin space for proper spacing.
        //app.changeTextPreferences.dropCapLines = 2;
        //app.changeTextPreferences.pointSize = 11;
        //myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedParagraphStyle = ("p_c2");
        app.changeTextPreferences.dropCapCharacters = 3; // Insert thin space for proper spacing.
        app.changeTextPreferences.dropCapLines = 2;
        app.changeTextPreferences.pointSize = 11;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        //app.findTextPreferences.appliedParagraphStyle = ("nb_c2");
        //app.changeTextPreferences.dropCapCharacters = 3; // Insert thin space for proper spacing.
        //app.changeTextPreferences.dropCapLines = 2;
        //app.changeTextPreferences.pointSize = 11;
        //myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        //app.findTextPreferences.appliedParagraphStyle = ("p_c3");
        //app.changeTextPreferences.dropCapCharacters = 4; // Insert thin space for proper spacing.
        //app.changeTextPreferences.dropCapLines = 2;
        //myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        app.findTextPreferences.appliedCharacterStyle = ("v");
        app.changeTextPreferences.pointSize = 9;
        app.changeTextPreferences.baselineShift = 2;
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

        // Change the thin space after the verse number to an even thinner one,
        // so that the verse number gets nearer the following text than to the previous text.
        app.findTextPreferences.findWhat = " ";
        app.changeTextPreferences.changeTo = " ";
        myDocument.changeText ();

        app.findTextPreferences = NothingEnum.nothing;
        app.changeTextPreferences = NothingEnum.nothing;

    }