Changes To Cookbook
Not logged in

Changes to "Cookbook" between 2010-07-07 09:21:40 and 2010-07-07 09:27:37

   902    902     example Microsoft Office 2007 and newer use docx, xlsx and pptx extensions to
   903    903     store what is merely xml files zipped into a file.</p>
   904    904     <p>When edits are made to such files a versioning system is not efficient
   905    905     because diffing is no more appropriate</p>
   906    906     <p>The idea is to version the decompressed folder. A script will toggle
   907    907     Compressed/Uncompressed state</p>
   908    908     <h3>Sample batch script for use with docx, xlsx and pptx documents</h3>
   909         -  <p>This script is useful under Windows. It requires zip.exe and unzip.exe
          909  +  <p>This script is intended to work under MS Windows. It requires
          910  +  zip.exe and unzip.exe
   910    911     that you can find for example in gnuwin32 ([http://getgnuwin32.sf.net]).</p>
   911    912     <p>You have three variables to set. Running this script will</p>
   912    913     <ul compact='compact'>
   913    914       <li>Autodetect whether the document is in compressed or uncompressed
   914    915       state</li>
   915         -    <li>Convert file My_document.docx to a folder named My_document.docx too</li>
          916  +    <li>Convert file My_document.docx into a directory of the same name</li>
   916    917       <li>Rename file <nowiki>[Content_Types]</nowiki>.xml to a name without
   917    918       brackets (brackets in file names are not supported by Fossil)</li>
   918         -    <li>Convert back My_document.docx to file My_document.docx
          919  +    <li>perform reverse operations to convert directory to compressed
          920  +    docx/xlsx/pptx file.</li>
   919    921     </ul>
   920    922     <p>In this way you can work on a docx document, run the script, insert the
   921    923     uncompressed folder into fossil and run the script again to get your document
   922    924     back in editable state.</p>
   923         -  <pre>
          925  +  <font face="monospace">
   924    926   <font color="#808080">&nbsp;1 </font><font color="#3a5fcd"><i>:: toggle docx state (compressed / uncompressed)</i></font><br />
   925    927   <font color="#808080">&nbsp;2 </font><font color="#3a5fcd"><i>:: @echo off</i></font><br />
   926    928   <font color="#808080">&nbsp;3 </font><br />
   927    929   <font color="#808080">&nbsp;4 </font><font color="#8b4726">SET</font><font
   928    930   color="#8b4726">&nbsp;DOCX</font><font
   929    931   color="#8b4726"><b>=</b></font>My_document.docx<br />
   930    932   <font color="#808080">&nbsp;5 </font><font color="#8b4726">SET</font><font
................................................................................
   981    983   <font color="#808080">54 </font>&nbsp;&nbsp;<font color="#8b4726">del</font>&nbsp;<font color="#228b22">&quot;</font><font color="#8b4726">%TEMP%</font><font color="#228b22">\</font><font color="#8b4726">%TMPFILE%</font><font color="#228b22">&quot;</font><br />
   982    984   <font color="#808080">55 </font>&nbsp;&nbsp;<font color="#8b4726">popd</font><br />
   983    985   <font color="#808080">56 </font>&nbsp;&nbsp;<font color="#8b4726"><b>goto</b></font><font color="#8b4726"><b><u>&nbsp;:end</u></b></font><br />
   984    986   <font color="#808080">57 </font><br />
   985    987   <font color="#808080">58 </font><font color="#8b4726"><b><u>:end</u></b></font><br />
   986    988   <font color="#808080">59 </font><br />
   987    989   <font color="#808080">60 </font><font color="#3a5fcd"><i>:: vim: fenc=cp437</i></font>
   988         -  </pre>
          990  +  </font>
   989    991   
   990    992   </div>