179 lines
11 KiB
HTML
179 lines
11 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="en-US" xml:lang="en-US">
|
|
<head>
|
|
<!--
|
|
*
|
|
* Copyright 2008-2009, Haiku. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Humdinger <humdingerb@gmail.com>
|
|
* Translators:
|
|
* Emrys
|
|
*
|
|
-->
|
|
<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>Atribute</title>
|
|
<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
|
|
</head>
|
|
<body>
|
|
|
|
<div id="banner">
|
|
<div><span>Ghid de utilizare</span></div>
|
|
</div>
|
|
|
|
<div class="nav">
|
|
<div class="inner">
|
|
<ul class="lang-menu">
|
|
<li class="now"><img src="../images/flags/ro.png" alt="" /> Română</li>
|
|
<li><a href="../fr/attributes.html"><img src="../images/flags/fr.png" alt="" />Français</a></li>
|
|
<li><a href="../de/attributes.html"><img src="../images/flags/de.png" alt="" />Deutsch</a></li>
|
|
<li><a href="../it/attributes.html"><img src="../images/flags/it.png" alt="" />Italiano</a></li>
|
|
<li><a href="../ru/attributes.html"><img src="../images/flags/ru.png" alt="" />Русский</a></li>
|
|
<li><a href="../es/attributes.html"><img src="../images/flags/es.png" alt="" />Español</a></li>
|
|
<li><a href="../sv_SE/attributes.html"><img src="../images/flags/sv_SE.png" alt="" />Svenska</a></li>
|
|
<li><a href="../jp/attributes.html"><img src="../images/flags/jp.png" alt="" />日本語</a></li>
|
|
<li><a href="../uk/attributes.html"><img src="../images/flags/uk.png" alt="" />Українська</a></li>
|
|
<li><a href="../zh_CN/attributes.html"><img src="../images/flags/zh_CN.png" alt="" /> 中文 [中文]</a></li>
|
|
<li><a href="../pt_PT/attributes.html"><img src="../images/flags/pt_PT.png" alt="" />Português</a></li>
|
|
<li><a href="../fi/attributes.html"><img src="../images/flags/fi.png" alt="" />Suomi</a></li>
|
|
<li><a href="../sk/attributes.html"><img src="../images/flags/sk.png" alt="" />Slovenčina</a></li>
|
|
<li><a href="../hu/attributes.html"><img src="../images/flags/hu.png" alt="" />Magyar</a></li>
|
|
<li><a href="../pt_BR/attributes.html"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
|
|
<li><a href="../ca/attributes.html"><img src="../images/flags/ca.png" alt="" />Català</a></li>
|
|
<li><a href="../pl/attributes.html"><img src="../images/flags/pl.png" alt="" />Polski</a></li>
|
|
<li><a href="../en/attributes.html"><img src="../images/flags/gb.png" alt="" />English</a></li>
|
|
</ul>
|
|
<span>
|
|
« <a href="filetypes.html">Tipuri de fișiere</a>
|
|
:: <a href="contents.html" class="uplink">Conținut</a>
|
|
:: <a href="index.html">Index</a> »
|
|
</span></div>
|
|
</div>
|
|
|
|
<div id="content">
|
|
<div>
|
|
<div class="box-info">Traducerea acestei pagini nu este completă încă. Până când va fi, părțile incomplete utilizează originalul în limba engleză.</div>
|
|
|
|
<h1>Atribute</h1>
|
|
|
|
<p>Atributele sunt câmpuri de date care aparțin unui fișier dar care nu fac parte din acel fișier, adică nu sunt adăugate dimensiunii fișierului și pot fi copiate sau modificate fără să atingi fișierul în sine. Sistemul utilizează aceste atribute pentru a stoca de ex. dimensiunea fișierului, tipul acestuia sau data ultimei modificări. Acest lucru este similar cu alte sisteme de operare și fișierele lor de sistem.</p>
|
|
<p>Ce este diferit este că puteți adăuga orice fel de atribut oricărui fișier și să-l afișați sau să-l faceți editabil într-o fereastră Tracker. Trebuie doar să definiți ce fel de atribut vreți să adăugați la un tip de fișiere (ex: șir, întreg sau timp) și să-i dați un nume și o descriere.</p>
|
|
<p>Fișierul în sine nici nu are nevoie de un conținut. Uitați-vă la aceste fișiere People de exemplu:</p>
|
|
<img src="images/attributes-images/people.png" alt="people.png" />
|
|
<br />
|
|
<p>După cum vedeți acestea sunt toate fișiere de dimensiune 0 cu atribute atașate, atributul email de „John Nox” fiind editat chiar în Tracker.</p>
|
|
<p>Dacă indexați aceste atribute, așa cum sunt implicit fișierele People, Email sau audio, ele pot fi de asemenea căutate prin sistemul rapid de interogare Haiku.</p>
|
|
|
|
<h2>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="attributes-tracker" name="attributes-tracker">Atribute în Tracker</a></h2>
|
|
<p>Attributes are displayed quite similar to a database or spreadsheet. Using Tracker you can choose which attributes to display (columns) and sort file listings (rows) accordingly.</p>
|
|
<p>To do this, open a Tracker window, click on the <span class="menu">Attributes</span> menu, and select the attributes you want to display. Alternatively, simply right-click onto a column heading and mark the items in the context menu. You can rearrange the columns by a simple drag&drop of the column heading. Moving a column out of a window, is a fast way to get rid of columns you don't need.</p>
|
|
<p>Double-click on the line between two attributes in the heading to automatically resize a column to its optimal width.</p>
|
|
<p>Click on a column heading to toggle the sorting order from ascending to descending. You can establish a secondary sort order by pressing the <span class="key">SHIFT</span> key while clicking on a column heading. You can sort your People files by company and within that order sort by contact name, for instance. See the above screenshot as an example. The secondary sort order is marked by a lighter colored indicator beside the heading.</p>
|
|
<p>Editing these attributes is as simple as renaming a file: Either click on an entry or press <span class="key">ALT</span> <span class="key">E</span> and move between the attributes with <span class="key">TAB</span> and <span class="key">SHIFT</span> <span class="key">TAB</span>. <span class="key">ESC</span> leaves the editing mode without applying the changes.</p>
|
|
|
|
<h2>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="attributes-terminal" name="attributes-terminal">Atribute în Terminal</a></h2>
|
|
<p>If you prefer to use the commandline or plan to work with many files using scripting, there are several commands for controlling attributes from Terminal.</p>
|
|
<h3>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="listattr" name="listattr">listattr</a></h3>
|
|
<p><span class="cli">listattr</span> lists a file's attributes, but doesn't show the contents of the attributes.</p>
|
|
<pre>usage: listattr 'filename' ['filename' ...]</pre>
|
|
<p>From our screenshot example above:</p>
|
|
<pre class="terminal"> ~/people ->listattr Clara\ Botters
|
|
File: Clara Botters
|
|
Type Size Name
|
|
----------- --------- -------------------------------
|
|
MIME String 21 "BEOS:TYPE"
|
|
Text 14 "META:name"
|
|
Text 6 "META:nickname"
|
|
Text 1 "META:company"
|
|
|
|
Text 18 "META:address"
|
|
Text 8 "META:city"
|
|
Text 1 "META:state"
|
|
Text 1 "META:zip"
|
|
Text 1 "META:country"
|
|
|
|
Text 1 "META:hphone"
|
|
Text 13 "META:wphone"
|
|
Text 1 "META:fax"
|
|
Text 19 "META:email"
|
|
Text 1 "META:url"
|
|
|
|
Text 5 "META:group"
|
|
Raw Data 20 "_trk/pinfo_le"
|
|
|
|
131 bytes total in attributes.</pre>
|
|
<p>Besides all the "<tt>META:*</tt>" attributes that hold the contact's information, there are two attributes that are managed by the system:</p>
|
|
<ul>
|
|
<li><p><tt>BEOS:TYPE</tt> holds the file type as a <acronym title="Multipurpose Internet Mail Extensions">MIME</acronym> string, here "<tt>application/x-person</tt>". It determines the default icon and the application that opens the file when you e.g. double click it.</p></li>
|
|
<li><p>"<tt>_trk/pinfo_le</tt>" is the attribute with which Tracker keeps track of a file's icon position.</p></li></ul>
|
|
<div class="box-info">Note the backslash after "Clara". In Terminal you have to "escape" special characters like <tt>'"*\$?!</tt>. The space between "Clara" and "Botters" is also one of those. Therefore the backslash is really in front of the space character, and not after "Clara".</div>
|
|
|
|
<h3>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="catattr" name="catattr">catattr</a></h3>
|
|
<p><span class="cli">catattr</span> displays the contents of a specific attribute of a file.</p>
|
|
<pre>usage: catattr [--raw|-r] attr_name file1 [file2...]</pre>
|
|
<p>Again our example:</p>
|
|
<pre class="terminal"> ~/people ->catattr META:city Clara\ Botters
|
|
Clara Botters : string : Whelton</pre>
|
|
|
|
<h3>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="addattr" name="addattr">addattr</a></h3>
|
|
<p><span class="cli">addattr</span> adds an attribute to a file and/or fills it with a value.</p>
|
|
<pre>usage: addattr [-t type] attr value file1 [file2...]
|
|
or: addattr [-f value-from-file] [-t type] attr file1 [file2...]
|
|
|
|
Type is one of:
|
|
string, mime, int, llong, float, double, bool, icon, raw
|
|
or a numeric value (ie. 0x1234, 42, 'ABCD', ...)
|
|
The default is "string"</pre>
|
|
<p>So, say dear Clara took a job with the multi-national Barkelbaer Inc., you fill the formerly empty "Company" attribute with that data (which is of type "string"):</p>
|
|
<pre class="terminal"> ~/people ->addattr -t string META:company Barkelbaer\ Inc. Clara\ Botters</pre>
|
|
|
|
<h3>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="rmattr" name="rmattr">rmattr</a></h3>
|
|
<p><span class="cli">rmattr</span> completely removes an attribute from a file.</p>
|
|
|
|
<pre>usage: rmattr [-p] attr filename1 [filename2...]
|
|
'attr' is the name of an attribute of the file
|
|
If '-p' is specified, 'attr' is regarded as a pattern.</pre>
|
|
<p>Though in all practicality it would be enough to just not fill the "Fax" attribute, you can completely remove it from Clara's file by typing:</p>
|
|
<pre class="terminal"> ~/people ->rmattr META:fax Clara\ Botters</pre>
|
|
|
|
<h3>
|
|
<a href="#"><img src="../images/up.png" style="border:none;float:right" alt="index" /></a>
|
|
<a id="copyattr" name="copyattr">copyattr</a></h3>
|
|
<p><span class="cli">copyattr</span> copies attributes from one or more files to another. By default, the actual contents of the file is <b>not</b> copied.</p>
|
|
<pre>Usage: copyattr <options> <source> [ ... ] <destination></pre>
|
|
|
|
<p>If you do want to copy the attributes plus the data of the file itself, you can add the option "<span class="cli">-d</span>" or "<span class="cli">--data</span>".</p>
|
|
|
|
<p><br /></p>
|
|
<p>Mai multe informații despre aceste comenzi și opțiunile lor pot fi găsite prin tastarea numelui comenzii urmat de "<span class="cli">-h</span>" sau "<span class="cli">--help</span>".</p>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="nav">
|
|
<div class="inner"><span>
|
|
« <a href="filetypes.html">Tipuri de fișiere</a>
|
|
:: <a href="contents.html" class="uplink">Conținut</a>
|
|
:: <a href="index.html">Index</a> »
|
|
</span></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|