Difference between revisions of "Documentation/Dashboard/Producing User Guides"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Added details for "Publish a book" & corrected some typos)
(Added details for "Memory settings")
Line 1: Line 1:
Topics for guide to producing OOo user guides (Not necessarily in sequential order)
+
Topics for guide to producing OOo user guides (not necessarily in sequential order)
  
* Set up OOo memory and view options
+
* Set up OOo view options
 
* Download and install chapter template
 
* Download and install chapter template
 
* Download and install Template Changer extension
 
* Download and install Template Changer extension
Line 16: Line 16:
 
* Cross-reference to figures, tables, headings
 
* Cross-reference to figures, tables, headings
 
* Cross-reference to other documents
 
* Cross-reference to other documents
 +
 +
==Set up OOo memory options==
 +
User guide chapters often contain a lot of images, and a full book may have several hundred. When you open one of these documents in OpenOffice.org, it may take several minutes to fully load and display all the images. Later you may discover that images seem to disappear from the document. In fact, the images are still in the file even if you cannot see them on screen or in a PDF created from the file.
 +
 +
This problem can be cured by changing the default memory settings for OpenOffice.org, to make more memory available to OOo, to increase the time that objects remain in memory, and to increase the number of cached objects. To offset the extra memory needed for large numbers of objects, you can usually decrease the memory for each object (images in our documents are typically less than 1 MB) and decrease the number of Undo steps.
 +
 +
{{Documentation/Note|Be aware that choices made for memory allocated to OpenOffice.org can affect the performance of other programs, but most modern computers have enough memory that this is unlikely to be a problem. Also, the best settings for working with our user guides may not be the best settings for other documents that you work on, if those other documents contain larger objects.}}
 +
 +
To change memory settings, go to '''Tools > Options > OpenOffice.org > Memory'''. Here are some suggested settings for working with OOo user guide files:
 +
* Undo
 +
** Number of steps: 20
 +
* Graphics cache
 +
** Use for OpenOffice.org: 256 MB
 +
** Memory per object: 1.0 MB
 +
** Remove from memory after: 1:00 hh:mm
 +
* Cache for inserted objects
 +
** Number of objects: 350
 +
 +
[[Image:Options-mem.png|thumb|none|500px|''Choosing Memory options for working with OOo user guide files'']]
  
 
==How to index a user guide chapter==
 
==How to index a user guide chapter==

Revision as of 21:12, 18 September 2010

Topics for guide to producing OOo user guides (not necessarily in sequential order)

  • Set up OOo view options
  • Download and install chapter template
  • Download and install Template Changer extension
  • Create AutoText entries for Tip, Note, Caution, and data tables
  • Create new chapter from template
  • Update template from website
  • Update chapter file from changed template
  • Create screenshots
  • Create other illustrations
  • Label screenshots and other illos (add callouts)
  • Insert images
  • Cross-reference to figures, tables, headings
  • Cross-reference to other documents

Set up OOo memory options

User guide chapters often contain a lot of images, and a full book may have several hundred. When you open one of these documents in OpenOffice.org, it may take several minutes to fully load and display all the images. Later you may discover that images seem to disappear from the document. In fact, the images are still in the file even if you cannot see them on screen or in a PDF created from the file.

This problem can be cured by changing the default memory settings for OpenOffice.org, to make more memory available to OOo, to increase the time that objects remain in memory, and to increase the number of cached objects. To offset the extra memory needed for large numbers of objects, you can usually decrease the memory for each object (images in our documents are typically less than 1 MB) and decrease the number of Undo steps.

Template:Documentation/Note

To change memory settings, go to Tools > Options > OpenOffice.org > Memory. Here are some suggested settings for working with OOo user guide files:

  • Undo
    • Number of steps: 20
  • Graphics cache
    • Use for OpenOffice.org: 256 MB
    • Memory per object: 1.0 MB
    • Remove from memory after: 1:00 hh:mm
  • Cache for inserted objects
    • Number of objects: 350
Choosing Memory options for working with OOo user guide files

How to index a user guide chapter

  • Insert index entries
  • Edit index entries

How to write and edit common topics

  • Use variables and other fields
  • Use conditional text, hidden paragraphs
  • Insert common topics into a chapter
    • Use sections

How to publish a chapter

When you have decided that a chapter is ready for publishing, do the following:

  1. Make a final pass to check page breaks and make any necessary changes. (Use the keep-with-next attribute, not manual page breaks, and/or change the sequence of text and figures.)
  2. Verify that the first item in the first numbered list in the chapter is explicitly set to start at 1 (this is to make sure the chapter works properly when it is a subdocument in a master document for a compiled book). To do this:
    1. Right-click on the first list paragraph and choose Paragraph.
    2. Go to the Outline & Numbering tab. In the Numbering section, select the checkbox for Restart at this paragraph and select the checkbox for Start with, making sure the number is 1.
    3. Click OK to save the change.
  3. Update the ToC. Make sure there is no (alphabetic) index at the end of the chapter.
  4. On the copyright page, insert the current date and the software version. Verify that the correct email address for OOoAuthors, and the correct URL for published chapters (in the footer), are shown.
  5. Save the ODT file with the correct file name, using the naming convention for published chapters (see below).
  6. Export the file to PDF, using these settings:
    • On the General tab, select Export bookmarks.
    • On the Initial View tab, in the Page layout section, select Continuous facing.
  7. Upload both files to the Published Chapters folder for the relevant book, overwriting any files of the same names that are already there, and change their state to "externally visible".
  8. Tell the Authors list that you have published the chapter.
  9. Update the relevant page in this folder.
  10. Log in to the OpenOffice.org wiki and replace the chapter file (PDF). To do this:
    1. Use an address similar to http://wiki.services.openoffice.org/wiki/File:0401DG3-IntroducingDraw.pdf to get to the File History wiki page for the chapter.
    2. Choose Upload a new version of this file.
    3. On the Upload File page, browse for the chapter file, type something in the File Changes box (usually "corrected typos" or "updated for version x.x" or similar is sufficient). Select the Ignore any warnings checkbox and click the Upload file button.
  11. Go to the User Guides page. Edit that page to show the publication date and file size for the revised chapter.

Naming convention for published chapters

To ensure that chapters and books are listed correctly on the Documentation Project's website, file names take the following form:
AABBCC3-Name, where
AA=book number, BB=chapter number, CC=book initials, 3=OOoVersion 3, Name=Chapter name.

Book number and initials:
01 = GS = Getting Started
02 = WG = Writer Guide
03 = CG = Calc Guide
04 = DG = Draw Guide
05 = IG = Impress Guide
06 = MG = Migration Guide
07 = BG = Database Guide

The chapter or book name is given in full; each word begins with a capital letter and there are no spaces between words.

For example, the third chapter of the Writer Guide, Working with Text, has the following file name:
0203WG3-WorkingWithText.pdf

Note: The "chapter number" for a full book is 00. Thus the file name for the Getting Started book is
0100GS3-GettingStarted.pdf

How to compile and publish a book using a master document

The user guides being produced by OOoAuthors consist of a set of individual chapter files, plus a master document file that combines the chapter files into a book.

The chapter files have been designed so that the copyright page and the chapter's table of contents pages are in a conditional section which is hidden when the chapter is part of a book.

The master document file contains a copyright page listing all the authors of all the chapters in the book and a table of contents for the full book, a TOC for the entire book, and an index for the entire book.

Compiling the book

When you have published several changed chapters in a completed book, you need to regenerate the full book. To do this:

  1. Be sure the *.odt files for the latest version of all chapters are in the Published Chapters folder for the book.
  2. Download all the *.odt (chapter) files and the *.odm (master document) file and place them in a folder on your computer.
  3. If any new names have been added to the Authors section of the copyright page of any chapter, take a note of them.
  4. Open the *.ODM (master doc) file for the book. When asked "Update all links?" click Yes.
  5. Wait while the file loads and paginates; this may take several minutes. To avoid errors, do not do anything with the file until it finishes paginating; do not even scroll through the file.
  6. If any chapter files do not load, you may need to edit the path for those files in the Navigator for the master document. Problem files are shown in red in the Navigator.
  7. When all the files have loaded and the book has finished paginating, regenerate the table of contents and index by right-clicking on each of them and choosing Update from the pop-up menu.
  8. Check that the Authors section of the master document's copyright page includes all the authors for the changed chapters.
  9. Check that the information in File > Properties is correct.
  10. On the copyright page, change the publication date to the current date, change the OOo version information to the version covered by the book, and check that the email address for OOoAuthors and the URL for the published chapters (given in the footer) are correct.
  11. Check that the footers show the correct information: book title on left-hand (even) pages and chapter title on right-hand (odd) pages.
  12. Check that the first item in the first numbered list in each chapter from Chapter 2 on is numbered "1" as it should be; it may continue the numbering from the last list in the preceeding chapter. If necessary, OPEN EACH PROBLEM CHAPTER and explicitly restart at "1" the number of the first list paragraph in the first numbered list in each chapter. To do this:
    1. Right-click on the first list paragraph and choose Paragraph.
    2. Go to the Outline & Numbering tab. In the Numbering section, select the checkbox for Restart at this paragraph and select the checkbox for Start with, making sure the number is 1.
    3. Click OK to save the change.
  13. Check that the copyright pages and TOCs of the individual chapters do NOT appear in the book, and that the [Component} Guide paragraph does not appear on the individual chapters' title pages. Fix in the problem chapter as needed.
    Note: Do not make changes to chapters within a master document, because they are lost when you close the file.
  14. Review the compiled index. If any entries need to be changed, open the relevant chapter and make the changes in the chapter file, not in the index visible in the master document. See also How to index a user guide chapter.
  15. If you have made any changes to the chapters, reload the master document and wait for it to paginate again. Recheck to ensure all is well. Repeat as needed.
  16. A bug in OOo (or a gremlin in some of our older files) causes some figure and table numbers, and some cross-references to figures and tables, to be incorrect in the master doc, even though they are correct in the subdocs. You really need to go through the entire book, checking and fixing any incorrect figure numbers or references. This is a major PITA, so we do not regenerate the books very often. To fix the x-refs, open the subdoc itself, delete the wrong x-refs, and recreate them—even though they appear to be correct in the subdoc. This will usually cure the problem (for that x-ref) in the master document. After editing the subdocs, reload the chapters into the master document.
  17. When all changes have been done, regenerate the TOC and index in the master document. Save the master document.
  18. Create one ODT file from the master doc and its subdocs, as explained in Chapter 13 (Working with Master Documents) in the Writer Guide. Remove the links to the sections, to embed the text into the ODT file. Then either remove the write protection on the sections or remove the sections completely (the contents remain; only the section markers are removed). Name this ODT file according to the naming convention for published documents (see below).
  19. Check the ODT file you just created again to make sure the cross-references, page breaks, list numbering, and other potential problems are fixed.
  20. Select File > Export as PDF. Choose the following settings:
    • On the General tab, select Export bookmarks.
    • On the Initial View tab, in the Page layout section, select Continuous facing.
  21. Name the PDF according to the naming convention for published documents (see below).

Publishing the book

  1. Upload the changed master doc file, the ODT file containing the full book, and the PDF file to the Published Chapters folder for the book, replacing the previous version of the master doc and the book. Set the state of the master doc (.odm) and the PDF to "externally visible" but set the state of the ODT as "internally published".
  2. If any chapter files have been modified during book production, upload the changed files to the Published Chapters folder for the book, replacing the previous versions. Set the state to "externally visible".
  3. Log in to the OpenOffice.org wiki and replace the book file (PDF). To do this:
    1. Use an address similar to http://wiki.services.openoffice.org/wiki/File:0100GS3-GettingStartedOOo3.pdf to get to the File History wiki page for the book.
    2. Choose Upload a new version of this file.
    3. On the Upload File page, browse for the book file, type something in the File Changes box (usually "corrected typos" or "updated for version x.x" or similar is sufficient). Select the Ignore any warnings checkbox and click the Upload file button.
  4. Go to the User Guides page. Edit that page to show the publication date and file size for the revised book.
  5. For the convenience of translators, create a zip file containing the master document (ODM) and all the individual chapters (ODT). Create another zip file containing all the individual PDFs. Upload these zip files to o the Published Chapters folder for the book, replacing the previous versions. Set the state to "externally visible".
  6. Tell the Authors list that you have republished the book.

Naming convention for published books

To ensure that chapters and books are listed correctly on the Documentation Project's website, file names take the following form:
AA00CC3-Name.pdf, where
AA=book number, 00=book (these are zeros), CC=book initials, 3=OOo3, Name=Chapter name.

Book number and initials:
01 = GS = Getting Started
02 = WG = Writer Guide
03 = CG = Calc Guide
04 = DG = Draw Guide
05 = IG = Impress Guide
06 = MG = Migration Guide
07 = BG = Database Guide

The book name is given in full; each word begins with a capital letter and there are no spaces between words. So for example, the file name for the Getting Started with OOo3 book is
0100GS3-GettingStarted.pdf

Personal tools