Vyhľadávanie


Okno hľadania

Calling up a search

OmegaT poskytuje silné množstvo vyhľadávacích funkcií. Call up the Search window with Ctrl+F and enter the word or phrase you wish to search for in the Search for box.

Alternatively, in the Editor window, select a word or phrase in the editing field (target text of the active segment) and hit Ctrl+F. The word or phrase is entered in the Search for box automatically in this case.

Calling up the Search window anew will create a new instance of the window. Ak ich zabudnete zatvárať, môžete skončiť s množstvom otvorených okien Hľadanie.

Search location

Searches occur both in the source as well as in the target section of the project. You may search in

V poslednom prípade, OmegaT bude prehľadávať iba súbory, ktoré môže čítať (Pozri Podporované formáty súborov).


Metódy hľadania

Vyberte metódu hľadania pomocou prepínacích tlačidiel. Môžete si vybrať medzi dvoma metódami hľadania:

exact search
Search for segments containing of the string you specified.
keyword search
Search for segments containing all keywords you specified, in any order.

Pre ktorúkoľvek z týchto metód môžete vybrať nasledujúce tri voľby:

case sensitive
If selected, the search will be performed for the exact string specified; otherwise capitals will be ignored.
regular expressions
If selected, the search string will be treated as a regular expression (in case of a keyword search it will be treated as multiple expressions).
search TMs
if selected, all translation memories are included in the search.

An exact search looks for a phrase, i.e. if several words are entered, they are found only if they occur in exactly the same sequence. Presné hľadania sú podobné hľadanie "presného výrazu" v internetovom vyhľadávači ako Google.

Select keyword search to search for any number of individual words, separated by spaces and in any order. OmegaT will display a list of all segments in which all the words occur. Hľadania kľúčových slov sú podobné ako hľadanie "so všetkými slovami" v internetovom vyhľadávači ako Google (logika AND).


Using wild cards

In both exact and keyword searches, the wild card search characters '*' and '?' can be used. To use wild cards, make sure the option regular expressions is not selected, otherwise these characters are interpreted as special regular expression characters.

The '*' character matches zero or more characters (the search term 'run*' would match 'run', 'runs', and 'running', for example).

The '?' character matches exactly one character ('run?' would match 'runs' and 'rung', for example, but not 'run' or 'running').

If you wish to search for segments containing either * or ?, you will need to switch on regular expressions, and escape these characters by prefixing a backslash ('\') to them, i.e. 'x\*y' to find instances of 'x*y' and 'x\?y' to find instances of 'x?y'.


Using regular expressions

Hľadanie regulárnych výrazov je mocný spôsob pre hľadanie výskytov reťazca. It is similar to a wild card search, but allows far more flexibility.

Regulárne výrazy použité pri vyhľadávaní sú tie, ktoré podporuje Java. Krátky prehľad je k dispozícii v dodatku Konštrukcie regulárnych výrazov.

Ak potrebujete špecifickejšie informácie, prosím prezrite si http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html.

Na webe môžete nájsť tutoriály (napríklad http://www.regular-expressions.info/quickstart.html.)


Zobrazenie výsledkov vyhľadávania

Stlačenie tlačidla pre vyhľadanie po zadaní reťazca do vyhľadávacieho poľa zobrazí všetky segmenty v projekte, ktoré obsahujú hľadaný reťazec. Keďže OmegaT zaobchádza so všetkými identickými segmentami ako s jedným celkom, zobrazí sa iba prvý jedinečný segment.

Segmenty sú zobrazované v poradí v akom sa nachádzajú v projekte. Preložené segmenty sa zobrazia s pôvodným textom na vrchu a preloženým textom dole, nepreložené segmenty sa zobrazia iba s pôvodným textom.

Možete kliknúť na segment pre jeho aktivovanie v Editore pre zmenu. Potom sa môžete prepnúť späť do Okna hľadania a prejsť na ďalší nájdený segment aj pre jeho modifikáciu. Takýto vzor je užitočný pre robenie aktualizácií terminológie.


Právne poznámky