Changeset 27115 for documentation
- Timestamp:
- 2013-03-25T08:16:09+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/xml-source/tutorial_en.xml
r27114 r27115 1123 1123 </Title> 1124 1124 <Prerequisite id="word_pdf_collection"/> 1125 <Version initial="2.85" current="2.85 "/>1125 <Version initial="2.85" current="2.85|3.05"/> 1126 1126 <Content> 1127 1127 <Comment> … … 1164 1164 </Title> 1165 1165 <SampleFiles folder="Word_and_PDF"/> 1166 <Version initial="2.70" current="2.85 "/>1166 <Version initial="2.70" current="2.85|3.05"/> 1167 1167 <Content> 1168 1168 <Text id="ep-2">Greenstone converts PDF files to HTML using third-party software: <AutoText text="pdftohtml.pl" type="italics"/>. This lets users view these documents even if they don't have the PDF software installed. Unfortunately, sometimes the formatting of the resulting HTML files is not so good.</Text> … … 1359 1359 <Text id="ew-a">Enhanced Word document handling</Text> 1360 1360 </Title> 1361 <Version initial="2.70w" current="2.85 "/>1361 <Version initial="2.70w" current="2.85|3.05"/> 1362 1362 <Prerequisite id="word_pdf_collection"/> 1363 1363 <Content> … … 1374 1374 </NumberedItem> 1375 1375 <NumberedItem> 1376 <Text id="ew-5"><b>Build</b> the collection. You will notice that the Microsoft Word program is started up for each Word document—the document is saved as HTML from Word itself, to get a better conversion. <b>Preview</b> the collection. In the < AutoText key="coredm::_Global:labelTitle_"/> list, notice that <Path>word03.doc</Path> and <Path>word06.doc</Path> now have a book icon, rather than a page icon. These now appear with hierarchical structure.</Text>1376 <Text id="ew-5"><b>Build</b> the collection. You will notice that the Microsoft Word program is started up for each Word document—the document is saved as HTML from Word itself, to get a better conversion. <b>Preview</b> the collection. In the <MajorVersion number="2"><AutoText key="coredm::_Global:labelTitle_"/></MajorVersion><MajorVersion number="3"><AutoText key="gs3::metadata_names::Title.buttonname" /></MajorVersion> list, notice that <Path>word03.doc</Path> and <Path>word06.doc</Path> now have a book icon, rather than a page icon. These now appear with hierarchical structure.</Text> 1377 1377 <Text id="ew-6">The default behaviour for <AutoText text="WordPlugin"/> with <AutoText text="windows_scripting"/> is to section the document based on <AutoText text="Heading 1" type="quoted"/>, <AutoText text="Heading 2" type="quoted"/>, <AutoText text="Heading 3" type="quoted"/> styles. If you open up the <Path>word03.doc</Path> or <Path>word06.doc</Path> documents in Word, you will see that the sections use these Heading styles.</Text> 1378 1378 <Text id="ew-7">Note, to view style information in Word 2003, you can select <Menu>Format → Styles and Formatting</Menu> from the menu, and a side bar will appear on the right hand side. (In Word 2007 and later, find the <Menu>Change Styles</Menu> button on the far right of the menu ribbon. Click on the tiny <Menu>Expand</Menu> icon to its bottom right to display the styles side bar.) Click on a section heading and the formatting information will be displayed in this side bar.</Text> … … 1483 1483 </Title> 1484 1484 <Prerequisite id="word_pdf_collection"/> 1485 <Version initial="2.85" current="2.85 "/>1485 <Version initial="2.85" current="2.85|3.05"/> 1486 1486 <Content> 1487 1487 <Comment> … … 1522 1522 <NumberedItem> 1523 1523 <Text id="assoc-files-15">Building the collection at this point will have the effect that internally Greenstone will have captured this relationship between the different file versions of the same documents; however, until we make some adjustments to the format statements, none of this will be visible to the end-user. The collection built at this point (with default settings) allows a user to search the text from the Word document, browse by title metadata and so on, but when it comes to the point of viewing a document there will only be the choice of viewing the Word version of the document, or the HTML version that Greenstone automatically generates by processing the Word document.</Text> 1524 <Text id="assoc-files-16">To go beyond this, the key change to make is to alter the part of the <MajorVersion number="2">default VList statement that says:</MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText key="coredm::_Global:labelBrowse_"/> format statement which chooses between <Format>thumbicon</Format> and <Format>srcicon</Format>, and replace this with a reference to <Format>equivDocIcon</Format> instead.</MajorVersion></Text>1524 <Text id="assoc-files-16">To go beyond this, the key change to make is to alter the part of the <MajorVersion number="2">default VList statement that says:</MajorVersion><MajorVersion number="3"><AutoText text="documentNode"/> template of the <AutoText text="Browse" /> format statement which chooses between <Format>thumbicon</Format> and <Format>srcicon</Format>, and replace this with a reference to <Format>equivDocIcon</Format> instead.</MajorVersion></Text> 1525 1525 <MajorVersion number="2"> 1526 1526 <Format> … … 1556 1556 <MajorVersion number="3"> 1557 1557 <Text id="assoc-files-20-3">The second (more minor) change in this edit is to simplify the statement a bit. The original uses a <Format><gsf:choose-metadata/></Format> statement to show a thumbnail version of the document, if Greenstone has one, in preference over the source icon. Since in this collection we have no thumbnails generated, it has been simplified by eliminating the <Format><gsf:choose-metadata/></Format> combination and going straight to the <AutoText text="ex.equivDocIcon" type="italics"/> metadata item.</Text> 1558 <Text id="assoc-files-21-3">To make the change then, switch to the <AutoText key="glidict::GUI.Format"/> panel and edit the <AutoText text="documentNode"/> template of the <AutoText key="coredm::_Global:labelBrowse_"/> format statement</Text>1558 <Text id="assoc-files-21-3">To make the change then, switch to the <AutoText key="glidict::GUI.Format"/> panel and edit the <AutoText text="documentNode"/> template of the <AutoText text="Browse" /> format statement</Text> 1559 1559 <table> 1560 1560 <th> … … 1589 1589 <Format> 1590 1590 <td valign="top"><br /> 1591 <highlight><Tab n="1"/><gsf:link type="equivdoc"/></highlight><br /> 1591 <highlight><Tab n="1"/><gsf:metadata name="equivDocLink"/><br /> 1592 <Tab n="1"/><gsf:metadata name="equivDocIcon"/><br /> 1593 <Tab n="1"/><gsf:metadata name="/equivDocLink"/><br /> 1594 </highlight> 1592 1595 </td><br /> 1593 1596 <td valign="top"><br />
Note:
See TracChangeset
for help on using the changeset viewer.