Changeset 30743 for documentation

Show
Ignore:
Timestamp:
24.08.2016 14:25:07 (3 years ago)
Author:
kjdon
Message:

some changes for enhanced_pdf to do with table of contents display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/xml-source/tutorial_en.xml

    r30738 r30743  
    13121312<Text id="ep-7"><b>Build</b> and <b>preview</b> the collection. View the text versions of some of the PDF documents. <MajorVersion number="2">Note that these are now split into a series of pages, and a "go to page" box is provided.  
    13131313</MajorVersion> 
    1314 <MajorVersion number="3">Note that these are now split into a series of pages, and two means of jumping between various pages is provided: on the left, individual pages are listed vertically by page number and clicking the "plus" box next to a page will expand its contents, while on the right there's a box with a horizontal scroller which can be used to scroll to the page you wish to view. 
     1314<MajorVersion number="3">Note that these are now split into a series of pages, and a table of contents is provided to the right. 
    13151315</MajorVersion> 
    13161316<MajorVersion number="2">The format is still a bit ugly though, and</MajorVersion><MajorVersion number="3">Note that</MajorVersion> pdf05-notext.pdf is still not processed.</Text> 
     
    13281328<NumberedItem> 
    13291329<Text id="ep-14-3"><b>Build</b> the collection and <b>preview</b>.  
    1330 All PDF documents (including pdf05-notext.pdf) have been processed and divided into sections. 
    1331 Images from the document are now displayed instead of the extracted text. Both <Path>pdf05-notext.pdf</Path> and <Path>pdf06-weirdchars.pdf</Path> display nicely now.</Text> 
     1330All PDF documents (including pdf05-notext.pdf) have been processed and divided into a series of page sections, one image per page.  
     1331Images from the document are now displayed instead of the extracted text. The table of contents on the right now displays a horizontal scroller containing thumbnails of each page. Both <Path>pdf05-notext.pdf</Path> and <Path>pdf06-weirdchars.pdf</Path> display nicely now.</Text> 
    13321332</NumberedItem> 
    13331333</MajorVersion> 
     
    13931393<Text id="ep-33">Build and preview the collection. All PDF documents should look relatively nice. Try searching this collection. You will be able to search for the PDFs that were converted to HTML (try e.g. <AutoText text="bibliography" type="quoted"/>), but not the ones that were converted to images (try searching for <AutoText text="FAO" type="quoted"/> or <AutoText text="METS" type="quoted"/>).</Text> 
    13941394</NumberedItem> 
     1395<MajorVersion number="3"> 
     1396<Heading> 
     1397<Text id="ep-sd-1">Customising the table of contents section heading display</Text> 
     1398</Heading> 
     1399<NumberedItem> 
     1400<Text id="ep-sd-2">In the table of contents (on the right) by default a section number and section title are displayed. For documents like these where the section titles are the same as the section numbers, this doesn't make much sense, as you end up with headings like "1 1". We can hide the section number from the display by adding some CSS style information.</Text> 
     1401</NumberedItem> 
     1402<NumberedItem> 
     1403<Text id="ep-sd-3">Click on the <AutoText text="display"/> format statement in the <AutoText key="glidict::CDM.GUI.Formats"/> list. Add the following to the start of the content:</Text> 
     1404<Format> 
     1405    &lt;gsf:template name="additionalHeaderContent-collection"&gt;<br/> 
     1406    <Tab n="1"/>&lt;style&gt;span.tocSectionNumber { display: none; }&lt;/style&gt;<br/> 
     1407  &lt;/gsf:template&gt; 
     1408</Format> 
     1409</NumberedItem> 
     1410<NumberedItem> 
     1411<Text id="ep-sd-4">Note that if you'd rather hide the title instead, you can use <AutoText type="italics" text="span.tocSectionTitle" /> in the above CSS code instead of <AutoText type="italics" text="span.tocSectionNumber" />.</Text> 
     1412</NumberedItem> 
     1413</MajorVersion> 
    13951414<!-- 
    13961415<Heading>