~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/fileio/help/ja_JP/getrelativefilename.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!--
3
 
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
 
 * Copyright (C) XXXX-2008 - INRIA
5
 
 * 
6
 
 * This file must be used under the terms of the CeCILL.
7
 
 * This source file is licensed as described in the file COPYING, which
8
 
 * you should have received as part of this distribution.  The terms
9
 
 * are also available at    
10
 
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11
 
 *
12
 
 -->
13
 
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="ja" xml:id="getrelativefilename">
14
 
  <refnamediv>
15
 
    <refname>getrelativefilename</refname>
16
 
    <refpurpose>絶対ディレクトリおよび絶対ファイル名を指定すると,
17
 
      相対ファイル名を返す.
18
 
    </refpurpose>
19
 
  </refnamediv>
20
 
  <refsynopsisdiv>
21
 
    <title>呼び出し手順</title>
22
 
    <synopsis>rel_file = getrelativefilename(abs_dir,abs_file)</synopsis>
23
 
  </refsynopsisdiv>
24
 
  <refsection>
25
 
    <title>パラメータ</title>
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term>abs_dir</term>
29
 
        <listitem>
30
 
          <para>文字列 : 絶対ディレクトリ</para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term>abs_file</term>
35
 
        <listitem>
36
 
          <para>文字列 : 絶対ファイル名</para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
      <varlistentry>
40
 
        <term>rel_file</term>
41
 
        <listitem>
42
 
          <para>文字列 : 相対ファイル名</para>
43
 
        </listitem>
44
 
      </varlistentry>
45
 
    </variablelist>
46
 
  </refsection>
47
 
  <refsection>
48
 
    <title>説明</title>
49
 
    <para>絶対ディレクトリおよび絶対ファイル名を指定すると,
50
 
      相対ファイル名を返します.
51
 
    </para>
52
 
    <para>例えば, カレントのディレクトが C:\scilab\bin の場合,ファイル名
53
 
      C:\scilab\modules\helptools\readme.txt が指定されると,
54
 
      getrelativefilename は ..\modules\helptools\readme.txt を返します.
55
 
    </para>
56
 
  </refsection>
57
 
  <refsection>
58
 
    <title>例</title>
59
 
    <programlisting role="example"><![CDATA[ 
60
 
if getos() == "Windows" then
61
 
  getrelativefilename('C:\program file\scilab-4.0\bin','C:\program file\scilab-4.0\modules\helptools\help.dtd')
62
 
  getrelativefilename('C:\program file\scilab-4.0\bin\','C:\program file\scilab-4.0\modules\helptools\help.dtd')
63
 
  getrelativefilename(SCI+'\bin',SCI+'\modules\helptools\help.dtd')
64
 
  getrelativefilename(WSCI+'\bin',WSCI+'\modules\helptools\help.dtd')
65
 
  getrelativefilename(pwd(),WSCI+'\bin\Wscilex')
66
 
else
67
 
  getrelativefilename('/usr/local/scilab-4.0/bin','/usr/local/scilab-4.0/modules/helptools/help.dtd')
68
 
  getrelativefilename('/usr/local/scilab-4.0/bin/','/usr/local/scilab-4.0/modules/helptools/help.dtd')
69
 
  getrelativefilename(SCI+'/bin',SCI+'/modules/helptools/help.dtd')
70
 
  getrelativefilename(pwd(),SCI+'/bin/scilex')
71
 
end
72
 
 ]]></programlisting>
73
 
  </refsection>
74
 
  <refsection role="see also">
75
 
    <title>参照</title>
76
 
    <simplelist type="inline">
77
 
      <member>
78
 
        <link linkend="getshortpathname">getshortpathname</link>
79
 
      </member>
80
 
      <member>
81
 
        <link linkend="getlongpathname">getlongpathname</link>
82
 
      </member>
83
 
      <member>
84
 
        <link linkend="pwd">pwd</link>
85
 
      </member>
86
 
    </simplelist>
87
 
  </refsection>
88
 
</refentry>