c18f9eb4ea
Change-Id: I9b30ae27658a40b85c67a4c30aaea2b4bf9507f9
106 lines
5.4 KiB
HTML
106 lines
5.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
|
||
<head>
|
||
<!--
|
||
*
|
||
* Copyright 2008-2009, Haiku. All rights reserved.
|
||
* Distributed under the terms of the MIT License.
|
||
*
|
||
* Authors:
|
||
* Humdinger <humdingerb@gmail.com>
|
||
* Translators:
|
||
* Pengphei Han
|
||
*
|
||
-->
|
||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||
<meta name="robots" content="all" />
|
||
<title>文本编辑器</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<link rel="stylesheet" type="text/css" href="../../Haiku-doc.css" />
|
||
</head>
|
||
<body>
|
||
|
||
<div id="banner">
|
||
<div><span>用户指南</span></div>
|
||
</div>
|
||
|
||
<div class="nav">
|
||
<div class="inner">
|
||
<ul class="lang-menu">
|
||
<li class="now"> 中文 [中文] <span class="dropdown-caret">▼</span></li>
|
||
<li><a href="../../id/applications/stylededit.html">Bahasa Indonesia</a></li>
|
||
<li><a href="../../ca/applications/stylededit.html">Català</a></li>
|
||
<li><a href="../../de/applications/stylededit.html">Deutsch</a></li>
|
||
<li><a href="../../en/applications/stylededit.html">English</a></li>
|
||
<li><a href="../../es/applications/stylededit.html">Español</a></li>
|
||
<li><a href="../../eo/applications/stylededit.html">Esperanto</a></li>
|
||
<li><a href="../../fr/applications/stylededit.html">Français</a></li>
|
||
<li><a href="../../fur/applications/stylededit.html">Furlan</a></li>
|
||
<li><a href="../../it/applications/stylededit.html">Italiano</a></li>
|
||
<li><a href="../../hu/applications/stylededit.html">Magyar</a></li>
|
||
<li><a href="../../pl/applications/stylededit.html">Polski</a></li>
|
||
<li><a href="../../pt_PT/applications/stylededit.html">Português</a></li>
|
||
<li><a href="../../pt_BR/applications/stylededit.html">Português (Brazil)</a></li>
|
||
<li><a href="../../ro/applications/stylededit.html">Română</a></li>
|
||
<li><a href="../../sk/applications/stylededit.html">Slovenčina</a></li>
|
||
<li><a href="../../fi/applications/stylededit.html">Suomi</a></li>
|
||
<li><a href="../../sv_SE/applications/stylededit.html">Svenska</a></li>
|
||
<li><a href="../../tr/applications/stylededit.html">Türkçe</a></li>
|
||
<li><a href="../../ru/applications/stylededit.html">Русский</a></li>
|
||
<li><a href="../../uk/applications/stylededit.html">Українська</a></li>
|
||
<li><a href="../../jp/applications/stylededit.html">日本語</a></li>
|
||
</ul>
|
||
<span>
|
||
« <a href="soundrecorder.html">录音机</a>
|
||
:: <a href="../applications.html#list-of-apps" class="uplink">应用程序
|
||
</a>
|
||
:: <a href="terminal.html">终端</a> »
|
||
</span></div>
|
||
</div>
|
||
|
||
<div id="content">
|
||
<div>
|
||
|
||
<h2><img src="../../images/apps-images/stylededit-icon_64.png" alt="stylededit-icon_64.png" width="64" height="64" />文本编辑器</h2>
|
||
<table summary="layout" border="0" cellspacing="0" cellpadding="2">
|
||
<tr><td>桌面栏:</td><td style="width:15px;"></td><td><span class="menu">应用程序</span></td></tr>
|
||
<tr><td>位置:</td><td></td><td><span class="path">/boot/system/apps/StyledEdit</span></td></tr>
|
||
<tr><td>设置:</td><td></td><td><i>none</i></td></tr>
|
||
</table>
|
||
<p><br /></p>
|
||
<p>该程序是Haiku的简单文本编辑器。尽管它以普通文本格式保存文件,但是额外的属性保证了它具有有限的显示文本格式的能力。</p>
|
||
<img src="../images/apps-images/stylededit.png" alt="stylededit.png" />
|
||
<p>如果您对此很感兴趣,那么下面就是在终端中使用 <span class="cli">listattr</span> 查看到的文本的附加属性:</p>
|
||
<pre class="terminal">~> listattr /boot/home/Desktop/test.txt
|
||
File: /boot/home/Desktop/test.txt
|
||
Type Size Name
|
||
----------- --------- -------------------------------
|
||
Int-32 4 "be:encoding"
|
||
MIME String 11 "BEOS:TYPE"
|
||
Int-32 4 "wrap"
|
||
Int-32 4 "alignment"
|
||
Raw Data 1048 "styles"
|
||
|
||
1071 bytes total in attributes.</pre>
|
||
<p>您可以看到,在本程序菜单中的所有格式选项如下:line wrapping (on/off)和 alignment(left/center/right),属于不同属性。每个单词的格式(font,size,color)则属于另一种。</p>
|
||
<div class="box-info">由于这些属性是 BFS 的文件系统的特性,这不仅意味着其他的平台只能够看到普通的文本文件,还指出,如果将文件存储在其他的非BFS分区,所有的格式将会丢失。以上所有属性都将被除去,而只留下普通的文本文件。</div>
|
||
<p>在任何情况下,虽然仍然是普通的文本文件,但是具有不同颜色和大小的字体仍然是非常有用的。例如<span class="cli">ReadMe.txt</span>在任何平台下的Shell中都是可读的,但是在Haiku下,双击该文件阅读,它仍然具有一定的风格。</p>
|
||
<p>事实上,本编辑器的使用非常简单,我们将会跳过对每个普通的菜单的讲解。您只需要写下文字,然后再<span class="menu">Font</span>菜单中对选中的文字设置相应的字体,大小和颜色。<span class="menu">Document</span> 菜单中的自动换行和对齐只对整个文件有效。</p>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="nav">
|
||
<div class="inner"><span>
|
||
« <a href="soundrecorder.html">录音机</a>
|
||
:: <a href="../applications.html#list-of-apps" class="uplink">应用程序
|
||
</a>
|
||
:: <a href="terminal.html">终端</a> »
|
||
</span></div>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|