doc/doxygen/html/DS301__index_8py-source.html
changeset 207 b6572d0336c3
equal deleted inserted replaced
206:6787754b251b 207:b6572d0336c3
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
       
     2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
       
     3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/objdictgen/doc_index/DS301_index.py Source File</title>
       
     4 <link href="doxygen.css" rel="stylesheet" type="text/css">
       
     5 <link href="tabs.css" rel="stylesheet" type="text/css">
       
     6 </head><body>
       
     7 <!-- Generated by Doxygen 1.5.1 -->
       
     8 <div class="tabs">
       
     9   <ul>
       
    10     <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
       
    11     <li><a href="namespaces.html"><span>Namespaces</span></a></li>
       
    12     <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
       
    13     <li id="current"><a href="files.html"><span>Files</span></a></li>
       
    14   </ul></div>
       
    15 <div class="tabs">
       
    16   <ul>
       
    17     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
       
    18     <li><a href="globals.html"><span>Globals</span></a></li>
       
    19   </ul></div>
       
    20 <h1>/home/epimerde/documents/tc11/CanFestival-3/objdictgen/doc_index/DS301_index.py</h1><a href="DS301__index_8py.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a><a class="code" href="namespacedoc__index_1_1DS301__index.html">00001</a> <span class="comment">#!/usr/bin/env python</span>
       
    21 <a name="l00002"></a>00002 <span class="comment"># -*- coding: utf-8 -*-</span>
       
    22 <a name="l00003"></a>00003 
       
    23 <a name="l00004"></a>00004 <span class="keyword">import</span> os
       
    24 <a name="l00005"></a>00005 
       
    25 <a name="l00006"></a>00006 DS301_PDF_INDEX = {0x1000: 86, 0x1001: 87, 0x1002: 87, 0x1003: 88, 0x1005: 89, 0x1006: 90, 0x1007: 90, 0x1008: 91, 0x1009: 91, 0x100A: 91, 0x100C: 92, 0x100D: 92, 0x1010: 92, 0x1011: 94, 0x1012: 97, 0x1013: 98, 0x1014: 98, 0x1015: 99, 0x1016: 100, 0x1017: 101, 0x1018: 101, 0x1020: 117, 0x1200: 103, 0x1201: 103, 0x1280: 105, 0x1400: 106, 0x1600: 109, 0x1800: 111, 0x1A00: 112}
       
    26 <a name="l00007"></a>00007 
       
    27 <a name="l00008"></a><a class="code" href="namespacedoc__index_1_1DS301__index.html#07b9112f2b3d3e81b1edf3c81b6c4807">00008</a> <span class="keyword">def </span><a class="code" href="namespacedoc__index_1_1DS301__index.html#07b9112f2b3d3e81b1edf3c81b6c4807">OpenPDFDocIndex</a>(index, cwd):
       
    28 <a name="l00009"></a>00009     <span class="keywordflow">if</span> <span class="keywordflow">not</span> os.path.isfile(os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>)):
       
    29 <a name="l00010"></a>00010         <span class="keywordflow">return</span> <span class="stringliteral">"""No documentation file available.</span>
       
    30 <a name="l00011"></a>00011 <span class="stringliteral">Please read can festival documentation to know how to obtain one."""</span>
       
    31 <a name="l00012"></a>00012     <span class="keywordflow">try</span>:
       
    32 <a name="l00013"></a>00013         <span class="keywordflow">if</span> index <span class="keywordflow">in</span> DS301_PDF_INDEX:
       
    33 <a name="l00014"></a>00014             os.system(<span class="stringliteral">"xpdf -remote DS301 %s %d &amp;"</span>%(os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>), DS301_PDF_INDEX[index]))
       
    34 <a name="l00015"></a>00015         <span class="keywordflow">else</span>:
       
    35 <a name="l00016"></a>00016             os.system(<span class="stringliteral">"xpdf -remote DS301 %s &amp;"</span>%os.path.join(cwd, <span class="stringliteral">"doc/301_v04000201.pdf"</span>))
       
    36 <a name="l00017"></a>00017         <span class="keywordflow">return</span> <span class="keyword">True</span>
       
    37 <a name="l00018"></a>00018     <span class="keywordflow">except</span>:
       
    38 <a name="l00019"></a>00019         <span class="keywordflow">return</span> <span class="stringliteral">"""Check if xpdf is correctly installed on your computer"""</span>
       
    39 <a name="l00020"></a>00020         
       
    40 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Jun 4 16:29:06 2007 for CanFestival by&nbsp;
       
    41 <a href="http://www.doxygen.org/index.html">
       
    42 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
       
    43 </body>
       
    44 </html>