1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Chapter 15. 搜索</title>
<link rel="stylesheet" type="text/css" href="OmegaT.css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="OmegaT 3.0——用户向导">
<link rel="up" href="index.html" title="OmegaT 3.0——用户向导">
<link rel="prev" href="chapter.segmentation.html" title="Chapter 14. 源片段分割规则">
<link rel="next" href="chapter.regexp.html" title="Chapter 16. 正则表达式">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Chapter 15. 搜索</th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="chapter.segmentation.html">Prev</a>
</td>
<th width="60%" align="center"> </th>
<td width="20%" align="right"> <a accesskey="n" href="chapter.regexp.html">Next</a></td>
</tr>
</table>
<hr>
</div>
<div class="chapter">
<div class="titlepage">
<div>
<div>
<h1 class="title"><a name="chapter.searches"></a>Chapter 15. 搜索<a class="indexterm" name="d0e7149"></a></h1>
</div>
</div>
</div>
<div class="toc">
<dl class="toc">
<dt><span class="section"><a href="chapter.searches.html#search.window">1. 搜索窗口</a></span></dt>
<dd>
<dl>
<dt><span class="section"><a href="chapter.searches.html#d0e7171">1.1. 搜索</a></span></dt>
<dt><span class="section"><a href="chapter.searches.html#d0e7195">1.2. 搜索位置</a></span></dt>
</dl>
</dd>
<dt><span class="section"><a href="chapter.searches.html#using.wild.cards">2. 使用通配符</a></span></dt>
<dt><span class="section"><a href="chapter.searches.html#search.methoids">3. 搜索方式和选项</a></span></dt>
<dt><span class="section"><a href="chapter.searches.html#search.result.display">4. 搜索结果展示</a></span></dt>
</dl>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name="search.window"></a>1. 搜索窗口
</h2>
</div>
</div>
</div>
<div class="figure"><a name="text.search.window"></a><p class="title"><b>Figure 15.1. 文本搜索窗口<a class="indexterm" name="d0e7158"></a></b></p>
<div class="figure-contents">
<div class="mediaobject"><img src="images/TextSearch25.png" alt="文本搜索窗口"></div>
</div>
</div><br class="figure-break"><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>上面的搜索查找所有包含目标中不太可能出现的字符(即斯洛文尼亚语字符)的目标片段。</p>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name="d0e7171"></a>1.1. 搜索<a class="indexterm" name="d0e7174"></a></h3>
</div>
</div>
</div>
<p><span class="application">OmegaT</span> 提供了强大的搜索功能。使用 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>F</strong></span> 调出搜索窗口,在查找文本框输入要搜索的单词或短语。此外,还可以在编辑区域(当前片段的目标文本)选择一个单词或短语,然后按 <span class="keycap"><strong>Ctrl</strong></span>+<span class="keycap"><strong>F</strong></span>键。在该情况下,单词或者短语将会自动输入到查找文本框中。您可以同时打开多个搜索窗口,但别忘记在不需要时关闭它们,这样它们才不会弄乱您的桌面。
</p>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a name="d0e7195"></a>1.2. 搜索位置
</h3>
</div>
</div>
</div>
<p>缺省情况下同时对项目的源和目标部分进行搜索,不过可以限制只在源或目标文本中进行。您可以在下列位置进行搜索</p>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>仅项目(缺省设置)</p>
</li>
</ul>
</div>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>在项目和 /tm/ 中的参考翻译记忆(选中<span class="emphasis"><em>搜索翻译记忆</em></span>)
</p>
</li>
</ul>
</div>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>单独的文件或包含一系列文件的文件夹(选中<span class="emphasis"><em>搜索文件</em></span>)
</p>
</li>
</ul>
</div>
<p>在文件中搜索(相对于翻译记忆)时,<span class="application">OmegaT</span> 将限制源文件格式。因此,尽管 OmegaT 能充分处理 <code class="filename"> tmx</code> 文件,但它不会在进行文件搜索时把它们纳入搜索范围。如果打开了<span class="bold"><strong><a class="indexterm" name="d0e7227"></a>高级选项</strong></span>,您还可以把译文的作者和上次修改时间组合在一起进行搜索。
</p>
</div>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name="using.wild.cards"></a>2. 使用通配符<a class="indexterm" name="d0e7237"></a></h2>
</div>
</div>
</div>
<p>无论是精确还是关键词搜索,都可以使用通配符 '*' 和 '?'。它们的含义Word用户很熟悉:</p>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>‘*’匹配零个或多个字符,从指定单词的当前位置开始到它结束的部分。例如搜索条件<code class="literal">‘run*’</code>将会匹配单词<code class="literal">‘run’</code>、<code class="literal">‘runs’</code>和<code class="literal">‘running’</code>。
</p>
</li>
</ul>
</div>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p>‘?’匹配任何单个字符。例如,<code class="literal">‘run?’ </code>会匹配单词<code class="literal">‘runs’</code>和<code class="literal">‘running’</code>单词中的<code class="literal">‘runn’</code>。
</p>
</li>
</ul>
</div>
<p>匹配将显示为蓝色粗体。需要注意‘*’和‘?’在正则表达式中有特殊含义,所以这里所说的通配符搜索只适用于精确搜索和关键字搜索(见下文)。</p>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name="search.methoids"></a>3. 搜索方式和选项<a class="indexterm" name="d0e7281"></a></h2>
</div>
</div>
</div>
<p>使用单选按钮选择搜索方法。下面是可用的搜索方式:</p>
<div class="variablelist">
<dl class="variablelist">
<dt><span class="term">精确搜索</span></dt>
<dd>
<p>找出包括指定字符串的片段。精确搜索查找某条短语,也就是说,如果输入了多个词汇,只有它们以相同顺序出现时才会被找出来。搜索 <code class="literal">open file</code> 将找到所有 <span class="emphasis"><em><code class="literal">open file</code></em></span> 字符串出现的地方,但不会找到 <span class="emphasis"><em><code class="literal">file opened</code></em></span> 或 <span class="emphasis"><em><code class="literal">open input file</code></em></span>.
</p>
</dd>
<dt><span class="term">关键字搜索</span></dt>
<dd>
<p>找出所有包括指定关键字的片段,不考虑顺序。选择关键字搜索以搜索任何数目、任何顺序出现的所有词汇。OmegaT 会显示所有词汇都出现了的片段清单。关键字搜索和互联网 Google 搜索引擎的 “使用所有词”方式相似(AND 逻辑)。使用关键字<span class="emphasis"><em><code class="literal">open file</code></em></span>进行搜索将找到所有<span class="emphasis"><em><code class="literal">open file</code>、</em></span><span class="emphasis"><em><code class="literal">file opened</code>、<code class="literal">open input file</code>以及<code class="literal">file may not be safe to open</code></em></span>等字符串出现的地方。
</p>
</dd>
<dt><span class="term"><span class="bold"><strong>正则表达式</strong></span></span></dt>
<dd>
<p>搜索字符串将会被当作正则表达式进行处理。例如在上文示例中的搜索字符串[a-zA-Z]+[öäüqwß]在目标片段中寻找包含疑似来自德语键盘的字符的单词。正则表达式是一种功能强大的字符串实例查找方法。请到<a class="link" href="chapter.regexp.html" title="Chapter 16. 正则表达式">正则表达式</a>章节了解更多信息。
</p>
</dd>
</dl>
</div>
<p>对上面的几种方式,您还可以选择下列选项:</p>
<div class="itemizedlist">
<ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
<p><span class="bold"><strong>区分大小写</strong></span>:搜索工作将会严格匹配指定字符串,即遵循大小写状态。
</p>
</li>
<li class="listitem">
<p><span class="bold"><strong>源片段:</strong></span>在源片段中搜索
</p>
</li>
<li class="listitem">
<p><span class="bold"><strong>目标片段:</strong></span>在目标片段中搜索
</p>
</li>
<li class="listitem">
<p><span class="bold"><strong>笔记:</strong></span>在笔记中搜索
</p>
</li>
<li class="listitem">
<p><span class="bold"><strong>搜索翻译记忆</strong></span>:在搜索时也把<code class="filename">tm</code>目录中的翻译记忆纳入其中。
</p>
</li>
<li class="listitem">
<p><span class="bold"><strong>显示所有结果:</strong></span>清除该复选框会使OmegaT在存在许多hit时仅显示首个提示的位置。
</p>
</li>
</ul>
</div>
<p>点击<span class="guibutton">高级选项</span>按钮会出现可供选择的附加条件(如翻译作者、翻译日期等),如上图所示。
</p>
</div>
<div class="section">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a name="search.result.display"></a>4. 搜索结果展示
</h2>
</div>
</div>
</div>
<p>在搜索字段输入一个字符串然后点击搜索按钮,会把项目中所有包含输入字符串的片段显示出来。由于 <span class="application">OmegaT</span> 将相同片段视为同一实体,因此将只显示第一个独特的片段。片段以在项目中出现的顺序显示。已译片段会以上面显示原文、下面显示译文的形式显示,而未译片段只显示原始文本。
</p>
<p>点击某片段将会编辑器中将它打开。然后您可以转回搜索窗口以编辑找到的下一个片段,例如进行检查或者在必要时调整术语。</p>
<p>可以同时打开多个搜索窗口。通过标题您可以快速了解它们的搜索内容:标题中包含了搜索用词。</p>
</div>
</div>
<div class="navfooter">
<hr>
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="chapter.segmentation.html">Prev</a>
</td>
<td width="20%" align="center"> </td>
<td width="40%" align="right"> <a accesskey="n" href="chapter.regexp.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Chapter 14. 源片段分割规则 </td>
<td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td>
<td width="40%" align="right" valign="top"> Chapter 16. 正则表达式</td>
</tr>
</table>
</div>
</body>
</html>
|