# Traditional Chinese Messages for wcd-man # Copyright (C) 2026 Erwin Waterlander (msgids) # This file is distributed under the same license as the wcd package. # Alang Hsu , 2026. # msgid "" msgstr "" "Project-Id-Version: wcd-man 6.0.7-beta1\n" "POT-Creation-Date: 2026-05-18 22:12+0200\n" "PO-Revision-Date: 2026-09-29 13:05+0800\n" "Last-Translator: Alang Hsu \n" "Language-Team: Chinese (traditional) \n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Bugs: Report translation errors to the Language-Team address.\n" #. type: =head1 #: wcd.pod:43 msgid "NAME" msgstr "名稱" #. type: textblock #: wcd.pod:45 msgid "wcd - Wherever Change Directory" msgstr "wcd - 隨處切換目錄" #. type: textblock #: wcd.pod:47 msgid "chdir for DOS and Unix" msgstr "適用於 DOS 與 Unix 的目錄切換工具" #. type: =head1 #: wcd.pod:49 msgid "SYNOPSIS" msgstr "語法" #. type: verbatim #: wcd.pod:51 #, no-wrap msgid "" " wcd [options] [directory]\n" "\n" msgstr "" " wcd [options] [directory]\n" "\n" #. type: =head1 #: wcd.pod:53 msgid "DESCRIPTION" msgstr "說明" #. type: =head2 #: wcd.pod:55 msgid "Overview" msgstr "概觀" #. type: textblock #: wcd.pod:57 msgid "Wcd is a command-line program to change directory fast. It saves time typing at the keyboard. One needs to type only a part of a directory name and wcd will jump to it. Wcd has a fast selection method in case of multiple matches and allows aliasing and banning of directories. Wcd also includes a full screen interactive directory tree browser with speed search." msgstr "wcd 是一支命令列程式,可快速切換目錄,能省下在鍵盤上敲字的時間。您只需輸入目錄名稱的一部分,wcd 就會跳到該目錄。當有多個符合項時,wcd 提供快速的選擇方式,並支援為目錄設定別名與封鎖。wcd 另附有全螢幕互動式目錄樹瀏覽器,內建快速搜尋功能。" #. type: textblock #: wcd.pod:63 msgid "Wcd was modeled after Norton Change Directory (NCD). NCD appeared first in I, for DOS in 1987, published by Peter Norton." msgstr "wcd 的設計源自 Norton Change Directory (NCD)。NCD 最早出現在 Peter Norton 於 1987 年為 DOS 出版的 I。" #. type: textblock #: wcd.pod:66 msgid "Wcd has been ported to different command-line shells: DOS command.com, Windows cmd.exe and PowerShell, OS/2 cmd.exe, and Unix shells such as Bourne (sh), Bourne Again (bash), Korn (ksh), Z (zsh), and C (csh) shell and others running on any operating system." msgstr "wcd 已移植到多種命令列 shell:DOS 的 command.com、Windows 的 cmd.exe 與 PowerShell、OS/2 的 cmd.exe,以及 Bourne (sh)、Bourne Again (bash)、Korn (ksh)、Z (zsh)、C (csh) 等 Unix shell,還有其他可執行於任何作業系統的 shell。" #. type: textblock #: wcd.pod:71 msgid "Wcd supports 8 bit character sets on all systems, and has optional support for Unicode. See section LOCALIZATION." msgstr "wcd 在所有系統上均支援 8 位元字元集,並可選擇性支援 Unicode。請參見「在地化」一節。" #. type: textblock #: wcd.pod:74 msgid "See section INSTALLATION how to setup wcd for personal use." msgstr "請參見「安裝」一節,了解如何設定 wcd 以供個人使用。" #. type: =head2 #: wcd.pod:76 msgid "Basic use" msgstr "基本用法" #. type: textblock #: wcd.pod:78 msgid "By default (if no wildcards are used) wcd searches for a directory with a name that begins with the typed name." msgstr "預設情況下(未使用萬用字元時),wcd 會搜尋名稱以輸入內容開頭的目錄。" #. type: textblock #: wcd.pod:81 msgid "For instance this command will change to directory to the current user's C:" msgstr "例如,下列命令會切換到目前使用者的 C:" #. type: verbatim #: wcd.pod:84 #, no-wrap msgid "" " wcd Desk\n" "\n" msgstr "" " wcd Desk\n" "\n" #. type: textblock #: wcd.pod:86 msgid "When there are multiple matches, wcd will present the user a list of all matches. The user can then make a selection with a few keystrokes (most of the times only one)." msgstr "若有多個符合項,wcd 會列出所有符合項供您挑選,您只需敲幾個鍵(通常只是一個)即可完成選擇。" #. type: =head2 #: wcd.pod:90 msgid "Wildcards" msgstr "萬用字元" #. type: textblock #: wcd.pod:92 msgid "Wcd supports following wildcards:" msgstr "wcd 支援下列萬用字元:" #. type: verbatim #: wcd.pod:94 #, no-wrap msgid "" " * matches any sequence of characters (zero or more)\n" " ? matches any character\n" " [SET] matches any character in the specified set,\n" " [!SET] or [^SET] matches any character not in the specified set.\n" "\n" msgstr "" " * 比對任意字元序列(零個以上)\n" " ? 比對任一字元\n" " [SET] 比對指定集合中的任一字元\n" " [!SET] 或 [^SET] 比對指定集合以外的任一字元。\n" "\n" #. type: textblock #: wcd.pod:99 msgid "A set is composed of characters or ranges; a range looks like I as in C<0-9> or C. The C<[0-9a-zA-Z_]> is the minimal set of characters allowed in the C<[..]> pattern construct. International characters (i.e. 8 bit characters) are allowed if the system supports them. To suppress the special syntactic significance of any of C<[]*?!^-\\> inside or outside a C<[..]> construct and match the character exactly, precede the character with a backslash (C<\\>) marker." msgstr "集合是由字元或範圍組成;範圍的寫法為 I<字元連字符元>,例如 C<0-9> 或 C。C<[0-9a-zA-Z_]> 是 C<[..]> 模式結構中所允許的最小字元集合。若系統支援,也可使用國際字元(即 8 位元字元)。若要取消 C<[]*?!^-\\> 中任一字元在 C<[..]> 結構內或結構外的特殊語法意義,使其確實以該字元比對,請在該字元前加上反斜線 (C<\\>) 標記。" #. type: textblock #: wcd.pod:108 msgid "Using wildcards makes powerful searching possible. For instance this matches any directory name that ends with \"top\":" msgstr "使用萬用字元可以進行強大的搜尋。例如,下列命令會比對任何以「top」結尾的目錄名稱:" #. type: verbatim #: wcd.pod:111 #, no-wrap msgid "" " wcd *top\n" "\n" msgstr "" " wcd *top\n" "\n" #. type: textblock #: wcd.pod:113 msgid "Match directories that have \"top\" anywhere in the name:" msgstr "比對名稱中任何位置含有「top」的目錄:" #. type: verbatim #: wcd.pod:115 #, no-wrap msgid "" " wcd *top*\n" "\n" msgstr "" " wcd *top*\n" "\n" #. type: textblock #: wcd.pod:117 msgid "Match any directory name that begins with \"a\", \"b\" or \"c\":" msgstr "比對任何以「a」、「b」或「c」開頭的目錄名稱:" #. type: verbatim #: wcd.pod:119 #, no-wrap msgid "" " wcd [a-c]*\n" "\n" msgstr "" " wcd [a-c]*\n" "\n" #. type: textblock #: wcd.pod:121 msgid "It is also possible to give a part of a directory path. Here Wcd searches for directory that begins with \"Desk\" and which path matches I<*me/Desk*>." msgstr "也可以只輸入目錄路徑的一部分。此時 wcd 會搜尋以「Desk」開頭,且路徑符合 I<*me/Desk*> 的目錄。" #. type: verbatim #: wcd.pod:124 #, no-wrap msgid "" " wcd me/Desk\n" "\n" msgstr "" " wcd me/Desk\n" "\n" #. type: textblock #: wcd.pod:126 msgid "It is allowed to type any kind of expression with slashes and wildcards. E.g.:" msgstr "可以輸入任何含有斜線與萬用字元的運算式。例如:" #. type: verbatim #: wcd.pod:129 #, no-wrap msgid "" " wcd src*/*1?/a*2\n" "\n" msgstr "" " wcd src*/*1?/a*2\n" "\n" #. type: =head2 #: wcd.pod:131 msgid "Other uses" msgstr "其他用途" #. type: textblock #: wcd.pod:133 msgid "If no wildcards are used and wcd finds a perfect match, wcd will ignore all wild matches by default. This behaviour can be changed with the B<-w> option." msgstr "若未使用萬用字元且 wcd 找到完全符合的目錄,預設會忽略所有萬用字元符合項。這個行為可以用 B<-w> 選項變更。" #. type: textblock #: wcd.pod:136 msgid "The interactive directory tree browser can be started by using option B<-g>." msgstr "使用 B<-g> 選項可以啟動互動式目錄樹瀏覽器。" #. type: verbatim #: wcd.pod:138 #, no-wrap msgid "" " wcd -g\n" "\n" msgstr "" " wcd -g\n" "\n" #. type: textblock #: wcd.pod:140 msgid "Wcd generates a treedata file where it searches the directory. On Unix and Windows systems wcd does add symbolic links to the treedata file while scanning the disk, but does not follow them. While following links wcd could end up scanning infinite loops, or scan very large portions of a network." msgstr "wcd 會產生一個 treedata 檔案,用來搜尋目錄。在 Unix 與 Windows 系統上,wcd 在掃描磁碟時會把符號連結加入 treedata 檔案,但不會跟隨它們。若跟隨連結,wcd 可能會陷入無限迴圈,或掃描掉極大範圍的網路。" #. type: textblock #: wcd.pod:145 msgid "Wcd can also change to directories that are not in the treedata file. E.g.:" msgstr "wcd 也可以切換到不在 treedata 檔案中的目錄。例如:" #. type: verbatim #: wcd.pod:147 #, no-wrap msgid "" " wcd ..\n" "\n" msgstr "" " wcd ..\n" "\n" #. type: textblock #: wcd.pod:149 msgid "If wcd found a match but can't change to the directory it tries to remove it from the default treedata file. Not from the extra treedata file. See also option B<-k>." msgstr "若 wcd 找到符合項卻無法切換到該目錄,它會嘗試將該目錄從預設 treedata 檔案中移除,但不會從額外 treedata 檔案中移除。請另參見 B<-k> 選項。" #. type: textblock #: wcd.pod:153 msgid "Wcd keeps a directory stack which is stored on disk. The stack has a default size of 10 and is cyclic. See options B<-z>, B<->, B<+> and B<=>." msgstr "wcd 會維護一個存放在磁碟上的目錄堆疊。堆疊的預設大小為 10,且為循環式的。請參見 B<-z>、B<->、B<+> 與 B<=> 選項。" #. type: textblock #: wcd.pod:157 msgid "In multi-user environments option B<-u> can be used to change to directories of other users." msgstr "在多人使用的環境中,可以使用 B<-u> 選項切換到其他使用者的目錄。" #. type: textblock #: wcd.pod:161 msgid "On DOS and Windows systems it does not matter if you use a slash \"/\" or a backslash \"\\\" as a directory separator." msgstr "在 DOS 與 Windows 系統上,不論使用斜線「/」或反斜線「\\」作為目錄分隔符都沒有問題。" #. type: textblock #: wcd.pod:164 msgid "It is possible on DOS and Windows systems to change drive and directory in one go by preceding the directory name with the drive name." msgstr "在 DOS 與 Windows 系統上,可以在目錄名稱前加上磁碟機名稱,一次同時切換磁碟機與目錄。" #. type: verbatim #: wcd.pod:167 #, no-wrap msgid "" " wcd d:games\n" "\n" msgstr "" " wcd d:games\n" "\n" #. type: =head2 #: wcd.pod:171 msgid "Windows UNC paths" msgstr "Windows UNC 路徑" #. type: textblock #: wcd.pod:173 msgid "The Windows versions (Command Prompt, PowerShell, MSYS, zsh, cygwin) support Windows SMB LAN UNC paths without drive letter such as C<\\\\servername\\sharename>. Wcd for Windows Command Prompt makes use of the \"pushd\" command to automatically map a UNC path to a drive letter. In Windows PowerShell, MSYS, zsh and Cygwin UNC paths are fully supported. The current working directory can be a UNC path." msgstr "Windows 版本(命令提示字元、PowerShell、MSYS、zsh、cygwin)支援不帶磁碟機代號的 Windows SMB 區域網路 UNC 路徑,例如 C<\\\\servername\\sharename>。Windows 命令提示字元版的 wcd 會利用「pushd」命令自動將 UNC 路徑對應到磁碟機代號。在 Windows PowerShell、MSYS、zsh 與 Cygwin 中,UNC 路徑同樣受到完整支援。目前的工作目錄可以是 UNC 路徑。" #. type: =head2 #: wcd.pod:180 msgid "Console resizing on Windows" msgstr "Windows 主控台縮放" #. type: textblock #: wcd.pod:182 msgid "Wcd supports console resizing in Windows 10 console and ConEmu (see L) since version 6.0.3. The Windows 10 console must not be in legacy mode (check the console's properties). The screen may not refresh when the console Layout property \"Wrap text output on resize\" is disabled. The screen can be refreshed manually by pressing the F5 key." msgstr "wcd 自 6.0.3 版起支援 Windows 10 主控台與 ConEmu(見 L)的主控台縮放。Windows 10 主控台必須未使用相容模式(請檢查主控台屬性)。若主控台版面配置屬性「Wrap text output on resize」已停用,畫面可能不會重新整理。可以按 F5 鍵手動重新整理畫面。" #. type: =head2 #: wcd.pod:189 msgid "Interfaces" msgstr "介面" #. type: textblock #: wcd.pod:191 msgid "Wcd has three different interfaces to choose from a list of matches. The interface can be chosen at compile time." msgstr "wcd 有三種不同的介面,可用來從符合項清單中挑選。介面可在編譯時選擇。" #. type: textblock #: wcd.pod:194 msgid "The first interface uses plain stdin/stdout. A numbered list is printed in the terminal. The user has to choose from the list by typing a number followed by . This interface does not provide scroll back functionality in case of a long list. The scroll back capability of the terminal/console has to be used. It is very small and portable." msgstr "第一種介面使用單純的 stdin/stdout。程式會在終端機中印出附編號的清單,您必須輸入數字再按 才能選擇。當清單很長時,此介面不提供捲動回顧功能,必須使用終端機/主控台本身的捲動回顧功能。此介面非常輕量且可攜性高。" #. type: textblock #: wcd.pod:200 msgid "The second interface is built with the conio library. It provides a builtin scroll back capability. The user is presented a list numbered with letters. Choosing from a list can be done by pressing just one letter. This interface is fast because it saves keystrokes. If possible the screen will be restored after exiting. One who prefers to type numbers can use the B<-N> option." msgstr "第二種介面以 conio 程式庫建置,內建捲動回顧功能。使用者看到的是以字母編號的清單,只要按一個字母就能完成選擇。此介面因為省下按鍵而速度很快。若可能,離開時會還原畫面。喜歡輸入數字者可以使用 B<-N> 選項。" #. type: textblock #: wcd.pod:207 msgid "The third interface is built with the curses library. It is similar to the conio interface. The curses version of wcd has also an additional 'graphical' interface. It lets the user select a directory via a full screen interactive directory tree browser. It has a vim(1) like navigation and search method. It can be activated with option B<-g>." msgstr "第三種介面以 curses 程式庫建置,與 conio 介面相似。curses 版的 wcd 另外還有一個「圖形」介面,可讓您透過全螢幕互動式目錄樹瀏覽器選取目錄,導覽與搜尋方式類似 vim(1),可用 B<-g> 選項啟用。" #. type: textblock #: wcd.pod:213 msgid "By using the B<-o> option one can always fall back to the stdin/stdout interface." msgstr "使用 B<-o> 選項隨時都可以退回 stdin/stdout 介面。" #. type: =head1 #: wcd.pod:216 msgid "OPTIONS" msgstr "選項" #. type: =item #: wcd.pod:220 msgid "B<-a>" msgstr "B<-a>" #. type: textblock #: wcd.pod:222 msgid "Add current path to the default treedata file." msgstr "將目前路徑加入預設 treedata 檔案。" #. type: textblock #: wcd.pod:224 msgid "Use this option to quickly add the current path to the default treedata file. Re-scanning the complete disk can take a long time in some cases." msgstr "使用此選項可快速將目前路徑加入預設 treedata 檔案。在某些情況下,重新掃描整顆磁碟會花費很長的時間。" #. type: =item #: wcd.pod:227 msgid "B<-aa>" msgstr "B<-aa>" #. type: textblock #: wcd.pod:229 msgid "Add current and all parent paths to the default treedata file." msgstr "將目前路徑及其所有父層路徑加入預設 treedata 檔案。" #. type: =item #: wcd.pod:231 msgid "B<-A PATH>" msgstr "B<-A PATH>" #. type: textblock #: wcd.pod:233 msgid "Scan directory tree from I and append to the default treedata file. Examples:" msgstr "自 I 掃描目錄樹,並附加到預設 treedata 檔案。範例:" #. type: verbatim #: wcd.pod:236 #, no-wrap msgid "" " wcd -A .\n" " wcd -A /home -A /etc\n" " wcd -A d: -A e: -A \\\\server\\share\n" "\n" msgstr "" " wcd -A .\n" " wcd -A /home -A /etc\n" " wcd -A d: -A e: -A \\\\server\\share\n" "\n" #. type: textblock #: wcd.pod:240 msgid "On Windows one can scan all shared directories of a Windows LAN server by typing something like: C." msgstr "在 Windows 上,可以輸入類似 C 的命令,掃描 Windows 區域網路伺服器的所有共享目錄。" #. type: textblock #: wcd.pod:244 msgid "See also option B<-S> and B<-s> and B<-E>." msgstr "請另參見 B<-S>、B<-s> 與 B<-E> 選項。" #. type: =item #: wcd.pod:246 msgid "B<-b>" msgstr "B<-b>" #. type: textblock #: wcd.pod:248 msgid "Ban current path." msgstr "封鎖目前路徑。" #. type: textblock #: wcd.pod:250 msgid "Wcd places the current path in the ban file. This means that wcd ignores all matches of this directory and its sub directories." msgstr "wcd 會將目前路徑放進封鎖檔案。這表示 wcd 會忽略此目錄及其子目錄的所有符合項。" #. type: textblock #: wcd.pod:253 msgid "The ban file can be edited with a text editor. Use of wildcards is supported and names are matched against the absolute path." msgstr "封鎖檔案可以用文字編輯器編輯,支援使用萬用字元,名稱會比對絕對路徑。" #. type: textblock #: wcd.pod:256 msgid "Banned paths are not excluded from scanning the disk. To do that use option B<-xf>." msgstr "被封鎖的路徑並不會在掃描磁碟時被排除。若要排除,請使用 B<-xf> 選項。" #. type: =item #: wcd.pod:259 msgid "B<-c, --direct-cd>" msgstr "B<-c, --direct-cd>" #. type: textblock #: wcd.pod:261 msgid "Direct CD mode. By default wcd works as follows:" msgstr "直接切換目錄模式。預設情況下 wcd 的運作順序如下:" #. type: verbatim #: wcd.pod:263 #, no-wrap msgid "" " 1. Try to find a match in the treedata file(s)\n" " 2. If no match, try to open the directory you typed.\n" "\n" msgstr "" " 1. 先在 treedata 檔案中尋找符合項\n" " 2. 若沒有符合項,則嘗試開啟您輸入的目錄。\n" "\n" #. type: textblock #: wcd.pod:266 msgid "In direct CD mode wcd works in reversed order." msgstr "在直接切換目錄模式中,wcd 的運作順序相反。" #. type: verbatim #: wcd.pod:268 #, no-wrap msgid "" " 1. Try to open the directory you typed.\n" " 2. If not, try to find a match in the treedata file(s).\n" "\n" msgstr "" " 1. 先嘗試開啟您輸入的目錄。\n" " 2. 若開啟失敗,則在 treedata 檔案中尋找符合項。\n" "\n" #. type: =item #: wcd.pod:272 msgid "B<-d DRIVE>" msgstr "B<-d DRIVE>" #. type: textblock #: wcd.pod:274 msgid "Set drive for stack and go file (DOS only)." msgstr "設定堆疊與 go 檔案所在的磁碟機(僅 DOS)。" #. type: textblock #: wcd.pod:276 msgid "The stack file and the go-script are by default stored on drive C: if environment variable I is not set. Use this option if drive C: is a read-only drive. This option must be used in front of the stack options B<->, B<+> and B<=>." msgstr "若未設定環境變數 I,堆疊檔案與 go 腳本預設會存放在磁碟機 C:。若磁碟機 C: 是唯讀磁碟,請使用此選項。此選項必須用在堆疊選項 B<->、B<+> 與 B<=> 之前。" #. type: =item #: wcd.pod:281 msgid "B<-e>" msgstr "B<-e>" #. type: textblock #: wcd.pod:283 msgid "Add current path to the extra treedata file." msgstr "將目前路徑加入額外 treedata 檔案。" #. type: textblock #: wcd.pod:285 msgid "Use this option to quickly add the current path to the extra treedata file." msgstr "使用此選項可快速將目前路徑加入額外 treedata 檔案。" #. type: =item #: wcd.pod:287 msgid "B<-ee>" msgstr "B<-ee>" #. type: textblock #: wcd.pod:289 msgid "Add current and all parent paths to extra treedata file." msgstr "將目前路徑及其所有父層路徑加入額外 treedata 檔案。" #. type: =item #: wcd.pod:291 msgid "B<-E PATH>" msgstr "B<-E PATH>" #. type: textblock #: wcd.pod:293 msgid "Scan directory tree from I and append to Extra treedata file. See also options B<-A> and B<-S>." msgstr "自 I 掃描目錄樹,並附加到額外 treedata 檔案。請另參見 B<-A> 與 B<-S> 選項。" #. type: =item #: wcd.pod:296 msgid "B<-f FILE>" msgstr "B<-f FILE>" #. type: textblock #: wcd.pod:298 msgid "Read treedata file I. Do not read the default treedata file." msgstr "讀取 treedata 檔案 I,不讀取預設 treedata 檔案。" #. type: =item #: wcd.pod:300 msgid "B<+f FILE>" msgstr "B<+f FILE>" #. type: textblock #: wcd.pod:302 msgid "Read treedata file I in addition to the default treedata file." msgstr "除了預設 treedata 檔案之外,也讀取 treedata 檔案 I。" #. type: =item #: wcd.pod:304 msgid "B<-g>" msgstr "B<-g>" #. type: textblock #: wcd.pod:306 msgid "Graphical interface (only in version with curses interface)." msgstr "圖形介面(僅限具備 curses 介面的版本)。" #. type: textblock #: wcd.pod:308 msgid "Wcd starts a textual curses based 'graphical' interface. The user can select a directory via a full-screen interactive directory tree browser. It has a vim(1) like navigation and search method." msgstr "wcd 會啟動以 curses 為基礎的文字「圖形」介面。使用者可以透過全螢幕互動式目錄樹瀏覽器選取目錄,導覽與搜尋方式類似 vim(1)。" #. type: textblock #: wcd.pod:312 msgid "If no search string is given wcd presents the whole tree which is in the default treedata file and the extra treedata files." msgstr "若未提供搜尋字串,wcd 會顯示預設 treedata 檔案與額外 treedata 檔案中的整棵目錄樹。" #. type: textblock #: wcd.pod:315 msgid "If a search string is given the match list is presented as a directory tree." msgstr "若提供搜尋字串,符合項清單會以目錄樹的形式呈現。" #. type: textblock #: wcd.pod:318 msgid "The default tree layout is similar to the tree layout of the original NCD on DOS. The difference in layout is that in NCD all directories of a same depth level were vertically aligned over the whole tree. This was possible in NCD, because the maximum width of a directory name in DOS was 12 (8.3) characters. On modern operating systems directory names can be very long, so also the differences in length can be large. Therefore folders with a same depth are not vertically aligned over the whole tree in wcd, but only in sub-branches. So there is some sideways movement when moving straight up and down from one sub-branch to another sub-branch." msgstr "預設的目錄樹版面配置類似 DOS 上原始 NCD 的版面配置。兩者的差異在於,NCD 中所有相同深度的目錄都會在整棵樹中垂直對齊。NCD 能夠如此,是因為 DOS 上目錄名稱的最大寬度只有 12 (8.3) 個字元。在現代作業系統上,目錄名稱可能非常長,長度差異也就很大。因此在 wcd 中,相同深度的資料夾不會在整棵樹中垂直對齊,而只會在子分支中對齊。當您在子分支之間直線上下移動時,就會有一些水平位移。" #. type: textblock #: wcd.pod:328 msgid "The navigation behaviour in Wcd is exactly the same as in the original NCD. For instance if you push the Down key you go down to the next directory with the same depth level, jumping over branches. This enables fast navigation through the tree." msgstr "wcd 的導覽行為與原始 NCD 完全相同。例如按下 Down 鍵時,會往下跳到相同深度的下一個目錄,越過分支。這能讓您在樹中快速導覽。" #. type: textblock #: wcd.pod:333 msgid "See options B<-Ta>, B<-TC>, and B<-Tc> to change the navigation behaviour." msgstr "請參見 B<-Ta>、B<-TC> 與 B<-Tc> 選項以變更導覽行為。" #. type: =item #: wcd.pod:335 msgid "B<-gd>" msgstr "B<-gd>" #. type: textblock #: wcd.pod:337 msgid "Dump the treedata files as a tree to stdout." msgstr "將 treedata 檔案以目錄樹形式傾印至 stdout。" #. type: =item #: wcd.pod:339 msgid "B<-G PATH>" msgstr "B<-G PATH>" #. type: textblock #: wcd.pod:341 msgid "Write go-script in directory I. For instance on Unix, C will write a go-script B." msgstr "在目錄 I 中寫入 go 腳本。例如在 Unix 上,C 會寫出 go 腳本 B。" #. type: =item #: wcd.pod:344 msgid "B<-GN, --no-go-script>" msgstr "B<-GN, --no-go-script>" #. type: textblock #: wcd.pod:346 msgid "Do not create go-script. This option can be used in combination with the option B<-j> if one does not want wcd to create a go-script." msgstr "不要建立 go 腳本。若不想讓 wcd 建立 go 腳本,此選項可與 B<-j> 選項搭配使用。" #. type: =item #: wcd.pod:349 msgid "B<-h, --help>" msgstr "B<-h, --help>" #. type: textblock #: wcd.pod:351 msgid "Show help and exit." msgstr "顯示說明後結束。" #. type: =item #: wcd.pod:353 msgid "B<-i, --ignore-case>" msgstr "B<-i, --ignore-case>" #. type: textblock #: wcd.pod:355 msgid "Ignore case. Dos and Windows versions of wcd ignore case default. Unix/Cygwin versions regard case by default." msgstr "忽略大小寫。DOS 與 Windows 版的 wcd 預設忽略大小寫,Unix/Cygwin 版則預設區分大小寫。" #. type: =item #: wcd.pod:359 msgid "B<+i, --no-ignore-case>" msgstr "B<+i, --no-ignore-case>" #. type: textblock #: wcd.pod:361 msgid "Regard case. See also option B<-i>." msgstr "區分大小寫。請另參見 B<-i> 選項。" #. type: =item #: wcd.pod:363 msgid "B<-I, --ignore-diacritics>" msgstr "B<-I, --ignore-diacritics>" #. type: textblock #: wcd.pod:365 msgid "Ignore diacritics for Latin-based scripts. Letters with diacritical marks match their base letter without diacritical mark. The following Latin encodings are supported: CP437, CP850, CP852, CP1250, CP1252, ISO-8859-1, ISO-8859-2, and Unicode Latin-1, Latin Extended-A, and Latin Extended-B. See also L" msgstr "對以拉丁字母為主的文字忽略變音符號。帶有變音符號的字母會比對到未加變音符號的基本字母。支援下列拉丁編碼:CP437、CP850、CP852、CP1250、CP1252、ISO-8859-1、ISO-8859-2,以及 Unicode Latin-1、Latin Extended-A 與 Latin Extended-B。請另參閱 L" #. type: =item #: wcd.pod:372 msgid "B<+I, --no-ignore-diacritics>" msgstr "B<+I, --no-ignore-diacritics>" #. type: textblock #: wcd.pod:374 msgid "Regard diacritics (default). See also option B<-I>." msgstr "區分變音符號(預設)。請另參見 B<-I> 選項。" #. type: =item #: wcd.pod:376 msgid "B<-j, --just-go>" msgstr "B<-j, --just-go>" #. type: textblock #: wcd.pod:378 msgid "Just go mode." msgstr "僅切換模式。" #. type: textblock #: wcd.pod:380 msgid "In this mode wcd will not present a list when there is more than one directory that matches the given directory. Wcd will just change to the first option. When wcd is invoked again with the same arguments it will change to the next option, and so on." msgstr "在此模式下,若有多個目錄符合指定的目錄,wcd 不會列出清單,而是直接切換到第一個選項。當 wcd 以相同引數再次執行時,會切換到下一個選項,依此類推。" #. type: textblock #: wcd.pod:385 msgid "Wcd will print the directory to go to to stdout. So a different installation method can be used. One could make the following function for a POSIX compatible shell:" msgstr "wcd 會把要切換到的目錄印到 stdout,因此可以採用不同的安裝方式。例如可以為相容於 POSIX 的 shell 定義下列函式:" #. type: verbatim #: wcd.pod:389 #, no-wrap msgid "" " wcd ()\n" " {\n" " cd \"$($HOME/bin/wcd.exe -j $@)\"\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " cd \"$($HOME/bin/wcd.exe -j $@)\"\n" " }\n" "\n" #. type: textblock #: wcd.pod:394 msgid "When you are using an old shell that doesn't support \"$()\" command substitution you have to use old style command substitution with back-quotes." msgstr "若您使用不支援「$()」命令替換的舊版 shell,必須改用反引號的舊式命令替換語法。" #. type: verbatim #: wcd.pod:397 #, no-wrap msgid "" " wcd ()\n" " {\n" " cd \"`$HOME/bin/wcd.exe -j $@`\"\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " cd \"`$HOME/bin/wcd.exe -j $@`\"\n" " }\n" "\n" #. type: textblock #: wcd.pod:403 msgid "On Windows systems, if one is running 4NT shell, one could make the following alias:" msgstr "在 Windows 系統上,若您使用 4NT shell,可以定義下列別名:" #. type: verbatim #: wcd.pod:406 #, no-wrap msgid "" " alias wcd `cd %@execstr[wcdwin32.exe -z 0 -j %1]`\n" "\n" msgstr "" " alias wcd `cd %@execstr[wcdwin32.exe -z 0 -j %1]`\n" "\n" #. type: textblock #: wcd.pod:409 msgid "This method eliminates the need of the go-script, so one can use option B<-GN> in combination with B<-j>." msgstr "這種方法免去 go 腳本,因此可以將 B<-GN> 與 B<-j> 選項搭配使用。" #. type: =item #: wcd.pod:412 msgid "B<-k, --keep-paths>" msgstr "B<-k, --keep-paths>" #. type: textblock #: wcd.pod:414 msgid "Keep paths." msgstr "保留路徑。" #. type: textblock #: wcd.pod:416 msgid "Keep paths in the treedata file when wcd can't change to them. The default behaviour of wcd is that it tries to remove paths from the treedata when wcd can't change to them. With this option this behavior is turned off." msgstr "當 wcd 無法切換到某些路徑時,仍將它們保留在 treedata 檔案中。wcd 的預設行為是無法切換時就嘗試把路徑從 treedata 中移除,使用此選項即可關閉該行為。" #. type: =item #: wcd.pod:420 msgid "B<-K, --color>" msgstr "B<-K, --color>" #. type: textblock #: wcd.pod:422 msgid "Use colors in graphical mode." msgstr "在圖形模式中使用色彩。" #. type: =item #: wcd.pod:424 msgid "B<-l ALIAS>" msgstr "B<-l ALIAS>" #. type: textblock #: wcd.pod:426 msgid "Name the current path with I. Wcd places the current path with alias I in the alias file. Aliases are case sensitive." msgstr "以 I 為目前路徑命名。wcd 會把目前路徑以別名 I 放進別名檔案。別名區分大小寫。" #. type: =item #: wcd.pod:429 msgid "B<-ls>" msgstr "B<-ls>" #. type: textblock #: wcd.pod:431 msgid "Show the name of the alias file, and list all the aliases." msgstr "顯示別名檔案的名稱,並列出所有別名。" #. type: =item #: wcd.pod:433 msgid "B<-m DIR>" msgstr "B<-m DIR>" #. type: textblock #: wcd.pod:435 msgid "Make directory and add to treedata file." msgstr "建立目錄並加入 treedata 檔案。" #. type: =item #: wcd.pod:437 msgid "B<-L, --license>" msgstr "B<-L, --license>" #. type: textblock #: wcd.pod:439 msgid "Print the distribution license." msgstr "印出散布授權條款。" #. type: =item #: wcd.pod:441 msgid "B<-M DIR>" msgstr "B<-M DIR>" #. type: textblock #: wcd.pod:443 msgid "Make directory and add to extra treedata file." msgstr "建立目錄並加入額外 treedata 檔案。" #. type: =item #: wcd.pod:445 msgid "B<-n PATH>" msgstr "B<-n PATH>" #. type: textblock #: wcd.pod:447 msgid "Read relative treedata file from I." msgstr "自 I 讀取相對 treedata 檔案。" #. type: textblock #: wcd.pod:449 msgid "Do not read the default treedata file. The relative treedata file should already have been created using the wcd B<+S> option. I may also point to a file directly." msgstr "不讀取預設 treedata 檔案。相對 treedata 檔案應該已經使用 wcd 的 B<+S> 選項建立。I 也可以直接指向檔案。" #. type: textblock #: wcd.pod:453 msgid "An example. Suppose another system has been mounted to mount point C:" msgstr "舉例來說,假設另一個系統已掛載到掛載點 C:" #. type: verbatim #: wcd.pod:456 #, no-wrap msgid "" " wcd -n /mnt/network src\n" "\n" msgstr "" " wcd -n /mnt/network src\n" "\n" #. type: textblock #: wcd.pod:458 msgid "Wcd opens the relative treedata file in C. The file contains the paths relative from that point." msgstr "wcd 會開啟 C 中的相對 treedata 檔案。該檔案包含從該位置算起的相對路徑。" #. type: =item #: wcd.pod:461 msgid "B<+n PATH>" msgstr "B<+n PATH>" #. type: textblock #: wcd.pod:463 msgid "Read relative treedata file in addition to the default treedata file. See option B<-n>." msgstr "除了預設 treedata 檔案之外,也讀取相對 treedata 檔案。請參見 B<-n> 選項。" #. type: =item #: wcd.pod:466 msgid "B<-N, --numbers>" msgstr "B<-N, --numbers>" #. type: textblock #: wcd.pod:468 msgid "Use numbers instead of letters." msgstr "使用數字而非字母。" #. type: textblock #: wcd.pod:470 msgid "Wcd with a conio or curses based interface (see section Interfaces) presents a match list by default numbered with letters. When the B<-N> option is used the match list is numbered with numbers. Regardless of the B<-N> option one can type a letter or numbers to make a selection from the list of matches." msgstr "具備 conio 或 curses 介面的 wcd(見「介面」一節)預設以字母編號呈現符合項清單。使用 B<-N> 選項時,符合項清單會改以數字編號。無論是否使用 B<-N>,您都可以輸入字母或數字來從符合項清單中做選擇。" #. type: =item #: wcd.pod:475 msgid "B<-o>" msgstr "B<-o>" #. type: textblock #: wcd.pod:477 msgid "Use stdin/stdout interface." msgstr "使用 stdin/stdout 介面。" #. type: textblock #: wcd.pod:479 msgid "When for some kind of reason the conio or curses interface of wcd does not work one can fall back to the stdin/stdout interface of wcd by using the B<-o> option." msgstr "當 wcd 的 conio 或 curses 介面因故無法運作時,可以使用 B<-o> 選項退回 stdin/stdout 介面。" #. type: =item #: wcd.pod:483 msgid "B<-od, --to-stdout>" msgstr "B<-od, --to-stdout>" #. type: textblock #: wcd.pod:485 msgid "Dump all matches to stdout." msgstr "將所有符合項傾印至 stdout。" #. type: =item #: wcd.pod:487 msgid "B<-q, --quiet>" msgstr "B<-q, --quiet>" #. type: textblock #: wcd.pod:489 msgid "Quieter operation. Printing of the final match is suppressed." msgstr "減少輸出訊息,並抑制最終符合項的印出。" #. type: =item #: wcd.pod:491 msgid "B<-r DIR>" msgstr "B<-r DIR>" #. type: textblock #: wcd.pod:493 msgid "Remove directory and remove from the treedata file." msgstr "移除目錄,並從 treedata 檔案中移除。" #. type: textblock #: wcd.pod:495 msgid "If the directory is empty, wcd will remove it, and try to remove it from the treedata file." msgstr "若目錄是空的,wcd 會將它移除,並嘗試從 treedata 檔案中移除。" #. type: =item #: wcd.pod:498 msgid "B<-rmtree DIR>" msgstr "B<-rmtree DIR>" #. type: textblock #: wcd.pod:500 msgid "Recursively remove directory and remove from the treedata file." msgstr "遞迴移除目錄,並從 treedata 檔案中移除。" #. type: textblock #: wcd.pod:502 msgid "Wcd will remove the directory and all its sub directories and files, and remove the directories from the treedata file." msgstr "wcd 會移除該目錄及其所有子目錄與檔案,並把這些目錄從 treedata 檔案中移除。" #. type: =item #: wcd.pod:505 msgid "B<-s>" msgstr "B<-s>" #. type: textblock #: wcd.pod:507 msgid "(re)Scan disk from C<$HOME> directory. If I is not defined the disk is scanned from root directory /." msgstr "自 C<$HOME> 目錄(重新)掃描磁碟。若未定義 I,則自根目錄 / 掃描磁碟。" #. type: textblock #: wcd.pod:510 msgid "The existing default treedata file is overwritten." msgstr "既有的預設 treedata 檔案會被覆寫。" #. type: textblock #: wcd.pod:512 msgid "The default scan directory can be overruled with environment variable C. See section ENVIRONMENT VARIABLES." msgstr "預設的掃描目錄可以用環境變數 C 變更。請參見「環境變數」一節。" #. type: =item #: wcd.pod:515 msgid "B<-S PATH>" msgstr "B<-S PATH>" #. type: textblock #: wcd.pod:517 msgid "Scan directory tree from I and overwrite the default treedata file. See also options B<-A>, B<-s> and B<-E>. E.g. with option B<-A> you can create a default treedata file of your choice. Examples:" msgstr "自 I 掃描目錄樹,並覆寫預設 treedata 檔案。請另參見 B<-A>、B<-s> 與 B<-E> 選項。例如可以用 B<-A> 選項建立自選的預設 treedata 檔案。範例:" #. type: textblock #: wcd.pod:521 msgid "Unix:" msgstr "Unix:" #. type: verbatim #: wcd.pod:523 #, no-wrap msgid "" " wcd -S /\n" " wcd -S /home -A /etc -A /usr\n" "\n" msgstr "" " wcd -S /\n" " wcd -S /home -A /etc -A /usr\n" "\n" #. type: textblock #: wcd.pod:526 msgid "DOS/Windows:" msgstr "DOS/Windows:" #. type: verbatim #: wcd.pod:528 #, no-wrap msgid "" " wcd -S c:/\n" " wcd -S c: -A d: -A \\\\server\\share\n" "\n" msgstr "" " wcd -S c:/\n" " wcd -S c: -A d: -A \\\\server\\share\n" "\n" #. type: textblock #: wcd.pod:531 msgid "With the Windows versions one can scan all shared directories of a Windows LAN server by typing something like: C." msgstr "Windows 版本可以輸入類似 C 的命令,掃描 Windows 區域網路伺服器的所有共享目錄。" #. type: =item #: wcd.pod:535 msgid "B<+S PATH>" msgstr "B<+S PATH>" #. type: textblock #: wcd.pod:537 msgid "Scan disk from I and place relative paths in a relative treedata file. This file is used by the B<-n> and B<+n> options of wcd. E.g. C." msgstr "自 I 掃描磁碟,並把相對路徑寫入相對 treedata 檔案。這個檔案供 wcd 的 B<-n> 與 B<+n> 選項使用。例如 C。" #. type: =item #: wcd.pod:541 msgid "B<-t>" msgstr "B<-t>" #. type: textblock #: wcd.pod:543 msgid "Do not strip tmp mount dir C (Unix only)" msgstr "不要從比對結果中剝除暫存掛載目錄 C(僅 Unix)" #. type: textblock #: wcd.pod:545 msgid "Wcd strips by default C from the match. Directory C is used by the auto-mounter. This behaviour can be turned off with the B<-t> option." msgstr "wcd 預設會從比對結果中剝除 C。目錄 C 是自動掛載程式所使用的目錄。可用 B<-t> 選項關閉此行為。" #. type: =item #: wcd.pod:549 msgid "B<-T, --ascii-tree>" msgstr "B<-T, --ascii-tree>" #. type: textblock #: wcd.pod:551 msgid "Draw tree with ASCII characters. Use this option if line drawing characters are not displayed properly in your terminal." msgstr "以 ASCII 字元繪製目錄樹。若終端機無法正確顯示線條繪圖字元,請使用此選項。" #. type: =item #: wcd.pod:554 msgid "B<-Ta, --alt-tree-nav>" msgstr "B<-Ta, --alt-tree-nav>" #. type: textblock #: wcd.pod:556 msgid "Alternative way of navigation in the graphical tree." msgstr "圖形目錄樹中的替代導覽方式。" #. type: textblock #: wcd.pod:558 msgid "In the default NCD style tree layout the B<-Ta> option disables jumping to unrelated directories." msgstr "在預設的 NCD 風格目錄樹版面配置中,B<-Ta> 選項會停用跳往無關目錄的功能。" #. type: textblock #: wcd.pod:561 msgid "In compact tree mode the alternative mode makes navigation similar to navigation in GUI file managers such as Windows Explorer or Linux KDE Konqueror. Pressing Up and Down moves the selected folder one line up or down. Pressing Left first folds the sub-folders and the next move left moves really left." msgstr "在精簡目錄樹模式中,替代模式讓導覽方式類似 Windows Explorer 或 Linux KDE Konqueror 等 GUI 檔案管理員。按下 Up 與 Down 會讓選取的資料夾上下移動一列。按下 Left 第一次會摺疊子資料夾,再向左移動一次才會真正向左移。" #. type: textblock #: wcd.pod:567 msgid "You can switch on-the-fly between default and alternative navigation by pressing ." msgstr "您可以按 即時在預設與替代導覽方式之間切換。" #. type: textblock #: wcd.pod:570 msgid "When alternative navigation mode is on, you will see an \"A\" in the lower right corner." msgstr "替代導覽模式開啟時,右下角會顯示一個「A」。" #. type: =item #: wcd.pod:572 msgid "B<-TC, --center-tree>" msgstr "B<-TC, --center-tree>" #. type: textblock #: wcd.pod:574 msgid "Centered view in the graphical tree. The selected directory stays in the middle of the screen. The centered mode can also be switched on and off with key in the graphical tree." msgstr "圖形目錄樹中的置中檢視。選取的目錄會留在畫面中央。在圖形目錄樹中也可以用 鍵開關置中模式。" #. type: textblock #: wcd.pod:578 msgid "The standard non-centered behaviour, which minimises tree movement, is the same as in the original NCD." msgstr "可將目錄樹移動量降到最低的標準非置中行為,與原始 NCD 相同。" #. type: =item #: wcd.pod:581 msgid "B<-Tc, --compact-tree>" msgstr "B<-Tc, --compact-tree>" #. type: textblock #: wcd.pod:583 msgid "By default the 'graphical' tree is drawn the same way as the original NCD on DOS did it. On DOS a directory path could only be 66 characters in total. With the deep directory structures of today the tree can become very wide. To overcome this wcd can draw the tree in a compact way, similar to most GUI file managers, with only one folder per line. Use option B<-Tc> or switch on-the-fly with the key." msgstr "預設情況下,「圖形」目錄樹的繪製方式與 DOS 上原始 NCD 相同。在 DOS 上,目錄路徑總長最多只有 66 個字元。以現今深層的目錄結構而言,目錄樹可能變得非常寬。為克服此問題,wcd 可以用類似多數 GUI 檔案管理員的精簡方式繪製目錄樹,每列只有一個資料夾。請使用 B<-Tc> 選項,或按 鍵即時切換。" #. type: =item #: wcd.pod:590 msgid "B<-Td, --cjk-width>" msgstr "B<-Td, --cjk-width>" #. type: textblock #: wcd.pod:592 msgid "Legacy East-Asian CJK (Chinese, Japanese, and Korean) fonts have certain characters and line drawing symbols with a column width of 2, while the normal Unicode width for these characters is 1 column. For instance the Chinese CP936 raster font on Windows and the Simsun font. Use this option for a correct outlining of the graphical tree when a legacy CJK font is used." msgstr "舊式東亞 CJK(中日韓)字型有些字元與線條繪圖符號的欄寬為 2,而這些字元在一般 Unicode 下的寬度是 1 欄。例如 Windows 上的中文 CP936 點陣字型與 Simsun 字型。當使用舊式 CJK 字型時,請用此選項才能正確描繪圖形目錄樹的輪廓。" #. type: textblock #: wcd.pod:598 msgid "When CJK mode is on, you will see a \"C\" in the lower right corner." msgstr "CJK 模式開啟時,右下角會顯示一個「C」。" #. type: =item #: wcd.pod:600 msgid "B<-u USER>" msgstr "B<-u USER>" #. type: textblock #: wcd.pod:602 msgid "Scan treedata file of another user based on I, do not scan your own default treedata file. See also section ENVIRONMENT VARIABLES for I." msgstr "依 I 掃描其他使用者的 treedata 檔案,不掃描您自己的預設 treedata 檔案。I 的說明請參見「環境變數」一節。" #. type: textblock #: wcd.pod:605 msgid "On Unix/Cygwin the base directory for user home directories is assumed to be C. Wcd will look for C and C, in that order, and read the first one that exists and is readable. On DOS/Windows the base directory for user home directories is assumed to be C<\\\\users>, so wcd tries to read C<\\\\users\\USER\\treedata.wcd> and C<\\\\users\\USER\\.wcd\\treedata.wcd>." msgstr "在 Unix/Cygwin 上,使用者家目錄的基底目錄假定為 C。wcd 會依序尋找 C 與 C,並讀取第一個存在且可讀取的檔案。在 DOS/Windows 上,使用者家目錄的基底目錄假定為 C<\\\\users>,因此 wcd 會嘗試讀取 C<\\\\users\\USER\\treedata.wcd> 與 C<\\\\users\\USER\\.wcd\\treedata.wcd>。" #. type: =item #: wcd.pod:613 msgid "B<+u USER>" msgstr "B<+u USER>" #. type: textblock #: wcd.pod:615 msgid "Read default treedata file of USER in addition to your own treedata file." msgstr "除了您自己的 treedata 檔案之外,也讀取 USER 的預設 treedata 檔案。" #. type: =item #: wcd.pod:618 msgid "B<-v, --verbose>" msgstr "B<-v, --verbose>" #. type: textblock #: wcd.pod:620 msgid "Display verbose messages. With this option wcd prints all filters, bans and excludes." msgstr "顯示詳細訊息。使用此選項時,wcd 會印出所有過濾條件、封鎖與排除設定。" #. type: =item #: wcd.pod:623 msgid "B<-V, --version>" msgstr "B<-V, --version>" #. type: textblock #: wcd.pod:625 msgid "Print version information and exit." msgstr "印出版本資訊後結束。" #. type: =item #: wcd.pod:627 msgid "B<-w, --wild-match-only>" msgstr "B<-w, --wild-match-only>" #. type: textblock #: wcd.pod:629 msgid "Wild matching only. Treat all matches as wild matches." msgstr "僅使用萬用字元比對,將所有符合項都視為萬用字元符合項。" #. type: =item #: wcd.pod:631 msgid "B<-x PATH>" msgstr "B<-x PATH>" #. type: textblock #: wcd.pod:633 msgid "Exclude I from scanning." msgstr "掃描時排除 I。" #. type: textblock #: wcd.pod:635 msgid "When this option is used wcd will exclude I and all its subdirectories when wcd is scanning a disk. Wildcards are supported and matched against absolute paths. Option B<-x> can be used multiple times." msgstr "使用此選項時,wcd 在掃描磁碟時會排除 I 及其所有子目錄。支援萬用字元,並比對絕對路徑。B<-x> 選項可以多次使用。" #. type: verbatim #: wcd.pod:639 #, no-wrap msgid "" " wcd -x -x -s\n" "\n" msgstr "" " wcd -x -x -s\n" "\n" #. type: textblock #: wcd.pod:641 msgid "Option B<-x> must be used in front of any scan option (B<-s>, B<-S>, B<+S>, B<-A>, B<-E>)." msgstr "B<-x> 選項必須用在任何掃描選項 (B<-s>、B<-S>、B<+S>、B<-A>、B<-E>) 之前。" #. type: textblock #: wcd.pod:645 msgid "On DOS/Windows systems one must specify the drive letter depending on if environment variable I or I is set. If I or I is set one needs to specify the drive letter. An example:" msgstr "在 DOS/Windows 系統上,是否需要指定磁碟機代號,取決於環境變數 I 或 I 是否有設定。若 I 或 I 有設定,就需要指定磁碟機代號。範例:" #. type: verbatim #: wcd.pod:649 #, no-wrap msgid "" " wcd -x c:/temp -S c:\n" "\n" msgstr "" " wcd -x c:/temp -S c:\n" "\n" #. type: textblock #: wcd.pod:651 msgid "Otherwise do not specify drive letter." msgstr "否則不要指定磁碟機代號。" #. type: verbatim #: wcd.pod:653 #, no-wrap msgid "" " wcd -x /temp -s\n" "\n" msgstr "" " wcd -x /temp -s\n" "\n" #. type: =item #: wcd.pod:656 msgid "B<-xf FILE>" msgstr "B<-xf FILE>" #. type: textblock #: wcd.pod:658 msgid "Exclude all paths listed in I from scanning." msgstr "掃描時排除 I 中列出的所有路徑。" #. type: textblock #: wcd.pod:660 msgid "When this option is used wcd will exclude all paths listed in I and all their subdirectories when wcd is scanning a disk. Wildcards are supported and they are matched against absolute paths; one path per line. Be aware that wcd will not ignore leading or trailing blanks on a line, because they are legal characters in a directory name. Option B<-xf> can be used multiple times. When one wants to exclude all banned paths from scanning one can do the following (example for wcd on unix):" msgstr "使用此選項時,wcd 在掃描磁碟時會排除 I 中列出的所有路徑及其所有子目錄。支援萬用字元,並比對絕對路徑,每列一個路徑。請注意,由於列首與列尾的空白也是合法的目錄名稱字元,wcd 不會忽略它們。B<-xf> 選項可以多次使用。若想將所有被封鎖的路徑都排除於掃描之外,可以像下面這樣做(以 Unix 上的 wcd 為例):" #. type: verbatim #: wcd.pod:668 #, no-wrap msgid "" " wcd -xf ~/.ban.wcd -s\n" "\n" msgstr "" " wcd -xf ~/.ban.wcd -s\n" "\n" #. type: textblock #: wcd.pod:670 msgid "Wildcards are supported. For instance to exclude all your Subversion directories with administrative files add a line with C<*/.svn>." msgstr "支援萬用字元。例如要排除所有含有管理檔案的 Subversion 目錄,加入一列 C<*/.svn>。" #. type: textblock #: wcd.pod:673 msgid "Option B<-xf> must be used in front of any scan option (B<-s>, B<-S>, B<+S>, B<-A>, B<-E>)." msgstr "B<-xf> 選項必須用在任何掃描選項 (B<-s>、B<-S>、B<+S>、B<-A>、B<-E>) 之前。" #. type: =item #: wcd.pod:676 msgid "B<-y, --assume-yes>" msgstr "B<-y, --assume-yes>" #. type: textblock #: wcd.pod:678 msgid "Assume Yes on all queries." msgstr "對所有詢問一律回答是。" #. type: textblock #: wcd.pod:680 msgid "Wcd will not prompt the user with yes/no questions, but assumes the user answers yes on all questions. This can be used in combination with option B<-rmtree>. This option must be used in front of options that can lead to yes/no questions." msgstr "wcd 不會以 yes/no 詢問使用者,而是視為使用者對所有問題都回答「是」。這個選項可與 B<-rmtree> 選項搭配使用,並且必須用在可能產生 yes/no 詢問的選項之前。" #. type: =item #: wcd.pod:685 msgid "B<-z NUMBER>" msgstr "B<-z NUMBER>" #. type: textblock #: wcd.pod:687 msgid "Set maximum stack size to NUMBER." msgstr "將堆疊大小上限設為 NUMBER。" #. type: textblock #: wcd.pod:689 msgid "The default size of the stack is 10. Stack operation can be turned off by setting the size to 0. This option must be used in front of any other stack operations (B<->,B<+>,B<=>). Otherwise the size of the stack will be set back to the default 10." msgstr "堆疊的預設大小為 10。將大小設為 0 可以關閉堆疊功能。此選項必須用在其他任何堆疊操作(B<->、B<+>、B<=>) 之前,否則堆疊大小會被改回預設值 10。" #. type: textblock #: wcd.pod:694 msgid "A correct command is:" msgstr "正確的命令如下:" #. type: verbatim #: wcd.pod:696 #, no-wrap msgid "" " wcd -z 50 -\n" "\n" msgstr "" " wcd -z 50 -\n" "\n" #. type: textblock #: wcd.pod:698 msgid "The new stack size will be 50, wcd will go one directory back. A wrong command is:" msgstr "新的堆疊大小會是 50,wcd 會往回切換一個目錄。錯誤的命令如下:" #. type: verbatim #: wcd.pod:701 #, no-wrap msgid "" " wcd - -z 50\n" "\n" msgstr "" " wcd - -z 50\n" "\n" #. type: textblock #: wcd.pod:703 msgid "Wcd goes one directory back, the stack gets the default size 10. The B<-z 50> is ignored." msgstr "wcd 會往回切換一個目錄,堆疊大小則是預設值 10,B<-z 50> 會被忽略。" #. type: textblock #: wcd.pod:706 msgid "Add this option as the first option to your wcd alias or function. E.g. for the a POSIX compatible shell this would be:" msgstr "請把這個選項加在 wcd 別名或函式的第一個選項。例如對相容於 POSIX 的 shell:" #. type: verbatim #: wcd.pod:709 #, no-wrap msgid "" " wcd ()\n" " {\n" "\twcd.exe -z 50 \"$@\"\n" "\t. ${WCDHOME:-${HOME}}/bin/wcd.go\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" "\twcd.exe -z 50 \"$@\"\n" "\t. ${WCDHOME:-${HOME}}/bin/wcd.go\n" " }\n" "\n" #. type: =item #: wcd.pod:715 msgid "B<-[NUMBER]>" msgstr "B<-[NUMBER]>" #. type: textblock #: wcd.pod:717 msgid "Push dir NUMBER of times. Default is one." msgstr "將目錄推入堆疊 NUMBER 次。預設為一次。" #. type: textblock #: wcd.pod:719 msgid "Go back a directory. Command C goes one directory back. To go more directories back add a number to it. E.g. command C. The stack is cyclic." msgstr "往回切換一個目錄。命令 C 會往回切換一個目錄。若要往回切換更多目錄,請加上數字,例如命令 C。堆疊是循環式的。" #. type: =item #: wcd.pod:723 msgid "B<+[NUMBER]>" msgstr "B<+[NUMBER]>" #. type: textblock #: wcd.pod:725 msgid "Pop dir NUMBER of times. Default is one." msgstr "將目錄彈出堆疊 NUMBER 次。預設為一次。" #. type: textblock #: wcd.pod:727 msgid "Go forward a directory. Command C goes one directory forward. To go more directories forward add a number to it. E.g. command C. The stack is cyclic." msgstr "往前切換一個目錄。命令 C 會往前切換一個目錄。若要往前切換更多目錄,請加上數字,例如命令 C。堆疊是循環式的。" #. type: =item #: wcd.pod:731 msgid "B<=>" msgstr "B<=>" #. type: textblock #: wcd.pod:733 msgid "Show stack." msgstr "顯示堆疊。" #. type: textblock #: wcd.pod:735 msgid "Use this option if you do not know anymore how many times to push or pop. The stack is printed and you can choose a number. The current place in the stack is marked with an asterisk C<*>." msgstr "若您已不記得推入或彈出過幾次,可以使用此選項。程式會印出堆疊供您挑選一個數字,目前在堆疊中的位置會以星號 C<*> 標示。" #. type: =head1 #: wcd.pod:741 msgid "INSTALLATION" msgstr "安裝" #. type: textblock #: wcd.pod:743 msgid "The current working directory of a Unix shell can only be changed by the builtin cd(1) command. Therefore the program is always called by a function or an alias. The function or alias sources a shell script (go-script) which is generated by the wcd program. Wcd can only work after the function or alias is defined." msgstr "Unix shell 目前的工作目錄只能用內建的 cd(1) 命令變更,因此這支程式一律由函式或別名呼叫。該函式或別名會 source 一個由 wcd 程式產生的 shell 腳本(go 腳本)。只有在定義好該函式或別名之後,wcd 才能運作。" #. type: textblock #: wcd.pod:749 msgid "Another important influence on your installation is the definition of environment variables I and I. See section ENVIRONMENT VARIABLES." msgstr "另一個對安裝影響很大的因素是環境變數 I 與 I 的定義。請參見「環境變數」一節。" #. type: =head2 #: wcd.pod:753 msgid "Install for POSIX type shells" msgstr "安裝(POSIX 類 shell)" #. type: textblock #: wcd.pod:755 msgid "If wcd was installed with a package manager the wcd function may be installed in /etc/profile.d and automatically sourced. In this case it is not needed to define a function yourself." msgstr "若 wcd 是以套件管理器安裝的,wcd 函式可能已放在 /etc/profile.d 並自動被 source,這種情況下就不需要自行定義函式。" #. type: textblock #: wcd.pod:759 msgid "For a POSIX shell (ksh, bash, zsh, etc.) on Unix, Linux, Cygwin, or native MSYS add the following function to the shell startup file (e.g. Bash uses C<$HOME/.bashrc>):" msgstr "若要在 Unix、Linux、Cygwin 或原生 MSYS 上供 POSIX shell (ksh、bash、zsh 等) 使用,請把下列函式加入 shell 的啟動檔(例如 Bash 使用 C<$HOME/.bashrc>):" #. type: verbatim #: wcd.pod:763 #, no-wrap msgid "" " wcd ()\n" " {\n" " typeset go=\"${WCDHOME:-${HOME}}/bin/wcd.go\"\n" " rm -f \"$go\" 2> /dev/null\n" " PATH/wcd.exe \"$@\"\n" " [ -f \"$go\" ] && . \"$go\"\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " typeset go=\"${WCDHOME:-${HOME}}/bin/wcd.go\"\n" " rm -f \"$go\" 2> /dev/null\n" " PATH/wcd.exe \"$@\"\n" " [ -f \"$go\" ] && . \"$go\"\n" " }\n" "\n" #. type: textblock #: wcd.pod:771 msgid "Replace I with the location where the wcd executable has been installed. Reload the shell initialization files or start new shell." msgstr "請把 I 換成 wcd 執行檔的安裝位置。重新載入 shell 的初始化檔,或啟動新的 shell。" #. type: textblock #: wcd.pod:774 msgid "The location of the go-script C differs per shell." msgstr "go 腳本 C 的位置會因 shell 而異。" #. type: textblock #: wcd.pod:776 msgid "Wcd for DJGPP DOS bash and OS/2 bash require a different function. The go script is not written in a directory C, and if I and I are both not defined the go-script is written on c:/." msgstr "DJGPP DOS bash 與 OS/2 bash 版的 wcd 需要使用不同的函式。go 腳本不會寫在 C 目錄中,而且若 I 與 I 都未定義,go 腳本會寫在 c:/。" #. type: textblock #: wcd.pod:780 msgid "DOS bash:" msgstr "DOS bash:" #. type: verbatim #: wcd.pod:782 #, no-wrap msgid "" " wcd ()\n" " {\n" " PATH/wcdbash.exe \"$@\"\n" " . ${WCDHOME:-${HOME:-\"c:\"}}/wcd.go\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " PATH/wcdbash.exe \"$@\"\n" " . ${WCDHOME:-${HOME:-\"c:\"}}/wcd.go\n" " }\n" "\n" #. type: textblock #: wcd.pod:788 msgid "OS/2 bash:" msgstr "OS/2 bash:" #. type: verbatim #: wcd.pod:790 #, no-wrap msgid "" " wcd ()\n" " {\n" " PATH/wcdos2bash.exe \"$@\"\n" " . ${WCDHOME:-${HOME:-\"c:\"}}/wcd.go\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " PATH/wcdos2bash.exe \"$@\"\n" " . ${WCDHOME:-${HOME:-\"c:\"}}/wcd.go\n" " }\n" "\n" #. type: textblock #: wcd.pod:796 msgid "The WinZsh version of wcd requires a bit different function. The go-script will never be written in c:/." msgstr "WinZsh 版的 wcd 需要使用稍有不同的函式。go 腳本永遠不會寫在 c:/。" #. type: verbatim #: wcd.pod:799 #, no-wrap msgid "" " wcd ()\n" " {\n" " PATH/wcdwin32zsh.exe \"$@\"\n" " . ${WCDHOME:-${HOME}}/wcd.go\n" " }\n" "\n" msgstr "" " wcd ()\n" " {\n" " PATH/wcdwin32zsh.exe \"$@\"\n" " . ${WCDHOME:-${HOME}}/wcd.go\n" " }\n" "\n" #. type: textblock #: wcd.pod:805 msgid "See section FILES for more information." msgstr "更多資訊請參見「檔案」一節。" #. type: =head2 #: wcd.pod:807 msgid "Install for C-alike shells (csh, tcsh)" msgstr "安裝(C 類 shell:csh、tcsh)" #. type: textblock #: wcd.pod:809 msgid "Add the following alias to the shell startup file C<$HOME/.cshrc> or C<$HOME/.tcshrc> :" msgstr "請把下列別名加入 shell 啟動檔 C<$HOME/.cshrc> 或 C<$HOME/.tcshrc>:" #. type: verbatim #: wcd.pod:812 #, no-wrap msgid "" " if ( ${?WCDHOME} ) then\n" " alias wcd \"PATH/wcd.exe \\!* ; source $WCDHOME/bin/wcd.go\"\n" " else\n" " alias wcd \"PATH/wcd.exe \\!* ; source $HOME/bin/wcd.go\"\n" " endif\n" "\n" msgstr "" " if ( ${?WCDHOME} ) then\n" " alias wcd \"PATH/wcd.exe \\!* ; source $WCDHOME/bin/wcd.go\"\n" " else\n" " alias wcd \"PATH/wcd.exe \\!* ; source $HOME/bin/wcd.go\"\n" " endif\n" "\n" #. type: textblock #: wcd.pod:818 msgid "Replace I with the location where the wcd executable has been installed. Reload the shell initialization files or start a new shell." msgstr "請把 I 換成 wcd 執行檔的安裝位置。重新載入 shell 的初始化檔,或啟動新的 shell。" #. type: =head2 #: wcd.pod:822 msgid "Windows Command Prompt version" msgstr "Windows 命令提示字元版本" #. type: textblock #: wcd.pod:824 msgid "Unpack the zip file and add directory C to your environment variable I." msgstr "解壓縮 zip 檔,並把 C 目錄加入環境變數 I。" #. type: textblock #: wcd.pod:827 msgid "In Windows Command Prompt a Windows program cannot change the current work directory, but a .bat file can. The batch script C runs the wcd program which generates a new batch script C. Then C runs C which actually changes the directory." msgstr "在 Windows 命令提示字元中,Windows 程式無法變更目前的工作目錄,但 .bat 檔可以。批次腳本 C 會執行 wcd 程式,產生新的批次腳本 C,接著 C 執行 C,實際切換目錄。" #. type: =head2 #: wcd.pod:832 msgid "Windows VISTA and higher" msgstr "Windows VISTA 以上版本" #. type: textblock #: wcd.pod:834 msgid "In a Windows VISTA and higher Command Prompt you may have limited access to directories. To get access to more directories you need administrator rights. You can get a Command Prompt with administrator rights if you right click on the Command Prompt icon and select I." msgstr "在 Windows VISTA 以上版本的命令提示字元中,您可能只能存取部分目錄。若要存取更多目錄,需要系統管理員權限。在命令提示字元圖示上按右鍵並選擇 I,即可取得具備系統管理員權限的命令提示字元。" #. type: =head2 #: wcd.pod:839 msgid "Windows PowerShell version" msgstr "Windows PowerShell 版本" #. type: textblock #: wcd.pod:841 msgid "Add the following function to your PowerShell user profile. The location of this profile is stored in the $profile variable. It is required that one of the environment variables I or I is defined." msgstr "請把下列函式加入您的 PowerShell 使用者設定檔。這個設定檔的位置存放在 $profile 變數中。必須先定義環境變數 I 或 I 其中之一。" #. type: verbatim #: wcd.pod:845 #, no-wrap msgid "" " function wcd\n" " {\n" " PATH\\wcdwin32psh.exe $args\n" " & $env:HOME\\wcdgo.ps1\n" " }\n" "\n" msgstr "" " function wcd\n" " {\n" " PATH\\wcdwin32psh.exe $args\n" " & $env:HOME\\wcdgo.ps1\n" " }\n" "\n" #. type: textblock #: wcd.pod:851 msgid "Replace I with the location where the wcd executable has been installed. Start a new PowerShell. Wcd for PowerShell supports only the file system provider. No other providers." msgstr "請把 I 換成 wcd 執行檔的安裝位置,然後啟動新的 PowerShell。PowerShell 版的 wcd 只支援檔案系統提供者,不支援其他提供者。" #. type: =head2 #: wcd.pod:855 msgid "OS/2 Command Prompt version" msgstr "OS/2 命令提示字元版本" #. type: textblock #: wcd.pod:857 msgid "In an OS/2 Command Prompt (cmd.exe) an OS/2-program can't change the current work directory. That is why wcd generates a command script C which must be executed in the current shell. The script C first executes C, which creates the C script. Then C executes the C script." msgstr "在 OS/2 命令提示字元 (cmd.exe) 中,OS/2 程式無法變更目前的工作目錄。因此 wcd 會產生一份必須在目前 shell 中執行的命令腳本 C。腳本 C 會先執行 C 來產生 C,再由 C 執行 C。" #. type: =head1 #: wcd.pod:864 msgid "LOCALIZATION" msgstr "在地化" #. type: =item #: wcd.pod:868 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:870 msgid "The primary language is selected with the environment variable I. The I variable consists out of several parts. The first part is in small letters the language code. The second one is optional and is the country code in capital letters, preceded with an underscore. There is also an optional third part: character encoding, preceded with a dot. A few examples for POSIX standard type shells:" msgstr "主要語言以環境變數 I 選擇。I 變數由數個部分組成。第一部分是以小寫字母書寫的語言代碼。第二部分是選用的國家代碼,以大寫字母書寫並加上底線前導。另有選用的第三部分:字元編碼,前面加上小數點。以下是幾個 POSIX 標準類 shell 的範例:" #. type: verbatim #: wcd.pod:877 #, no-wrap msgid "" " export LANG=nl Dutch\n" " export LANG=nl_NL Dutch, The Netherlands\n" " export LANG=nl_BE Dutch, Belgium\n" " export LANG=es_ES Spanish, Spain\n" " export LANG=es_MX Spanish, Mexico\n" " export LANG=en_US.iso88591 English, USA, Latin-1 encoding\n" "\n" msgstr "" " export LANG=nl Dutch\n" " export LANG=nl_NL Dutch, The Netherlands\n" " export LANG=nl_BE Dutch, Belgium\n" " export LANG=es_ES Spanish, Spain\n" " export LANG=es_MX Spanish, Mexico\n" " export LANG=en_US.iso88591 English, USA, Latin-1 encoding\n" "\n" #. type: textblock #: wcd.pod:884 msgid "For a complete list of language and country codes see the gettext(1) manual: L On Unix systems you can use to command locale(1) to get locale specific information." msgstr "完整的語言代碼與國家代碼清單請參閱 gettext(1) 手冊:L。在 Unix 系統上,您也可以使用 locale(1) 命令取得各地區設定的相關資訊。" #. type: =item #: wcd.pod:890 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:892 msgid "With the I environment variable you can specify a priority list of languages, separated by colons. Wcd gives preference to I over I. For instance, first Dutch and then German: C. You have to first enable localization, by setting I or I to a value other than I, before you can use a language priority list through the I variable. See also the gettext(1) manual: L" msgstr "您可以用 I 環境變數指定一份以冒號分隔的語言優先順序清單。wcd 的 I 優先權高於 I。例如先荷蘭文再德文:C。在使用 I 變數的語言優先順序清單之前,必須先將 I 或 I 設為 I 以外的值以啟用在地化。請另參閱 gettext(1) 手冊:L" #. type: textblock #: wcd.pod:900 msgid "If you select a language which is not available you will get the standard English messages." msgstr "若選擇了沒有提供翻譯的語言,您會看到標準的英文訊息。" #. type: =item #: wcd.pod:903 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:905 msgid "With the environment variable I the I used during compilation and installation of wcd can be overruled. I is used by wcd with native language support to find the language files. The GNU default value is C. By typing C wcd will print the I that is used." msgstr "透過環境變數 I 可以覆寫 wcd 編譯與安裝時所使用的 I。具備原生語言支援的 wcd 會用 I 來尋找語言檔。GNU 的預設值是 C。輸入 C 可讓 wcd 印出實際使用的 I。" #. type: textblock #: wcd.pod:911 msgid "If you have installed wcd in a different directory than the default directory you may need to set the environment variable I to point to the locale directory." msgstr "若您把 wcd 安裝在與預設目錄不同的位置,可能需要設定環境變數 I 指向 locale 目錄。" #. type: textblock #: wcd.pod:916 msgid "An example for Windows cmd:" msgstr "Windows cmd 的範例:" #. type: verbatim #: wcd.pod:918 #, no-wrap msgid "" " set WCDLOCALEDIR=c:/my_prefix/share/locale\n" "\n" msgstr "" " set WCDLOCALEDIR=c:/my_prefix/share/locale\n" "\n" #. type: textblock #: wcd.pod:921 msgid "An example for a POSIX shell:" msgstr "POSIX shell 的範例:" #. type: verbatim #: wcd.pod:923 #, no-wrap msgid "" " export WCDLOCALEDIR=$HOME/share/locale\n" "\n" msgstr "" " export WCDLOCALEDIR=$HOME/share/locale\n" "\n" #. type: =item #: wcd.pod:925 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:927 msgid "When there are multiple directory matches wcd presents a sorted list. The sorting depends on the locale settings. If the environment I has been set the matches are sorted like dictionaries or phone books are sorted in that language. For instance dots and dashes are ignored, or letters e with and without accent are equal, or upper and lower case is ignored." msgstr "當有多個目錄符合時,wcd 會呈現排序後的清單,排序方式取決於地區設定。若已設定環境變數 I,符合項就會像該語言的字典或電話簿那樣排序。例如點號與連字號會被忽略,或帶有變音符號與不帶變音符號的字母視為相同,或不分大小寫。" #. type: textblock #: wcd.pod:933 msgid "The sorting gives preference to environment variable I over I. If you make I equal to C or C, locale sorting is turned off. For instance if you want Dutch language, but not Dutch sorting, you can do something like this:" msgstr "排序時,環境變數 I 的優先權高於 I。若把 I 設為 C 或 C,就會關閉依地區設定排序。例如想要荷蘭文但不要荷蘭文排序,可以像下面這樣設定:" #. type: verbatim #: wcd.pod:938 #, no-wrap msgid "" " export LANG=nl_NL\n" " export LC_COLLATE=C\n" "\n" msgstr "" " export LANG=nl_NL\n" " export LC_COLLATE=C\n" "\n" #. type: =item #: wcd.pod:941 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:943 msgid "With regard to character encoding Wcd will give preference to variable I over I. For instance to set character encoding to UTF-8 the following environment setting can be done." msgstr "字元編碼方面,wcd 會優先採用變數 I 而非 I。例如要將字元編碼設為 UTF-8,可以做以下設定。" #. type: verbatim #: wcd.pod:947 #, no-wrap msgid "" " export LC_CTYPE=en_US.UTF-8\n" "\n" msgstr "" " export LC_CTYPE=en_US.UTF-8\n" "\n" #. type: =item #: wcd.pod:949 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:951 msgid "All locale environment variables that start with I are overruled by the environment variable I if it is defined. Wcd gives preference to I over I and I." msgstr "若已定義環境變數 I,所有以 I 開頭的地區設定環境變數都會被它覆寫。wcd 採用 I 的優先權高於 I 與 I。" #. type: =head2 #: wcd.pod:957 msgid "WINDOWS CODE PAGES" msgstr "WINDOWS 碼頁" #. type: textblock #: wcd.pod:959 msgid "There are two groups of code pages: DOS code pages (OEM) and Windows code pages (ANSI). The default encoding for Windows, when configured with Western regional settings, is ANSI CP1252. Windows programs, for instance notepad, use this default system ANSI code page. The Windows console uses by default an OEM code page (CP437 or CP850) for compatibility with DOS programs. If you use a DOS version of wcd in a Windows console it will work, because of the DOS code page. But the DOS version of wcd lacks support for long directory names and network drives on Windows." msgstr "碼頁分成兩組:DOS 碼頁 (OEM) 與 Windows 碼頁 (ANSI)。Windows 在設定為西歐地區設定時,預設編碼是 ANSI CP1252。Windows 程式(例如記事本)會使用這個預設的系統 ANSI 碼頁。Windows 主控台為了與 DOS 程式相容,預設使用 OEM 碼頁(CP437 或 CP850)。若您在 Windows 主控台中使用 DOS 版的 wcd,因為有 DOS 碼頁的關係可以正常運作,但 DOS 版的 wcd 不支援 Windows 上的長檔名與網路磁碟機。" #. type: textblock #: wcd.pod:968 msgid "The Windows version of wcd is a native Windows program and will use the Windows system ANSI code page. So on a Western regional Windows it will use code page CP1252 for directory names and messages. In order to get consistent output, independent of the active code page, all Windows versions of Wcd translate ANSI output to Unicode output in the Command Prompt and PowerShell." msgstr "Windows 版的 wcd 是原生 Windows 程式,會使用 Windows 系統 ANSI 碼頁,因此在西歐地區設定的 Windows 上,檔名與訊息會使用 CP1252 碼頁。為了讓輸出不受作用中碼頁影響而保持一致,所有 Windows 版的 wcd 都會在命令提示字元與 PowerShell 中把 ANSI 輸出轉換為 Unicode 輸出。" #. type: textblock #: wcd.pod:974 msgid "The console raster font only supports the original OEM code page installed with Windows, so you have to change the console's font to true type Lucida Console to make Unicode (and ANSI) letters appear correctly." msgstr "主控台的點陣字型只支援 Windows 隨附的原始 OEM 碼頁,因此必須把主控台字型改成 True Type 的 Lucida Console,Unicode(及 ANSI)字母才會正確顯示。" #. type: textblock #: wcd.pod:978 msgid "Non-Unicode versions of Wcd I use plain ANSI output. For these older versions the code page of the console has to be made equal to the system code page (changed to 1252) to make wcd for Windows work properly with special characters such as accented characters or the Euro symbol." msgstr "非 Unicode 版的 wcd I<在 5.2.0 版之前> 使用單純的 ANSI 輸出。這些舊版必須把主控台的碼頁設成與系統碼頁相同(改為 1252),Windows 版的 wcd 才能正確處理帶音符字母或歐元符號等特殊字元。" #. type: textblock #: wcd.pod:983 msgid "The Windows system code page can be changed via the Control Panel regional options. The Windows console code page is changed with the C command." msgstr "Windows 系統碼頁可以透過控制台的地區選項變更,Windows 主控台碼頁則用 C 命令變更。" #. type: textblock #: wcd.pod:986 msgid "When you type C, the actual character encoding used by wcd is shown. Type the command C to display the active code page of the Windows console." msgstr "輸入 C 會顯示 wcd 實際使用的字元編碼。輸入 C 命令則會顯示 Windows 主控台作用中的碼頁。" #. type: =head2 #: wcd.pod:991 msgid "UNICODE" msgstr "Unicode" #. type: textblock #: wcd.pod:993 msgid "Wcd has optional support for Unicode. To see if wcd was built with Unicode support type C. If your terminal/console and font supports it, you should see the Euro symbol and Chinese characters (meaning: \"Chinese\")." msgstr "wcd 可選擇性支援 Unicode。要查看 wcd 是否以支援 Unicode 的方式建置,請輸入 C。若您的終端機/主控台與字型支援,應該會看到歐元符號與中文字(意思是「中文」)。" #. type: textblock #: wcd.pod:998 msgid "Wcd has been I converted to Unicode. In its core wcd handles all data as a stream of bytes. Only the lines printed to screen are on the fly converted to Unicode wide characters. Wcd fully relies on libc functions and has no UTF-8 specific code. See also L" msgstr "wcd 已 I<軟性> 轉換為 Unicode。其核心仍將所有資料視為位元組串流,只有印到畫面上的行才會即時轉換為 Unicode 寬字元。wcd 完全依賴 libc 函式,沒有專為 UTF-8 撰寫的程式碼。請另參閱 L" #. type: textblock #: wcd.pod:1004 msgid "Wcd has optional support for Unicode matching with normalisation. To find out whether Wcd has normalisation support type C. Wcd with Unicode normalization support will match Unicode names based on I equivalence. Without Unicode normalization support, names are matched when they are binary equivalent. See also L" msgstr "wcd 可選擇性支援含正規化的 Unicode 比對。要查看 wcd 是否具備正規化支援,請輸入 C。具備 Unicode 正規化支援的 wcd 會依 I<相容> 等價性比對 Unicode 名稱;不具備正規化支援時,名稱必須在二進位上等價才會比對成功。請另參閱 L" #. type: =head3 #: wcd.pod:1011 msgid "UTF-8 on Unix/Linux" msgstr "Unix/Linux 上的 UTF-8" #. type: textblock #: wcd.pod:1013 msgid "In order to view UTF-8 characters your console/terminal also needs to support UTF-8. The xterm version that comes with XFree86 4.0 or higher includes UTF-8 support. To activate it, start xterm(1) in a UTF-8 locale and use a font with iso10646-1 encoding, for instance with" msgstr "要顯示 UTF-8 字元,主控台/終端機也必須支援 UTF-8。XFree86 4.0 以上版本所附的 xterm 內含 UTF-8 支援。要啟用它,請在 UTF-8 地區設定中啟動 xterm(1),並使用 iso10646-1 編碼的字型,例如:" #. type: verbatim #: wcd.pod:1018 #, no-wrap msgid "" " LC_CTYPE=en_GB.UTF-8 xterm -u8 -fn '-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1'\n" "\n" msgstr "" " LC_CTYPE=en_GB.UTF-8 xterm -u8 -fn '-Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1'\n" "\n" #. type: textblock #: wcd.pod:1020 msgid "Modern distributions of GNU/Linux support UTF-8 by default. Other multi-byte character encodings should also work, but that has not been tested." msgstr "現代 GNU/Linux 發行版預設支援 UTF-8。其他多位元字元編碼應該也能運作,但尚未經過測試。" #. type: textblock #: wcd.pod:1023 msgid "Wcd assumes that the treedata files are encoded in the locale character encoding. There are no Byte Order Marks written to treedata files." msgstr "wcd 假設 treedata 檔案是以地區設定的字元編碼編碼。treedata 檔案不會寫入位元組順序記號 (BOM)。" #. type: =head3 #: wcd.pod:1027 msgid "UTF-16 on Windows" msgstr "Windows 上的 UTF-16" #. type: textblock #: wcd.pod:1029 msgid "On Windows Unicode is supported in all versions of PowerShell, and in Windows Command Prompt on Windows 7 (or higher). Unicode also works in Take Command or TCC/LE made by JP Software, which can be used on older Windows versions (XP/Vista)." msgstr "在 Windows 上,所有版本的 PowerShell 都支援 Unicode,Windows 7(或更新版本)的命令提示字元也支援 Unicode。JP Software 製作的 Take Command 或 TCC/LE 也支援 Unicode,可在較舊的 Windows 版本(XP/Vista)上使用。" #. type: textblock #: wcd.pod:1034 msgid "On Windows all the directory names on disk are encoded in UTF-16 Unicode. For non-Unicode Windows programs the Unicode characters are translated to the default ANSI code page. For characters that are not part of the regional setting this translation is not possible and non-Unicode programs print a question mark or a wrong character instead." msgstr "在 Windows 上,磁碟上的所有目錄名稱都以 UTF-16 Unicode 編碼。對非 Unicode 的 Windows 程式而言,Unicode 字元會被轉換為預設的 ANSI 碼頁。若字元不屬於地區設定的範圍,就無法轉換,非 Unicode 程式會印出問號或錯誤的字元。" #. type: textblock #: wcd.pod:1040 msgid "Wcd with Unicode support will read the UTF-16 encoded directory names and converts them internally to UTF-8. All treedata files are encoded in UTF-8 and not compatible with the non-Unicode version of Wcd. Wcd will create a go-script encoded in UTF-8." msgstr "具備 Unicode 支援的 wcd 會讀取以 UTF-16 編碼的目錄名稱,並在內部轉換為 UTF-8。所有 treedata 檔案都以 UTF-8 編碼,與非 Unicode 版的 wcd 不相容。wcd 會建立以 UTF-8 編碼的 go 腳本。" #. type: textblock #: wcd.pod:1045 msgid "All versions of Windows PowerShell are able to run scripts encoded in UTF-8, provided there is an UTF-8 BOM in the script." msgstr "所有版本的 Windows PowerShell 都能執行以 UTF-8 編碼的腳本,但腳本中必須有 UTF-8 BOM。" #. type: textblock #: wcd.pod:1048 msgid "Since Windows 7 it is possible in Windows Command Prompt to change directory with a batch script to a directory with Unicode letters in the name. The directory name needs to be encoded in UTF-8, and the batch script must I have a BOM. The active code page of the Command Prompt needs to be set to 65001 (UTF-8) prior to the cd command. Wcd for Command Prompt will create such a go script C. It first changes the code page to 65001, then changes directory, and finally sets the code page back to the original code page." msgstr "自 Windows 7 起,可以在 Windows 命令提示字元中以批次腳本切換到名稱含有 Unicode 字母的目錄。目錄名稱必須以 UTF-8 編碼,批次腳本則 I<不得>含有 BOM。在執行 cd 命令之前,必須把命令提示字元作用中的碼頁設為 65001 (UTF-8)。命令提示字元版的 wcd 會產生這樣的 go 腳本 C:它會先把碼頁改成 65001,再切換目錄,最後把碼頁設回原本的碼頁。" #. type: textblock #: wcd.pod:1056 msgid "You need to set the font to True Type Lucida Console (not raster font) when letters don't appear correctly." msgstr "若字母無法正確顯示,必須把字型設為 True Type Lucida Console(而非點陣字型)。" #. type: textblock #: wcd.pod:1059 msgid "The non-Unicode Windows version of Wcd can read Unicode treedata files since version 5.2.0, provided there is a Byte Order Mark (BOM) in the file (see L), but it can't change to directories with Unicode letters in the name that are not part of the default system ANSI code page. The Unicode Windows version of wcd writes a BOM in the UTF-8 encoded treedata files since version 5.2.0, which makes them also readable by notepad." msgstr "自 5.2.0 版起,非 Unicode 的 Windows 版 wcd 可以讀取 Unicode treedata 檔案(前提是檔案中有位元組順序記號 (BOM),見 L),但無法切換到名稱中含有不在預設系統 ANSI 碼頁範圍內之 Unicode 字母的目錄。自 5.2.0 版起,Unicode 版的 wcd 會在以 UTF-8 編碼的 treedata 檔案中寫入 BOM,因此這些檔案連記事本也讀得。" #. type: =head3 #: wcd.pod:1068 msgid "UTF-8 on Cygwin" msgstr "Cygwin 上的 UTF-8" #. type: textblock #: wcd.pod:1070 msgid "Cygwin supports Unicode since version 1.7. The Cygwin layer takes care that the Windows UTF-16 Unicode names are converted to UTF-8. So programs, like wcd, do not need to be aware of this and can operate using UTF-8 encoding as on Unix/Linux. Set character encoding to UTF-8 with the I or I environment variable. You may need to rescan your drives. You need to set the font to True Type Lucida Console (not raster font) if you use the default Cygwin console." msgstr "Cygwin 自 1.7 版起支援 Unicode。Cygwin 層會負責把 Windows 的 UTF-16 Unicode 名稱轉換為 UTF-8,因此像 wcd 這類程式不需要特別處理,可以像在 Unix/Linux 上一樣使用 UTF-8 編碼運作。請用 I 或 I 環境變數將字元編碼設為 UTF-8。您可能需要重新掃描磁碟機。若使用預設的 Cygwin 主控台,必須把字型設為 True Type Lucida Console(而非點陣字型)。" #. type: textblock #: wcd.pod:1078 msgid "The Cygwin version behaves exactly as the Unix version of wcd. There is no BOM written in the treedata files, and it is assumed they are encoded in the B locale character encoding." msgstr "Cygwin 版的行為與 Unix 版的 wcd 完全相同。treedata 檔案中不會寫入 BOM,並假設以 B 地區設定的字元編碼編碼。" #. type: =head1 #: wcd.pod:1082 msgid "FILES" msgstr "檔案" #. type: textblock #: wcd.pod:1084 msgid "If the environment variable I is set wcd will use I instead of I. All C<*.wcd> files are text files. They can be edited with a text editor. The Windows Command Prompt version of wcd behaves as the DOS version. The Cygwin version of wcd behaves as the Unix version." msgstr "若已設定環境變數 I,wcd 會使用 I 而非 I。所有 C<*.wcd> 檔案都是文字檔,可以用文字編輯器編輯。Windows 命令提示字元版的 wcd 行為與 DOS 版相同;Cygwin 版的 wcd 行為則與 Unix 版相同。" #. type: =item #: wcd.pod:1093 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1095 msgid "The program. In Unix shells the program is always called by a function or alias, because the current working directory of a Unix shell can only be changed by the builtin cd command. See also section INSTALLATION." msgstr "就是程式本身。在 Unix shell 中,由於 Unix shell 目前的工作目錄只能用內建的 cd 命令變更,因此這支程式一律由函式或別名呼叫。請另參見「安裝」一節。" #. type: =item #: wcd.pod:1100 msgid "B" msgstr "B<預設 treedata 檔案>" #. type: textblock #: wcd.pod:1102 msgid "This is the default treedata file where wcd searches for matches. If it is not readable wcd will create a new one." msgstr "這是 wcd 用來搜尋符合項的預設 treedata 檔案。若無法讀取,wcd 會建立一個新的。" #. type: verbatim #: wcd.pod:1105 #, no-wrap msgid "" " DOS: \\treedata.wcd or %HOME%\\treedata.wcd\n" " Unix: $HOME/.treedata.wcd\n" "\n" msgstr "" " DOS: \\treedata.wcd or %HOME%\\treedata.wcd\n" " Unix: $HOME/.treedata.wcd\n" "\n" #. type: =item #: wcd.pod:1108 msgid "B" msgstr "B<額外 treedata 檔案>" #. type: textblock #: wcd.pod:1110 msgid "An optional extra treedata file. If it exists and is readable wcd will try to find matches in this file also." msgstr "選用的額外 treedata 檔案。若檔案存在且可讀取,wcd 也會嘗試在其中尋找符合項。" #. type: verbatim #: wcd.pod:1113 #, no-wrap msgid "" " DOS: \\extra.wcd or %HOME%\\extra.wcd\n" " Unix: $HOME/.extra.wcd\n" "\n" msgstr "" " DOS: \\extra.wcd or %HOME%\\extra.wcd\n" " Unix: $HOME/.extra.wcd\n" "\n" #. type: =item #: wcd.pod:1116 msgid "B" msgstr "B<封鎖檔案>" #. type: textblock #: wcd.pod:1118 msgid "In this optional file wcd places banned paths. See option B<-b>. Wildcards are supported." msgstr "wcd 會把被封鎖的路徑放在這個選用檔案中。請參見 B<-b> 選項。支援萬用字元。" #. type: verbatim #: wcd.pod:1121 #, no-wrap msgid "" " DOS: \\ban.wcd or %HOME%\\ban.wcd\n" " Unix: $HOME/.ban.wcd\n" "\n" msgstr "" " DOS: \\ban.wcd or %HOME%\\ban.wcd\n" " Unix: $HOME/.ban.wcd\n" "\n" #. type: =item #: wcd.pod:1124 msgid "B" msgstr "B<別名檔案>" #. type: textblock #: wcd.pod:1126 msgid "Optional file with wcd aliases. See option B<-l>." msgstr "存放 wcd 別名的選用檔案。請參見 B<-l> 選項。" #. type: verbatim #: wcd.pod:1128 #, no-wrap msgid "" " DOS: \\alias.wcd or %HOME%\\alias.wcd\n" " Unix: $HOME/.alias.wcd\n" "\n" msgstr "" " DOS: \\alias.wcd or %HOME%\\alias.wcd\n" " Unix: $HOME/.alias.wcd\n" "\n" #. type: =item #: wcd.pod:1131 msgid "B" msgstr "B<堆疊檔案>" #. type: textblock #: wcd.pod:1133 msgid "In this file wcd stores its stack. The drive letter can be changed with the B<-d> option." msgstr "wcd 會把堆疊存放在這個檔案中。磁碟機代號可以用 B<-d> 選項變更。" #. type: verbatim #: wcd.pod:1136 #, no-wrap msgid "" " DOS: c:\\stack.wcd or %HOME%\\stack.wcd\n" " Unix: $HOME/.stack.wcd\n" "\n" msgstr "" " DOS: c:\\stack.wcd or %HOME%\\stack.wcd\n" " Unix: $HOME/.stack.wcd\n" "\n" #. type: textblock #: wcd.pod:1139 msgid "The name of the stack file can be changed with environment variable I. See section ENVIRONMENT VARIABLES." msgstr "堆疊檔案的名稱可以用環境變數 I 變更。請參見「環境變數」一節。" #. type: =item #: wcd.pod:1142 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1144 msgid "This is the shell script which wcd.exe creates each time. It is sourced via a function or an alias. The drive letter can be changed with the B<-d> option. For history reasons it is placed by default in C<$HOME/bin> on Unix systems. The directory of this file can be changed with the option B<-G>." msgstr "這是 wcd.exe 每次都會產生的 shell 腳本,會由函式或別名 source。磁碟機代號可以用 B<-d> 選項變更。基於歷史因素,在 Unix 系統上它預設放在 C<$HOME/bin>。這個檔案的位置可以用 B<-G> 選項變更。" #. type: verbatim #: wcd.pod:1149 #, no-wrap msgid "" " DOS bash: c:/wcd.go or $HOME/wcd.go\n" " Windows Command Prompt: c:\\wcdgo.bat or %HOME%\\wcdgo.bat\n" " Windows PowerShell: $env:HOME\\wcdgo.ps1\n" " WinZsh: $HOME/wcd.go\n" " Cygwin/MSYS: $HOME/bin/wcd.go\n" " OS/2 Command Prompt: c:\\wcdgo.cmd or %HOME%\\wcdgo.cmd\n" " OS/2 bash: c:/wcd.go or $HOME/wcd.go\n" " Unix: $HOME/bin/wcd.go\n" "\n" msgstr "" " DOS bash: c:/wcd.go or $HOME/wcd.go\n" " Windows Command Prompt: c:\\wcdgo.bat or %HOME%\\wcdgo.bat\n" " Windows PowerShell: $env:HOME\\wcdgo.ps1\n" " WinZsh: $HOME/wcd.go\n" " Cygwin/MSYS: $HOME/bin/wcd.go\n" " OS/2 Command Prompt: c:\\wcdgo.cmd or %HOME%\\wcdgo.cmd\n" " OS/2 bash: c:/wcd.go or $HOME/wcd.go\n" " Unix: $HOME/bin/wcd.go\n" "\n" #. type: =item #: wcd.pod:1158 msgid "B" msgstr "B<相對 treedata 檔案>" #. type: textblock #: wcd.pod:1160 msgid "Text file with relative paths from I. See options B<+S>, B<-n> and B<+n>." msgstr "存放從 I 起算之相對路徑的文字檔。請參見 B<+S>、B<-n> 與 B<+n> 選項。" #. type: verbatim #: wcd.pod:1163 #, no-wrap msgid "" " DOS: PATH\\rtdata.wcd\n" " Unix: PATH/.rtdata.wcd\n" "\n" msgstr "" " DOS: PATH\\rtdata.wcd\n" " Unix: PATH/.rtdata.wcd\n" "\n" #. type: =head1 #: wcd.pod:1168 msgid "ENVIRONMENT VARIABLES" msgstr "環境變數" #. type: =item #: wcd.pod:1172 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1174 msgid "Wcd uses by default environment variable I to determine where to store its files. See also section FILES. This can be overruled with environment variable I." msgstr "wcd 預設使用環境變數 I 來決定檔案存放位置。請另參見「檔案」一節。可以使用環境變數 I 覆寫此設定。" #. type: textblock #: wcd.pod:1178 msgid "I also defines where to start scanning the disk when option B<-s> is used. This can be overruled with the environment variable I." msgstr "使用 B<-s> 選項時,I 也決定從哪裡開始掃描磁碟。此設定可以用環境變數 I 覆寫。" #. type: textblock #: wcd.pod:1182 msgid "For the Unix, Cygwin, Windows PowerShell, WinZsh and MSYS version it is required that I or I is set. For the other versions of wcd the use of these variables is optional." msgstr "Unix、Cygwin、Windows PowerShell、WinZsh 與 MSYS 版必須設定 I 或 I。其他版本的 wcd 則可以選擇性使用這些變數。" #. type: textblock #: wcd.pod:1186 msgid "If I is set on DOS/Windows, wcd will place all its files (treedata.wcd, extra.wcd, alias.wcd, ban.wcd, wcd.go) in directory I. The behaviour of wcd is then equal to the Unix version of wcd. Wcd will scan the disk default from I. Drives will not be automatically scanned by changing to them. You need to tell wcd explicitly. E.g.:" msgstr "若在 DOS/Windows 上設定了 I,wcd 會把所有檔案 (treedata.wcd、extra.wcd、alias.wcd、ban.wcd、wcd.go) 放在 I 目錄中,此時 wcd 的行為與 Unix 版相同。wcd 預設會從 I 掃描磁碟,不會因為切換到某個磁碟機就自動掃描,您必須明確告知 wcd。例如:" #. type: verbatim #: wcd.pod:1193 #, no-wrap msgid "" " wcd -S c: -A d: -A e:\n" "\n" msgstr "" " wcd -S c: -A d: -A e:\n" "\n" #. type: textblock #: wcd.pod:1195 msgid "Matching of directories is now global over all scanned drives." msgstr "此時目錄比對會在所有已掃描的磁碟機之間通用。" #. type: =item #: wcd.pod:1198 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1200 msgid "Environment variable I can be used to change the location of wcd's files. If both I and I are set, I will be used instead of I." msgstr "環境變數 I 可用來變更 wcd 檔案的位置。若 I 與 I 都有設定,會使用 I 而非 I。" #. type: textblock #: wcd.pod:1204 msgid "In wcd versions prior to 5.1.5 I also changed the default scan directory. This has changed. Since version 5.1.5 I does not change the default scan directory. See option B<-s>. From version 5.1.5, use environment I to overrule the default scan directory." msgstr "在 5.1.5 版之前的 wcd 中,I 也會變更預設的掃描目錄。現在情況已改變:自 5.1.5 版起,I 不再變更預設的掃描目錄。請參見 B<-s> 選項。自 5.1.5 版起,請使用環境變數 I 覆寫預設的掃描目錄。" #. type: textblock #: wcd.pod:1209 msgid "Example for DOS, Windows, OS/2 Command Prompt:" msgstr "DOS、Windows、OS/2 命令提示字元的範例:" #. type: verbatim #: wcd.pod:1211 #, no-wrap msgid "" " set WCDHOME=C:\\Users\\erwin\\wcd\n" "\n" msgstr "" " set WCDHOME=C:\\Users\\erwin\\wcd\n" "\n" #. type: textblock #: wcd.pod:1213 wcd.pod:1234 wcd.pod:1254 wcd.pod:1279 msgid "An example for POSIX type shells:" msgstr "POSIX 類 shell 的範例:" #. type: verbatim #: wcd.pod:1215 #, no-wrap msgid "" " export WCDHOME=\"$HOME/.wcd\"\n" "\n" msgstr "" " export WCDHOME=\"$HOME/.wcd\"\n" "\n" #. type: textblock #: wcd.pod:1217 wcd.pod:1238 wcd.pod:1258 wcd.pod:1283 msgid "An example for Csh type shells:" msgstr "Csh 類 shell 的範例:" #. type: verbatim #: wcd.pod:1219 #, no-wrap msgid "" " setenv WCDHOME \"$HOME/.wcd\"\n" "\n" msgstr "" " setenv WCDHOME \"$HOME/.wcd\"\n" "\n" #. type: =item #: wcd.pod:1221 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1223 msgid "Use environment variable I to overrule the default scan directory I. Define a colon separated list (Unix) to define more than one directory. On DOS/Windows make the list semi-colon separated." msgstr "使用環境變數 I 可以覆寫預設的掃描目錄 I。可定義以冒號分隔的清單 (Unix) 來指定多個目錄;在 DOS/Windows 上請改用分號分隔。" #. type: textblock #: wcd.pod:1228 msgid "Examples for DOS, Windows, OS/2 Command Prompt:" msgstr "DOS、Windows、OS/2 命令提示字元的範例:" #. type: verbatim #: wcd.pod:1230 #, no-wrap msgid "" " set WCDSCAN=C:\\Users\\erwin;D:\\data\n" "\n" msgstr "" " set WCDSCAN=C:\\Users\\erwin;D:\\data\n" "\n" #. type: verbatim #: wcd.pod:1232 #, no-wrap msgid "" " set WCDSCAN=%HOMEDRIVE%%HOMEPATH%;\\\\projectdrive\\projectX\n" "\n" msgstr "" " set WCDSCAN=%HOMEDRIVE%%HOMEPATH%;\\\\projectdrive\\projectX\n" "\n" #. type: verbatim #: wcd.pod:1236 #, no-wrap msgid "" " export WCDSCAN=\"$HOME:/projectdisk/projectX\"\n" "\n" msgstr "" " export WCDSCAN=\"$HOME:/projectdisk/projectX\"\n" "\n" #. type: verbatim #: wcd.pod:1240 #, no-wrap msgid "" " setenv WCDSCAN \"$HOME:/projectdisk/projectX\"\n" "\n" msgstr "" " setenv WCDSCAN \"$HOME:/projectdisk/projectX\"\n" "\n" #. type: =item #: wcd.pod:1242 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1244 msgid "Specify filters with environment variable I. All directories that do not match the filter(s) are ignored. A list can be specified by separating filters by the shell path separator. Similar as specifying the I variable. The case sensitivity is mandated by the Operating system." msgstr "使用環境變數 I 指定過濾條件,不符合過濾條件的目錄都會被忽略。可以用 shell 的路徑分隔符分隔多個條件來指定清單,類似於指定 I 變數。是否區分大小寫由作業系統決定。" #. type: textblock #: wcd.pod:1250 wcd.pod:1275 msgid "An example for DOS, Windows, OS/2 Command Prompt:" msgstr "DOS、Windows、OS/2 命令提示字元的範例:" #. type: verbatim #: wcd.pod:1252 #, no-wrap msgid "" " set WCDFILTER=projects;doc\n" "\n" msgstr "" " set WCDFILTER=projects;doc\n" "\n" #. type: verbatim #: wcd.pod:1256 #, no-wrap msgid "" " export WCDFILTER=\"projects:doc\"\n" "\n" msgstr "" " export WCDFILTER=\"projects:doc\"\n" "\n" #. type: verbatim #: wcd.pod:1260 #, no-wrap msgid "" " setenv WCDFILTER \"projects:doc\"\n" "\n" msgstr "" " setenv WCDFILTER \"projects:doc\"\n" "\n" #. type: =item #: wcd.pod:1262 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1264 msgid "The paths specified with environment I will be banned by wcd. See also option B<-b>. Specify a list of paths separated by shell I separator." msgstr "以環境變數 I 指定的路徑會被 wcd 封鎖。請另參見 B<-b> 選項。請指定一份以 shell I 分隔符分隔的路徑清單。" #. type: =item #: wcd.pod:1268 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1270 msgid "The paths specified with environment I will be excluded by wcd. See also options B<-x> and B<-xf>. Specify a list of paths separated by shell I separator." msgstr "以環境變數 I 指定的路徑會被 wcd 排除。請另參見 B<-x> 與 B<-xf> 選項。請指定一份以 shell I 分隔符分隔的路徑清單。" #. type: verbatim #: wcd.pod:1277 #, no-wrap msgid "" " set WCDEXCLUDE=*/windows;*/temp;*CVS\n" "\n" msgstr "" " set WCDEXCLUDE=*/windows;*/temp;*CVS\n" "\n" #. type: verbatim #: wcd.pod:1281 #, no-wrap msgid "" " export WCDEXCLUDE=\"/dev:/tmp:*CVS\"\n" "\n" msgstr "" " export WCDEXCLUDE=\"/dev:/tmp:*CVS\"\n" "\n" #. type: verbatim #: wcd.pod:1285 #, no-wrap msgid "" " setenv WCDEXCLUDE \"/dev:/tmp:*CVS\"\n" "\n" msgstr "" " setenv WCDEXCLUDE \"/dev:/tmp:*CVS\"\n" "\n" #. type: =item #: wcd.pod:1287 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1289 msgid "Set the base of user's home directories. On DOS/Windows the default value is C<\\\\users>. On Unix/Cygwin the default value is C. This variable is used to scan treedata files of other users. See also options B<-u> and B<+u>. In verbose mode wcd will print all filters, bans and excludes. See option B<-v>." msgstr "設定使用者家目錄的基底位置。在 DOS/Windows 上預設值是 C<\\\\users>,在 Unix/Cygwin 上預設值是 C。這個變數用來掃描其他使用者的 treedata 檔案。請另參見 B<-u> 與 B<+u> 選項。在詳細模式中,wcd 會印出所有過濾條件、封鎖與排除設定。請參見 B<-v> 選項。" #. type: =item #: wcd.pod:1296 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1298 msgid "Wcd gives preference to I over the default stack file name (see section FILES). With this variable each shell (or used terminal emulator) can have its private stack of used directories." msgstr "wcd 採用 I 的優先權高於預設的堆疊檔案名稱(見「檔案」一節)。有了這個變數,每個 shell(或使用的終端機模擬器)都可以有自己的已用目錄堆疊。" #. type: textblock #: wcd.pod:1302 msgid "To use a unique time based YYYYMMDD-HHMMSS file for each opened interactive shell." msgstr "這樣每開啟一個互動式 shell 就會使用一個以時間為基礎、檔名形如 YYYYMMDD-HHMMSS 的唯一檔案。" #. type: verbatim #: wcd.pod:1305 #, no-wrap msgid "" " export WCDSTACKFILE=$HOME/.wcd/stack.$(date +%Y%m%d-%H%M%S)\n" "\n" msgstr "" " export WCDSTACKFILE=$HOME/.wcd/stack.$(date +%Y%m%d-%H%M%S)\n" "\n" #. type: textblock #: wcd.pod:1307 msgid "For a stack per xterm(1), use the xterm I environment variable:" msgstr "若要讓每個 xterm(1) 各有一個堆疊,請使用 xterm 的 I 環境變數:" #. type: verbatim #: wcd.pod:1309 #, no-wrap msgid "" " export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOWID\n" "\n" msgstr "" " export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOWID\n" "\n" #. type: textblock #: wcd.pod:1311 msgid "For GNU screen(1), to use stack per screen:" msgstr "若使用 GNU screen(1),要讓每個 screen 各有一個堆疊:" #. type: verbatim #: wcd.pod:1313 #, no-wrap msgid "" " export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOW\n" "\n" msgstr "" " export WCDSTACKFILE=$HOME/.wcd/stack.$WINDOW\n" "\n" #. type: =item #: wcd.pod:1315 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1317 msgid "If the environment variable I is defined, wcd with ncurses interface checks for a local terminal definition before checking in the standard place. This is useful if terminal definitions are not on a standard place. Often used standard places are C and C." msgstr "若已定義環境變數 I,具備 ncurses 介面的 wcd 會先在本機尋找終端機定義,再查詢標準位置。這在終端機定義不在標準位置時很有用。常用的標準位置是 C 與 C。" #. type: =item #: wcd.pod:1323 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1325 msgid "Wcd with PDCurses interface recognizes the environment variable I. If this environment variable is set, PDCurses will take a copy of the contents of the screen at the time that wcd is started; when wcd exits, the screen will be restored. An example for Windows Command Prompt:" msgstr "具備 PDCurses 介面的 wcd 會辨識環境變數 I。若設定了這個環境變數,PDCurses 會在 wcd 啟動時複製一份畫面內容;wcd 結束時就會還原畫面。Windows 命令提示字元的範例:" #. type: verbatim #: wcd.pod:1331 #, no-wrap msgid "" " set PDC_RESTORE_SCREEN=1\n" "\n" msgstr "" " set PDC_RESTORE_SCREEN=1\n" "\n" #. type: textblock #: wcd.pod:1333 msgid "Windows allows only a small buffer to be saved. So it is not always possible to restore everything. Some garbage data may be printed in the console after wcd exits if you have set a large buffer width." msgstr "Windows 只允許儲存小型的緩衝區,因此不一定能還原所有內容。若您把緩衝區寬度設得很大,wcd 結束後主控台可能會印出一些垃圾資料。" #. type: =item #: wcd.pod:1338 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1340 msgid "Printing of C<#!$SHELL> on the first line of the go-script for POSIX type shell or C shell is needed for 8 bit characters. Some shells otherwise think that the go-script is a binary file and will not source it. In Cygwin Bash the variable I must be set in environment using the C command, otherwise wcd can't read the variable." msgstr "對 POSIX 類 shell 或 C 類 shell,必須在 go 腳本的第一列印出 C<#!$SHELL>,8 位元字元才能正確運作,否則某些 shell 會認為 go 腳本是二進位檔而不會 source。在 Cygwin Bash 中,必須用 C 命令把變數 I 設入環境,否則 wcd 無法讀取該變數。" #. type: =item #: wcd.pod:1348 msgid "B" msgstr "B" #. type: textblock #: wcd.pod:1350 msgid "Wcd for DOS bash uses C<$BASH> instead of C<$SHELL>, because C<$SHELL> points to the DOS command shell. One may need to define C<$BASH> with an C command, otherwise wcd can't read the variable." msgstr "DOS bash 版的 wcd 使用 C<$BASH> 而非 C<$SHELL>,因為 C<$SHELL> 指向 DOS 命令 shell。可能需要用 C 命令定義 C<$BASH>,否則 wcd 無法讀取該變數。" #. type: =head1 #: wcd.pod:1357 msgid "SEE ALSO" msgstr "參見" #. type: textblock #: wcd.pod:1359 msgid "sh(1), bash(1), csh(1), ksh(1), zsh(1), locale(1), ncurses(1)," msgstr "sh(1), bash(1), csh(1), ksh(1), zsh(1), locale(1), ncurses(1)," #. type: =head1 #: wcd.pod:1367 msgid "AUTHORS" msgstr "作者" #. type: textblock #: wcd.pod:1369 msgid "Wcd was written by Erwin Waterlander " msgstr "wcd 由 Erwin Waterlander 撰寫" #. type: textblock #: wcd.pod:1371 msgid "Project homepage: L" msgstr "專案首頁:L" #. type: textblock #: wcd.pod:1374 msgid "SourceForge: L" msgstr "SourceForge:L" #. type: textblock #: wcd.pod:1377 msgid "The manual page formatting was provided by Jari Aalto ." msgstr "手冊頁的排版由 Jari Aalto 提供。" #. type: textblock #: wcd.pod:1380 msgid "NCD was originally written by Brad Kingsbury for Peter Norton's \"Norton Utilities\" around 1987. See also L" msgstr "NCD 最初是 Brad Kingsbury 於 1987 年左右為 Peter Norton 的《Norton Utilities》撰寫的。請另參閱 L"